@@ -517,6 +531,7 @@
tpName: '',
purchaser: '',
purchaserName: '',
+ totalCost:'',
menuId: this.$route.meta.menuId,
userName: this.$store.state.user.name,
},
@@ -738,6 +753,42 @@
fixed: '',
columnWidth: 60
},
+ {
+ userId: this.$store.state.user.name,
+ functionId: 106002,
+ serialNumber: '106002Table1ApplySumQty',
+ tableId: "106002Table1",
+ tableName: "刀具申请主表",
+ columnProp: "applySumQty",
+ headerAlign: "center",
+ align: "right",
+ columnLabel: "申请数量",
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 60
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 106002,
+ serialNumber: '106002Table1TotalCost',
+ tableId: "106002Table1",
+ tableName: "刀具申请主表",
+ columnProp: "totalCost",
+ headerAlign: "center",
+ align: "right",
+ columnLabel: "总成本",
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 60
+ },
{
userId: this.$store.state.user.name,
functionId: 106002,
@@ -954,7 +1005,7 @@
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
+ columnWidth: 80
},
{
userId: this.$store.state.user.name,
@@ -1531,9 +1582,11 @@
},
changeSum() {
this.dataForm.applySumQty = 0
+ this.dataForm.totalCost =0
for (const item of this.toolData) {
// 累加之前先确保值存在,并将 null 或 undefined 转换为0
this.dataForm.applySumQty += Number(item.applyQty != null && item.applyQty !== '' ? item.applyQty : 0);
+ this.dataForm.totalCost += Number(item.applyQty != null && item.applyQty !== '' ? item.applyQty*item.standardCost : 0);
}
},
saveHeaderMessage(){
@@ -1550,6 +1603,7 @@
this.currentRow.poNo=this.modelData.poNo
this.currentRow.supplierName=this.modelData.supplierName
this.currentRow.allCost=this.modelData.allCost
+ this.currentRow.totalCost=this.modelData.totalCost
this.currentRow.remark2=this.modelData.remark2
this.currentRow2.prNo=this.modelData.prNo
@@ -1648,6 +1702,7 @@
this.dataList1[i].applyReason = this.dataForm.applyReason
this.dataList1[i].quoter = this.dataForm.quoter
this.dataList1[i].tp = this.dataForm.tp
+ this.dataList1[i].totalCost = this.dataForm.totalCost
this.dataList1[i].purchaser = this.dataForm.purchaser
this.dataList1[i].quoterName = this.dataForm.quoterName
this.dataList1[i].tpName = this.dataForm.tpName
diff --git a/src/views/modules/tooling/toolingInfo.vue b/src/views/modules/tooling/toolingInfo.vue
index 3b9fb2b..0f4929c 100644
--- a/src/views/modules/tooling/toolingInfo.vue
+++ b/src/views/modules/tooling/toolingInfo.vue
@@ -92,11 +92,8 @@
-
-
-
-
-
+
+
@@ -110,6 +107,9 @@
placeholder="结束日期">
+
+
+
报价员
@@ -156,6 +156,12 @@
style="width:98%">
+
+
+
+
+
@@ -163,7 +169,7 @@
-
+
@@ -501,6 +507,7 @@
tp: '',
tpName: '',
purchaser: '',
+ totalCost:'',
purchaserName: '',
detailList:[],
},
@@ -662,7 +669,7 @@
applyModel() {
if(this.dataListSelections.length===0){
- this.$alert('请选择报价单!', '错误', {
+ this.$alert('请选择项目!', '错误', {
confirmButtonText: '确定'
})
return false;
@@ -687,6 +694,7 @@
tp: '',
tpName: '',
purchaser: '',
+ totalCost: '',
purchaserName: '',
detailList:[],
};
@@ -701,11 +709,11 @@
//
// }
this.dataForm.applySumQty =0
- // this.dataForm.allCost =0
+ this.dataForm.totalCost =0
for (const item of this.toolData) {
// 累加之前先确保值存在,并将 null 或 undefined 转换为0
this.dataForm.applySumQty += Number(item.applyQty != null && item.applyQty !== '' ? item.applyQty : 0);
- // this.dataForm.allCost += Number(item.applyQty != null && item.applyQty !== '' ? item.applyQty*item.standardCost : 0);
+ this.dataForm.totalCost += Number(item.applyQty != null && item.applyQty !== '' ? item.applyQty*item.standardCost : 0);
}
},