This commit is contained in:
2026-08-06 19:03:13 +08:00
parent 7034a40aa8
commit 8695eee8c8
28 changed files with 1100 additions and 162 deletions
@@ -65,6 +65,7 @@ const queryFields = computed<QueryField[]>(() => [
{
key: 'tenantId',
type: 'select',
label: '企业客户',
width: 160,
placeholder: tenantLoadError.value ? '企业列表加载失败' : '全部企业',
props: { 'aria-label': '企业客户', filterable: true, disabled: Boolean(tenantLoadError.value) },
@@ -73,6 +74,7 @@ const queryFields = computed<QueryField[]>(() => [
{
key: 'status',
type: 'select',
label: '订单状态',
width: 120,
placeholder: '全部状态',
props: { 'aria-label': '订单状态' },
@@ -87,8 +89,8 @@ const queryFields = computed<QueryField[]>(() => [
{ value: 'REJECTED', label: '已驳回(旧契约)' },
],
},
{ key: 'keyword', type: 'input', placeholder: '订单号或发货客户名称', props: { 'aria-label': '订单关键词' } },
{ key: 'dateRange', type: 'daterange', props: { 'aria-label': '订单创建日期' } },
{ key: 'keyword', type: 'input', label: '订单关键词', placeholder: '订单号或发货客户名称', props: { 'aria-label': '订单关键词' } },
{ key: 'dateRange', type: 'daterange', label: '订单创建日期', props: { 'aria-label': '订单创建日期' } },
])
const orderColumns: DataTableColumn[] = [
@@ -505,6 +507,7 @@ onMounted(() => void loadTenants())
v-model="filters"
ariaLabel="头程订单筛选"
:fields="queryFields"
preference-key="first-leg-orders-query"
search-text="查询"
:search-on-reset="false"
@search="searchOrders"
@@ -527,6 +530,7 @@ onMounted(() => void loadTenants())
v-model:page-size="pageSize"
:data="orders"
:columns="orderColumns"
preference-key="first-leg-orders-table"
:loading="loading"
:total="total"
:page-sizes="[20, 50, 100]"