|
@ -211,10 +211,12 @@ function CouponRules() { |
|
|
if (res.status == 20000) { |
|
|
if (res.status == 20000) { |
|
|
let temparr = []; |
|
|
let temparr = []; |
|
|
res.data.map(item=>{ |
|
|
res.data.map(item=>{ |
|
|
temparr.push({ |
|
|
|
|
|
key: item.value + '', |
|
|
|
|
|
title: item.label |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
if(item.label != '全部'){ |
|
|
|
|
|
temparr.push({ |
|
|
|
|
|
key: item.value + '', |
|
|
|
|
|
title: item.label |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
setOperatorAllData(temparr) |
|
|
setOperatorAllData(temparr) |
|
|
} else { |
|
|
} else { |
|
@ -535,7 +537,7 @@ function CouponRules() { |
|
|
yisaLabel="优惠券名称" |
|
|
yisaLabel="优惠券名称" |
|
|
placeholder="输入优惠券名称" |
|
|
placeholder="输入优惠券名称" |
|
|
value={formData.name} |
|
|
value={formData.name} |
|
|
showClose={true} |
|
|
|
|
|
|
|
|
showClose={false} |
|
|
onChange={e => { setFormData({ name: e.target.value }) } } |
|
|
onChange={e => { setFormData({ name: e.target.value }) } } |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
@ -545,7 +547,7 @@ function CouponRules() { |
|
|
defaultValue={ formData.coupon_type } |
|
|
defaultValue={ formData.coupon_type } |
|
|
placeholder="" |
|
|
placeholder="" |
|
|
hasUnlimited={ false } |
|
|
hasUnlimited={ false } |
|
|
showClose={true} |
|
|
|
|
|
|
|
|
showClose={false} |
|
|
onChange={ e=>{setFormData({coupon_type:e})} } |
|
|
onChange={ e=>{setFormData({coupon_type:e})} } |
|
|
/> |
|
|
/> |
|
|
<FormSelect |
|
|
<FormSelect |
|
@ -897,11 +899,11 @@ function CouponRules() { |
|
|
currentCouponInfo.effective_date == 2? |
|
|
currentCouponInfo.effective_date == 2? |
|
|
<div className="custom-time-setting"> |
|
|
<div className="custom-time-setting"> |
|
|
<span className="title">自领取后</span> |
|
|
<span className="title">自领取后</span> |
|
|
<InputNumber min={0} precision={0} controls={false} value={customDay} onChange={(e)=>{setCustomDay(e)}}></InputNumber> |
|
|
|
|
|
|
|
|
<InputNumber disabled={justCheck} min={0} precision={0} controls={false} value={customDay} onChange={(e)=>{setCustomDay(e)}}></InputNumber> |
|
|
<span>天</span> |
|
|
<span>天</span> |
|
|
<InputNumber min={0} max={23} precision={0} controls={false} value={customHour} onChange={(e)=>{setCustomHour(e)}}></InputNumber> |
|
|
|
|
|
|
|
|
<InputNumber disabled={justCheck} min={0} max={23} precision={0} controls={false} value={customHour} onChange={(e)=>{setCustomHour(e)}}></InputNumber> |
|
|
<span>时</span> |
|
|
<span>时</span> |
|
|
<InputNumber min={0} max={59} precision={0} controls={false} value={customMinute} onChange={(e)=>{setCustomMinute(e)}}></InputNumber> |
|
|
|
|
|
|
|
|
<InputNumber disabled={justCheck} min={0} max={59} precision={0} controls={false} value={customMinute} onChange={(e)=>{setCustomMinute(e)}}></InputNumber> |
|
|
<span>分内有效</span> |
|
|
<span>分内有效</span> |
|
|
</div> |
|
|
</div> |
|
|
: null |
|
|
: null |
|
@ -926,8 +928,8 @@ function CouponRules() { |
|
|
disabled={justCheck} |
|
|
disabled={justCheck} |
|
|
yisaData={[{label: '全部', value: 0},{label: '按车场', value: 1},{label: '按商户', value: 2}]} |
|
|
yisaData={[{label: '全部', value: 0},{label: '按车场', value: 1},{label: '按商户', value: 2}]} |
|
|
// defaultValue={ currentCouponInfo.use_scope || null } |
|
|
// defaultValue={ currentCouponInfo.use_scope || null } |
|
|
defaultValue={ 0 } |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
|
|
|
defaultValue={currentCouponInfo.use_scope ? currentCouponInfo.use_scope : 0} |
|
|
|
|
|
placeholder="请选择使用范围" |
|
|
hasUnlimited={ false } |
|
|
hasUnlimited={ false } |
|
|
showClose={true} |
|
|
showClose={true} |
|
|
onChange={ e=>{ setCurrentCouponInfo({...currentCouponInfo,use_scope:e}) } } |
|
|
onChange={ e=>{ setCurrentCouponInfo({...currentCouponInfo,use_scope:e}) } } |
|
@ -974,6 +976,8 @@ function CouponRules() { |
|
|
placeholder="" |
|
|
placeholder="" |
|
|
value={currentCouponInfo.illustrate} |
|
|
value={currentCouponInfo.illustrate} |
|
|
showClose={true} |
|
|
showClose={true} |
|
|
|
|
|
showCount={true} |
|
|
|
|
|
maxLength={200} |
|
|
onChange={e => { setCurrentCouponInfo({ ...currentCouponInfo,illustrate: e.target.value }) } } |
|
|
onChange={e => { setCurrentCouponInfo({ ...currentCouponInfo,illustrate: e.target.value }) } } |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|