feat:【ele】【erp】stock 的迁移(50%)- in
This commit is contained in:
@@ -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]),
|
||||
|
||||
@@ -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]),
|
||||
|
||||
@@ -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]),
|
||||
|
||||
@@ -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]),
|
||||
|
||||
@@ -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}吗?`,
|
||||
|
||||
@@ -275,7 +275,6 @@ onMounted(async () => {
|
||||
label: '删除',
|
||||
type: 'danger',
|
||||
link: true,
|
||||
icon: 'ant-design:delete-outlined',
|
||||
popConfirm: {
|
||||
title: '确认删除该产品吗?',
|
||||
confirm: handleDelete.bind(null, row),
|
||||
|
||||
@@ -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}吗?`,
|
||||
|
||||
@@ -264,7 +264,6 @@ onMounted(async () => {
|
||||
label: '删除',
|
||||
type: 'danger',
|
||||
link: true,
|
||||
icon: 'ant-design:delete-outlined',
|
||||
popConfirm: {
|
||||
title: '确认删除该产品吗?',
|
||||
confirm: handleDelete.bind(null, row),
|
||||
|
||||
@@ -285,7 +285,6 @@ onMounted(async () => {
|
||||
label: '删除',
|
||||
type: 'danger',
|
||||
link: true,
|
||||
icon: 'ant-design:delete-outlined',
|
||||
popConfirm: {
|
||||
title: '确认删除该产品吗?',
|
||||
confirm: handleDelete.bind(null, row),
|
||||
|
||||
@@ -262,7 +262,6 @@ onMounted(async () => {
|
||||
label: '删除',
|
||||
type: 'danger',
|
||||
link: true,
|
||||
icon: 'ant-design:delete-outlined',
|
||||
popConfirm: {
|
||||
title: '确认删除该产品吗?',
|
||||
confirm: handleDelete.bind(null, row),
|
||||
|
||||
Reference in New Issue
Block a user