1) 增加没有分销商id 无法进行审核
This commit is contained in:
parent
75188fce54
commit
9a36652150
|
@ -425,6 +425,11 @@ export default class exchangedit extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
|
if (this.state.direct_reseller_id <= 0) {
|
||||||
|
// 老数据不能进行新增商品操作
|
||||||
|
Notify.error(`请编辑映射分销商`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.refs.code_info.validator() && this.refs.code_rule.validator()) {
|
if (this.refs.code_info.validator() && this.refs.code_rule.validator()) {
|
||||||
if (this.state.uploading) {
|
if (this.state.uploading) {
|
||||||
Notify.error("还有图片上传中,不可提交");
|
Notify.error("还有图片上传中,不可提交");
|
||||||
|
|
|
@ -169,6 +169,12 @@ export default class add extends React.Component {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.state.curstep == 3) {
|
if (this.state.curstep == 3) {
|
||||||
|
if (this.state.direct_reseller_id <= 0) {
|
||||||
|
// 老数据不能进行新增商品操作
|
||||||
|
Notify.error(`请编辑映射分销商`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let data = this.refs.step3.submit();
|
let data = this.refs.step3.submit();
|
||||||
if (data) {
|
if (data) {
|
||||||
let obj = {
|
let obj = {
|
||||||
|
|
|
@ -235,6 +235,12 @@ export default class add extends React.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.state.direct_reseller_id <= 0) {
|
||||||
|
// 老数据不能进行新增商品操作
|
||||||
|
Notify.error(`请编辑映射分销商`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let obj = {
|
let obj = {
|
||||||
info: JSON.parse(sessionStorage.getItem("step1")),
|
info: JSON.parse(sessionStorage.getItem("step1")),
|
||||||
key: temp,
|
key: temp,
|
||||||
|
@ -411,7 +417,11 @@ export default class add extends React.Component {
|
||||||
payment_direction:
|
payment_direction:
|
||||||
this.state.payment_direction[this.state.paytype - 1],
|
this.state.payment_direction[this.state.paytype - 1],
|
||||||
};
|
};
|
||||||
|
if (this.state.direct_reseller_id <= 0) {
|
||||||
|
// 老数据不能进行新增商品操作
|
||||||
|
Notify.error(`请编辑映射分销商`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
approvals(plan_id, data).then((res) => {
|
approvals(plan_id, data).then((res) => {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
res,
|
res,
|
||||||
|
|
|
@ -230,6 +230,11 @@ export default class acclist extends React.Component {
|
||||||
|
|
||||||
async submit() {
|
async submit() {
|
||||||
let valide = false;
|
let valide = false;
|
||||||
|
if (this.state.direct_reseller_id <= 0) {
|
||||||
|
// 老数据不能进行新增商品操作
|
||||||
|
Notify.error(`请编辑映射分销商`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.refs.form1.validator()) {
|
if (this.refs.form1.validator()) {
|
||||||
let data = {};
|
let data = {};
|
||||||
data.style = this.state.model.style;
|
data.style = this.state.model.style;
|
||||||
|
|
Loading…
Reference in New Issue