feat:【ele】【erp】sale 的迁移(30%)- order

This commit is contained in:
YunaiV
2025-11-16 19:10:11 +08:00
parent 6e2e357fed
commit 94a0c2e581
16 changed files with 10 additions and 13 deletions

View File

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

View File

@@ -196,6 +196,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
{
label: row.status === 10 ? '审批' : '反审批',
type: 'link',
icon: ACTION_ICON.AUDIT,
auth: ['erp:sale-order: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:sale-order:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.no]),

View File

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

View File

@@ -193,6 +193,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
{
label: row.status === 10 ? '审批' : '反审批',
type: 'link',
icon: ACTION_ICON.AUDIT,
auth: ['erp:sale-out: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:sale-out:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.no]),

View File

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

View File

@@ -196,6 +196,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
{
label: row.status === 10 ? '审批' : '反审批',
type: 'link',
icon: ACTION_ICON.AUDIT,
auth: ['erp:sale-return: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:sale-return:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.no]),

View File

@@ -37,7 +37,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
componentProps: {
disabled: formType === 'detail',
placeholder: '选择付款时间',
type: 'datetime',
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
class: '!w-full',

View File

@@ -37,7 +37,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
componentProps: {
disabled: formType === 'detail',
placeholder: '选择收款时间',
type: 'datetime',
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
class: '!w-full',

View File

@@ -38,7 +38,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
component: 'DatePicker',
componentProps: {
placeholder: '选择订单时间',
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
class: '!w-full',

View File

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

View File

@@ -40,7 +40,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
componentProps: {
disabled: formType === 'detail',
placeholder: '选择出库时间',
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
class: '!w-full',

View File

@@ -40,7 +40,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
componentProps: {
disabled: formType === 'detail',
placeholder: '选择退货时间',
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
class: '!w-full',

View File

@@ -35,7 +35,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
component: 'DatePicker',
componentProps: {
placeholder: '选择盘点时间',
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
class: '!w-full',

View File

@@ -36,7 +36,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
component: 'DatePicker',
componentProps: {
placeholder: '选择入库时间',
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
class: '!w-full',

View File

@@ -35,7 +35,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
component: 'DatePicker',
componentProps: {
placeholder: '选择调度时间',
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
class: '!w-full',

View File

@@ -36,7 +36,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
component: 'DatePicker',
componentProps: {
placeholder: '选择出库时间',
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
class: '!w-full',