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 => {
return item.field == 'maintenance'
}).componentProps.disabled = true
DeviceMaintenanceMainSec.allSchemas.formSchema.find((item) => {
return item.field == 'type'
}).componentProps.disabled = true
// DeviceMaintenanceMainSec.allSchemas.formSchema.find((item) => {
// return item.field == 'type'
// }).componentProps.disabled = true
DeviceMaintenanceMainSec.allSchemas.formSchema.find((item) => {
return item.field == 'type'
}).value = 'DEVICE'
@ -813,7 +813,7 @@ const openFormSec = async (type: string, row?: any) => {
/** 详情操作 */
const detailRef = ref()
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');
}else{
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',
},
},
{
label: '保养计划单号',
field: 'planNumber',
sort: 'custom',
isSearch: false,
table: {
width: '150',
},
},
// {
// label: '保养计划单号',
// field: 'planNumber',
// sort: 'custom',
// isSearch: false,
// table: {
// width: '150',
// },
// },
{
label: '模具',
field: 'deviceNumber',
@ -256,43 +256,47 @@ export const MoldMaintainOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
width: '150',
},
},
// {
// label: '创建时间',
// field: 'createTime',
// sort: 'custom',
// formatter: dateFormatter,
// isSearch: 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')]
// }
// },
// isForm: false,
// },
// {
// label: '地点ID',
// field: 'siteId',
// sort: 'custom',
// isSearch: false,
// },
// {
// label: '是否可用',
// field: 'available',
// sort: 'custom',
// isSearch: false,
// },
// {
// label: '并发乐观锁',
// field: 'concurrencyStamp',
// sort: 'custom',
// form: {
// component: 'InputNumber',
// value: 0
// },
// },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: '150',
},
isSearch: false
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
isForm: false,
isSearch: 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')]
}
}
},
{
label: '操作',
field: 'action',

Loading…
Cancel
Save