feat:【ele】【erp】stock 的迁移(100%)- move、out

This commit is contained in:
YunaiV
2025-11-16 18:41:46 +08:00
parent cb9aaa338c
commit bb749844fe
4 changed files with 26 additions and 4 deletions

View File

@@ -307,7 +307,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
}, },
{ {
title: '操作', title: '操作',
width: 220, width: 260,
fixed: 'right', fixed: 'right',
slots: { default: 'actions' }, slots: { default: 'actions' },
}, },

View File

@@ -331,7 +331,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
}, },
{ {
title: '操作', title: '操作',
width: 220, width: 260,
fixed: 'right', fixed: 'right',
slots: { default: 'actions' }, slots: { default: 'actions' },
}, },

View File

@@ -158,6 +158,17 @@ const [Grid, gridApi] = useVbenVxeGrid({
auth: ['erp:stock-move:export'], auth: ['erp:stock-move:export'],
onClick: handleExport, onClick: handleExport,
}, },
{
label: '批量删除',
type: 'danger',
disabled: isEmpty(checkedIds),
icon: ACTION_ICON.DELETE,
auth: ['erp:stock-move:delete'],
popConfirm: {
title: `是否删除所选中数据?`,
confirm: handleDelete.bind(null, checkedIds),
},
},
]" ]"
/> />
</template> </template>
@@ -185,7 +196,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: row.status === 10 ? '审批' : '反审批', label: row.status === 10 ? '审批' : '反审批',
type: 'primary', type: 'primary',
link: true, link: true,
icon: row.status === 10 ? ACTION_ICON.AUDIT : ACTION_ICON.REJECT, icon: ACTION_ICON.AUDIT,
auth: ['erp:stock-move:update-status'], auth: ['erp:stock-move:update-status'],
popConfirm: { popConfirm: {
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`, title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,

View File

@@ -158,6 +158,17 @@ const [Grid, gridApi] = useVbenVxeGrid({
auth: ['erp:stock-out:export'], auth: ['erp:stock-out:export'],
onClick: handleExport, onClick: handleExport,
}, },
{
label: '批量删除',
type: 'danger',
disabled: isEmpty(checkedIds),
icon: ACTION_ICON.DELETE,
auth: ['erp:stock-out:delete'],
popConfirm: {
title: `是否删除所选中数据?`,
confirm: handleDelete.bind(null, checkedIds),
},
},
]" ]"
/> />
</template> </template>
@@ -185,7 +196,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: row.status === 10 ? '审批' : '反审批', label: row.status === 10 ? '审批' : '反审批',
type: 'primary', type: 'primary',
link: true, link: true,
icon: row.status === 10 ? ACTION_ICON.AUDIT : ACTION_ICON.REJECT, icon: ACTION_ICON.AUDIT,
auth: ['erp:stock-out:update-status'], auth: ['erp:stock-out:update-status'],
popConfirm: { popConfirm: {
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`, title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,