diff --git a/src/views/modules/quotation/requestForQuote.vue b/src/views/modules/quotation/requestForQuote.vue index 75483c4..a1c6e89 100644 --- a/src/views/modules/quotation/requestForQuote.vue +++ b/src/views/modules/quotation/requestForQuote.vue @@ -23,6 +23,8 @@ + + + + + + + + + + + + + + + + - + @@ -77,17 +93,6 @@ - - - - - - - - - - - 查询 新增 @@ -1008,7 +1013,8 @@ export default { menuId: this.$route.meta.menuId, quotationNo: '', nodeId: '', - approvalUsername: '' + approvalUsername: '', + createBy2: '' }, // 其它 dataListLoading: false, diff --git a/src/views/modules/test/requestForTest.vue b/src/views/modules/test/requestForTest.vue index 122c82f..cf9a911 100644 --- a/src/views/modules/test/requestForTest.vue +++ b/src/views/modules/test/requestForTest.vue @@ -314,21 +314,17 @@ herf="#">Artwork - - TP工程师 + TP工程师 TP工程师 - - + + @@ -339,7 +335,7 @@ CQC - @@ -351,15 +347,16 @@ FAI - - - + + 材料总金额:{{ materialTotalAmount.toFixed(2) }} + @@ -1038,6 +1035,15 @@ export default { return 'N' } }, + // 计算材料总金额 + materialTotalAmount() { + if (!this.testSoBomList || this.testSoBomList.length === 0) { + return 0 + } + return this.testSoBomList.reduce((sum, item) => { + return sum + (Number(item.totalCost) || 0) + }, 0) + } }, name: "test", components: { @@ -1280,6 +1286,7 @@ export default { customerNoFlag: false, projectIdFlag: true, testPartNoFlag: false, + materialTotalAmount: 0, }, testDetailData: { technicalConsiderations: '', @@ -1399,8 +1406,9 @@ export default { sortLv: 0, status: true, fixed: '', - columnWidth: 80 - }, { + columnWidth: 60 + }, + { userId: this.$store.state.user.name, functionId: 103001, serialNumber: '103001Table1TestNo', @@ -1408,7 +1416,7 @@ export default { tableName: '测试信息表', columnProp: 'testNo', headerAlign: 'center', - align: 'center', + align: 'left', columnLabel: '测试单号', columnHidden: false, columnImage: false, @@ -1418,6 +1426,24 @@ export default { fixed: '', columnWidth: 120 }, + { + userId: this.$store.state.user.name, + functionId: 103001, + serialNumber: '103001Table1SoNumber', + tableId: '103001Table1', + tableName: '测试信息表', + columnProp: 'soNumber', + headerAlign: 'center', + align: 'left', + columnLabel: '工单号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120 + }, { userId: this.$store.state.user.name, functionId: 103001, @@ -1426,7 +1452,7 @@ export default { tableName: '测试信息表', columnProp: 'customerNo', headerAlign: 'center', - align: 'center', + align: 'left', columnLabel: '客户编码', columnHidden: false, columnImage: false, @@ -1506,7 +1532,7 @@ export default { sortLv: 0, status: true, fixed: '', - columnWidth: 140 + columnWidth: 120 }, { userId: this.$store.state.user.name, @@ -1524,7 +1550,7 @@ export default { sortLv: 0, status: true, fixed: '', - columnWidth: 140 + columnWidth: 120 }, { userId: this.$store.state.user.name, @@ -1542,6 +1568,24 @@ export default { sortLv: 0, status: true, fixed: '', + columnWidth: 200 + }, + { + userId: this.$store.state.user.name, + functionId: 103001, + serialNumber: '103001Table1MaterialTotalAmount', + tableId: '103001Table1', + tableName: '测试信息表', + columnProp: 'materialTotalAmount', + headerAlign: 'center', + align: 'right', + columnLabel: '材料总金额', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', columnWidth: 100 }, { @@ -2897,6 +2941,9 @@ export default { // return // } // this.confirmProjectPart(); + // 计算材料总金额 + this.modalData.materialTotalAmount = this.materialTotalAmount; + if (this.modalData.flag === '1') { this.testSoRoutingList = [] this.testSoBomList = []