diff --git a/src/views/quality/material/index.vue b/src/views/quality/material/index.vue index 698d86df..5ab80c5a 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 b56b2277..5efc4e74 100644 --- a/src/views/quality/material/userbind.vue +++ b/src/views/quality/material/userbind.vue @@ -1,5 +1,5 @@