提交
This commit is contained in:
1 parent
2716c2b6f8
commit
f3693be913
140 files changed
+799199
-11262
No files matched your search
@@ -4,7 +4,16 @@
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="运输公司">
|
||||
<el-select v-model="searchForm.carrierId" placeholder="全部" clearable filterable>
|
||||
<el-select
|
||||
v-model="searchForm.carrierId"
|
||||
placeholder="全部"
|
||||
clearable
|
||||
filterable
|
||||
remote
|
||||
:remote-method="searchCarriers"
|
||||
:loading="carrierSelectLoading"
|
||||
@focus="onCarrierSelectFocus"
|
||||
>
|
||||
<el-option
|
||||
v-for="c in carrierList"
|
||||
:key="c.id"
|
||||
@@ -309,8 +318,8 @@ import {
|
||||
RefreshLeft,
|
||||
Search
|
||||
} from '@element-plus/icons-vue'
|
||||
import { carrierApi, freightApi, type Carrier, type FreightSettlement } from '@/api/pl'
|
||||
import { pickBxList } from '@/utils/http/bx'
|
||||
import { freightApi, type FreightSettlement } from '@/api/pl'
|
||||
import { usePlRemoteCarrierOptions } from '@/composables/usePlRemoteOptions'
|
||||
import { canDeleteByCreator, CREATOR_DELETE_TIP } from '@/utils/creator-delete'
|
||||
import PlFreightApprovalDialog from '@/components/business/pl-freight-approval-dialog/index.vue'
|
||||
import PlFreightSettlementFormDialog from '@/components/business/pl-freight-settlement-form-dialog/index.vue'
|
||||
@@ -345,7 +354,15 @@ const {
|
||||
|
||||
const loading = ref(false)
|
||||
const cancelLoadingMap = reactive<Record<string, boolean>>({})
|
||||
const carrierList = ref<Carrier[]>([])
|
||||
const {
|
||||
list: carrierList,
|
||||
loading: carrierSelectLoading,
|
||||
search: searchCarriers,
|
||||
onFocus: onCarrierSelectFocus
|
||||
} = usePlRemoteCarrierOptions({
|
||||
getSelectedId: () => searchForm.carrierId,
|
||||
listParams: { status: '1' }
|
||||
})
|
||||
const settlementList = ref<FreightSettlement[]>([])
|
||||
const selectedRows = ref<FreightSettlement[]>([])
|
||||
const viewingRow = ref<FreightSettlement | null>(null)
|
||||
@@ -421,12 +438,7 @@ function handleQuickSearchClear() {
|
||||
}
|
||||
|
||||
async function loadCarrierList() {
|
||||
try {
|
||||
const res = await carrierApi.list({ status: '1', page: 1, pageSize: 100 })
|
||||
carrierList.value = pickBxList(res)
|
||||
} catch {
|
||||
carrierList.value = []
|
||||
}
|
||||
await searchCarriers('')
|
||||
}
|
||||
|
||||
function handlePageChange() {
|
||||
|
||||
@@ -4,7 +4,16 @@
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="运输公司">
|
||||
<el-select v-model="searchForm.carrierId" placeholder="全部" clearable filterable>
|
||||
<el-select
|
||||
v-model="searchForm.carrierId"
|
||||
placeholder="全部"
|
||||
clearable
|
||||
filterable
|
||||
remote
|
||||
:remote-method="searchCarriers"
|
||||
:loading="carrierSelectLoading"
|
||||
@focus="onCarrierSelectFocus"
|
||||
>
|
||||
<el-option
|
||||
v-for="c in carrierList"
|
||||
:key="c.id"
|
||||
@@ -49,7 +58,7 @@
|
||||
<div class="list-toolbar-row">
|
||||
<ListQuickSearchInput
|
||||
v-model="quickSearchKeyword"
|
||||
placeholder="计划编号/客户/车牌"
|
||||
placeholder="计划编号/客户/车牌/承运商"
|
||||
@search="handleQuickSearch"
|
||||
@clear="handleQuickSearchClear"
|
||||
/>
|
||||
@@ -144,7 +153,7 @@
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('transportCompany')"
|
||||
prop="transportCompany"
|
||||
label="运输公司"
|
||||
label="承运商"
|
||||
min-width="140"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
@@ -197,9 +206,10 @@ import ListToolbarEndActions from '@/components/business/list-toolbar-end-action
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import { DocumentAdd, RefreshLeft, Search } from '@element-plus/icons-vue'
|
||||
import { carrierApi, freightApi, vehicleApi, type Carrier, type UnsettledPlanItem, type Vehicle } from '@/api/pl'
|
||||
import { freightApi, vehicleApi, type UnsettledPlanItem, type Vehicle } from '@/api/pl'
|
||||
import { usePlRemoteCarrierOptions } from '@/composables/usePlRemoteOptions'
|
||||
import { fetchAllPagedRecords } from '@/utils/fetch-paged-list'
|
||||
import { pickBxList, pickBxPageResult } from '@/utils/http/bx'
|
||||
import { pickBxPageResult } from '@/utils/http/bx'
|
||||
import PlPlanViewDialog from '@/components/business/pl-plan-view-dialog/index.vue'
|
||||
import { getPlanTypeLabel, getPlanTypeTagType } from '@/views/pl/freight/freight-status'
|
||||
import { buildVehicleTrailerLookup, formatPlVehiclePlateDisplay } from '@/utils/pl-display'
|
||||
@@ -213,7 +223,7 @@ const listColumnDefs = [
|
||||
{ prop: 'planType', label: '单据类型' },
|
||||
{ prop: 'partnerName', label: '客户/供应商' },
|
||||
{ prop: 'licensePlate', label: '车牌号' },
|
||||
{ prop: 'transportCompany', label: '运输公司' },
|
||||
{ prop: 'transportCompany', label: '承运商' },
|
||||
{ prop: 'freightAmount', label: '运费(元)' },
|
||||
{ prop: 'archiveTime', label: '归档时间' }
|
||||
]
|
||||
@@ -228,7 +238,15 @@ const {
|
||||
|
||||
const loading = ref(false)
|
||||
const createLoading = ref(false)
|
||||
const carrierList = ref<Carrier[]>([])
|
||||
const {
|
||||
list: carrierList,
|
||||
loading: carrierSelectLoading,
|
||||
search: searchCarriers,
|
||||
onFocus: onCarrierSelectFocus
|
||||
} = usePlRemoteCarrierOptions({
|
||||
getSelectedId: () => searchForm.carrierId,
|
||||
listParams: { status: '1' }
|
||||
})
|
||||
const vehicleOptions = ref<Vehicle[]>([])
|
||||
const vehicleTrailerLookup = computed(() => buildVehicleTrailerLookup(vehicleOptions.value))
|
||||
const planList = ref<UnsettledPlanItem[]>([])
|
||||
@@ -302,12 +320,7 @@ function handleQuickSearchClear() {
|
||||
}
|
||||
|
||||
async function loadCarrierList() {
|
||||
try {
|
||||
const res = await carrierApi.list({ status: '1', page: 1, pageSize: 100 })
|
||||
carrierList.value = pickBxList(res)
|
||||
} catch {
|
||||
carrierList.value = []
|
||||
}
|
||||
await searchCarriers('')
|
||||
}
|
||||
|
||||
async function loadVehicleOptions() {
|
||||
|
||||
Reference in new issue
Block a user