Browse Source

维修工单

master
zhang_li 9 months ago
parent
commit
224cfcbca8
  1. 7
      src/views/eam/device/devicemaintenancejob/index.vue

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

@ -145,6 +145,7 @@ import * as MoldAccountsApi from '@/api/eam/mold/moldAccounts'
import { useUserStore } from '@/store/modules/user'
import { selecUserByType } from '@/api/system/dept'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { emit } from 'process'
const deviceMoldTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE)
const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value != 'MOLD')
defineOptions({ name: 'DeviceMaintenanceMain' })
@ -680,7 +681,7 @@ const detailValidate = (data) => {
}
}
//
const detailSubmitForm= async (formType,data,getList,formRef,tableList) => {
const detailSubmitForm= async (formType,data,formRef,tableList) => {
try {
let data1 = {
id:data.id,
@ -701,7 +702,6 @@ const detailSubmitForm= async (formType,data,getList,formRef,tableList) => {
}
formRef.dialogVisible = false
//
await getList()
detailRef.value.tableObject.tableList.forEach(item=>{
if (item.itemNumbers?.length>0) {
let str = ''
@ -712,6 +712,9 @@ const detailSubmitForm= async (formType,data,getList,formRef,tableList) => {
}
})
await detailRef.value.getList()
await getList()
} finally {
formRef.value.formLoading = false
}

Loading…
Cancel
Save