|
@@ -2148,11 +2148,19 @@
|
|
|
},
|
|
|
// 收款信息
|
|
|
addCollection() {
|
|
|
+ // 获取明细件数
|
|
|
+ let fQty = 0;
|
|
|
+ for (let li in this.dataList) {
|
|
|
+ if (this.dataList[li].fQty) {
|
|
|
+ fQty = parseFloat(Number(fQty) + Number(this.dataList[li].fQty)).toFixed(2)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fQty=(fQty/1000).toFixed(2);
|
|
|
this.warehouseDrList.push({
|
|
|
fCorpid: null,
|
|
|
fFeeid: null,
|
|
|
fFeeunitid: 1,
|
|
|
- fQty: 0,
|
|
|
+ fQty: fQty,
|
|
|
fUnitprice: 0,
|
|
|
fAmount: 0,
|
|
|
fCurrency: null,
|
|
@@ -2166,11 +2174,19 @@
|
|
|
})
|
|
|
},
|
|
|
addpayment() {
|
|
|
+ // 获取明细件数
|
|
|
+ let fQty = 0;
|
|
|
+ for (let li in this.dataList) {
|
|
|
+ if (this.dataList[li].fQty) {
|
|
|
+ fQty = parseFloat(Number(fQty) + Number(this.dataList[li].fQty)).toFixed(2)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fQty=(fQty/1000).toFixed(2);
|
|
|
this.warehouseCrList.push({
|
|
|
fCorpid: null,
|
|
|
fFeeid: null,
|
|
|
fFeeunitid: 1,
|
|
|
- fQty: 0,
|
|
|
+ fQty: fQty,
|
|
|
fUnitprice: 0,
|
|
|
fAmount: 0,
|
|
|
fCurrency: null,
|
|
@@ -2875,15 +2891,15 @@
|
|
|
}
|
|
|
}
|
|
|
if (row.fFeeunitid === 1) {
|
|
|
- this.$set(row, 'fQty', fQty)
|
|
|
+ this.$set(row, 'fQty', (fQty/1000).toFixed(2))
|
|
|
} else if (row.fFeeunitid === 2) {
|
|
|
- this.$set(row, 'fQty', fGrossweight)
|
|
|
+ this.$set(row, 'fQty', (fGrossweight/1000).toFixed(2))
|
|
|
}else if (row.fFeeunitid === 3) {
|
|
|
- this.$set(row, 'fQty', fNetweight)
|
|
|
+ this.$set(row, 'fQty', (fNetweight/1000).toFixed(2))
|
|
|
}else if (row.fFeeunitid === 4) {
|
|
|
- this.$set(row, 'fQty', volumn)
|
|
|
+ this.$set(row, 'fQty', (volumn/1000).toFixed(2))
|
|
|
}else if (row.fFeeunitid === 5) {
|
|
|
- this.$set(row, 'fQty', fixed)
|
|
|
+ this.$set(row, 'fQty', (fixed/1000).toFixed(2))
|
|
|
}
|
|
|
if (row.fUnitprice) {
|
|
|
this.$set(row, 'fAmount', parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2))
|