在制品页面逻辑调整

dev-scheduling
zhangdi 2 months ago
parent a98e6342c3
commit 48374a69a3
  1. 2
      src/views/productionManagement/WIPChange.vue
  2. 12
      src/views/productionManagement/components/taskHandleDialog.vue

@ -47,6 +47,7 @@ export default {
}, },
data() { data() {
return { return {
loading: false,
page: {}, page: {},
data: [], data: [],
form: {}, form: {},
@ -233,6 +234,7 @@ export default {
closeDialog() { closeDialog() {
this.isHandleShow = false; this.isHandleShow = false;
this.isAssignShow = false; this.isAssignShow = false;
this.onLoad(this.page, this.query);
}, },
currentChange(currentPage) { currentChange(currentPage) {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;

@ -35,7 +35,7 @@
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="closeDialog"> </el-button> <el-button @click="closeDialog"> </el-button>
<el-button type="primary" @click="submit"> </el-button> <el-button type="primary" @click="submit" :loading="loading"> </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
@ -56,6 +56,7 @@ export default {
}, },
data() { data() {
return { return {
loading: false,
openShow: false, openShow: false,
formData: {}, formData: {},
rules: { rules: {
@ -68,15 +69,16 @@ export default {
this.openShow = this.showDialog; this.openShow = this.showDialog;
}, },
methods: { methods: {
closeDialog() { closeDialog(type) {
this.openShow = false; this.openShow = false;
this.$emit('closeDialog'); this.$emit('closeDialog',type);
}, },
submit() { submit() {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
this.loading = true;
let query = { let query = {
ddtIdList:[this.rowItem.ddtId], //ID ddtIdList:[this.rowItem.id], //ID
rsCode: this.formData.rsCode, // rsCode: this.formData.rsCode, //
handleResult: this.formData.handleResult, // handleResult: this.formData.handleResult, //
loginUser: '', // loginUser: '', //
@ -90,7 +92,7 @@ export default {
}; };
taskComplete(query).then(res => { taskComplete(query).then(res => {
this.$message.success('处理成功'); this.$message.success('处理成功');
this.closeDialog(); this.closeDialog(true);
}); });
} }
}); });

Loading…
Cancel
Save