lilei 1 年之前
父節點
當前提交
c75fe093ae
共有 1 個文件被更改,包括 3 次插入3 次删除
  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 () {