|
@@ -103,11 +103,24 @@ export default {
|
|
|
let small = 0;
|
|
let small = 0;
|
|
|
if (this.outData.itemInfo) {
|
|
if (this.outData.itemInfo) {
|
|
|
for (const item of this.outData.itemInfo) {
|
|
for (const item of this.outData.itemInfo) {
|
|
|
- big += item.bigNum;
|
|
|
|
|
- small += item.smallNum;
|
|
|
|
|
|
|
+ if(item.bigNum && Number(item.bigNum)>0){
|
|
|
|
|
+ big += Number(item.bigNum)
|
|
|
|
|
+ }
|
|
|
|
|
+ if(item.smallNum && Number(item.smallNum)>0){
|
|
|
|
|
+ small += Number(item.smallNum)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- return `${big}/${small}`;
|
|
|
|
|
|
|
+ big = parseFloat(big.toFixed(2))
|
|
|
|
|
+ small = parseFloat(small.toFixed(2))
|
|
|
|
|
+ let text = ''
|
|
|
|
|
+ if(Number(big)>0){
|
|
|
|
|
+ text += big+'扎'
|
|
|
|
|
+ }
|
|
|
|
|
+ if(Number(small)>0){
|
|
|
|
|
+ text += small+'支'
|
|
|
|
|
+ }
|
|
|
|
|
+ return text
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|