提交
This commit is contained in:
1 parent
c8cec132bf
commit
19c5aaa8f5
95 files changed
+309129
-9838
No files matched your search
@@ -298,16 +298,8 @@
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<div
|
||||
v-if="
|
||||
row.plan.canCopyToDriver ||
|
||||
row.plan.canCopyToSite ||
|
||||
row.plan.canCopyPoundQrcode
|
||||
"
|
||||
class="pl-plan-arrange-copy-cell"
|
||||
>
|
||||
<div v-if="row.plan.canCopyPoundQrcode" class="pl-plan-arrange-copy-cell">
|
||||
<el-button
|
||||
v-if="row.plan.canCopyPoundQrcode"
|
||||
class="btn-ghost"
|
||||
title="复制磅单二维码"
|
||||
:loading="
|
||||
@@ -317,28 +309,6 @@
|
||||
>
|
||||
磅单码
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="row.plan.canCopyToDriver"
|
||||
class="btn-ghost"
|
||||
title="复制给司机"
|
||||
:loading="
|
||||
arrangeCopyLoadingId === row.plan.id && arrangeCopyLoadingAction === 'driver'
|
||||
"
|
||||
@click.stop="handleListCopyDriver(row.plan)"
|
||||
>
|
||||
司机
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="row.plan.canCopyToSite"
|
||||
class="btn-ghost"
|
||||
title="复制给现场"
|
||||
:loading="
|
||||
arrangeCopyLoadingId === row.plan.id && arrangeCopyLoadingAction === 'site'
|
||||
"
|
||||
@click.stop="handleListCopySite(row.plan)"
|
||||
>
|
||||
现场
|
||||
</el-button>
|
||||
</div>
|
||||
<span v-else>—</span>
|
||||
</template>
|
||||
@@ -932,31 +902,21 @@
|
||||
poundQrcodePickVisible,
|
||||
poundQrcodePickRecords,
|
||||
loadArrangeActions,
|
||||
copySiteSummary,
|
||||
copyPlanSummary,
|
||||
copyPoundSlipQrcode,
|
||||
handlePoundQrcodePickCopy,
|
||||
handlePoundQrcodePickPreview
|
||||
} = usePlPlanArrangeActions()
|
||||
|
||||
const arrangeCopyLoadingId = ref('')
|
||||
const arrangeCopyLoadingAction = ref<'driver' | 'site' | 'qrcode' | ''>('')
|
||||
const arrangeCopyLoadingAction = ref<'qrcode' | ''>('')
|
||||
|
||||
type ArrangeCopyAction = 'driver' | 'site' | 'qrcode'
|
||||
|
||||
async function runListArrangeCopy(row: Plan, action: ArrangeCopyAction) {
|
||||
async function handleListCopyPoundQrcode(row: Plan) {
|
||||
if (!row.id || arrangeCopyLoadingId.value) return
|
||||
arrangeCopyLoadingId.value = row.id
|
||||
arrangeCopyLoadingAction.value = action
|
||||
arrangeCopyLoadingAction.value = 'qrcode'
|
||||
try {
|
||||
await loadArrangeActions(row.id)
|
||||
if (action === 'driver') {
|
||||
await copyPlanSummary()
|
||||
} else if (action === 'site') {
|
||||
await copySiteSummary()
|
||||
} else {
|
||||
await copyPoundSlipQrcode()
|
||||
}
|
||||
await copyPoundSlipQrcode()
|
||||
} catch {
|
||||
ElMessage.error('复制失败,请稍后重试')
|
||||
} finally {
|
||||
@@ -965,18 +925,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
function handleListCopyDriver(row: Plan) {
|
||||
void runListArrangeCopy(row, 'driver')
|
||||
}
|
||||
|
||||
function handleListCopySite(row: Plan) {
|
||||
void runListArrangeCopy(row, 'site')
|
||||
}
|
||||
|
||||
function handleListCopyPoundQrcode(row: Plan) {
|
||||
void runListArrangeCopy(row, 'qrcode')
|
||||
}
|
||||
|
||||
const selectedRows = ref<Plan[]>([])
|
||||
|
||||
const planStatsRowColumns = computed((): StatsRowColumn[] => {
|
||||
@@ -1756,8 +1704,10 @@
|
||||
background-color: #ecfdf5 !important;
|
||||
}
|
||||
|
||||
tbody tr.pl-plan-list-row:hover > td.el-table__cell {
|
||||
background-color: var(--el-table-row-hover-bg-color, #f1f5f9) !important;
|
||||
/* 悬停用浅红;须压过斑马纹/装货段 !important 底色 */
|
||||
tbody tr.pl-plan-list-row:hover > td.el-table__cell,
|
||||
tbody tr.pl-plan-list-row.hover-row > td.el-table__cell {
|
||||
background-color: #fee2e2 !important;
|
||||
}
|
||||
|
||||
.pl-plan-list-row--plan-end > td {
|
||||
|
||||
Reference in new issue
Block a user