|
@ -1,5 +1,5 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const UnfinishedShipmentMainRules = reactive({ |
|
|
export const UnfinishedShipmentMainRules = reactive({ |
|
@ -31,6 +31,36 @@ export const UnfinishedShipmentMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
isSearch: true |
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '发货日期', |
|
|
|
|
|
field: 'dueTime', |
|
|
|
|
|
formatter: dateFormatter2, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
|
|
|
}, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
search: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
type: 'daterange', |
|
|
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '发货类型', |
|
|
label: '发货类型', |
|
|
field: 'shipmentType', |
|
|
field: 'shipmentType', |
|
@ -59,6 +89,7 @@ export const UnfinishedShipmentMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'createTime', |
|
|
field: 'createTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
isSearch:false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -67,6 +98,15 @@ export const UnfinishedShipmentMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
style: {width:'100%'}, |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat : 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat : 'YYYY-MM-DD HH:mm:ss' |
|
|
}, |
|
|
}, |
|
@ -271,6 +311,15 @@ export const UnfinishedShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
style: {width:'100%'}, |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
hiddenInMain:true |
|
|
hiddenInMain:true |
|
|
}, |
|
|
}, |
|
|