Browse Source

修改保养工单页面数据

master
叶佳兴 2 weeks ago
parent
commit
fbe213a3bb
  1. 8
      src/views/eam/device/devicemaintenancejob/index.vue
  2. 96
      src/views/eam/mold/moldmaintainjob/moldMaintainOrderMain.data.ts

8
src/views/eam/device/devicemaintenancejob/index.vue

@ -774,9 +774,9 @@ const openFormSec = async (type: string, row?: any) => {
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => {
return item.field == 'maintenance' return item.field == 'maintenance'
}).componentProps.disabled = true }).componentProps.disabled = true
DeviceMaintenanceMainSec.allSchemas.formSchema.find((item) => { // DeviceMaintenanceMainSec.allSchemas.formSchema.find((item) => {
return item.field == 'type' // return item.field == 'type'
}).componentProps.disabled = true // }).componentProps.disabled = true
DeviceMaintenanceMainSec.allSchemas.formSchema.find((item) => { DeviceMaintenanceMainSec.allSchemas.formSchema.find((item) => {
return item.field == 'type' return item.field == 'type'
}).value = 'DEVICE' }).value = 'DEVICE'
@ -813,7 +813,7 @@ const openFormSec = async (type: string, row?: any) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = async (row: any, titleName: any, titleValue: any) => { const openDetail = async (row: any, titleName: any, titleValue: any) => {
if(row.status == 'COMPLETED' || row.status == 'VERIFIED' || row.status == 'APPLYPASS'){ if(row.status == 'COMPLETED' || row.status == 'VERIFIED' || row.status == 'APPLYPASS' || row.status == 'APPROVEPASS'){
DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns.filter(item => item.field !== 'action'); DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns.filter(item => item.field !== 'action');
}else{ }else{
DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns; DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns;

96
src/views/eam/mold/moldmaintainjob/moldMaintainOrderMain.data.ts

@ -35,15 +35,15 @@ export const MoldMaintainOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'left', fixed: 'left',
}, },
}, },
{ // {
label: '保养计划单号', // label: '保养计划单号',
field: 'planNumber', // field: 'planNumber',
sort: 'custom', // sort: 'custom',
isSearch: false, // isSearch: false,
table: { // table: {
width: '150', // width: '150',
}, // },
}, // },
{ {
label: '模具', label: '模具',
field: 'deviceNumber', field: 'deviceNumber',
@ -256,43 +256,47 @@ export const MoldMaintainOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
width: '150', width: '150',
}, },
}, },
// { {
// label: '创建时间', label: '创建者',
// field: 'createTime', field: 'creator',
// sort: 'custom', sort: 'custom',
// formatter: dateFormatter, table: {
// isSearch: false, width: '150',
// search: { },
// component: 'DatePicker', isSearch: false
// componentProps: { },
// valueFormat: 'YYYY-MM-DD HH:mm:ss', {
// type: 'daterange', label: '创建时间',
// defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] field: 'createTime',
// } formatter: dateFormatter,
// }, detail: {
// isForm: false, dateFormat: 'YYYY-MM-DD HH:mm:ss'
// }, },
// { sort: 'custom',
// label: '地点ID', table: {
// field: 'siteId', width: 180
// sort: 'custom', },
// isSearch: false, isTable: true,
// }, form: {
// { component: 'DatePicker',
// label: '是否可用', componentProps: {
// field: 'available', style: { width: '100%' },
// sort: 'custom', type: 'datetime',
// isSearch: false, dateFormat: 'YYYY-MM-DD HH:mm:ss',
// }, valueFormat: 'x'
// { }
// label: '并发乐观锁', },
// field: 'concurrencyStamp', isForm: false,
// sort: 'custom', isSearch: true,
// form: { search: {
// component: 'InputNumber', component: 'DatePicker',
// value: 0 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: 'action', field: 'action',

Loading…
Cancel
Save