opt:优化前端
This commit is contained in:
@@ -176,17 +176,6 @@
|
||||
禁用
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<el-dialog
|
||||
title="确认"
|
||||
:visible.sync="dialogVisible"
|
||||
width="30%"
|
||||
>
|
||||
<span>您确定要移库吗?</span>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" @click="confirmMove">确定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<!--表单组件-->
|
||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="540px">
|
||||
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="110px" style="border: 1px solid #cfe0df;margin-top: 10px;padding-top: 10px;">
|
||||
@@ -335,7 +324,6 @@
|
||||
style="display: inline"
|
||||
:data="scope.row"
|
||||
:permission="permission"
|
||||
:disabled-dle="true"
|
||||
/>
|
||||
<el-button
|
||||
v-if="showQtyButton(scope.row.vehicle_qty,scope.row.region_code)"
|
||||
@@ -427,7 +415,11 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
permission: {},
|
||||
permission: {
|
||||
add: ['admin', 'point:add'],
|
||||
edit: ['admin', 'point:edit'],
|
||||
del: ['admin', 'point:del']
|
||||
},
|
||||
rules: {
|
||||
point_code: [
|
||||
{ required: true, message: '点位编码不能为空', trigger: 'blur' }
|
||||
@@ -451,8 +443,7 @@ export default {
|
||||
pointStatusList: [],
|
||||
pointStatusDialogList: [],
|
||||
pointTypesDialogList: [],
|
||||
pointDialog: false,
|
||||
dialogVisible: false
|
||||
pointDialog: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -584,9 +575,6 @@ export default {
|
||||
this.$message.error('提交失败,废包材位有货')
|
||||
})
|
||||
},
|
||||
showConfirmationDialog() {
|
||||
this.dialogVisible = true
|
||||
},
|
||||
mysubmit() {
|
||||
// 弹出输入回温时间和回温模式的对话框
|
||||
this.$confirm('当前货位信息发生变更,请确认货位信息与实际一致', '提示', {
|
||||
@@ -602,19 +590,6 @@ export default {
|
||||
message: '已取消删除'
|
||||
})
|
||||
})
|
||||
},
|
||||
confirmMove() {
|
||||
this.$axios.post('/api/schBaseTask/move', { })
|
||||
.then(response => {
|
||||
console.log(response.data)
|
||||
})
|
||||
.catch(error => {
|
||||
// Handle error response
|
||||
console.error(error)
|
||||
})
|
||||
.finally(() => {
|
||||
this.dialogVisible = false // Close the dialog
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user