|
|
@ -1,6 +1,7 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import {Itembasic} from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data"; |
|
|
|
import * as ItembasicApi from "@/api/wms/itembasic"; |
|
|
|
import {dateFormatter} from "@/utils/formatTime"; |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const ItemSyntheticRelationRules = reactive({ |
|
|
@ -76,6 +77,56 @@ export const ItemSyntheticRelation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '生效时间', |
|
|
|
field: 'effectiveDate', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
isForm: true, |
|
|
|
isDetail: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')] |
|
|
|
} |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '失效时间', |
|
|
|
field: 'expirationDate', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
isForm: true, |
|
|
|
isDetail: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')] |
|
|
|
} |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|