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;