|
|
@ -2,7 +2,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter2 } from '@/utils/formatTime' |
|
|
|
import { validateHanset, validateEmail } from '@/utils/validator' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import {validateTwoNum } from '@/utils/validator' |
|
|
|
import { validateTwoNum } from '@/utils/validator' |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
/** |
|
|
@ -14,7 +14,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
fixed: 'left' |
|
|
@ -23,9 +23,10 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '类型', |
|
|
|
field: 'type', |
|
|
|
dictType: DICT_TYPE.QUALITY_NOTIFICATION_TYPE, |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
@ -35,7 +36,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'description', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
@ -45,22 +46,22 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'detail', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
},{ |
|
|
|
}, { |
|
|
|
label: '优先级', |
|
|
|
field: 'priority', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -69,13 +70,13 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'status', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -84,13 +85,13 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'reporter', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -98,8 +99,27 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '报告时间', |
|
|
|
field: 'reportTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
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' |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
@ -108,8 +128,27 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '要求开始时间', |
|
|
|
field: 'requestStartTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
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' |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
@ -118,8 +157,27 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '要求结束时间', |
|
|
|
field: 'requestEndTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
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' |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
@ -127,9 +185,10 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '是否造成停机', |
|
|
|
field: 'whetherCausesMachineHalt', |
|
|
|
dictType: DICT_TYPE.FALSE_OR_TRUE, |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
@ -138,8 +197,27 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '停机开始时间', |
|
|
|
field: 'machineHaltStartTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
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' |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
@ -147,12 +225,27 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '停机结束时间', |
|
|
|
field: 'machineHaltEndTime', |
|
|
|
dictType: DICT_TYPE.INSPECTION_TYPE, |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
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: 'Select' |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -163,7 +256,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'coordinator', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
@ -173,7 +266,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'taskTemplateCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
@ -182,8 +275,27 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '完成时间', |
|
|
|
field: 'finishTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
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' |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
@ -194,7 +306,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'referenceNoticeCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
value: 0 |
|
|
|