Browse Source

Merge remote-tracking branch 'origin/master'

master
zengqinyuan 3 weeks ago
parent
commit
a97f0c176b
  1. 14
      src/views/eam/device/devicemaintenancejob/index.vue
  2. 3
      src/views/eam/device/problemSharingPlatform/index.vue

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

@ -50,7 +50,7 @@
ref="formRef"
:rules="DeviceMaintenanceMainRules"
:formAllSchemas="DeviceMaintenanceMain.allSchemas"
:tableAllSchemas="DeviceMaintenanceDetail.allSchemas"
:tableAllSchemas="DeviceMaintenanceDetailFilter.allSchemas"
:tableFormRules="DeviceMaintenanceDetailRules"
:tableData="tableData"
:apiUpdate="DeviceMaintenanceMainApi.updateDeviceMaintenanceMain"
@ -70,7 +70,7 @@
ref="formRefSec"
:rules="DeviceMaintenanceMainSecRules"
:formAllSchemas="DeviceMaintenanceMainSec.allSchemas"
:tableAllSchemas="DeviceMaintenanceDetail.allSchemas"
:tableAllSchemas="DeviceMaintenanceDetailFilter.allSchemas"
:tableFormRules="DeviceMaintenanceDetailRules"
:tableData="tableData"
:apiUpdate="DeviceMaintenanceMainApi.updateDeviceMaintenanceMain"
@ -91,7 +91,7 @@
ref="detailRef"
:isBasic="false"
:allSchemas="DeviceMaintenanceMain.allSchemas"
:detailAllSchemas="DeviceMaintenanceDetail.allSchemas"
:detailAllSchemas="DeviceMaintenanceDetailFilter.allSchemas"
:detailAllSchemasRules="DeviceMaintenanceDetailRules"
:apiCreate="DeviceMaintenanceDetailApi.createDeviceMaintenanceDetail"
:apiUpdate="DeviceMaintenanceDetailApi.updateDeviceMaintenanceDetail"
@ -253,6 +253,8 @@ import { watch } from 'vue';
import dayjs from 'dayjs'
import * as RepairRelationApi from '@/api/eam/basic/repairRelation'
import * as InspectionApi from '@/api/eam/basic/inspection'
import { cloneDeep } from 'lodash-es'
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' })
@ -300,6 +302,7 @@ const confirmDialogLoading = ref(false)
const selectedOptions = ref([])
const options = ref([])
const isTemporaryShow = ref(false)
const DeviceMaintenanceDetailFilter = ref(cloneDeep(DeviceMaintenanceDetail))
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => {
@ -798,6 +801,11 @@ const openFormSec = async (type: string, row?: any) => {
/** 详情操作 */
const detailRef = ref()
const openDetail = async (row: any, titleName: any, titleValue: any) => {
if(row.status == 'COMPLETED' || row.status == 'VERIFIED'){
DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns.filter(item => item.field !== 'action');
}else{
DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns;
}
const userListAll = await UserApi.getSimpleUserList()
const factoryList = await selectAllFactoryArea()
const deviceListAll = await DeviceAccountsApi.getDeviceAccountsAllNoPage({})

3
src/views/eam/device/problemSharingPlatform/index.vue

@ -166,6 +166,9 @@ const formsSuccess = async (formType,data) => {
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
if (data.uploadImgs === "") data.uploadImgs = [];
if (data.uploadFiles === "") data.uploadFiles = [];
await ProblemSharingPlatformApi.createProblemSharingPlatform(data)
message.success(t('common.createSuccess'))
} else {

Loading…
Cancel
Save