fix: 修复立减金椒盐
This commit is contained in:
parent
53204879f0
commit
afc9e5e42c
|
@ -888,7 +888,7 @@ export default class addKnockGold extends Component {
|
|||
{/* <h5>基本信息</h5> */}
|
||||
<Card style={{ width: "70%", margin: "10px 0" }} title={"基本信息"}>
|
||||
<Form model={this.state.model} rules={rules.basic} ref="form">
|
||||
<FormItem labelname="渠道" prop="channel" id="type">
|
||||
<FormItem labelname="渠道" prop="channel" id="channel">
|
||||
<RadioGroup
|
||||
disabled={!!this.props.data?.id || !!this.props.combining}
|
||||
onChange={({ target }) => {
|
||||
|
@ -953,7 +953,8 @@ export default class addKnockGold extends Component {
|
|||
) : null}
|
||||
|
||||
{/* 批量需改主体 */}
|
||||
{this.state.subjectList.length > 0 && (
|
||||
{this.state.subjectList.length > 0 ? (
|
||||
<FormItem>
|
||||
<VoucherBatch
|
||||
ref="voucherBatchRef"
|
||||
isEdit={!!this.props.data?.id}
|
||||
|
@ -961,8 +962,8 @@ export default class addKnockGold extends Component {
|
|||
subjectList={this.state.subjectList}
|
||||
voucherBatchData={this.props.data?.voucher_batch}
|
||||
/>
|
||||
)}
|
||||
|
||||
</FormItem>
|
||||
) : null}
|
||||
<FormItem labelname="批次商品名称" prop="batch_goods_name" id="batch_goods_name">
|
||||
<Ipt
|
||||
onChange={(value) => {
|
||||
|
@ -1001,7 +1002,7 @@ export default class addKnockGold extends Component {
|
|||
/>
|
||||
</FormItem>
|
||||
) : null}
|
||||
<FormItem labelname="合同单价" prop="price" id="contract_price">
|
||||
<FormItem labelname="合同单价" prop="price" id="price">
|
||||
<Ipt
|
||||
onChange={(value) => {
|
||||
this.onHandleChange(value, "price")
|
||||
|
@ -1021,7 +1022,7 @@ export default class addKnockGold extends Component {
|
|||
alignment={"left"}
|
||||
/>
|
||||
</FormItem>
|
||||
<FormItem labelname="充值批次金额" prop="recharge_amount" id="money">
|
||||
<FormItem labelname="充值批次金额" prop="recharge_amount" id="recharge_amount">
|
||||
<Ipt
|
||||
onChange={(value) => {
|
||||
this.onHandleChange(value, "recharge_amount")
|
||||
|
|
|
@ -1,15 +1,6 @@
|
|||
export default {
|
||||
basic: {
|
||||
batch_goods_name: [{ type: "required", message: "请输入批次商品名称" }], // 批次商品名称
|
||||
/* 批次号 */
|
||||
channel_activity_id: [
|
||||
{ type: "required", message: "请输入批次号" }
|
||||
// {
|
||||
// type: "regExp",
|
||||
// message: "请输入由数字或英文组成的批次号",
|
||||
// reg: "^[A-Za-z0-9]+$"
|
||||
// }
|
||||
],
|
||||
/* 模板编号 */
|
||||
temp_no: [
|
||||
{ type: "required", message: "请输入模板编号" },
|
||||
|
|
Loading…
Reference in New Issue