Browse Source

Merge branch 'dev' of mangpiao/mp-ui-pc into test

lsx 2 năm trước cách đây
mục cha
commit
8454d1b03b
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  1. 9 1
      src/views/business/goods/add.vue

+ 9 - 1
src/views/business/goods/add.vue

@@ -459,7 +459,15 @@ export default {
     },
     // 获取采购优惠券下拉列表
     getCouponList() {
-      getCouponAllList({type: 4,status: "on",isExcludePurchaseCoupon: true, }).then(response => {
+      let data = {
+        type: 4,
+        status: "on",
+        isExcludePurchaseCoupon: true,
+      }
+      if(this.addData.goodsId) {
+        data.refId = this.addData.refId
+      }
+      getCouponAllList(data).then(response => {
         this.CouponList = response.rows || [];
       });
     },