From 743aa13aa39dc608779c67b29e83fd4eb9387699 Mon Sep 17 00:00:00 2001 From: shaoyong Date: Mon, 18 Mar 2024 14:27:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E9=87=8F=E7=9B=AE=E6=A0=87=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E4=BA=BA=E5=91=98=E7=BA=BF=E4=BD=93=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/material/index.vue | 26 ++++++++++-------- src/views/quality/material/userbind.vue | 33 +++++++++++++++++------ src/views/quality/qcGoal/distribution.vue | 1 - src/views/quality/qcGoal/index.vue | 6 ++--- 4 files changed, 43 insertions(+), 23 deletions(-) diff --git a/src/views/quality/material/index.vue b/src/views/quality/material/index.vue index 698d86d..5ab80c5 100644 --- a/src/views/quality/material/index.vue +++ b/src/views/quality/material/index.vue @@ -84,17 +84,18 @@ - @@ -113,12 +114,14 @@ export default { loading: true, // 选中数组 ids: [], + names: [], // 非单个禁用 single: true, // 非多个禁用 multiple: true, // 显示搜索条件 showSearch: true, + handleCode: '', // 总条数 total: 0, // 人员物料绑定表格数据 @@ -210,32 +213,33 @@ export default { // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.userCode) + this.names = selection.map(item => item.userName) + this.handleCode = names.toString(); this.single = selection.length!==1 this.multiple = !selection.length + }, /** 新增按钮操作 */ handleAdd() { this.reset(); this.open = true; - this.title = "添加人员物料绑定"; + this.title = "添加人员线体绑定"; }, /** 绑定按钮操作 */ handleUpdate(row) { this.reset(); const userCodes = row.userCode || this.ids; - const userNames = row.userName; + const userNames = row.userName || this.names; this.form.userCodes = userCodes; this.form.userNames = userNames; this.open = true; - this.title = "修改人员物料绑定"; - this.optType = "edit"; - // getMaterial(userCode).then(response => { - - // }); + this.title = "修改人员线体绑定"; }, /** 提交按钮 */ submitForm() { this.open = false; + this.$refs.userBind.liftList = []; + this.$refs.userBind.rightList = []; this.getList(); /* this.$refs["form"].validate(valid => { if (valid) { @@ -258,7 +262,7 @@ export default { /** 删除按钮操作 */ handleDelete(row) { const ids = row.userCode || this.ids; - this.$modal.confirm('是否确认删除人员物料绑定编号为"' + ids + '"的数据项?').then(function() { + this.$modal.confirm('是否确认删除人员线体绑定编号为"' + ids + '"的数据项?').then(function() { return delMaterial(ids); }).then(() => { this.getList(); diff --git a/src/views/quality/material/userbind.vue b/src/views/quality/material/userbind.vue index b56b227..5efc4e7 100644 --- a/src/views/quality/material/userbind.vue +++ b/src/views/quality/material/userbind.vue @@ -1,5 +1,5 @@