feat:【ele】【erp】sale 的迁移(30%)- order
This commit is contained in:
@@ -448,7 +448,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
width: 220,
|
width: 260,
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
slots: { default: 'actions' },
|
slots: { default: 'actions' },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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:sale-order:update-status'],
|
auth: ['erp:sale-order: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:sale-order:delete'],
|
auth: ['erp:sale-order:delete'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
||||||
|
|||||||
@@ -517,7 +517,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
width: 220,
|
width: 260,
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
slots: { default: 'actions' },
|
slots: { default: 'actions' },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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:sale-out:update-status'],
|
auth: ['erp:sale-out: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:sale-out:delete'],
|
auth: ['erp:sale-out:delete'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
||||||
|
|||||||
@@ -504,7 +504,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
width: 220,
|
width: 260,
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
slots: { default: 'actions' },
|
slots: { default: 'actions' },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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:sale-return:update-status'],
|
auth: ['erp:sale-return: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:sale-return:delete'],
|
auth: ['erp:sale-return:delete'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
title: $t('ui.actionMessage.deleteConfirm', [row.no]),
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
disabled: formType === 'detail',
|
disabled: formType === 'detail',
|
||||||
placeholder: '选择付款时间',
|
placeholder: '选择付款时间',
|
||||||
type: 'datetime',
|
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
disabled: formType === 'detail',
|
disabled: formType === 'detail',
|
||||||
placeholder: '选择收款时间',
|
placeholder: '选择收款时间',
|
||||||
type: 'datetime',
|
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||||||
component: 'DatePicker',
|
component: 'DatePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
placeholder: '选择订单时间',
|
placeholder: '选择订单时间',
|
||||||
showTime: true,
|
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
|
|||||||
@@ -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-order:update-status'],
|
auth: ['erp:sale-order:update-status'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
|
title: `确认${row.status === 10 ? '审批' : '反审批'}${row.no}吗?`,
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
disabled: formType === 'detail',
|
disabled: formType === 'detail',
|
||||||
placeholder: '选择出库时间',
|
placeholder: '选择出库时间',
|
||||||
showTime: true,
|
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
disabled: formType === 'detail',
|
disabled: formType === 'detail',
|
||||||
placeholder: '选择退货时间',
|
placeholder: '选择退货时间',
|
||||||
showTime: true,
|
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||||||
component: 'DatePicker',
|
component: 'DatePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
placeholder: '选择盘点时间',
|
placeholder: '选择盘点时间',
|
||||||
showTime: true,
|
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||||||
component: 'DatePicker',
|
component: 'DatePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
placeholder: '选择入库时间',
|
placeholder: '选择入库时间',
|
||||||
showTime: true,
|
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||||||
component: 'DatePicker',
|
component: 'DatePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
placeholder: '选择调度时间',
|
placeholder: '选择调度时间',
|
||||||
showTime: true,
|
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||||||
component: 'DatePicker',
|
component: 'DatePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
placeholder: '选择出库时间',
|
placeholder: '选择出库时间',
|
||||||
showTime: true,
|
|
||||||
format: 'YYYY-MM-DD HH:mm:ss',
|
format: 'YYYY-MM-DD HH:mm:ss',
|
||||||
valueFormat: 'x',
|
valueFormat: 'x',
|
||||||
class: '!w-full',
|
class: '!w-full',
|
||||||
|
|||||||
Reference in New Issue
Block a user