fix: 修复编辑商品无商品类型
This commit is contained in:
parent
ee05ff8e1f
commit
36cd7338c1
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -267,7 +267,6 @@ const UseExchangeAddEdit = forwardRef((props, ref) => {
|
|||
code_name: "",
|
||||
issued: "",
|
||||
describe: "",
|
||||
date_time: "",
|
||||
range: "",
|
||||
restrict: "",
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue