feat:【ele】【erp】stock 的迁移(50%)- in
This commit is contained in:
@@ -196,6 +196,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
{
|
{
|
||||||
label: row.status === 10 ? '审批' : '反审批',
|
label: row.status === 10 ? '审批' : '反审批',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
|
icon: ACTION_ICON.AUDIT,
|
||||||
auth: ['erp:stock-check:update-status'],
|
auth: ['erp:stock-check:update-status'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
|
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
|
||||||
@@ -210,6 +211,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
label: $t('common.delete'),
|
label: $t('common.delete'),
|
||||||
type: 'link',
|
type: 'link',
|
||||||
danger: true,
|
danger: true,
|
||||||
|
icon: ACTION_ICON.DELETE,
|
||||||
auth: ['erp:stock-check:delete'],
|
auth: ['erp:stock-check:delete'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
{
|
{
|
||||||
label: row.status === 10 ? '审批' : '反审批',
|
label: row.status === 10 ? '审批' : '反审批',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
|
icon: ACTION_ICON.AUDIT,
|
||||||
auth: ['erp:stock-in:update-status'],
|
auth: ['erp:stock-in:update-status'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
|
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
|
||||||
@@ -207,6 +208,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
label: $t('common.delete'),
|
label: $t('common.delete'),
|
||||||
type: 'link',
|
type: 'link',
|
||||||
danger: true,
|
danger: true,
|
||||||
|
icon: ACTION_ICON.DELETE,
|
||||||
auth: ['erp:stock-in:delete'],
|
auth: ['erp:stock-in:delete'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
||||||
|
|||||||
@@ -196,6 +196,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
{
|
{
|
||||||
label: row.status === 10 ? '审批' : '反审批',
|
label: row.status === 10 ? '审批' : '反审批',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
|
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}吗?`,
|
||||||
@@ -210,6 +211,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
label: $t('common.delete'),
|
label: $t('common.delete'),
|
||||||
type: 'link',
|
type: 'link',
|
||||||
danger: true,
|
danger: true,
|
||||||
|
icon: ACTION_ICON.DELETE,
|
||||||
auth: ['erp:stock-move:delete'],
|
auth: ['erp:stock-move:delete'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
||||||
|
|||||||
@@ -196,6 +196,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
{
|
{
|
||||||
label: row.status === 10 ? '审批' : '反审批',
|
label: row.status === 10 ? '审批' : '反审批',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
|
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}吗?`,
|
||||||
@@ -210,6 +211,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
label: $t('common.delete'),
|
label: $t('common.delete'),
|
||||||
type: 'link',
|
type: 'link',
|
||||||
danger: true,
|
danger: true,
|
||||||
|
icon: ACTION_ICON.DELETE,
|
||||||
auth: ['erp:stock-out:delete'],
|
auth: ['erp:stock-out:delete'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
||||||
|
|||||||
@@ -196,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-check:update-status'],
|
auth: ['erp:stock-check:update-status'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
|
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
|
||||||
|
|||||||
@@ -275,7 +275,6 @@ onMounted(async () => {
|
|||||||
label: '删除',
|
label: '删除',
|
||||||
type: 'danger',
|
type: 'danger',
|
||||||
link: true,
|
link: true,
|
||||||
icon: 'ant-design:delete-outlined',
|
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: '确认删除该产品吗?',
|
title: '确认删除该产品吗?',
|
||||||
confirm: handleDelete.bind(null, row),
|
confirm: handleDelete.bind(null, row),
|
||||||
|
|||||||
@@ -155,6 +155,17 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
auth: ['erp:stock-in:export'],
|
auth: ['erp:stock-in:export'],
|
||||||
onClick: handleExport,
|
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>
|
</template>
|
||||||
@@ -182,7 +193,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-in:update-status'],
|
auth: ['erp:stock-in:update-status'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
|
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
|
||||||
|
|||||||
@@ -264,7 +264,6 @@ onMounted(async () => {
|
|||||||
label: '删除',
|
label: '删除',
|
||||||
type: 'danger',
|
type: 'danger',
|
||||||
link: true,
|
link: true,
|
||||||
icon: 'ant-design:delete-outlined',
|
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: '确认删除该产品吗?',
|
title: '确认删除该产品吗?',
|
||||||
confirm: handleDelete.bind(null, row),
|
confirm: handleDelete.bind(null, row),
|
||||||
|
|||||||
@@ -285,7 +285,6 @@ onMounted(async () => {
|
|||||||
label: '删除',
|
label: '删除',
|
||||||
type: 'danger',
|
type: 'danger',
|
||||||
link: true,
|
link: true,
|
||||||
icon: 'ant-design:delete-outlined',
|
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: '确认删除该产品吗?',
|
title: '确认删除该产品吗?',
|
||||||
confirm: handleDelete.bind(null, row),
|
confirm: handleDelete.bind(null, row),
|
||||||
|
|||||||
@@ -262,7 +262,6 @@ onMounted(async () => {
|
|||||||
label: '删除',
|
label: '删除',
|
||||||
type: 'danger',
|
type: 'danger',
|
||||||
link: true,
|
link: true,
|
||||||
icon: 'ant-design:delete-outlined',
|
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: '确认删除该产品吗?',
|
title: '确认删除该产品吗?',
|
||||||
confirm: handleDelete.bind(null, row),
|
confirm: handleDelete.bind(null, row),
|
||||||
|
|||||||
Reference in New Issue
Block a user