This commit is contained in:
zlwu committed 2026-08-03 00:48:46 +08:00
1 parent 272c68af4b
commit 40fc54942b
76 files changed
+464684 -14130

No files matched your search

+10 -7
View File
@@ -223,9 +223,11 @@
<el-table-column
prop="clueName"
label="线索姓名"
min-width="120"
align="center"
header-align="center"
min-width="140"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
fixed="left"
>
<template #default="{ row }">
@@ -236,10 +238,11 @@
v-if="isColumnVisible('company')"
prop="company"
label="公司名称"
min-width="180"
align="center"
header-align="center"
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('customerType')"
@@ -131,10 +131,11 @@
v-if="isColumnVisible('contractName')"
prop="contractName"
label="合同名称"
min-width="200"
align="center"
header-align="center"
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 label="审批级别" v-if="isColumnVisible('step')" min-width="100" align="center" header-align="center">
<template #default="{ row }">第{{ row.step }}级</template>
@@ -180,10 +180,11 @@
v-if="isColumnVisible('contractName')"
prop="contractName"
label="合同名称"
min-width="180"
align="center"
header-align="center"
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 label="变更类型" v-if="isColumnVisible('changeType')" min-width="120" align="center" header-align="center">
<template #default="{ row }">
@@ -70,7 +70,15 @@
<el-table-column type="selection" min-width="55" align="center" header-align="center" />
<el-table-column type="index" label="序号" min-width="60" align="center" header-align="center" />
<el-table-column label="产品编号" prop="productNo" min-width="140" align="center" header-align="center" :show-overflow-tooltip="true" />
<el-table-column label="产品名称" prop="productName" min-width="180" align="center" header-align="center" :show-overflow-tooltip="true" />
<el-table-column
label="产品名称"
prop="productName"
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column label="产品分类" prop="categoryName" min-width="120" align="center" header-align="center" />
<el-table-column label="规格型号" prop="model" min-width="120" align="center" header-align="center" :show-overflow-tooltip="true" />
<el-table-column label="计量单位" prop="unit" min-width="100" align="center" header-align="center">
+23 -5
View File
@@ -193,7 +193,15 @@
<div class="contract-product-expand" v-loading="expandLoadingMap[String(scope.row.id)]">
<el-table :data="scope.row.products || []" stripe class="list-table">
<el-table-column label="序号" type="index" width="60" align="center" />
<el-table-column label="产品名称" prop="productName" min-width="120" :show-overflow-tooltip="true" />
<el-table-column
label="产品名称"
prop="productName"
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column label="型号/规格" prop="model" min-width="130" :show-overflow-tooltip="true">
<template #default="productScope">
<span>{{ productScope.row.model || productScope.row.productModel || '-' }}</span>
@@ -247,7 +255,15 @@
</el-table-column>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="合同编号" align="center" prop="contractNo" min-width="170" show-overflow-tooltip />
<el-table-column label="合同名称" prop="contractName" show-overflow-tooltip min-width="280">
<el-table-column
label="合同名称"
prop="contractName"
min-width="280"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
>
<template #default="scope">
<el-link type="primary" @click="handleView(scope.row)">{{ scope.row.contractName }}</el-link>
</template>
@@ -255,10 +271,12 @@
<el-table-column
v-if="isColumnVisible('customerName')"
label="客户名称"
align="center"
align="left"
header-align="left"
prop="customerName"
min-width="180"
show-overflow-tooltip
min-width="240"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column v-if="isColumnVisible('contactName')" label="联系人" align="center" prop="contactName" min-width="100" show-overflow-tooltip />
<el-table-column v-if="isColumnVisible('contactMobile')" label="联系人手机" align="center" prop="contactMobile" min-width="120" />
@@ -224,10 +224,11 @@
<el-table-column
label="商机名称"
prop="opportunityName"
min-width="180"
align="center"
header-align="center"
show-overflow-tooltip
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
>
<template #default="{ row }">
<el-link type="primary" @click="handleViewOpportunity(row.id)">
@@ -292,10 +293,11 @@
<el-table-column
label="合同名称"
prop="contractName"
min-width="180"
align="center"
header-align="center"
show-overflow-tooltip
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
>
<template #default="{ row }">
<el-link type="primary" @click="handleViewContract(row.id)">
+10 -8
View File
@@ -208,10 +208,11 @@
<el-table-column
prop="customerName"
label="客户名称"
min-width="180"
align="center"
header-align="center"
show-overflow-tooltip
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
>
<template #default="{ row }">
<el-link type="primary" @click="handleView(row)">{{ row.customerName }}</el-link>
@@ -221,10 +222,11 @@
v-if="isColumnVisible('shortName')"
prop="shortName"
label="客户简称"
min-width="150"
align="center"
header-align="center"
show-overflow-tooltip
min-width="180"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column
v-if="isColumnVisible('customerType')"
@@ -118,10 +118,11 @@
<el-table-column
prop="customerName"
label="客户名称"
min-width="180"
align="center"
header-align="center"
show-overflow-tooltip
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
>
<template #default="{ row }">
<el-link type="primary" @click="handleView(row)">{{ row.customerName }}</el-link>
@@ -131,10 +132,11 @@
v-if="isColumnVisible('shortName')"
prop="shortName"
label="客户简称"
min-width="150"
align="center"
header-align="center"
show-overflow-tooltip
min-width="180"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column
v-if="isColumnVisible('customerType')"
+10 -7
View File
@@ -181,11 +181,12 @@
/>
<el-table-column
label="商机名称"
align="center"
header-align="center"
align="left"
header-align="left"
prop="opportunityName"
min-width="200"
show-overflow-tooltip
min-width="240"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
>
<template #default="{ row }">
<el-link type="primary" @click="handleDetail(row)">{{ row.opportunityName }}</el-link>
@@ -194,10 +195,12 @@
<el-table-column
v-if="isColumnVisible('customerName')"
label="客户名称"
align="center"
align="left"
header-align="left"
prop="customerName"
min-width="150"
show-overflow-tooltip
min-width="240"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column
v-if="isColumnVisible('contactName')"
@@ -103,8 +103,24 @@
<div class="list-body list-wrap">
<el-table class="list-table" :data="topAmountList" stripe max-height="400">
<el-table-column type="index" label="排名" min-width="70" align="center" />
<el-table-column prop="opportunityName" label="商机名称" min-width="160" show-overflow-tooltip align="center" />
<el-table-column prop="customerName" label="客户名称" min-width="120" show-overflow-tooltip align="center" />
<el-table-column
prop="opportunityName"
label="商机名称"
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column
prop="customerName"
label="客户名称"
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column prop="amount" label="预估金额" min-width="120" align="right" class-name="col-money">
<template #default="scope">¥{{ formatMoney(scope.row.amount) }}</template>
</el-table-column>
@@ -119,8 +135,24 @@
<div class="list-body list-wrap">
<el-table class="list-table" :data="topFollowList" stripe max-height="400">
<el-table-column type="index" label="排名" min-width="70" align="center" />
<el-table-column prop="opportunityName" label="商机名称" min-width="160" show-overflow-tooltip align="center" />
<el-table-column prop="customerName" label="客户名称" min-width="120" show-overflow-tooltip align="center" />
<el-table-column
prop="opportunityName"
label="商机名称"
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column
prop="customerName"
label="客户名称"
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column prop="followCount" label="跟进次数" min-width="100" align="center">
<template #default="scope">
<el-tag type="warning" size="small">{{ scope.row.followCount }}次</el-tag>
@@ -159,10 +159,11 @@
v-if="isColumnVisible('customerName')"
prop="customerName"
label="供应商/客户"
min-width="160"
min-width="240"
align="left"
header-align="center"
show-overflow-tooltip
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
>
<template #default="{ row }">
<el-link type="primary" @click.stop="handleView(row)">{{ row.customerName || '-' }}</el-link>
@@ -172,10 +173,11 @@
v-if="isColumnVisible('productName')"
prop="productName"
label="产品名称"
min-width="140"
min-width="240"
align="left"
header-align="center"
show-overflow-tooltip
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column
v-if="isColumnVisible('letterType')"
+11 -9
View File
@@ -154,9 +154,11 @@
<el-table-column
prop="productName"
label="产品名称"
min-width="200"
align="center"
header-align="center"
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
>
<template #default="{ row }">
<div class="product-name-cell">
@@ -664,7 +666,7 @@ const pagination = reactive({ page: 1, pageSize: 20, total: 0 })
const searchForm = reactive({
keyword: '',
categoryId: '',
status: '',
status: 'on',
})
const quickSearchKeyword = ref('')
@@ -819,7 +821,7 @@ function handlePageChange() {
function handleReset() {
searchForm.keyword = ''
searchForm.categoryId = ''
searchForm.status = ''
searchForm.status = 'on'
quickSearchKeyword.value = ''
pagination.page = 1
getList()
@@ -1146,7 +1148,7 @@ onMounted(() => {
.product-name-cell {
display: inline-flex;
align-items: center;
justify-content: center;
justify-content: flex-start;
flex-wrap: wrap;
gap: 6px;
max-width: 100%;
@@ -1154,9 +1156,9 @@ onMounted(() => {
.product-name-cell .el-link {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
white-space: normal;
word-break: break-word;
overflow-wrap: anywhere;
}
.product-hazard-tag {
@@ -70,7 +70,15 @@
<el-table-column type="selection" min-width="55" align="center" header-align="center" />
<el-table-column type="index" label="序号" min-width="60" align="center" header-align="center" />
<el-table-column label="产品编号" prop="productNo" min-width="140" align="center" header-align="center" :show-overflow-tooltip="true" />
<el-table-column label="产品名称" prop="productName" min-width="180" align="center" header-align="center" :show-overflow-tooltip="true" />
<el-table-column
label="产品名称"
prop="productName"
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column label="产品分类" prop="categoryName" min-width="120" align="center" header-align="center" />
<el-table-column label="规格型号" prop="model" min-width="120" align="center" header-align="center" :show-overflow-tooltip="true" />
<el-table-column label="计量单位" prop="unit" min-width="100" align="center" header-align="center">
+28 -9
View File
@@ -163,7 +163,15 @@
<div class="quote-product-expand" v-loading="expandLoadingMap[String(scope.row.id)]">
<el-table :data="scope.row.productList || []" stripe class="list-table">
<el-table-column type="index" label="序号" width="60" align="center" />
<el-table-column label="产品名称" prop="productName" min-width="120" align="center" header-align="center" :show-overflow-tooltip="true" />
<el-table-column
label="产品名称"
prop="productName"
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column label="型号/规格" prop="model" min-width="130" align="center" header-align="center" :show-overflow-tooltip="true">
<template #default="productScope">
<span>{{ productScope.row.model || '-' }}</span>
@@ -219,7 +227,15 @@
</el-table-column>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="报价单号" align="center" prop="quoteNo" min-width="150" show-overflow-tooltip />
<el-table-column label="报价主题" prop="quoteTitle" show-overflow-tooltip min-width="260" align="center" header-align="center">
<el-table-column
label="报价主题"
prop="quoteTitle"
min-width="260"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
>
<template #default="scope">
<el-link type="primary" @click="handleView(scope.row)">{{ scope.row.quoteTitle }}</el-link>
</template>
@@ -234,19 +250,22 @@
<el-table-column
v-if="isColumnVisible('customerName')"
label="客户名称"
align="center"
header-align="center"
align="left"
header-align="left"
prop="customerName"
min-width="180"
show-overflow-tooltip
min-width="240"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column
v-if="isColumnVisible('opportunityName')"
label="商机名称"
align="center"
align="left"
header-align="left"
prop="opportunityName"
min-width="180"
show-overflow-tooltip
min-width="240"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column v-if="isColumnVisible('contactName')" label="联系人" align="center" prop="contactName" min-width="100" show-overflow-tooltip />
<el-table-column v-if="isColumnVisible('contactMobile')" label="联系人手机" align="center" prop="contactMobile" min-width="120" />
+10 -4
View File
@@ -196,8 +196,11 @@
v-if="isColumnVisible('partnerCompany')"
prop="partnerCompany"
label="往来单位"
min-width="150"
show-overflow-tooltip
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
sortable="custom"
:sort-order="getSortOrder('partnerCompany')"
/>
@@ -233,8 +236,11 @@
v-if="isColumnVisible('product')"
prop="product"
label="产品"
min-width="120"
show-overflow-tooltip
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
sortable="custom"
:sort-order="getSortOrder('product')"
/>
+5 -4
View File
@@ -177,10 +177,11 @@
v-if="isColumnVisible('customerName')"
prop="customerName"
label="往来单位"
min-width="150"
align="center"
header-align="center"
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('startDate')"
+4 -1
View File
@@ -131,8 +131,9 @@
<template #default="{ row }">
<el-image
v-if="row.imageUrl"
:src="row.imageUrl"
:src="mediaActive ? row.imageUrl : ''"
fit="cover"
lazy
style="width: 40px; height: 40px; border-radius: 6px"
/>
<span v-else>-</span>
@@ -528,6 +529,7 @@
<script setup lang="ts">
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
import { useListMediaActive } from '@/composables/useListMediaActive'
/* eslint-disable vue/no-v-model-argument */
import { ref, reactive, onMounted, nextTick, watch, computed } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
@@ -568,6 +570,7 @@ import ListToolbarEndActions from '@/components/business/list-toolbar-end-action
const tableData = ref<any[]>([])
const selectedRows = ref<any[]>([])
const loading = ref(false)
const { mediaActive } = useListMediaActive()
const pagination = reactive({ page: 1, pageSize: 100, total: 0 })
const categoryList = ref<any[]>([])
const parentCategoryList = ref<any[]>([])
+13 -2
View File
@@ -135,8 +135,9 @@
<div class="expand-product-thumb-wrap">
<el-image
v-if="line.imageUrl"
:src="line.imageUrl"
:src="mediaActive ? line.imageUrl : ''"
fit="cover"
lazy
class="expand-product-thumb"
/>
<span v-else class="expand-product-thumb placeholder">无图</span>
@@ -200,7 +201,15 @@
<el-link type="primary" @click="handleView(row)">{{ row.orderNo }}</el-link>
</template>
</el-table-column>
<el-table-column prop="clientName" label="客户名称" min-width="150" />
<el-table-column
prop="clientName"
label="客户名称"
min-width="240"
align="left"
header-align="left"
class-name="col-name-wrap"
label-class-name="col-name-wrap"
/>
<el-table-column prop="regionName" label="区域" min-width="100" />
<el-table-column prop="supplierTotalAmount" label="供货总金额(元)" min-width="140">
<template #default="{ row }">
@@ -1688,6 +1697,7 @@
import { useRoute, useRouter } from 'vue-router'
import { ElMessage, ElMessageBox } from 'element-plus'
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
import { useListMediaActive } from '@/composables/useListMediaActive'
import {
Check,
Close,
@@ -1774,6 +1784,7 @@
const expandedRowLoadingMap = ref<Record<string, boolean>>({})
const tableData = ref<any[]>([])
const loading = ref(false)
const { mediaActive } = useListMediaActive()
const selectedRows = ref<any[]>([])
const pagination = reactive({ page: 1, pageSize: 20, total: 0 })
const regionList = ref<any[]>([])
+3 -1
View File
@@ -112,7 +112,7 @@
<div class="product-cell-thumb">
<el-image
v-if="row.imageUrl"
:src="row.imageUrl"
:src="mediaActive ? row.imageUrl : ''"
fit="cover"
lazy
class="product-cell-img"
@@ -908,6 +908,7 @@
<script setup lang="ts">
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
import { useListMediaActive } from '@/composables/useListMediaActive'
import { ref, reactive, onMounted, computed, watch, nextTick } from 'vue'
import {
ElMessage,
@@ -1061,6 +1062,7 @@ import ListToolbarEndActions from '@/components/business/list-toolbar-end-action
}
}
const loading = ref(false)
const { mediaActive } = useListMediaActive()
const productFormContainerRef = ref<HTMLElement | null>(null)
// 分页
@@ -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) }}
+3 -1
View File
@@ -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 = [
+9 -1
View File
@@ -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="品牌"
+6 -2
View File
@@ -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" />
+11 -3
View File
@@ -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)
+8 -47
View File
@@ -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,
+11 -2
View File
@@ -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)
+11 -2
View File
@@ -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)