fix: 优化日计划操作栏展示

This commit is contained in:
zhouz
2026-08-14 17:04:39 +08:00
parent 480ab45913
commit 63a6a44dde
4 changed files with 6 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ export function useGridColumns(): VxeTableGridOptions<LmsDailyPlanApi.DailyPlan>
},
{ field: 'updaterName', title: '修改人', minWidth: 110 },
{ field: 'updateTime', title: '修改时间', minWidth: 170, formatter: 'formatDateTime' },
{ title: '操作', width: 210, fixed: 'right', slots: { default: 'actions' } },
{ title: '操作', width: 150, fixed: 'right', slots: { default: 'actions' } },
];
}

View File

@@ -126,6 +126,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
auth: ['lms:daily-plan:query'],
onClick: handleDetail.bind(null, row),
},
]"
:drop-down-actions="[
{
label: '编辑',
type: 'link',

View File

@@ -57,6 +57,6 @@ export function useGridColumns(
cellRender: { name: 'CellDict', props: { type: DAILY_PLAN_DICT_TYPE.LMS_DAILY_PLAN_ORDER_STATUS } },
},
{ field: 'updateTime', title: '修改时间', minWidth: 170, formatter: 'formatDateTime' },
{ title: '操作', width: 310, fixed: 'right', slots: { default: 'actions' } },
{ title: '操作', width: 150, fixed: 'right', slots: { default: 'actions' } },
];
}

View File

@@ -254,6 +254,8 @@ onMounted(loadStrategies);
<TableAction
:actions="[
{ label: '详情', type: 'link', auth: ['lms:daily-plan:query'], onClick: handleDetail.bind(null, row) },
]"
:drop-down-actions="[
{ label: '开始备货', type: 'link', auth: ['lms:daily-plan:operate'], ifShow: activeWorkType === '1' && row.orderStatus === ORDER_IN_PROGRESS && row.stockingStatus === WORK_NOT_STARTED, onClick: handleStartWork.bind(null, row, 'stocking') },
{ label: '取消备货', type: 'link', danger: true, auth: ['lms:daily-plan:operate'], ifShow: activeWorkType === '1' && row.orderStatus === ORDER_IN_PROGRESS && isCancelableWorkStatus(row.stockingStatus), onClick: handleOperation.bind(null, row, 'cancelStocking') },
{ label: '恢复备货', type: 'link', auth: ['lms:daily-plan:operate'], ifShow: activeWorkType === '1' && row.orderStatus === ORDER_IN_PROGRESS && row.stockingStatus === WORK_CANCELED, onClick: handleOperation.bind(null, row, 'restoreStocking') },