fix: 修复编辑商品无商品类型

This commit is contained in:
zhangds 2022-10-11 12:23:39 +08:00
parent ee05ff8e1f
commit 36cd7338c1
3 changed files with 2 additions and 3 deletions

View File

@ -825,7 +825,7 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
try { try {
// id // id
const direct_reseller_ids = state.direct_reseller_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(`请选择归属计划`); Notify.error(`请选择归属计划`);
return; return;
} }

View File

@ -267,7 +267,6 @@ const UseExchangeAddEdit = forwardRef((props, ref) => {
code_name: "", code_name: "",
issued: "", issued: "",
describe: "", describe: "",
date_time: "",
range: "", range: "",
restrict: "", restrict: "",
}); });

View File

@ -77,7 +77,7 @@ export default class adduserinfo extends React.Component {
let model_temp = this.props.data; let model_temp = this.props.data;
let model = this.state.model; let model = this.state.model;
model.product_id = model_temp.product_id; 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.contract_price = model_temp.contract_price;
model.official_price = model_temp.official_price; model.official_price = model_temp.official_price;
model.cost_price = model_temp.cost_price; model.cost_price = model_temp.cost_price;