feat:【ele】【erp】stock 的迁移(50%)- in

This commit is contained in:
YunaiV
2025-11-16 18:36:53 +08:00
parent 1810c5dc4a
commit cb9aaa338c
10 changed files with 21 additions and 6 deletions

View File

@@ -196,6 +196,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
{
label: row.status === 10 ? '审批' : '反审批',
type: 'link',
icon: ACTION_ICON.AUDIT,
auth: ['erp:stock-check:update-status'],
popConfirm: {
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
@@ -210,6 +211,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: $t('common.delete'),
type: 'link',
danger: true,
icon: ACTION_ICON.DELETE,
auth: ['erp:stock-check:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.no]),

View File

@@ -193,6 +193,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
{
label: row.status === 10 ? '审批' : '反审批',
type: 'link',
icon: ACTION_ICON.AUDIT,
auth: ['erp:stock-in:update-status'],
popConfirm: {
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
@@ -207,6 +208,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: $t('common.delete'),
type: 'link',
danger: true,
icon: ACTION_ICON.DELETE,
auth: ['erp:stock-in:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.no]),

View File

@@ -196,6 +196,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
{
label: row.status === 10 ? '审批' : '反审批',
type: 'link',
icon: ACTION_ICON.AUDIT,
auth: ['erp:stock-move:update-status'],
popConfirm: {
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
@@ -210,6 +211,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: $t('common.delete'),
type: 'link',
danger: true,
icon: ACTION_ICON.DELETE,
auth: ['erp:stock-move:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.no]),

View File

@@ -196,6 +196,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
{
label: row.status === 10 ? '审批' : '反审批',
type: 'link',
icon: ACTION_ICON.AUDIT,
auth: ['erp:stock-out:update-status'],
popConfirm: {
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
@@ -210,6 +211,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: $t('common.delete'),
type: 'link',
danger: true,
icon: ACTION_ICON.DELETE,
auth: ['erp:stock-out:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.no]),

View File

@@ -196,7 +196,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: row.status === 10 ? '审批' : '反审批',
type: 'primary',
link: true,
icon: row.status === 10 ? ACTION_ICON.AUDIT : ACTION_ICON.REJECT,
icon: ACTION_ICON.AUDIT,
auth: ['erp:stock-check:update-status'],
popConfirm: {
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,

View File

@@ -275,7 +275,6 @@ onMounted(async () => {
label: '删除',
type: 'danger',
link: true,
icon: 'ant-design:delete-outlined',
popConfirm: {
title: '确认删除该产品吗?',
confirm: handleDelete.bind(null, row),

View File

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

View File

@@ -264,7 +264,6 @@ onMounted(async () => {
label: '删除',
type: 'danger',
link: true,
icon: 'ant-design:delete-outlined',
popConfirm: {
title: '确认删除该产品吗?',
confirm: handleDelete.bind(null, row),

View File

@@ -285,7 +285,6 @@ onMounted(async () => {
label: '删除',
type: 'danger',
link: true,
icon: 'ant-design:delete-outlined',
popConfirm: {
title: '确认删除该产品吗?',
confirm: handleDelete.bind(null, row),

View File

@@ -262,7 +262,6 @@ onMounted(async () => {
label: '删除',
type: 'danger',
link: true,
icon: 'ant-design:delete-outlined',
popConfirm: {
title: '确认删除该产品吗?',
confirm: handleDelete.bind(null, row),