lilei 1 år sedan
förälder
incheckning
e203bf0f81
1 ändrade filer med 5 tillägg och 5 borttagningar
  1. 5 5
      src/views/purchasingManagement/purchaseOrderNew/detail.vue

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

@@ -175,11 +175,11 @@ export default {
   },
   computed: {
     showConvertPromoGIftQty(){
-         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
-       },
+      const c = this.detail ? this.detail.totalConvertPromoGiftsQty : 0
+      const a = this.detail ? (this.detail.totalPutQty + this.detail.totalWaitPutQty + this.detail.totalCancelQty + c) : 0
+      const b = this.detail ? this.detail.totalQty : 0
+         return this.detail && c && a == b
+    },
     columns () {
       const _this = this
       const arr = [