|
@@ -426,6 +426,34 @@ export default {
|
|
|
average += item.exportUnitPrice
|
|
|
})
|
|
|
this.detailsPlanNum.shortvalue = this.detailsPlanNum.shortseveral*average
|
|
|
+
|
|
|
+ var shipQuantityAll =0,
|
|
|
+ exportUnitPriceALll = 0,
|
|
|
+ exportPriceAll =0,
|
|
|
+ rmbAmountAll = 0,
|
|
|
+ procesUnitPricermbAll = 0,
|
|
|
+ procesUnitPriceusdAll = 0,
|
|
|
+ processCostAll = 0
|
|
|
+ val.map(item=>{
|
|
|
+ shipQuantityAll+=Number(item.shipQuantity)
|
|
|
+ exportUnitPriceALll+=Number(item.exportUnitPrice)
|
|
|
+ exportPriceAll+=Number(item.exportPrice)
|
|
|
+ rmbAmountAll+=Number(item.rmbAmount)
|
|
|
+ procesUnitPricermbAll+=Number(item.procesUnitPricermb)
|
|
|
+ procesUnitPriceusdAll+=Number(item.procesUnitPriceusd)
|
|
|
+ processCostAll+=Number(item.processCost)
|
|
|
+ })
|
|
|
+ var allObj ={
|
|
|
+ outdata:'合计',
|
|
|
+ shipQuantity:shipQuantityAll.toFixed(3),
|
|
|
+ exportUnitPrice:exportUnitPriceALll.toFixed(3),
|
|
|
+ exportPrice:exportPriceAll.toFixed(3),
|
|
|
+ rmbAmount:rmbAmountAll.toFixed(3),
|
|
|
+ procesUnitPricermb:procesUnitPricermbAll.toFixed(3),
|
|
|
+ procesUnitPriceusd:procesUnitPriceusdAll.toFixed(3),
|
|
|
+ processCost:processCostAll.toFixed(3)
|
|
|
+ }
|
|
|
+ this.$refs.unitTabs.shipData.push(allObj)
|
|
|
},
|
|
|
daYin(){
|
|
|
// printJS({
|