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