This commit is contained in:
zlwu committed 2026-09-03 15:54:34 +08:00
1 parent 54a1ba0c5c
commit dd3bb3cf06
896 files changed
+668620 -194702

No files matched your search

+7 -4
View File
@@ -816,6 +816,7 @@ import { useListTableViewportHeight } from '@/composables/useListTableViewportHe
PL_PLAN_DEFAULT_FOLLOW_STATUSES,
PL_PLAN_FOLLOW_STATUS_OPTIONS,
PL_PLAN_LIST_TABS,
isPlPlanFollowStatusListTab,
plPlanListTabToFilters,
type PlPlanListTab,
type PlPrintSlipCommand
@@ -1153,7 +1154,7 @@ tableEl: planTableWrapRef,
const searchForm = reactive({
planNo: '',
planType: '',
followStatus: ['pending_arrange', 'drafting'] as string[],
followStatus: ['pending_arrange'] as string[],
customerName: '',
productName: '',
licensePlate: ''
@@ -1213,8 +1214,10 @@ tableEl: planTableWrapRef,
const filters = plPlanListTabToFilters(nextTab)
searchForm.planType = filters.planType
if (nextTab === 'pending_arrange') {
searchForm.followStatus = ['pending_arrange', 'drafting']
} else if (prevTab === 'pending_arrange') {
searchForm.followStatus = ['pending_arrange']
} else if (nextTab === 'drafting') {
searchForm.followStatus = ['drafting']
} else if (isPlPlanFollowStatusListTab(prevTab) && !isPlPlanFollowStatusListTab(nextTab)) {
searchForm.followStatus = [...PL_PLAN_DEFAULT_FOLLOW_STATUSES]
}
pagination.page = 1
@@ -1225,7 +1228,7 @@ tableEl: planTableWrapRef,
activePlanTypeTab.value = 'pending_arrange'
searchForm.planNo = ''
searchForm.planType = ''
searchForm.followStatus = ['pending_arrange', 'drafting']
searchForm.followStatus = ['pending_arrange']
searchForm.customerName = ''
searchForm.productName = ''
searchForm.licensePlate = ''