From c03dda39600e7fcc7d8a850014276a2e49ed1abc Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Thu, 18 Nov 2021 09:47:42 +0800 Subject: [PATCH] tijao --- hb_client/src/views/wpm/worktask.vue | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/hb_client/src/views/wpm/worktask.vue b/hb_client/src/views/wpm/worktask.vue index b0959e7..3dcfa56 100644 --- a/hb_client/src/views/wpm/worktask.vue +++ b/hb_client/src/views/wpm/worktask.vue @@ -74,7 +74,7 @@ @@ -627,6 +627,7 @@ export default { from: [], workdata: {}, wproductdata: {}, + workData:{}, }; }, @@ -881,18 +882,21 @@ export default { record_data: _this.field1, }); }); + + this.workData.step=this.step; + this.workData.wproducts=this.wproducts; + this.workData.input=this.input; + this.workData.output=this.output; + this.workData.forms=this.from; + this.workData.remark=this.remark; + if (this.subproduction_plan != "") { + this.wproductdata.subproduction_plan = this.subproduction_plan; + } console.log(this.remark); + - submitWork({ - step: this.step, - subproduction_plan: this.subproduction_plan, - wproducts: this.wproducts, - input: this.input, - output: this.output, - forms: this.from, - remark: this.remark, - }).then((res) => { + submitWork(this.workData).then((res) => { if (res.code >= 200) { this.dialogVisiblework = false; this.$message.success("成功!");