✨ feat: 微信立减金新增主体名称字段
This commit is contained in:
parent
ccab514d61
commit
22b65576c2
|
@ -101,7 +101,8 @@ export default class addKnockGold extends Component {
|
|||
irregularDate: [[]], //不规则日期
|
||||
irregularTime: [[]], //不规则时间
|
||||
ruleDate: [[]], //规则日期
|
||||
ruleWeek: [] //规则周
|
||||
ruleWeek: [], //规则周
|
||||
provider: "voucher_wechat_lsxd" //主体名称
|
||||
},
|
||||
TimeDiffer: "",
|
||||
visible: false, //加框弹窗
|
||||
|
@ -197,6 +198,7 @@ export default class addKnockGold extends Component {
|
|||
model.weight = String(this.props.data.weight)
|
||||
model.early_per = this.props.data.early_per.map((item) => String(item))
|
||||
model.channel = String(this.props.data.channel)
|
||||
model.provider = this.props.data.provider
|
||||
model.natural_limit = String(this.props.data.natural_limit)
|
||||
model.brush_limit = String(this.props.data.brush_limit)
|
||||
model.card_type = this.props.data.card_type.map((item) => String(item))
|
||||
|
@ -468,6 +470,7 @@ export default class addKnockGold extends Component {
|
|||
transformDataCode() {
|
||||
const transformData = {}
|
||||
transformData.channel = this.state.model.channel
|
||||
transformData.provider = this.state.model.provider
|
||||
/* 是支付宝立减金 才进行模板赋值操作 */
|
||||
if (transformData.channel == 1) {
|
||||
transformData.temp_no = this.state.model.temp_no
|
||||
|
@ -764,6 +767,20 @@ export default class addKnockGold extends Component {
|
|||
{!this.props.ysf && <RadioButton value={"3"}>云闪付</RadioButton>}
|
||||
</RadioGroup>
|
||||
</FormItem>
|
||||
{this.state.model.channel == 2 ? (
|
||||
<FormItem labelname="主体名称" prop="provider" id="provider" key="provider">
|
||||
<RadioGroup
|
||||
disabled={this.props?.data?.id ? true : false}
|
||||
onChange={({ target }) => {
|
||||
this.onHandleChange(target.value, "provider")
|
||||
}}
|
||||
value={this.state.model.provider}
|
||||
>
|
||||
<RadioButton value={"voucher_wechat_lsxd"}>蓝色兄弟</RadioButton>
|
||||
<RadioButton value={"voucher_wechat_fjxw"}>福建兴旺</RadioButton>
|
||||
</RadioGroup>
|
||||
</FormItem>
|
||||
) : null}
|
||||
<FormItem labelname="立减金平台批次号" prop="channel_activity_id" id="batch_number">
|
||||
<Ipt
|
||||
onChange={(value) => {
|
||||
|
@ -783,7 +800,7 @@ export default class addKnockGold extends Component {
|
|||
/>
|
||||
</FormItem>
|
||||
{this.state.model.channel == 1 ? (
|
||||
<FormItem labelname="券模板编号" prop="temp_no" id="batch_number">
|
||||
<FormItem labelname="券模板编号" prop="temp_no" id="batch_number" key="temp_no">
|
||||
<Ipt
|
||||
onChange={(value) => {
|
||||
this.onHandleChange(value, "temp_no")
|
||||
|
@ -801,9 +818,7 @@ export default class addKnockGold extends Component {
|
|||
alignment={"left"}
|
||||
/>
|
||||
</FormItem>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
) : null}
|
||||
|
||||
<FormItem labelname="批次商品名称" prop="batch_goods_name" id="batch_goods_name">
|
||||
<Ipt
|
||||
|
|
Loading…
Reference in New Issue