🎨 style: 修改isECard字段为is_e_card
This commit is contained in:
parent
b79794dc2f
commit
01ec08b50e
|
@ -138,10 +138,10 @@ const UseProductPop = forwardRef((props, ref) => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (directResellerId) {
|
if (directResellerId) {
|
||||||
/* 京东E卡 */
|
/* 京东E卡 */
|
||||||
const isECard = model.product_type === 3
|
const is_e_card = model.product_type === 3
|
||||||
let param = {
|
let param = {
|
||||||
reseller_id: directResellerId,
|
reseller_id: directResellerId,
|
||||||
type: isECard ? 1 : model.product_type
|
type: is_e_card ? 1 : model.product_type
|
||||||
}
|
}
|
||||||
getProductInfoSelect(param).then((res) => {
|
getProductInfoSelect(param).then((res) => {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
|
@ -186,7 +186,7 @@ const UseProductPop = forwardRef((props, ref) => {
|
||||||
product_id: productData.product_id,
|
product_id: productData.product_id,
|
||||||
account_type: productData.account_type,
|
account_type: productData.account_type,
|
||||||
map_product_name: productData.map_product_name,
|
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),
|
card_show: Number(productData.card_show),
|
||||||
code_batch_id: productData.code_batch_id,
|
code_batch_id: productData.code_batch_id,
|
||||||
end_time: productData.end_time,
|
end_time: productData.end_time,
|
||||||
|
@ -252,11 +252,11 @@ const UseProductPop = forwardRef((props, ref) => {
|
||||||
// 获取表单数据
|
// 获取表单数据
|
||||||
const getFormModel = () => {
|
const getFormModel = () => {
|
||||||
/* 京东E卡 */
|
/* 京东E卡 */
|
||||||
const isECard = model.product_type === 3
|
const is_e_card = model.product_type === 3
|
||||||
return {
|
return {
|
||||||
product_id: model.product_id,
|
product_id: model.product_id,
|
||||||
product_type: isECard ? 1 : model.product_type,
|
product_type: is_e_card ? 1 : model.product_type,
|
||||||
isECard: Number(isECard),
|
is_e_card: Number(is_e_card),
|
||||||
product_name: model.product_name,
|
product_name: model.product_name,
|
||||||
contract_price: model.contract_price,
|
contract_price: model.contract_price,
|
||||||
cost_price: model.cost_price,
|
cost_price: model.cost_price,
|
||||||
|
|
Loading…
Reference in New Issue