提交
This commit is contained in:
1 parent
272c68af4b
commit
40fc54942b
76 files changed
+464684
-14130
No files matched your search
@@ -101,7 +101,15 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="planNo" label="计划号" min-width="140" show-overflow-tooltip />
|
||||
<el-table-column prop="partnerCompany" label="往来单位" min-width="160" show-overflow-tooltip />
|
||||
<el-table-column
|
||||
prop="partnerCompany"
|
||||
label="往来单位"
|
||||
min-width="240"
|
||||
align="left"
|
||||
header-align="left"
|
||||
class-name="col-name-wrap"
|
||||
label-class-name="col-name-wrap"
|
||||
/>
|
||||
<el-table-column prop="vehicleNo" label="车牌" min-width="110" align="center" />
|
||||
<el-table-column
|
||||
prop="pickupAddress"
|
||||
@@ -114,7 +122,14 @@
|
||||
{{ row.destinationAddress || row.destinationName || '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="产品名称" min-width="140" show-overflow-tooltip>
|
||||
<el-table-column
|
||||
label="产品名称"
|
||||
min-width="240"
|
||||
align="left"
|
||||
header-align="left"
|
||||
class-name="col-name-wrap"
|
||||
label-class-name="col-name-wrap"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<div v-if="row.items?.length" class="io-order-multi-cell">
|
||||
<div v-for="item in row.items" :key="`${item.id}-name`" class="io-order-multi-cell__line">
|
||||
@@ -307,7 +322,15 @@
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column prop="productNo" label="产品编号" min-width="110" show-overflow-tooltip />
|
||||
<el-table-column prop="productName" label="产品名称" min-width="120" show-overflow-tooltip />
|
||||
<el-table-column
|
||||
prop="productName"
|
||||
label="产品名称"
|
||||
min-width="240"
|
||||
align="left"
|
||||
header-align="left"
|
||||
class-name="col-name-wrap"
|
||||
label-class-name="col-name-wrap"
|
||||
/>
|
||||
<el-table-column label="品牌" min-width="120" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
{{ brandConstraintLabel(row) }}
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
header-align="left"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<PlCarrierListAttachmentCell :carrier="row" />
|
||||
<PlCarrierListAttachmentCell :carrier="row" :media-active="mediaActive" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -327,10 +327,12 @@ import ListToolbarEndActions from '@/components/business/list-toolbar-end-action
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { useListMediaActive } from '@/composables/useListMediaActive'
|
||||
import { pickBxPageResult } from '@/utils/http/bx'
|
||||
import { DEFAULT_LIST_PAGE_SIZE } from '@/utils/table/tableConfig'
|
||||
import { canDeleteByCreator, filterDeletableByCreator, allRowsDeletableByCreator, CREATOR_DELETE_TIP } from '@/utils/creator-delete'
|
||||
const loading = ref(false)
|
||||
const { mediaActive } = useListMediaActive()
|
||||
const quickSearchKeyword = ref('')
|
||||
|
||||
const listColumnDefs = [
|
||||
|
||||
@@ -70,7 +70,15 @@
|
||||
header-align="center"
|
||||
:index="(index) => (pagination.page - 1) * pagination.pageSize + index + 1"
|
||||
/>
|
||||
<el-table-column prop="productName" label="产品名称" min-width="180" show-overflow-tooltip />
|
||||
<el-table-column
|
||||
prop="productName"
|
||||
label="产品名称"
|
||||
min-width="240"
|
||||
align="left"
|
||||
header-align="left"
|
||||
class-name="col-name-wrap"
|
||||
label-class-name="col-name-wrap"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('brandName')"
|
||||
label="品牌"
|
||||
|
||||
@@ -116,8 +116,10 @@
|
||||
<img
|
||||
v-if="firstPhotoUrl(row.photoUrls)"
|
||||
class="pl-photo-thumb"
|
||||
:src="resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls))"
|
||||
:src="mediaActive ? resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls)) : ''"
|
||||
alt="人员照片"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
<span v-else class="pl-photo-thumb pl-photo-thumb--empty">未上传</span>
|
||||
</template>
|
||||
@@ -147,7 +149,7 @@
|
||||
header-align="left"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<PlCertListAttachmentCell :cert-list="row.certList" />
|
||||
<PlCertListAttachmentCell :cert-list="row.certList" :media-active="mediaActive" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -418,6 +420,7 @@ import ListToolbarEndActions from '@/components/business/list-toolbar-end-action
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { useListMediaActive } from '@/composables/useListMediaActive'
|
||||
import { pickBxPageResult } from '@/utils/http/bx'
|
||||
import { DEFAULT_LIST_PAGE_SIZE } from '@/utils/table/tableConfig'
|
||||
import { formatDateTime } from '@/utils/format'
|
||||
@@ -449,6 +452,7 @@ const affiliationMode = computed(() =>
|
||||
const isCarrierPersonnel = computed(() => affiliationMode.value === 'carrier')
|
||||
|
||||
const loading = ref(false)
|
||||
const { mediaActive } = useListMediaActive()
|
||||
|
||||
const listColumnDefs = [
|
||||
{ prop: 'photoUrls', label: '照片' },
|
||||
|
||||
@@ -186,15 +186,20 @@
|
||||
v-if="isColumnVisible('customerName')"
|
||||
prop="customerName"
|
||||
label="客户名称"
|
||||
min-width="180"
|
||||
show-overflow-tooltip
|
||||
min-width="240"
|
||||
align="left"
|
||||
header-align="left"
|
||||
class-name="col-name-wrap"
|
||||
label-class-name="col-name-wrap"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('productName')"
|
||||
label="产品名称"
|
||||
min-width="200"
|
||||
min-width="240"
|
||||
align="left"
|
||||
header-align="left"
|
||||
class-name="col-name-wrap"
|
||||
label-class-name="col-name-wrap"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<PlPlanListProductCell :products="row.products" field="name" />
|
||||
|
||||
@@ -182,9 +182,11 @@
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('productName')"
|
||||
label="产品名称"
|
||||
min-width="200"
|
||||
min-width="240"
|
||||
align="left"
|
||||
header-align="left"
|
||||
class-name="col-name-wrap"
|
||||
label-class-name="col-name-wrap"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<PlPlanListProductCell :products="row.products" field="name" />
|
||||
@@ -231,6 +233,7 @@
|
||||
hide-product
|
||||
clickable
|
||||
:clickable-disabled="!canUploadCert(row)"
|
||||
:media-active="mediaActive"
|
||||
@click="handleUploadCert(row)"
|
||||
/>
|
||||
</template>
|
||||
@@ -239,8 +242,11 @@
|
||||
v-if="isColumnVisible('customerName')"
|
||||
prop="customerName"
|
||||
label="客户名称"
|
||||
min-width="180"
|
||||
show-overflow-tooltip
|
||||
min-width="240"
|
||||
align="left"
|
||||
header-align="left"
|
||||
class-name="col-name-wrap"
|
||||
label-class-name="col-name-wrap"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('planType')"
|
||||
@@ -397,6 +403,7 @@ import PlPlanTypeTabs from '@/components/business/pl-plan-type-tabs/index.vue'
|
||||
import ListToolbarDateShortcuts from '@/components/core/list-toolbar-date-shortcuts/index.vue'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { useListDateShortcut } from '@/composables/useListDateShortcut'
|
||||
import { useListMediaActive } from '@/composables/useListMediaActive'
|
||||
import {
|
||||
formatPlVehiclePlateDisplay,
|
||||
getPlPlanFollowStatusLabel,
|
||||
@@ -412,6 +419,7 @@ import { useMenuStore } from '@/store/modules/menu'
|
||||
|
||||
const menuStore = useMenuStore()
|
||||
const loading = ref(false)
|
||||
const { mediaActive } = useListMediaActive()
|
||||
const certReadyLoading = ref(false)
|
||||
const viewDialogRef = ref<InstanceType<typeof PlPlanViewDialog>>()
|
||||
const viewVisible = ref(false)
|
||||
|
||||
@@ -81,13 +81,6 @@
|
||||
<el-button class="btn-main" type="primary" @click="handleAdd">
|
||||
<el-icon><Plus /></el-icon>新增计划
|
||||
</el-button>
|
||||
<el-button
|
||||
class="btn-ghost"
|
||||
:disabled="!selectedPlan || !canEditPlan(selectedPlan)"
|
||||
@click="handleToolbarEdit"
|
||||
>
|
||||
<el-icon><Edit /></el-icon>编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
class="btn-ghost"
|
||||
:disabled="!selectedPlan || !canArrangeTransport(selectedPlan)"
|
||||
@@ -104,14 +97,6 @@
|
||||
>
|
||||
<el-icon><Bell /></el-icon>等客户通知
|
||||
</el-button>
|
||||
<el-button
|
||||
class="btn-ghost"
|
||||
:disabled="!selectedPlan || !canCancelWaitNotice(selectedPlan)"
|
||||
:loading="waitNoticeLoading"
|
||||
@click="handleToolbarCancelWaitNotice"
|
||||
>
|
||||
<el-icon><RefreshLeft /></el-icon>取消等通知
|
||||
</el-button>
|
||||
<el-dropdown
|
||||
trigger="click"
|
||||
:disabled="selectedRows.length < 1"
|
||||
@@ -153,20 +138,6 @@
|
||||
>
|
||||
<el-icon><CircleClose /></el-icon>作废
|
||||
</el-button>
|
||||
<el-button
|
||||
class="btn-ghost"
|
||||
type="danger"
|
||||
:disabled="
|
||||
!selectedPlan ||
|
||||
!canDeletePlan(selectedPlan) ||
|
||||
!canDeleteByCreator(selectedPlan)
|
||||
"
|
||||
:title="selectedPlan ? getDeletePlanDisabledTitle(selectedPlan) : ''"
|
||||
:loading="deleteLoading"
|
||||
@click="handleToolbarDelete"
|
||||
>
|
||||
<el-icon><Delete /></el-icon>删除
|
||||
</el-button>
|
||||
|
||||
<ListToolbarEndActions
|
||||
:loading="loading"
|
||||
@@ -242,15 +213,20 @@
|
||||
v-if="isColumnVisible('customerName')"
|
||||
prop="customerName"
|
||||
label="客户名称"
|
||||
min-width="180"
|
||||
show-overflow-tooltip
|
||||
min-width="240"
|
||||
align="left"
|
||||
header-align="left"
|
||||
class-name="col-name-wrap"
|
||||
label-class-name="col-name-wrap"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('productName')"
|
||||
label="产品名称"
|
||||
min-width="200"
|
||||
min-width="240"
|
||||
align="left"
|
||||
header-align="left"
|
||||
class-name="col-name-wrap"
|
||||
label-class-name="col-name-wrap"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<PlPlanListProductCell :products="row.products" field="name" />
|
||||
@@ -821,11 +797,6 @@ function handleToolbarWaitNotice() {
|
||||
handleWaitNotice(selectedPlan.value)
|
||||
}
|
||||
|
||||
function handleToolbarCancelWaitNotice() {
|
||||
if (!selectedPlan.value) return
|
||||
handleCancelWaitNotice(selectedPlan.value)
|
||||
}
|
||||
|
||||
async function handleDelete(row: Plan) {
|
||||
if (!canDeletePlan(row)) {
|
||||
ElMessage.warning('只能删除待安排或等通知且未安排运输的计划')
|
||||
@@ -921,11 +892,6 @@ function handleToolbarPrintSlip(command: string) {
|
||||
subpackSlipPrintRef.value?.open(ids)
|
||||
}
|
||||
|
||||
function handleToolbarEdit() {
|
||||
if (selectedRows.value.length !== 1) return
|
||||
handleEdit(selectedRows.value[0])
|
||||
}
|
||||
|
||||
async function handleToolbarArrange() {
|
||||
if (selectedRows.value.length !== 1) return
|
||||
await handleArrange(selectedRows.value[0])
|
||||
@@ -936,11 +902,6 @@ function handleToolbarVoid() {
|
||||
handleVoid(selectedRows.value[0])
|
||||
}
|
||||
|
||||
function handleToolbarDelete() {
|
||||
if (selectedRows.value.length !== 1) return
|
||||
handleDelete(selectedRows.value[0])
|
||||
}
|
||||
|
||||
useDbInstantSearch(
|
||||
() => ({
|
||||
planNo: searchForm.planNo,
|
||||
|
||||
@@ -118,8 +118,10 @@
|
||||
<img
|
||||
v-if="firstPhotoUrl(row.photoUrls)"
|
||||
class="pl-photo-thumb"
|
||||
:src="resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls))"
|
||||
:src="mediaActive ? resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls)) : ''"
|
||||
alt="车辆照片"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
<span v-else class="pl-photo-thumb pl-photo-thumb--empty">未上传</span>
|
||||
</template>
|
||||
@@ -152,7 +154,11 @@
|
||||
header-align="left"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<PlCertListAttachmentCell :cert-list="row.certList" show-vehicle-part />
|
||||
<PlCertListAttachmentCell
|
||||
:cert-list="row.certList"
|
||||
show-vehicle-part
|
||||
:media-active="mediaActive"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="车辆类型" min-width="90" align="center" header-align="center" v-if="isColumnVisible('vehicleType')">
|
||||
@@ -455,6 +461,7 @@ import SystemViewDialog, {
|
||||
} from '@/components/business/system-view-dialog/index.vue'
|
||||
import { loadPersonnelWithCerts } from '@/composables/usePlVehicleViewDetail'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { useListMediaActive } from '@/composables/useListMediaActive'
|
||||
import { pickBxData, pickBxList, pickBxPageResult } from '@/utils/http/bx'
|
||||
import { DEFAULT_LIST_PAGE_SIZE } from '@/utils/table/tableConfig'
|
||||
import { formatDateTime } from '@/utils/format'
|
||||
@@ -487,6 +494,8 @@ type CertListItem = CertRow & { _key?: string }
|
||||
type CertFormListRef = InstanceType<typeof PlVehicleCertPartTabs>
|
||||
|
||||
const loading = ref(false)
|
||||
const { mediaActive } = useListMediaActive()
|
||||
|
||||
const quickSearchKeyword = ref('')
|
||||
const submitLoading = ref(false)
|
||||
const dialogLoading = ref(false)
|
||||
|
||||
@@ -123,8 +123,10 @@
|
||||
<img
|
||||
v-if="firstPhotoUrl(row.photoUrls)"
|
||||
class="pl-photo-thumb"
|
||||
:src="resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls))"
|
||||
:src="mediaActive ? resolvePhotoDisplayUrl(firstPhotoUrl(row.photoUrls)) : ''"
|
||||
alt="车辆照片"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
<span v-else class="pl-photo-thumb pl-photo-thumb--empty">未上传</span>
|
||||
</template>
|
||||
@@ -157,7 +159,11 @@
|
||||
header-align="left"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<PlCertListAttachmentCell :cert-list="row.certList" show-vehicle-part />
|
||||
<PlCertListAttachmentCell
|
||||
:cert-list="row.certList"
|
||||
show-vehicle-part
|
||||
:media-active="mediaActive"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="车辆类型" min-width="100" align="center" header-align="center" v-if="isColumnVisible('vehicleType')">
|
||||
@@ -473,6 +479,7 @@ import SystemViewDialog, {
|
||||
type ViewSection
|
||||
} from '@/components/business/system-view-dialog/index.vue'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { useListMediaActive } from '@/composables/useListMediaActive'
|
||||
import { pickBxData, pickBxList, pickBxPageResult } from '@/utils/http/bx'
|
||||
import { DEFAULT_LIST_PAGE_SIZE } from '@/utils/table/tableConfig'
|
||||
import { formatDateTime } from '@/utils/format'
|
||||
@@ -496,6 +503,8 @@ type CertFormListRef = InstanceType<typeof PlVehicleCertPartTabs>
|
||||
const VEHICLE_TYPE_LOCK = 'carrier' as const
|
||||
|
||||
const loading = ref(false)
|
||||
const { mediaActive } = useListMediaActive()
|
||||
|
||||
const quickSearchKeyword = ref('')
|
||||
const submitLoading = ref(false)
|
||||
const dialogLoading = ref(false)
|
||||
|
||||
Reference in new issue
Block a user