|
|
|
@ -1570,6 +1570,24 @@ export default { |
|
|
|
fixed: '', |
|
|
|
columnWidth: 200 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 103001, |
|
|
|
serialNumber: '103001Table1ProductName', |
|
|
|
tableId: '103001Table1', |
|
|
|
tableName: '测试信息表', |
|
|
|
columnProp: 'productName', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnLabel: '标签名称', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 150 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 103001, |
|
|
|
@ -3996,18 +4014,18 @@ export default { |
|
|
|
if (!testNo) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 更新dataList中的对应行 |
|
|
|
const currentRow = this.dataList.find(item => item.testNo === testNo) |
|
|
|
if (currentRow) { |
|
|
|
currentRow.materialTotalAmount = this.materialTotalAmount |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 如果在对话框模式,更新modalData |
|
|
|
if (this.modalData && this.modalData.testNo === testNo) { |
|
|
|
this.modalData.materialTotalAmount = this.materialTotalAmount |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 如果在主页面模式,更新testCurrentRow和testDetailData |
|
|
|
if (this.testCurrentRow && this.testCurrentRow.testNo === testNo) { |
|
|
|
this.testCurrentRow.materialTotalAmount = this.materialTotalAmount |
|
|
|
|