From 50e64532e6a26916a117fe50ec865eb26b9fa3c4 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Tue, 11 Oct 2022 10:53:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E3=80=90=E5=85=91=E6=8D=A2=E7=A0=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E3=80=91=E6=96=B0=E5=A2=9E=E5=85=91=E6=8D=A2?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E7=9B=B4=E6=8E=A5=E7=82=B9=E5=87=BB=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E5=95=86=E5=93=81=E6=88=96=E8=80=85=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E7=AB=8B=E5=87=8F=E9=87=91=EF=BC=8C=E5=89=8D=E7=AB=AF=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E6=8F=90=E7=A4=BA=E2=80=9C=E8=AF=B7=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/exchangecodeAdd/index.jsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/pages/exchangecode/exchangecodeAdd/index.jsx b/src/pages/exchangecode/exchangecodeAdd/index.jsx index c6bec8d3..65945a14 100644 --- a/src/pages/exchangecode/exchangecodeAdd/index.jsx +++ b/src/pages/exchangecode/exchangecodeAdd/index.jsx @@ -826,12 +826,17 @@ export default class exchangeAdd extends React.Component { this.setState({ addIsType: type }) /* 类型 */ let direct_reseller_ids = this.state.direct_reseller_id + if (!this.state.isState && !this.state.codeInfo.planSelect.key) { + return Notify.error(`请选择归属计划`) + } + + if (!this.state.isState && !this.state.codeInfo.keyBatchSelect.key) { + return Notify.error(`请选择归属key`) + } + if (direct_reseller_ids <= 0) { return Notify.error(`请添加映射分销商`) } - if (!this.state.isState && !this.state.codeInfo.keyBatchSelect.key) { - return Notify.error(`请选择归属key批次`) - } if (type === "addProduct") { this.setState({ product_title: "新建商品", newGoodsBtnLoading: true })