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 () {