linwenxin пре 1 година
родитељ
комит
f9d6bbcaec
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/views/auxiliaryFittings/purchasingManagement/mixins/form_tpl.js

+ 2 - 2
src/views/auxiliaryFittings/purchasingManagement/mixins/form_tpl.js

@@ -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>