소스 검색

代金券不限额时limitAmount传0.原先(传的是空)

chenrui 4 년 전
부모
커밋
7ba85dc6d2
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/views/CouponCenter/AddCouponModal.vue

+ 3 - 0
src/views/CouponCenter/AddCouponModal.vue

@@ -430,6 +430,9 @@ export default {
           const couponScopeArr = []
           formData.couponScopeList.map(item => { couponScopeArr.push({ scopeType: 'ITEM', scopeValue: item }) })
           formData.couponScopeList = couponScopeArr
+          if (formData.couponType === 'VOUCHER' && this.isLimit === '0') { //  代金券
+            formData.limitAmount = 0
+          }
           if (this.pageType == 'add') { //  新增
             formData.id = null
             this.couponCreate(formData)