|
@@ -427,6 +427,7 @@
|
|
|
outboundOrderApi,
|
|
outboundOrderApi,
|
|
|
planApi,
|
|
planApi,
|
|
|
type PlIoOrder,
|
|
type PlIoOrder,
|
|
|
|
|
+ type TransportInventoryLink,
|
|
|
type TransportSiteLink
|
|
type TransportSiteLink
|
|
|
} from '@/api/pl'
|
|
} from '@/api/pl'
|
|
|
import {
|
|
import {
|
|
@@ -462,7 +463,8 @@
|
|
|
} from '@/utils/db-site-summary'
|
|
} from '@/utils/db-site-summary'
|
|
|
import {
|
|
import {
|
|
|
buildDriverSummaryFromPlan,
|
|
buildDriverSummaryFromPlan,
|
|
|
- buildDriverStopBlocksFromPlan
|
|
|
|
|
|
|
+ buildDriverStopBlocksFromPlan,
|
|
|
|
|
+ buildPoundQrcodeLinksFromInventoryRecords
|
|
|
} from '@/utils/pl-driver-summary'
|
|
} from '@/utils/pl-driver-summary'
|
|
|
import {
|
|
import {
|
|
|
formatPlanProductListText,
|
|
formatPlanProductListText,
|
|
@@ -487,6 +489,7 @@
|
|
|
showArrangeLinks?: boolean
|
|
showArrangeLinks?: boolean
|
|
|
arrangeDriverUrl?: string
|
|
arrangeDriverUrl?: string
|
|
|
arrangeSiteRecords?: TransportSiteLink[]
|
|
arrangeSiteRecords?: TransportSiteLink[]
|
|
|
|
|
+ arrangeInventoryRecords?: TransportInventoryLink[]
|
|
|
feedbackEditable?: boolean
|
|
feedbackEditable?: boolean
|
|
|
/** 将司机/现场/地磅回传区块镜像渲染到归档左侧等目标节点 */
|
|
/** 将司机/现场/地磅回传区块镜像渲染到归档左侧等目标节点 */
|
|
|
feedbackMirrorTo?: string | HTMLElement | null
|
|
feedbackMirrorTo?: string | HTMLElement | null
|
|
@@ -508,6 +511,7 @@
|
|
|
showArrangeLinks: false,
|
|
showArrangeLinks: false,
|
|
|
arrangeDriverUrl: '',
|
|
arrangeDriverUrl: '',
|
|
|
arrangeSiteRecords: () => [],
|
|
arrangeSiteRecords: () => [],
|
|
|
|
|
+ arrangeInventoryRecords: () => [],
|
|
|
feedbackEditable: false,
|
|
feedbackEditable: false,
|
|
|
feedbackMirrorTo: null,
|
|
feedbackMirrorTo: null,
|
|
|
hideNav: false,
|
|
hideNav: false,
|
|
@@ -1166,6 +1170,10 @@
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
const getUnitLabel = (unit: string) => dictStore.getLabel('crm_product_unit', unit) || unit
|
|
const getUnitLabel = (unit: string) => dictStore.getLabel('crm_product_unit', unit) || unit
|
|
|
|
|
+ const inventorySource =
|
|
|
|
|
+ props.arrangeInventoryRecords?.length
|
|
|
|
|
+ ? props.arrangeInventoryRecords
|
|
|
|
|
+ : dibangPlanRows.value.map((row) => row.link)
|
|
|
const text = buildDriverSummaryFromPlan({
|
|
const text = buildDriverSummaryFromPlan({
|
|
|
plan: plan.value || undefined,
|
|
plan: plan.value || undefined,
|
|
|
planNo: plan.value?.planNo,
|
|
planNo: plan.value?.planNo,
|
|
@@ -1176,7 +1184,8 @@
|
|
|
driverUrl: url,
|
|
driverUrl: url,
|
|
|
products: products.value,
|
|
products: products.value,
|
|
|
getUnitLabel,
|
|
getUnitLabel,
|
|
|
- stopBlocks: buildDriverStopBlocksFromPlan(plan.value, getUnitLabel)
|
|
|
|
|
|
|
+ stopBlocks: buildDriverStopBlocksFromPlan(plan.value, getUnitLabel),
|
|
|
|
|
+ poundQrcodeLinks: buildPoundQrcodeLinksFromInventoryRecords(inventorySource)
|
|
|
})
|
|
})
|
|
|
await navigator.clipboard.writeText(text)
|
|
await navigator.clipboard.writeText(text)
|
|
|
ElMessage.success('已复制给司机')
|
|
ElMessage.success('已复制给司机')
|