|
@ -777,10 +777,15 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
return item.field == 'maintenance' |
|
|
return item.field == 'maintenance' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.options = res |
|
|
}) |
|
|
}) |
|
|
const setV = {} |
|
|
MoldAccountsApi.getMoldAccountsNoPage({}).then(res => { |
|
|
setV['deviceNumber'] = '' |
|
|
const setV = {} |
|
|
formRefSec.setValues(setV) |
|
|
setV['deviceNumber'] = '' |
|
|
} else if (cur == 'TECH') { |
|
|
formRefSec.setValues(setV) |
|
|
|
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
|
|
|
return item.field == 'deviceNumber' |
|
|
|
|
|
}).componentProps.options = res |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (cur == 'TECH') { |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'deviceNumber' |
|
|
return item.field == 'deviceNumber' |
|
|
}).componentProps.options = deviceList.value |
|
|
}).componentProps.options = deviceList.value |
|
@ -793,9 +798,14 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
return item.field == 'maintenance' |
|
|
return item.field == 'maintenance' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.options = res |
|
|
}) |
|
|
}) |
|
|
const setV = {} |
|
|
DeviceAccountsApi.getDeviceAccountsNoPage({}).then(res => { |
|
|
setV['deviceNumber'] = '' |
|
|
const setV = {} |
|
|
formRefSec.setValues(setV) |
|
|
setV['deviceNumber'] = '' |
|
|
|
|
|
formRefSec.setValues(setV) |
|
|
|
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
|
|
|
return item.field == 'deviceNumber' |
|
|
|
|
|
}).componentProps.options = res |
|
|
|
|
|
}) |
|
|
} else if(cur == 'DEVICE'){ |
|
|
} else if(cur == 'DEVICE'){ |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'deviceNumber' |
|
|
return item.field == 'deviceNumber' |
|
@ -806,12 +816,17 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
setV['maintenance'] = '' |
|
|
setV['maintenance'] = '' |
|
|
formRefSec.setValues(setV) |
|
|
formRefSec.setValues(setV) |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'maintenance' |
|
|
return item.field == 'maintenance' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.options = res |
|
|
|
|
|
}) |
|
|
|
|
|
DeviceAccountsApi.getDeviceAccountsNoPage({}).then(res => { |
|
|
|
|
|
const setV = {} |
|
|
|
|
|
setV['deviceNumber'] = '' |
|
|
|
|
|
formRefSec.setValues(setV) |
|
|
|
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
|
|
|
return item.field == 'deviceNumber' |
|
|
|
|
|
}).componentProps.options = res |
|
|
}) |
|
|
}) |
|
|
const setV = {} |
|
|
|
|
|
setV['deviceNumber'] = '' |
|
|
|
|
|
formRefSec.setValues(setV) |
|
|
|
|
|
} |
|
|
} |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'maintenance' |
|
|
return item.field == 'maintenance' |
|
@ -841,7 +856,7 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
MoldAccountsApi.getMoldAccountsAllNoPage({}) |
|
|
MoldAccountsApi.getMoldAccountsAllNoPage({}) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
moldList.value = res |
|
|
moldList.value = res |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'deviceNumber' |
|
|
return item.field == 'deviceNumber' |
|
|
}).componentProps.options = moldList.value |
|
|
}).componentProps.options = moldList.value |
|
|
}) |
|
|
}) |
|
@ -850,7 +865,7 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
DeviceAccountsApi.getDeviceAccountsAllNoPage({}) |
|
|
DeviceAccountsApi.getDeviceAccountsAllNoPage({}) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
deviceList.value = res |
|
|
deviceList.value = res |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'deviceNumber' |
|
|
return item.field == 'deviceNumber' |
|
|
}).componentProps.options = deviceList.value |
|
|
}).componentProps.options = deviceList.value |
|
|
}) |
|
|
}) |
|
|