yinxia.yang 3 săptămâni în urmă
părinte
comite
18aceb25f0
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      src/views/Inbound.vue

+ 2 - 1
src/views/Inbound.vue

@@ -123,6 +123,7 @@ async function validateReverseEvidence() {
   void reverseFormRef.value?.validateField('evidence').catch(() => false)
 }
 const logisticsName = (value: string) => ({ express: '快递', instant: '闪送', other: '其他' }[value] || '待填写')
+const logisticsText = (entry: Entry) => entry.logistics === 'express' ? [entry.company, entry.tracking].filter(Boolean).join(' · ') || '待填写' : logisticsName(entry.logistics)
 const entrySku = (entry: Entry) => entry.snapshot
 const attachments = (entry: Entry) => [...entry.evidence, ...entry.orderEvidence, ...entry.screenshots]
 const canReverse = (entry: InboundEntry) => entry.status === 'completed' && entry.alreadyReversedQty < Number(entry.quantity)
@@ -219,7 +220,7 @@ async function submitReverse() {
       <el-table-column label="skuID / 商品" min-width="330"><template #default="{ row }"><strong class="inbound-product">{{ row.skuId || '待选择 SKU' }}<template v-if="entrySku(row)"> · {{ entrySku(row)?.name }}</template></strong></template></el-table-column>
       <el-table-column label="规格" width="65"><template #default="{ row }">{{ entrySku(row)?.spec || '—' }}</template></el-table-column>
       <el-table-column label="数量" width="80"><template #default="{ row }"><b v-if="row.quantity !== null">{{ row.quantity }}</b><span v-else>待填写</span></template></el-table-column>
-      <el-table-column label="物流信息" min-width="220"><template #default="{ row }">{{ row.tracking ? `${row.company || '—'} · ${row.tracking}` : (row.screenshots.length ? '物流截图' : '—') }}</template></el-table-column>
+      <el-table-column label="物流信息" min-width="220"><template #default="{ row }">{{ logisticsText(row) }}</template></el-table-column>
       <el-table-column prop="operator" label="操作人" width="100"><template #default="{ row }">{{ row.operator || '—' }}</template></el-table-column>
       <el-table-column prop="remark" label="备注" min-width="135" show-overflow-tooltip />
       <el-table-column label="操作" width="190" fixed="right">