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("成功!");