From 598f9f61cda8da774eaaeb456fa55ff89d166c09 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 20 Mar 2024 11:51:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E4=BF=AE=E5=B7=A5=E5=8D=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deviceinspectionjob/deviceInspectionMain.data.ts | 8 ++++---- src/views/eam/device/deviceinspectionjob/index.vue | 6 +++--- src/views/eam/device/devicemaintenancejob/index.vue | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts b/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts index 0d40aeb..35efad3 100644 --- a/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts +++ b/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts @@ -6,7 +6,7 @@ import * as DeviceMaintenanceMainApi from '@/api/eam/device/deviceMaintenanceMai import { dateFormatter } from '@/utils/formatTime' import { ItemSearchTable } from '../../basic/item/item.data' import * as ItemApi from '@/api/eam/basic/item' -import { validateHanset, validateNumDot, validateNum, validateEmail } from '@/utils/validator' +import { validateHanset, validateInteger, validateNum } from '@/utils/validator' import * as UserApi from '@/api/system/user' import { useUserStore } from '@/store/modules/user' const userStore = useUserStore() @@ -18,7 +18,7 @@ const deviceListAll = await DeviceAccountsApi.getDeviceAccountsAllNoPage({}) const deviceListByFactory = deviceListAll.filter(item => item.factoryAreaNumber == userStore.userSelfInfo.dept.parentId) // const deviceListByFactoryAndStatus = deviceListByFactory.filter(item => item.status == '0') const userList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }) -const dutyUserList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: undefined }) +const dutyUserList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '' }) const repairList = await DeviceMaintenanceMainApi.getDeviceMainTempList('DEVICE') // 表单校验 export const DeviceInspectionMainRules = reactive({ @@ -316,11 +316,11 @@ export const DeviceInspectionDetailRules = reactive({ ], estimatedMinutes:[ required, - { validator:validateNum, message: '请输入数字格式', trigger: 'blur'} + { validator:validateNum, message: '请输入正整数', trigger: 'blur'}, ], number: [required], actualMinutes: [ - { validator:validateNum, message: '请输入数字格式', trigger: 'blur'} + { validator:validateNum, message: '请输入正整数', trigger: 'blur'}, ], maintenance: [required], }) diff --git a/src/views/eam/device/deviceinspectionjob/index.vue b/src/views/eam/device/deviceinspectionjob/index.vue index 96fea4b..17a5c01 100644 --- a/src/views/eam/device/deviceinspectionjob/index.vue +++ b/src/views/eam/device/deviceinspectionjob/index.vue @@ -410,7 +410,7 @@ const detailValidate = (data) => { return tag } // 子表提交 -const detailSubmitForm = async (formType, data, getList, formRef, tableList) => { +const detailSubmitForm = async (formType, data, formRef, tableList) => { console.log('data',data) try { let data1 = { @@ -452,9 +452,9 @@ const detailSubmitForm = async (formType, data, getList, formRef, tableList) => } }) - await formRef.getList() + await detailRef.value.getList() } finally { - formRef.value.formLoading = false + formRef.formLoading = false } } diff --git a/src/views/eam/device/devicemaintenancejob/index.vue b/src/views/eam/device/devicemaintenancejob/index.vue index 974dd52..9a37de3 100644 --- a/src/views/eam/device/devicemaintenancejob/index.vue +++ b/src/views/eam/device/devicemaintenancejob/index.vue @@ -716,7 +716,7 @@ const detailSubmitForm= async (formType,data,formRef,tableList) => { await getList() } finally { - formRef.value.formLoading = false + formRef.formLoading = false } }