1) 增加没有分销商id 无法进行审核

This commit is contained in:
zhangds 2022-04-18 18:53:44 +08:00
parent 75188fce54
commit 9a36652150
4 changed files with 27 additions and 1 deletions

View File

@ -425,6 +425,11 @@ export default class exchangedit extends React.Component {
}
submit() {
if (this.state.direct_reseller_id <= 0) {
// 老数据不能进行新增商品操作
Notify.error(`请编辑映射分销商`);
return;
}
if (this.refs.code_info.validator() && this.refs.code_rule.validator()) {
if (this.state.uploading) {
Notify.error("还有图片上传中,不可提交");

View File

@ -169,6 +169,12 @@ export default class add extends React.Component {
});
}
if (this.state.curstep == 3) {
if (this.state.direct_reseller_id <= 0) {
// 老数据不能进行新增商品操作
Notify.error(`请编辑映射分销商`);
return;
}
let data = this.refs.step3.submit();
if (data) {
let obj = {

View File

@ -235,6 +235,12 @@ export default class add extends React.Component {
}
}
if (this.state.direct_reseller_id <= 0) {
// 老数据不能进行新增商品操作
Notify.error(`请编辑映射分销商`);
return;
}
let obj = {
info: JSON.parse(sessionStorage.getItem("step1")),
key: temp,
@ -411,7 +417,11 @@ export default class add extends React.Component {
payment_direction:
this.state.payment_direction[this.state.paytype - 1],
};
if (this.state.direct_reseller_id <= 0) {
// 老数据不能进行新增商品操作
Notify.error(`请编辑映射分销商`);
return;
}
approvals(plan_id, data).then((res) => {
handelResponse(
res,

View File

@ -230,6 +230,11 @@ export default class acclist extends React.Component {
async submit() {
let valide = false;
if (this.state.direct_reseller_id <= 0) {
// 老数据不能进行新增商品操作
Notify.error(`请编辑映射分销商`);
return;
}
if (this.refs.form1.validator()) {
let data = {};
data.style = this.state.model.style;