Commit 726b16c3 authored by FE-安焕焕's avatar FE-安焕焕 👣

修改逻辑

parent 1a708af3
...@@ -39,12 +39,9 @@ const TableList = props => { ...@@ -39,12 +39,9 @@ const TableList = props => {
const skuSource = record.skuSource?.value ?? null; const skuSource = record.skuSource?.value ?? null;
const sourceItem = [2, 5]; // 2:京东企业购;5:京东开普勒; const sourceItem = [2, 5]; // 2:京东企业购;5:京东开普勒;
const isJD = sourceItem.includes(skuSource); const isJD = sourceItem.includes(skuSource);
let data = null; const data = isJD
if (isJD) { ? await getJDLogisticsInfo(skuItem.orderSkuId)
data = await getJDLogisticsInfo(skuItem.orderSkuId); : await getLogisticsInfo(skuItem?.expressCompanyCode, skuItem?.deliveryNo);
} else {
data = await getLogisticsInfo(skuItem?.expressCompanyCode, skuItem?.deliveryNo);
}
if (!data) { if (!data) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment