lilei hai 1 ano
pai
achega
5f8b24bb5b
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/views/purchasingManagement/purchaseOrderNew/detail.vue

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

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