feat(web-admin): add plan draft save UI and drafting follow-status filters
Rename pending tab to 待安排/草稿, default-select drafting, and add 暂存 with saveMode. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
ae91fbc63e
commit
3c7e3c69c5
4 files changed
+77
-9
No files matched your search
@@ -26,7 +26,6 @@
|
||||
placeholder="全部"
|
||||
clearable
|
||||
multiple
|
||||
:disabled="activePlanTypeTab === 'pending_arrange'"
|
||||
>
|
||||
<el-option
|
||||
v-for="opt in PL_PLAN_FOLLOW_STATUS_OPTIONS"
|
||||
@@ -1154,7 +1153,7 @@ tableEl: planTableWrapRef,
|
||||
const searchForm = reactive({
|
||||
planNo: '',
|
||||
planType: '',
|
||||
followStatus: ['pending_arrange'] as string[],
|
||||
followStatus: ['pending_arrange', 'drafting'] as string[],
|
||||
customerName: '',
|
||||
productName: '',
|
||||
licensePlate: ''
|
||||
@@ -1214,7 +1213,7 @@ tableEl: planTableWrapRef,
|
||||
const filters = plPlanListTabToFilters(nextTab)
|
||||
searchForm.planType = filters.planType
|
||||
if (nextTab === 'pending_arrange') {
|
||||
searchForm.followStatus = ['pending_arrange']
|
||||
searchForm.followStatus = ['pending_arrange', 'drafting']
|
||||
} else if (prevTab === 'pending_arrange') {
|
||||
searchForm.followStatus = [...PL_PLAN_DEFAULT_FOLLOW_STATUSES]
|
||||
}
|
||||
@@ -1226,7 +1225,7 @@ tableEl: planTableWrapRef,
|
||||
activePlanTypeTab.value = 'pending_arrange'
|
||||
searchForm.planNo = ''
|
||||
searchForm.planType = ''
|
||||
searchForm.followStatus = ['pending_arrange']
|
||||
searchForm.followStatus = ['pending_arrange', 'drafting']
|
||||
searchForm.customerName = ''
|
||||
searchForm.productName = ''
|
||||
searchForm.licensePlate = ''
|
||||
@@ -1317,7 +1316,10 @@ tableEl: planTableWrapRef,
|
||||
}
|
||||
|
||||
function canWaitNotice(row: Plan) {
|
||||
return row.followStatus === 'pending_arrange' && row.archiveStatus !== 'archived'
|
||||
return (
|
||||
(row.followStatus === 'pending_arrange' || row.followStatus === 'drafting') &&
|
||||
row.archiveStatus !== 'archived'
|
||||
)
|
||||
}
|
||||
|
||||
function canCancelWaitNotice(row: Plan) {
|
||||
|
||||
Reference in new issue
Block a user