diff --git a/src/views/productionManagement/WIPChange.vue b/src/views/productionManagement/WIPChange.vue index 448899a..9bee513 100644 --- a/src/views/productionManagement/WIPChange.vue +++ b/src/views/productionManagement/WIPChange.vue @@ -47,6 +47,7 @@ export default { }, data() { return { + loading: false, page: {}, data: [], form: {}, @@ -233,6 +234,7 @@ export default { closeDialog() { this.isHandleShow = false; this.isAssignShow = false; + this.onLoad(this.page, this.query); }, currentChange(currentPage) { this.page.currentPage = currentPage; diff --git a/src/views/productionManagement/components/taskHandleDialog.vue b/src/views/productionManagement/components/taskHandleDialog.vue index 6950197..aee9539 100644 --- a/src/views/productionManagement/components/taskHandleDialog.vue +++ b/src/views/productionManagement/components/taskHandleDialog.vue @@ -35,7 +35,7 @@ @@ -56,6 +56,7 @@ export default { }, data() { return { + loading: false, openShow: false, formData: {}, rules: { @@ -68,15 +69,16 @@ export default { this.openShow = this.showDialog; }, methods: { - closeDialog() { + closeDialog(type) { this.openShow = false; - this.$emit('closeDialog'); + this.$emit('closeDialog',type); }, submit() { this.$refs.form.validate(valid => { if (valid) { + this.loading = true; let query = { - ddtIdList:[this.rowItem.ddtId], //调度任务ID + ddtIdList:[this.rowItem.id], //调度任务ID rsCode: this.formData.rsCode, //审理单号 handleResult: this.formData.handleResult, //处理结果 loginUser: '', //登录用户 @@ -90,7 +92,7 @@ export default { }; taskComplete(query).then(res => { this.$message.success('处理成功'); - this.closeDialog(); + this.closeDialog(true); }); } });