diff --git a/src/api/quality/qcFeedback.js b/src/api/quality/qcFeedback.js new file mode 100644 index 0000000..a85b478 --- /dev/null +++ b/src/api/quality/qcFeedback.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询市场反馈信息列表 +export function listQcFeedback(query) { + return request({ + url: '/quality/qcFeedback/list', + method: 'get', + params: query + }); +} + +// 查询市场反馈信息详细 +export function getQcFeedback(recordId) { + return request({ + url: '/quality/qcFeedback/' + recordId, + method: 'get' + }); +} + +// 新增市场反馈信息 +export function addQcFeedback(data) { + return request({ + url: '/quality/qcFeedback', + method: 'post', + data: data + }); +} + +// 修改市场反馈信息 +export function updateQcFeedback(data) { + return request({ + url: '/quality/qcFeedback', + method: 'put', + data: data + }); +} + +// 删除市场反馈信息 +export function delQcFeedback(recordId) { + return request({ + url: '/quality/qcFeedback/' + recordId, + method: 'delete' + }); +} diff --git a/src/views/quality/material/index.vue b/src/views/quality/material/index.vue index 2547a91..21066e4 100644 --- a/src/views/quality/material/index.vue +++ b/src/views/quality/material/index.vue @@ -227,13 +227,25 @@ export default { /** 绑定按钮操作 */ handleUpdate(row) { this.reset(); - let userCodes = row.userCode || this.ids; - let userNames = row.userName || this.names; - this.handleCode = this.ids.toString(); - this.form.userCodes = userCodes; - this.form.userNames = userNames; - this.open = true; - this.title = "修改人员线体绑定"; + let userCodes = []; + let userNames = []; + if(row.userCode) { + userCodes[0] = row.userCode; + }else{ + userCodes = this.ids; + } + if(row.userName) { + userNames[0] = row.userName + }else{ + userNames = this.names; + } + this.handleCode = userCodes.toString().then(()=>{ + this.form.userCodes = userCodes; + this.form.userNames = userNames; + this.open = true; + this.title = "修改人员线体绑定"; + }); + }, /** 提交按钮 */ submitForm() {