|
@@ -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 || [];
|
|
|
});
|
|
|
},
|