Commit 55629e09 authored by 沈翠玲's avatar 沈翠玲

过程检验

parent a4085fd6
...@@ -329,7 +329,7 @@ export default { ...@@ -329,7 +329,7 @@ export default {
multiple: true, multiple: true,
// 显示搜索条件 // 显示搜索条件
showSearch: true, showSearch: true,
selectedRows: [],
daterangePurchaseDate: [], daterangePurchaseDate: [],
// 总条数 // 总条数
total: 0, total: 0,
...@@ -500,6 +500,7 @@ export default { ...@@ -500,6 +500,7 @@ export default {
// 多选框选中数据 // 多选框选中数据
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map(item => item.ipqcId) this.ids = selection.map(item => item.ipqcId)
this.selectedRows = selection
this.single = selection.length !== 1 this.single = selection.length !== 1
this.multiple = !selection.length this.multiple = !selection.length
}, },
...@@ -513,9 +514,10 @@ export default { ...@@ -513,9 +514,10 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
row = row || this.selectedRows[0]
const ipqcId = row.ipqcId || this.ids const ipqcId = row.ipqcId || this.ids
getIpqc(ipqcId).then(response => { getIpqc(ipqcId).then(response => {
this.form = response.data; this.form = {...row, ...response.data};
this.open = true; this.open = true;
this.title = "修改过程检验单"; this.title = "修改过程检验单";
this.optType = "edit"; this.optType = "edit";
...@@ -526,7 +528,7 @@ export default { ...@@ -526,7 +528,7 @@ export default {
this.reset(); this.reset();
const ipqcIds = row.ipqcId const ipqcIds = row.ipqcId
getIpqc(ipqcIds).then(response => { getIpqc(ipqcIds).then(response => {
this.form = response.data; this.form = {...row, ...response.data};
this.open = true; this.open = true;
this.title = "查看检验单信息"; this.title = "查看检验单信息";
this.optType = "view"; this.optType = "view";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment