From 4cbf1c4c9f573566354d0c4a03a520d727f02f57 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 9 Apr 2024 16:39:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=E6=88=90=E5=93=81=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qm/productCheck.vue | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/views/qm/productCheck.vue b/src/views/qm/productCheck.vue index 30809e78..2e9155a4 100644 --- a/src/views/qm/productCheck.vue +++ b/src/views/qm/productCheck.vue @@ -317,7 +317,7 @@ export default { }, apiObj: null, params: {}, - formTableData: null, + formTableData: [], ftestWork: "", type: "", userList: [], @@ -338,8 +338,7 @@ export default { that.$API.qm.ftestwork.item.req(that.ftestWork).then((res) => { that.workObj = res; that.addTemplate.test_date = res.test_date; - that.addTemplate.test_numer = res.batch + "_1"; - that.getCheckList(); + that.getCheckList(that.ftestWork); }); let tag = that.type == "bang" ? "prod_bang" : "prod_guan"; that.getTestItem(tag, that.ftestWork); @@ -407,15 +406,16 @@ export default { }, //删除 delCheck(id) { - this.$confirm(`确定删除吗?`, "提示", { + let that = this; + that.$confirm(`确定删除吗?`, "提示", { type: "warning", }) .then(() => { - this.$API.qm.ftest.delete + that.$API.qm.ftest.delete .req(id) .then((res) => { - this.$message.success("删除成功"); - this.$refs.table.refresh(); + that.$message.success("删除成功"); + that.getCheckList(that.ftestWork); return res; }) .catch((err) => { @@ -425,29 +425,29 @@ export default { .catch(() => {}); }, saveCheck(row) { + let that = this; console.log(row); let index = this.formTableData.findIndex( (item) => item.id == row.id ); if (row.id && row.id !== "") { - this.$API.qm.ftest.update + that.$API.qm.ftest.update .req(row.id, row) .then((res) => { - this.formTableData[index].isEdit = false; - this.$message.success("操作成功"); - this.$refs.formTable.refresh(); + that.formTableData[index].isEdit = false; + that.$message.success("操作成功"); }) .catch((err) => { return err; }); } else { - this.$API.qm.ftest.create + that.$API.qm.ftest.create .req(row) .then((res) => { - this.formTableData[index].isEdit = false; - this.$message.success("操作成功"); - this.$refs.formTable.refresh(); + that.formTableData[index].isEdit = false; + that.$message.success("操作成功"); + that.getCheckList(that.ftestWork); }) .catch((err) => { return err; From 95b7c45b18fff86b8e76c2744297bd25bab09c07 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 9 Apr 2024 17:37:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=E9=80=80=E7=81=AB=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E4=B8=8D=E5=90=88=E6=A0=BC=E6=95=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm/worktask_form.vue | 81 ++++++++++++++++----------------- 1 file changed, 39 insertions(+), 42 deletions(-) diff --git a/src/views/wpm/worktask_form.vue b/src/views/wpm/worktask_form.vue index 5253088a..d0ab1496 100644 --- a/src/views/wpm/worktask_form.vue +++ b/src/views/wpm/worktask_form.vue @@ -175,6 +175,36 @@ > + + + + +
+ {{ item.batch }} + {{ + item.count + }} +
+
+
+
+
- - - - -
- {{ item.batch }} - {{ - item.count - }} -
-
-
-
-
+