|
@ -3,7 +3,7 @@ import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const ItemRequestMainRules = reactive({ |
|
|
export const ItemRequestMainRules = reactive({ |
|
|
concurrencyStamp: [required], |
|
|
requestBillNo:[{required : true, message: '请输入删除时间', trigger: 'blur' }] |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
export const ItemRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const ItemRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
@ -24,6 +24,9 @@ export const ItemRequestMain = 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')] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -37,6 +40,7 @@ export const ItemRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'requestBillNo', |
|
|
field: 'requestBillNo', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
|
|
|
disabled: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '主键', |
|
|
label: '主键', |
|
@ -132,13 +136,20 @@ export const ItemRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '类型(1:叫料、2:补料)', |
|
|
label: '类型', |
|
|
field: 'requestType', |
|
|
field: 'requestType', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
form: { |
|
|
dictType: DICT_TYPE.MES_REQUEST_TYPE, |
|
|
component: 'SelectV2' |
|
|
dictClass: 'string', |
|
|
}, |
|
|
form: { |
|
|
|
|
|
component: 'Select', |
|
|
|
|
|
// componentProps:{
|
|
|
|
|
|
// options:[{label:'叫料',value:'1'},{label:'补料',value:'2'}]
|
|
|
|
|
|
// },
|
|
|
|
|
|
value:'1' |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
@ -154,6 +165,9 @@ export const ItemRequestMain = 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')] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -275,6 +289,9 @@ export const ItemRequestDetail = 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')] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -287,6 +304,7 @@ export const ItemRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|
field: 'action', |
|
|
field: 'action', |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150, |
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|