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