|
@@ -378,6 +378,7 @@ export default {
|
|
|
this.$refs.unitTabs.ingData = oneData.syCostAllocationIngredientList
|
|
|
this.$refs.unitTabs.shipData = oneData.syCostAllocationShipdetail
|
|
|
this.addAmountIng(oneData.syCostAllocationIngredientList)
|
|
|
+ this.addAmountCostPay(this.costPayData)
|
|
|
this.calculation(oneData.syCostAllocationShipdetail)
|
|
|
//合计中面料相关金额
|
|
|
var s=0
|
|
@@ -462,7 +463,8 @@ export default {
|
|
|
procesUnitPriceusd:procesUnitPriceusdAll.toFixed(3),
|
|
|
processCost:processCostAll.toFixed(3)
|
|
|
}
|
|
|
- this.$refs.unitTabs.shipData.push(allObj)
|
|
|
+ //发运明细-合计行
|
|
|
+ if(this.$refs.unitTabs.shipData.length!==0){this.$refs.unitTabs.shipData.push(allObj)}
|
|
|
this.$refs.unitTabs.shipData.map(item=>{
|
|
|
item.shipQuantity = Number(item.shipQuantity).toFixed(0)
|
|
|
item.exportUnitPrice = Number(item.exportUnitPrice).toFixed(4)
|
|
@@ -510,7 +512,22 @@ export default {
|
|
|
priceExcludingtax:priceExcludingtaxAll.toFixed(3),
|
|
|
dosage:dosageAll.toFixed(3)
|
|
|
}
|
|
|
- this.$refs.unitTabs.ingData.push(allObj)
|
|
|
+ if(this.$refs.unitTabs.ingData.length!==0){ this.$refs.unitTabs.ingData.push(allObj)}
|
|
|
+ },
|
|
|
+ //费用支出合计行
|
|
|
+ addAmountCostPay(val){
|
|
|
+ var disbursedLocalmoneyALL=0,
|
|
|
+ disbursedOriginalmoneyALL=0
|
|
|
+ val.map(item=>{
|
|
|
+ disbursedLocalmoneyALL+=Number(item.disbursedLocalmoney)
|
|
|
+ disbursedOriginalmoneyALL+=Number(item.disbursedOriginalmoney)
|
|
|
+ })
|
|
|
+ var obj={
|
|
|
+ setNo:'合计',
|
|
|
+ disbursedLocalmoney:disbursedLocalmoneyALL.toFixed(3),
|
|
|
+ disbursedOriginalmoney:disbursedOriginalmoneyALL.toFixed(3)
|
|
|
+ }
|
|
|
+ if(this.costPayData.length!==0){ this.costPayData.push(obj)}
|
|
|
},
|
|
|
daYin(){
|
|
|
// printJS({
|