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

修改逻辑

parent 1a708af3
......@@ -39,12 +39,9 @@ const TableList = props => {
const skuSource = record.skuSource?.value ?? null;
const sourceItem = [2, 5]; // 2:京东企业购;5:京东开普勒;
const isJD = sourceItem.includes(skuSource);
let data = null;
if (isJD) {
data = await getJDLogisticsInfo(skuItem.orderSkuId);
} else {
data = await getLogisticsInfo(skuItem?.expressCompanyCode, skuItem?.deliveryNo);
}
const data = isJD
? await getJDLogisticsInfo(skuItem.orderSkuId)
: await getLogisticsInfo(skuItem?.expressCompanyCode, skuItem?.deliveryNo);
if (!data) {
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