diff --git a/src/components/UseProductPop/index.jsx b/src/components/UseProductPop/index.jsx index aec8dbbf..8edd2375 100644 --- a/src/components/UseProductPop/index.jsx +++ b/src/components/UseProductPop/index.jsx @@ -138,10 +138,10 @@ const UseProductPop = forwardRef((props, ref) => { return new Promise((resolve, reject) => { if (directResellerId) { /* 京东E卡 */ - const isECard = model.product_type === 3 + const is_e_card = model.product_type === 3 let param = { reseller_id: directResellerId, - type: isECard ? 1 : model.product_type + type: is_e_card ? 1 : model.product_type } getProductInfoSelect(param).then((res) => { handelResponse( @@ -186,7 +186,7 @@ const UseProductPop = forwardRef((props, ref) => { product_id: productData.product_id, account_type: productData.account_type, map_product_name: productData.map_product_name, - product_type: productData.isECard ? 3 : model.product_type, + product_type: productData.is_e_card ? 3 : model.product_type, card_show: Number(productData.card_show), code_batch_id: productData.code_batch_id, end_time: productData.end_time, @@ -252,11 +252,11 @@ const UseProductPop = forwardRef((props, ref) => { // 获取表单数据 const getFormModel = () => { /* 京东E卡 */ - const isECard = model.product_type === 3 + const is_e_card = model.product_type === 3 return { product_id: model.product_id, - product_type: isECard ? 1 : model.product_type, - isECard: Number(isECard), + product_type: is_e_card ? 1 : model.product_type, + is_e_card: Number(is_e_card), product_name: model.product_name, contract_price: model.contract_price, cost_price: model.cost_price,