lsx 2 년 전
부모
커밋
b06cdcf694
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 || [];
       });
     },