diff --git a/src/pages/distributor/merchant/index.jsx b/src/pages/distributor/merchant/index.jsx
index be7e7ed7..d404af3b 100644
--- a/src/pages/distributor/merchant/index.jsx
+++ b/src/pages/distributor/merchant/index.jsx
@@ -261,6 +261,7 @@ export default function Merchant() {
}
>
key码核销通知
+ 立减金核销通知
diff --git a/src/pages/plan/add/edit.js b/src/pages/plan/add/edit.js
index 1586a3c0..f3557568 100644
--- a/src/pages/plan/add/edit.js
+++ b/src/pages/plan/add/edit.js
@@ -40,7 +40,6 @@ export default class add extends React.Component {
{ id: 3, title: "落地页", child: [{ step: 1, title: "绑定落地页" }] }
],
phone_list: [],
-
email_list: [],
phone: "",
email: "",
diff --git a/src/pages/plan/add/step1.js b/src/pages/plan/add/step1.js
index f582c5ba..3ad3818a 100644
--- a/src/pages/plan/add/step1.js
+++ b/src/pages/plan/add/step1.js
@@ -26,6 +26,7 @@ export default class accList extends React.Component {
reseller: null,
return_id: "1",
date_time: ["", ""],
+ stock_id: null,
settlement_type: null
},
settlementOptions: [],
@@ -80,6 +81,7 @@ export default class accList extends React.Component {
model.title = data.title
model.type = parseInt(data.type)
model.return_id = data.return_type
+ model.stock_id = data.stock_id
model.reseller = {
key: data.reseller_id,
@@ -119,8 +121,13 @@ export default class accList extends React.Component {
Notify.error("结束日期不能为空")
return false
}
+ if (this.state.model.stock_id && !/^[a-zA-Z0-9]+$/.test(this.state.model.stock_id)) {
+ Notify.error("请输入由字母或数字组成的计划编号")
+ return false
+ }
let data = {}
data.title = this.state.model.title
+ data.stock_id = this.state.model.stock_id
data.type = parseInt(this.state.model.type)
data.return_type = 1
data.reseller_id = this.state.model.reseller.key
@@ -298,6 +305,30 @@ export default class accList extends React.Component {
alignment={"left"}
/>
+
+ {
+ let model2 = this.state.model
+ model2.stock_id = e
+ this.setState({ model: model2 })
+ }}
+ onClearItem={(e) => {
+ let model2 = this.state.model
+ model2.stock_id = ""
+ this.setState({ model: model2 })
+ }}
+ value={this.state.model.stock_id}
+ countShow={false}
+ placeholder={"字段为空自动生成ID"}
+ labelWidth={"0px"}
+ maxLength={16}
+ height={"36px"}
+ width={"520px"}
+ alignment={"left"}
+ />
+
+
{