fix: 优化日计划操作栏展示
This commit is contained in:
@@ -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' } },
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -126,6 +126,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
auth: ['lms:daily-plan:query'],
|
||||
onClick: handleDetail.bind(null, row),
|
||||
},
|
||||
]"
|
||||
:drop-down-actions="[
|
||||
{
|
||||
label: '编辑',
|
||||
type: 'link',
|
||||
|
||||
@@ -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' } },
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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') },
|
||||
|
||||
Reference in New Issue
Block a user