feat:【ele】【erp】sale 的迁移(100%)- return

This commit is contained in:
YunaiV
2025-11-16 19:53:41 +08:00
parent 94a0c2e581
commit 6fa33f4a62
4 changed files with 14 additions and 12 deletions

View File

@@ -193,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.CHECK : ACTION_ICON.CLOSE, icon: ACTION_ICON.AUDIT,
auth: ['erp:sale-out:update-status'], auth: ['erp:sale-out:update-status'],
popConfirm: { popConfirm: {
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`, title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,

View File

@@ -6,7 +6,7 @@ import { ref } from 'vue';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { ElInput, ElMessage } from 'element-plus'; import { ElButton, ElDialog, ElInput, ElMessage } from 'element-plus';
import { useVbenVxeGrid } from '#/adapter/vxe-table'; import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { getSaleOrderPage } from '#/api/erp/sale/order'; import { getSaleOrderPage } from '#/api/erp/sale/order';
@@ -107,17 +107,18 @@ function handleOk() {
</div> </div>
</template> </template>
</ElInput> </ElInput>
<el-dialog <ElDialog
v-model="open" v-model="open"
title="选择关联订单" title="选择关联订单"
width="50%" width="50%"
@confirm="handleOk" @confirm="handleOk"
:append-to-body="true"
> >
<Grid class="max-h-[600px]" table-title="销售订单列表(仅展示可出库)" /> <Grid class="max-h-[600px]" table-title="销售订单列表(仅展示可出库)" />
<template #footer> <template #footer>
<el-button @click="open = false">取消</el-button> <ElButton @click="open = false">取消</ElButton>
<el-button type="primary" @click="handleOk">确定</el-button> <ElButton type="primary" @click="handleOk">确定</ElButton>
</template> </template>
</el-dialog> </ElDialog>
</div> </div>
</template> </template>

View File

@@ -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.CHECK : ACTION_ICON.CLOSE, icon: ACTION_ICON.AUDIT,
auth: ['erp:sale-return:update-status'], auth: ['erp:sale-return:update-status'],
popConfirm: { popConfirm: {
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`, title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,

View File

@@ -6,7 +6,7 @@ import { ref } from 'vue';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { ElInput, ElMessage } from 'element-plus'; import { ElButton, ElDialog, ElInput, ElMessage } from 'element-plus';
import { useVbenVxeGrid } from '#/adapter/vxe-table'; import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { getSaleOrderPage } from '#/api/erp/sale/order'; import { getSaleOrderPage } from '#/api/erp/sale/order';
@@ -107,17 +107,18 @@ function handleOk() {
</div> </div>
</template> </template>
</ElInput> </ElInput>
<el-dialog <ElDialog
v-model="open" v-model="open"
title="选择关联订单" title="选择关联订单"
width="50%" width="50%"
@confirm="handleOk" @confirm="handleOk"
:append-to-body="true"
> >
<Grid class="max-h-[600px]" table-title="销售订单列表(仅展示可退货)" /> <Grid class="max-h-[600px]" table-title="销售订单列表(仅展示可退货)" />
<template #footer> <template #footer>
<el-button @click="open = false">取消</el-button> <ElButton @click="open = false">取消</ElButton>
<el-button type="primary" @click="handleOk">确定</el-button> <ElButton type="primary" @click="handleOk">确定</ElButton>
</template> </template>
</el-dialog> </ElDialog>
</div> </div>
</template> </template>