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

过程检验

parent a4085fd6
......@@ -329,7 +329,7 @@ export default {
multiple: true,
// 显示搜索条件
showSearch: true,
selectedRows: [],
daterangePurchaseDate: [],
// 总条数
total: 0,
......@@ -500,6 +500,7 @@ export default {
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.ipqcId)
this.selectedRows = selection
this.single = selection.length !== 1
this.multiple = !selection.length
},
......@@ -513,9 +514,10 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
row = row || this.selectedRows[0]
const ipqcId = row.ipqcId || this.ids
getIpqc(ipqcId).then(response => {
this.form = response.data;
this.form = {...row, ...response.data};
this.open = true;
this.title = "修改过程检验单";
this.optType = "edit";
......@@ -526,7 +528,7 @@ export default {
this.reset();
const ipqcIds = row.ipqcId
getIpqc(ipqcIds).then(response => {
this.form = response.data;
this.form = {...row, ...response.data};
this.open = true;
this.title = "查看检验单信息";
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