|
@ -110,40 +110,40 @@ const updateFormValue = reactive({ |
|
|
const openDataOld = ref() |
|
|
const openDataOld = ref() |
|
|
const openDataNew = ref() |
|
|
const openDataNew = ref() |
|
|
const operatType = ref('') |
|
|
const operatType = ref('') |
|
|
const tzDeptId = ref() |
|
|
// const tzDeptId = ref() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
if(formField == 'deviceNumber' && val[0].factoryAreaNumber == tzDeptId.value){ |
|
|
// if(formField == 'deviceNumber' && val[0].factoryAreaNumber == tzDeptId.value){ |
|
|
DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
// DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
return item.field == 'executionCycle' |
|
|
// return item.field == 'executionCycle' |
|
|
}).componentProps.disabled = true |
|
|
// }).componentProps.disabled = true |
|
|
DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
// DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
return item.field == 'executionCycleMonth' |
|
|
// return item.field == 'executionCycleMonth' |
|
|
}).componentProps.disabled = false |
|
|
// }).componentProps.disabled = false |
|
|
DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
// DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
return item.field == 'executionCycleWeek' |
|
|
// return item.field == 'executionCycleWeek' |
|
|
}).componentProps.disabled = false |
|
|
// }).componentProps.disabled = false |
|
|
}else{ |
|
|
// }else{ |
|
|
DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
// DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
return item.field == 'executionCycle' |
|
|
// return item.field == 'executionCycle' |
|
|
}).componentProps.disabled = false |
|
|
// }).componentProps.disabled = false |
|
|
DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
// DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
return item.field == 'executionCycleMonth' |
|
|
// return item.field == 'executionCycleMonth' |
|
|
}).componentProps.disabled = true |
|
|
// }).componentProps.disabled = true |
|
|
DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
// DeviceMaintenance.allSchemas.formSchema.find(item=>{ |
|
|
return item.field == 'executionCycleWeek' |
|
|
// return item.field == 'executionCycleWeek' |
|
|
}).componentProps.disabled = true |
|
|
// }).componentProps.disabled = true |
|
|
} |
|
|
// } |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
setV['executionCycle'] = null |
|
|
setV['executionCycle'] = null |
|
|
setV['executionCycleMonth'] = null |
|
|
// setV['executionCycleMonth'] = null |
|
|
setV['executionCycleWeek'] = null |
|
|
// setV['executionCycleWeek'] = null |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 字段设置 更新主列表字段 |
|
|
// 字段设置 更新主列表字段 |
|
@ -212,13 +212,13 @@ const basicFormRef = ref() |
|
|
const openForm = (type: string, row?: any) => { |
|
|
const openForm = (type: string, row?: any) => { |
|
|
openDataOld.value = row |
|
|
openDataOld.value = row |
|
|
updateFormValue.remark = '' |
|
|
updateFormValue.remark = '' |
|
|
DeptApi.getSimpleDeptList().then(res=>{ |
|
|
// DeptApi.getSimpleDeptList().then(res=>{ |
|
|
res.forEach(item=>{ |
|
|
// res.forEach(item=>{ |
|
|
if(item.busiType == 'TZ'){ |
|
|
// if(item.busiType == 'TZ'){ |
|
|
tzDeptId.value = item.id |
|
|
// tzDeptId.value = item.id |
|
|
} |
|
|
// } |
|
|
}) |
|
|
// }) |
|
|
}) |
|
|
// }) |
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|