You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
148 lines
2.7 KiB
148 lines
2.7 KiB
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
// 表单校验
|
|
export const MstrRules = reactive({
|
|
hflccHflcd: [required],
|
|
plProdLine: [required],
|
|
plMvarAcct: [required],
|
|
plCchgAcct: [required],
|
|
concurrencyStamp: [required],
|
|
})
|
|
|
|
export const Mstr = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '域代码',
|
|
field: 'plDomain',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '产品类',
|
|
field: 'plProdLine',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '产品描述',
|
|
field: 'plDesc',
|
|
sort: 'custom',
|
|
},
|
|
{
|
|
label: '物料差异账户',
|
|
field: 'plMvarAcct',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '成本重估账户',
|
|
field: 'plCchgAcct',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '废品差异账户',
|
|
field: 'plScrpAcct',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '盘点差异账户',
|
|
field: 'plDscrAcct',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '物料差异账户成本中心',
|
|
field: 'plMvarCc',
|
|
sort: 'custom',
|
|
},
|
|
{
|
|
label: '废品账户成本中心',
|
|
field: 'plScrpCc',
|
|
sort: 'custom',
|
|
},
|
|
{
|
|
label: '成本重估账户成本中心',
|
|
field: 'plCchgCc',
|
|
sort: 'custom',
|
|
},
|
|
{
|
|
label: '盘点差异账户成本中心',
|
|
field: 'plDscrCc',
|
|
sort: 'custom',
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isForm: false,
|
|
table: {
|
|
width: 180
|
|
},
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat : 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
style: {width:'100%'},
|
|
type: 'datetime',
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
valueFormat: 'x',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
table: {
|
|
width: 130
|
|
},
|
|
isForm: false,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
sort: 'custom',
|
|
isDetail: true,
|
|
isForm: false,
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
style: {width:'100%'},
|
|
type: 'datetime',
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
valueFormat: 'x',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater',
|
|
isDetail: true,
|
|
isForm: false,
|
|
isTable: true,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isForm: false,
|
|
table: {
|
|
width: 150,
|
|
fixed: 'right'
|
|
}
|
|
}
|
|
]))
|
|
|