提交
This commit is contained in:
1 parent
33c038b8d9
commit
54b27a3f0e
253 files changed
+30060
-14298
No files matched your search
@@ -173,34 +173,6 @@ export function usePlPlanArrangeActions() {
|
||||
ElMessage.success('已复制司机链接')
|
||||
}
|
||||
|
||||
function buildAllSiteLinksText(records?: TransportSiteLink[]) {
|
||||
const list = records || siteRecords.value
|
||||
return list
|
||||
.filter(item => item.siteUrl)
|
||||
.map(item => `${item.productName || '现场链接'}:${item.siteUrl}`)
|
||||
.join('\n')
|
||||
}
|
||||
|
||||
async function copySiteUrl(url?: string) {
|
||||
const target = (url || siteRecords.value.find(item => item.siteUrl)?.siteUrl || '').trim()
|
||||
if (!target) {
|
||||
ElMessage.warning('暂无现场链接')
|
||||
return
|
||||
}
|
||||
await navigator.clipboard.writeText(target)
|
||||
ElMessage.success('已复制现场链接')
|
||||
}
|
||||
|
||||
async function copyAllSiteUrls(records?: TransportSiteLink[]) {
|
||||
const text = buildAllSiteLinksText(records)
|
||||
if (!text) {
|
||||
ElMessage.warning('暂无现场链接')
|
||||
return
|
||||
}
|
||||
await navigator.clipboard.writeText(text)
|
||||
ElMessage.success('已复制全部现场链接')
|
||||
}
|
||||
|
||||
function resolveSiteRecordProductText(record: TransportSiteLink) {
|
||||
const product = products.value.find(item => item.id === record.planProductId)
|
||||
if (product) {
|
||||
@@ -316,8 +288,6 @@ export function usePlPlanArrangeActions() {
|
||||
buildPlanSummaryText,
|
||||
buildSiteSummaryText,
|
||||
copyDriverUrl,
|
||||
copySiteUrl,
|
||||
copyAllSiteUrls,
|
||||
copySiteSummary,
|
||||
copyPlanSummary,
|
||||
copyPoundSlipQrcode
|
||||
|
||||
Reference in new issue
Block a user