lilei 1 年之前
父节点
当前提交
5f8b24bb5b
共有 1 个文件被更改,包括 4 次插入3 次删除
  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