|
@@ -676,12 +676,12 @@ export default {
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="退货数量">
|
|
|
- {this.formData.retTotalQty || this.setNumber([0, 0, 0, ...this.formData.items.map(row => {
|
|
|
+ {!~[0, 1].indexOf(this.formDialogType) ? 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 label="退款金额">
|
|
|
- {this.formData.retTotalAmount || this.setNumber([0, 0, 0, ...this.formData.items.map(row => {
|
|
|
+ {!~[0, 1].indexOf(this.formDialogType) ? 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>
|