✨ feat: 新增自定义计划编号
This commit is contained in:
parent
f5965b4a0a
commit
3d35591a57
|
@ -19,6 +19,7 @@ export default class accList extends React.Component {
|
|||
type: 2,
|
||||
reseller: null,
|
||||
return_id: "1",
|
||||
plan_id: "",
|
||||
date_time: ["", ""]
|
||||
},
|
||||
reseller_option: [],
|
||||
|
@ -74,7 +75,11 @@ export default class accList extends React.Component {
|
|||
if (this.refs.form1.validator()) {
|
||||
if (this.state.model.date_time[1] == "") {
|
||||
Notify.error("结束日期不能为空")
|
||||
return
|
||||
return false
|
||||
}
|
||||
if (this.state.model.plan_id && !/^\d+$/.test(this.state.model.plan_id)) {
|
||||
Notify.error("请输入有纯数字组成的计划编号")
|
||||
return false
|
||||
}
|
||||
let data = {}
|
||||
data.title = this.state.model.title
|
||||
|
@ -243,6 +248,29 @@ export default class accList extends React.Component {
|
|||
alignment={"left"}
|
||||
/>
|
||||
</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">
|
||||
<RadioGroup
|
||||
|
|
Loading…
Reference in New Issue