晶棒工单&&新增原料缓存区
This commit is contained in:
@@ -175,7 +175,29 @@
|
||||
>
|
||||
禁用
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="el-icon-info"
|
||||
@click="showConfirmationDialog"
|
||||
>
|
||||
缓存区一键移库
|
||||
</el-button>
|
||||
<!-- Confirmation Dialog -->
|
||||
</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;">
|
||||
@@ -466,7 +488,8 @@ export default {
|
||||
pointStatusList: [],
|
||||
pointStatusDialogList: [],
|
||||
pointTypesDialogList: [],
|
||||
pointDialog: false
|
||||
pointDialog: false,
|
||||
dialogVisible: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -537,7 +560,7 @@ export default {
|
||||
})
|
||||
},
|
||||
showQtyButton(vehicle_qty,region_code) {
|
||||
if (vehicle_qty === 1 && region_code === 'YL') {
|
||||
if (vehicle_qty === 1 && (region_code === 'YL'|| region_code === 'YLHC')) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
@@ -594,7 +617,25 @@ export default {
|
||||
console.error("提交失败,废包材位有货", error);
|
||||
this.$message.error("提交失败,废包材位有货");
|
||||
});
|
||||
}
|
||||
},showConfirmationDialog() {
|
||||
this.dialogVisible = true;
|
||||
},
|
||||
confirmMove() {
|
||||
// Here, you can add your logic to call the backend API.
|
||||
// For example, using axios to make a POST request:
|
||||
this.$axios.post('/api/schBaseTask/move', { })
|
||||
.then(response => {
|
||||
// Handle success response
|
||||
console.log(response.data);
|
||||
})
|
||||
.catch(error => {
|
||||
// Handle error response
|
||||
console.error(error);
|
||||
})
|
||||
.finally(() => {
|
||||
this.dialogVisible = false; // Close the dialog
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user