浏览代码

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

lsx 2 年之前
父节点
当前提交
8454d1b03b
共有 1 个文件被更改,包括 9 次插入1 次删除
  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 || [];
       });
     },