lilei 1 year ago
parent
commit
c75fe093ae
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/purchasingManagement/purchaseOrderNew/detail.vue

+ 3 - 3
src/views/purchasingManagement/purchaseOrderNew/detail.vue

@@ -175,9 +175,9 @@ export default {
   },
   computed: {
     showConvertPromoGIftQty(){
-         const a = this.detail.totalPutQty + this.detail.totalWaitPutQty + this.detail.totalCancelQty
-    + this.detail.totalConvertPromoGiftsQty
-    const b = this.detail.totalQty
+         const a = this.detail ? (this.detail.totalPutQty + this.detail.totalWaitPutQty + this.detail.totalCancelQty
+    + this.detail.totalConvertPromoGiftsQty) : 0
+    const b = this.detail ? this.detail.totalQty : 0
          return this.detail && a && a == b
        },
     columns () {