diff --git a/src/components/Detail/src/DetailDeviceLedger.vue b/src/components/Detail/src/DetailDeviceLedger.vue index a0bea80..e47f397 100644 --- a/src/components/Detail/src/DetailDeviceLedger.vue +++ b/src/components/Detail/src/DetailDeviceLedger.vue @@ -104,6 +104,7 @@ :pagination="{ total: tableObjectRef.total }" v-model:pageSize="tableObjectRef.pageSize" v-model:currentPage="tableObjectRef.currentPage" + :key="milestoneUpdateKey" > @@ -898,7 +898,6 @@ const buttonMilestoneClick = async (val, row) => { const submitDialogForm = async (type, row) => { await props.diaLogApiUpdate(row) dialogFormRef.value.dialogVisible = false - debugger await getList() milestoneUpdateKey.value += 1 } diff --git a/src/views/eam/device/deviceinspectionjob/index.vue b/src/views/eam/device/deviceinspectionjob/index.vue index 40780d5..80b85fd 100644 --- a/src/views/eam/device/deviceinspectionjob/index.vue +++ b/src/views/eam/device/deviceinspectionjob/index.vue @@ -90,6 +90,7 @@ import { useUserStore } from '@/store/modules/user' import { selectAllFactoryArea } from '@/api/system/dept' import * as UserApi from '@/api/system/user' import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts' +import * as DeviceMaintenanceMainApi from '@/api/eam/device/deviceMaintenanceMain' // import TableHead from '@/components/TableHead/src/TableHead.vue' // import ImportForm from '@/components/ImportForm/src/ImportForm.vue' @@ -217,6 +218,7 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = async (type: string, row?: any) => { + tableData.value = [] // 重置明细数据 const deviceListAll = await DeviceAccountsApi.getDeviceAccountsAllNoPage({}) const deviceList = await DeviceAccountsApi.getDeviceAccountsNoPage({}) if (type == 'update') { diff --git a/src/views/eam/device/devicemaintenancejob/index.vue b/src/views/eam/device/devicemaintenancejob/index.vue index 5952b9e..afb6452 100644 --- a/src/views/eam/device/devicemaintenancejob/index.vue +++ b/src/views/eam/device/devicemaintenancejob/index.vue @@ -613,8 +613,13 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ -const openForm = (type: string, row?: any) => { +const openForm = async (type: string, row?: any) => { tableData.value = [] // 重置明细数据 + await DeviceAccountsApi.getDeviceAccountsNoPage({}).then(res => { + DeviceMaintenanceMain.allSchemas.formSchema.find(item => { + return item.field == 'deviceNumber' + }).componentProps.options = res + }) formRef.value.open(type, row) } const openFormSec = async (type: string, row?: any) => { diff --git a/src/views/eam/mold/moldAccounts/index.vue b/src/views/eam/mold/moldAccounts/index.vue index e4965e3..8ac6f8a 100644 --- a/src/views/eam/mold/moldAccounts/index.vue +++ b/src/views/eam/mold/moldAccounts/index.vue @@ -391,9 +391,6 @@ const changeTabs = (item) => { } apiPage.value = MoldMilestoneApi.getMoldMilestonePage detailAllSchemas.value = MoldMilestone.allSchemas - // dialogFormAllSchemasRules.value = MoldMilestoneRules - // dialogFormAllSchemas.value = MoldMilestone.allSchemas - } tableObjectExtend.value = [ { diff --git a/src/views/eam/mold/moldinspectionjob/index.vue b/src/views/eam/mold/moldinspectionjob/index.vue index 8a58c12..3217865 100644 --- a/src/views/eam/mold/moldinspectionjob/index.vue +++ b/src/views/eam/mold/moldinspectionjob/index.vue @@ -219,6 +219,11 @@ const buttonTableClick = async (val, row) => { const basicFormRef = ref() const openForm = async (type: string, row?: any) => { tableData.value = [] // 重置明细数据 + await MoldAccountsApi.getMoldAccountsNoPage({}).then(res => { + MoldMaintenanceMain.allSchemas.formSchema.find(item => { + return item.field == 'deviceNumber' + }).componentProps.options = res + }) const res = await MoldInspectionMainApi.getMoldInspectionMainNoPage() const moldList = await MoldAccountsApi.getMoldAccountsNoPage({}) const repairList = await MoldMaintenanceMainApi.getMoldMainTempList('MOLD')