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,7 +953,8 @@ export default class addKnockGold extends Component {
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{/* 批量需改主体 */}
|
{/* 批量需改主体 */}
|
||||||
{this.state.subjectList.length > 0 && (
|
{this.state.subjectList.length > 0 ? (
|
||||||
|
<FormItem>
|
||||||
<VoucherBatch
|
<VoucherBatch
|
||||||
ref="voucherBatchRef"
|
ref="voucherBatchRef"
|
||||||
isEdit={!!this.props.data?.id}
|
isEdit={!!this.props.data?.id}
|
||||||
|
@ -961,8 +962,8 @@ export default class addKnockGold extends Component {
|
||||||
subjectList={this.state.subjectList}
|
subjectList={this.state.subjectList}
|
||||||
voucherBatchData={this.props.data?.voucher_batch}
|
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