✨ feat: 新增自定义计划编号
This commit is contained in:
parent
f5965b4a0a
commit
3d35591a57
|
@ -19,6 +19,7 @@ export default class accList extends React.Component {
|
||||||
type: 2,
|
type: 2,
|
||||||
reseller: null,
|
reseller: null,
|
||||||
return_id: "1",
|
return_id: "1",
|
||||||
|
plan_id: "",
|
||||||
date_time: ["", ""]
|
date_time: ["", ""]
|
||||||
},
|
},
|
||||||
reseller_option: [],
|
reseller_option: [],
|
||||||
|
@ -74,7 +75,11 @@ export default class accList extends React.Component {
|
||||||
if (this.refs.form1.validator()) {
|
if (this.refs.form1.validator()) {
|
||||||
if (this.state.model.date_time[1] == "") {
|
if (this.state.model.date_time[1] == "") {
|
||||||
Notify.error("结束日期不能为空")
|
Notify.error("结束日期不能为空")
|
||||||
return
|
return false
|
||||||
|
}
|
||||||
|
if (this.state.model.plan_id && !/^\d+$/.test(this.state.model.plan_id)) {
|
||||||
|
Notify.error("请输入有纯数字组成的计划编号")
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
let data = {}
|
let data = {}
|
||||||
data.title = this.state.model.title
|
data.title = this.state.model.title
|
||||||
|
@ -243,6 +248,29 @@ export default class accList extends React.Component {
|
||||||
alignment={"left"}
|
alignment={"left"}
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
<FormItem labelname="营销计划编号" prop="plan_id" id="plan_id" required="">
|
||||||
|
<Ipt
|
||||||
|
disabled={this.props.disabled}
|
||||||
|
onChange={(e) => {
|
||||||
|
let model2 = this.state.model
|
||||||
|
model2.plan_id = e
|
||||||
|
this.setState({ model: model2 })
|
||||||
|
}}
|
||||||
|
onClearItem={(e) => {
|
||||||
|
let model2 = this.state.model
|
||||||
|
model2.plan_id = ""
|
||||||
|
this.setState({ model: model2 })
|
||||||
|
}}
|
||||||
|
value={this.state.model.plan_id}
|
||||||
|
countShow={false}
|
||||||
|
placeholder={"请输入"}
|
||||||
|
labelWidth={"0px"}
|
||||||
|
maxLength={12}
|
||||||
|
height={"36px"}
|
||||||
|
width={"520px"}
|
||||||
|
alignment={"left"}
|
||||||
|
/>
|
||||||
|
</FormItem>
|
||||||
|
|
||||||
<FormItem labelname="计划类型" prop="type" id="type">
|
<FormItem labelname="计划类型" prop="type" id="type">
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
|
|
Loading…
Reference in New Issue