From 36cd7338c174b8f426833c3c2602fdbe4f0416b7 Mon Sep 17 00:00:00 2001 From: zhangds Date: Tue, 11 Oct 2022 12:23:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=95=86=E5=93=81=E6=97=A0=E5=95=86=E5=93=81=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UseCouponAddEdit/index.jsx | 2 +- src/components/UseExchangeAddEdit/index.jsx | 1 - src/pages/plan/product/add.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/UseCouponAddEdit/index.jsx b/src/components/UseCouponAddEdit/index.jsx index 5efa906e..f5fd2068 100644 --- a/src/components/UseCouponAddEdit/index.jsx +++ b/src/components/UseCouponAddEdit/index.jsx @@ -825,7 +825,7 @@ const UseCouponAddEdit = forwardRef((props, ref) => { try { // 第一步:获取直连天下的商品数据需要分销商 id const direct_reseller_ids = state.direct_reseller_id; - if (!form_info_data.plan_id) { + if (!form_info_data.plan_id && couponType === 0) { Notify.error(`请选择归属计划`); return; } diff --git a/src/components/UseExchangeAddEdit/index.jsx b/src/components/UseExchangeAddEdit/index.jsx index cb8f0fec..401010cf 100644 --- a/src/components/UseExchangeAddEdit/index.jsx +++ b/src/components/UseExchangeAddEdit/index.jsx @@ -267,7 +267,6 @@ const UseExchangeAddEdit = forwardRef((props, ref) => { code_name: "", issued: "", describe: "", - date_time: "", range: "", restrict: "", }); diff --git a/src/pages/plan/product/add.js b/src/pages/plan/product/add.js index ea62d330..659e0c70 100644 --- a/src/pages/plan/product/add.js +++ b/src/pages/plan/product/add.js @@ -77,7 +77,7 @@ export default class adduserinfo extends React.Component { let model_temp = this.props.data; let model = this.state.model; model.product_id = model_temp.product_id; - model.product_type = model_temp.product_type; + model.product_type = Number(model_temp.product_type); model.contract_price = model_temp.contract_price; model.official_price = model_temp.official_price; model.cost_price = model_temp.cost_price;