fix(pickup): 支持天域分销货源提号结算
This commit is contained in:
@@ -16,6 +16,9 @@ export interface AdminPickup {
|
||||
source_tenant_id: number
|
||||
source_tenant_code: string
|
||||
source_tenant_name: string
|
||||
source_distribution_site_id: number
|
||||
source_distribution_site_code: string
|
||||
source_distribution_site_name: string
|
||||
is_cross_tenant: boolean
|
||||
pickup_no: string
|
||||
listing_id: number
|
||||
@@ -101,6 +104,9 @@ export interface AvailableListing {
|
||||
source_tenant_id: number
|
||||
source_tenant_code: string
|
||||
source_tenant_name: string
|
||||
source_distribution_site_id: number
|
||||
source_distribution_site_code: string
|
||||
source_distribution_site_name: string
|
||||
is_cross_tenant: boolean
|
||||
listing_no: string
|
||||
account_id: number
|
||||
|
||||
@@ -609,11 +609,19 @@ function siteName(code: string, name: string) {
|
||||
}
|
||||
|
||||
function pickupSiteText(row: AdminPickup) {
|
||||
if (row.source_distribution_site_id > 0) {
|
||||
const source = siteName(row.source_distribution_site_code, row.source_distribution_site_name)
|
||||
return row.is_cross_tenant ? `跨站 · ${source}` : `本站 · ${source}`
|
||||
}
|
||||
if (!row.is_cross_tenant) return '本站货源'
|
||||
return `跨站 · ${siteName(row.source_tenant_code, row.source_tenant_name)}`
|
||||
}
|
||||
|
||||
function listingSiteText(item: AvailableListing) {
|
||||
if (item.source_distribution_site_id > 0) {
|
||||
const source = siteName(item.source_distribution_site_code, item.source_distribution_site_name)
|
||||
return item.is_cross_tenant ? `跨站 · ${source}` : `本站 · ${source}`
|
||||
}
|
||||
const source = siteName(item.source_tenant_code, item.source_tenant_name)
|
||||
return item.is_cross_tenant ? `跨站 · ${source}` : `本站 · ${source}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user