|
@@ -676,10 +676,14 @@ export default {
|
|
</div>
|
|
</div>
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
<el-descriptions-item label="退货数量">
|
|
<el-descriptions-item label="退货数量">
|
|
- {this.formData.retTotalQty}
|
|
|
|
|
|
+ {this.formData.retTotalQty || this.setNumber([0, 0, 0, ...this.formData.items.map(row => {
|
|
|
|
+ return Number(row.retQty)
|
|
|
|
+ })].reduce((a, b) => a + b))}
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
<el-descriptions-item label="退款金额">
|
|
<el-descriptions-item label="退款金额">
|
|
- {this.formData.retTotalAmount}
|
|
|
|
|
|
+ {this.formData.retTotalAmount || this.setNumber([0, 0, 0, ...this.formData.items.map(row => {
|
|
|
|
+ return Number(row.cost) * Number(row.retQty)
|
|
|
|
+ })].reduce((a, b) => a + b))}
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
</el-descriptions> : null
|
|
</el-descriptions> : null
|
|
}
|
|
}
|