Browse Source

生产bug修复

master
ljlong_2630 1 month ago
parent
commit
ca0834714d
  1. 2
      src/views/eam/basic/applicantInfoConfig/index.vue
  2. 2
      src/views/eam/basic/assetsAccount/index.vue
  3. 2
      src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts
  4. 4
      src/views/eam/basic/deviceMaintenance/index.vue
  5. 2
      src/views/eam/basic/inspection/index.vue
  6. 2
      src/views/eam/basic/item/index.vue
  7. 29
      src/views/eam/basic/item/item.data.ts
  8. 4
      src/views/eam/basic/moldInspection/index.vue
  9. 2
      src/views/eam/basic/moldMaintenance/index.vue
  10. 18
      src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts
  11. 2
      src/views/eam/device/deviceAccounts/index.vue
  12. 2
      src/views/eam/device/deviceMaintainPlan/index.vue
  13. 2
      src/views/eam/device/deviceRepair/index.vue
  14. 2
      src/views/eam/device/deviceSpotInspectionRecordMain/index.vue
  15. 2
      src/views/eam/device/deviceinspectionjob/index.vue
  16. 2
      src/views/eam/device/devicemaintainjob/index.vue
  17. 4
      src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts
  18. 7
      src/views/eam/device/devicemaintenancejob/index.vue
  19. 2
      src/views/eam/device/techRepair/index.vue
  20. 5
      src/views/eam/device/techmaintenancejob/index.vue
  21. 2
      src/views/eam/item/itemAccounts/index.vue
  22. 37
      src/views/eam/item/itemLocationReplace/itemLocationReplace.data.ts
  23. 2
      src/views/eam/item/itemMaintenance/index.vue
  24. 2
      src/views/eam/mold/moldAccounts/index.vue
  25. 3
      src/views/eam/mold/moldAccounts/moldAccounts.data.ts
  26. 2
      src/views/eam/mold/moldMaintainPlan/index.vue
  27. 2
      src/views/eam/mold/moldRepair/index.vue
  28. 2
      src/views/eam/mold/moldSpotInspectionRecordMain/index.vue
  29. 4
      src/views/eam/mold/moldinspectionjob/index.vue
  30. 1
      src/views/eam/mold/moldinspectionjob/moldInspectionMain.data.ts
  31. 2
      src/views/eam/mold/moldmaintainjob/index.vue
  32. 11
      src/views/eam/mold/moldmaintenancejob/index.vue
  33. 51
      src/views/eam/mold/moldmaintenancejob/moldMaintenanceMain.data.ts

2
src/views/eam/basic/applicantInfoConfig/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, '编号', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>

2
src/views/eam/basic/assetsAccount/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, '固定资产台账', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>

2
src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts

@ -9,6 +9,8 @@ export const DeviceMaintenanceRules = reactive({
type: [required],
status: [required],
concurrencyStamp: [required],
executionCycle:[required],
estimatedMinutes: [required],
})
export const DeviceMOLD = useCrudSchemas(reactive<CrudSchema[]>([

4
src/views/eam/basic/deviceMaintenance/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, '设备保养编号', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
@ -56,7 +56,7 @@
<Dialog
ref="updateDialog"
title="本次修改修改描述"
title="本次修改内容描述"
v-model="dialogVisible"
:width="600"
:maxHeight="700"

2
src/views/eam/basic/inspection/index.vue

@ -56,7 +56,7 @@
<Dialog
ref="updateDialog"
title="本次修改修改描述"
title="本次修改内容描述"
v-model="dialogVisible"
:width="600"
:maxHeight="700"

2
src/views/eam/basic/item/index.vue

@ -250,7 +250,7 @@
if (data.expireTime == 0) data.expireTime = null
data.fileInfoList = []
for (let i = 0; i < data.attachmentFileList.length; i++) {
data.filePathList.push(data.attachmentFileList[i].url)
// data.filePathList.push(data.attachmentFileList[i].url)
data.fileInfoList.push(data.attachmentFileList[i])
}
if (formType === 'create') {

29
src/views/eam/basic/item/item.data.ts

@ -1,3 +1,4 @@
import { setComponentProps } from '@/components/Form/src/helper'
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
@ -14,6 +15,9 @@ export const ItemRules = reactive({
classification: [
{ required: true, message: '请选择备件分类', trigger: 'blur' },
],
describes: [
{ max: 600, message: '不得超过600个字符', trigger: 'blur' }
],
})
export const Item = useCrudSchemas(reactive<CrudSchema[]>([
@ -275,12 +279,21 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
label: '描述',
field: 'describes',
sort: 'custom',
form: {
component: 'Input',
componentProps: {
type: 'textarea',
},
colProps: {
span: 24,
}
}
},
{
label: '图片',
field: 'upload',
isTable: true,
},
// {
// label: '图片',
// field: 'upload',
// isTable: true,
// },
// {
// label: '文件',
// field: 'filePathListView',
@ -303,9 +316,9 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
table: {
},
form: {
component: 'UploadFile',
componentProps: {
component: 'UploadImgs',
colProps: {
span: 24
}
}
},

4
src/views/eam/basic/moldInspection/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, '编号', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
@ -54,7 +54,7 @@
<Detail ref="detailRef" :isBasic="true" :allSchemas="DeviceMoldItems.allSchemas" />
<Dialog
ref="updateDialog"
title="本次修改修改描述"
title="本次修改内容描述"
v-model="dialogVisible"
:width="600"
:maxHeight="700"

2
src/views/eam/basic/moldMaintenance/index.vue

@ -55,7 +55,7 @@
<Dialog
ref="updateDialog"
title="本次修改修改描述"
title="本次修改内容描述"
v-model="dialogVisible"
:width="600"
:maxHeight="700"

18
src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts

@ -9,6 +9,8 @@ export const MoldMaintenanceRules = reactive({
type: [required],
status: [required],
concurrencyStamp: [required],
executionCycle: [required],
estimatedMinutes: [required],
})
export const DeviceMOLD = useCrudSchemas(reactive<CrudSchema[]>([
@ -182,22 +184,6 @@ export const MoldMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
}
},
},
{
label: '保养所需时间(分钟)',
field: 'estimatedMinutes',
sort: 'custom',
isSearch: false,
table: {
width: 200,
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 0
}
},
},
// {
// label: '是否可用',
// field: 'available',

2
src/views/eam/device/deviceAccounts/index.vue

@ -16,7 +16,7 @@
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort">
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '编号', row.number)">
<el-button type="primary" link @click="openDetail(row, '设备台账编号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>

2
src/views/eam/device/deviceMaintainPlan/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, '保养计划编号', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>

2
src/views/eam/device/deviceRepair/index.vue

@ -15,7 +15,7 @@
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort">
<template #code="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, '报修编号', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>

2
src/views/eam/device/deviceSpotInspectionRecordMain/index.vue

@ -32,7 +32,7 @@
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)">
<el-button type="primary" link @click="openDetail(row, '巡检工单编号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>

2
src/views/eam/device/deviceinspectionjob/index.vue

@ -23,7 +23,7 @@
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)">
<el-button type="primary" link @click="openDetail(row, '检修工单编号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>

2
src/views/eam/device/devicemaintainjob/index.vue

@ -32,7 +32,7 @@
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)">
<el-button type="primary" link @click="openDetail(row, '保养工单编号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>

4
src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts

@ -724,7 +724,9 @@ export const DeviceMaintenanceDetailRules = reactive({
required,
{ max: 200, message: '不得超过200个字符', trigger: 'blur' },
],
maintenances: [required],
maintenances: [
{ required: true, message: '维修人不能为空', trigger: 'blur' },
],
})

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

@ -32,7 +32,7 @@
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)">
<el-button type="primary" link @click="openDetail(row, '维修工单编号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>
@ -714,7 +714,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'acceptOrder') {
acceptOrder(row)
} else if (val == 'repair') {
openDetail(row, '代码', row.number)
openDetail(row, '维修工单编号', row.number)
} else if (val == 'turnOrder') {
turnOrder('turnOrder', row)
} else if (val == 'finishOrder') {
@ -734,7 +734,7 @@ const buttonTableClick = async (val, row) => {
const openForm = async (type: string, row?: any) => {
if(type == 'update'){
row.classes = String(row.classes?row.classes:'')
row.classes = String(row.classes||row.classes==0?row.classes:'')
}
tableData.value = [] //
await DeviceAccountsApi.getDeviceAccountsNoPage({}).then(res => {
@ -747,6 +747,7 @@ const openForm = async (type: string, row?: any) => {
const openFormSec = async (type: string, row?: any) => {
tableData.value = [] //
newRow.value = { ...row }
newRow.value.classes = String(row.classes||row.classes==0?row.classes:'')
newRow.value.turnType = '0'
DeviceMaintenanceMainSecRules.classes = [{ required: false }]
DeviceMaintenanceMainSecRules.faultType = [{ required: false }]

2
src/views/eam/device/techRepair/index.vue

@ -15,7 +15,7 @@
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort">
<template #code="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, '报修编号', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>

5
src/views/eam/device/techmaintenancejob/index.vue

@ -32,7 +32,7 @@
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)">
<el-button type="primary" link @click="openDetail(row, '维修工单编号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>
@ -694,7 +694,7 @@ const openForm = async (type: string, row?: any) => {
}).value = 'TECH'
}
if(type == 'update'){
row.classes = String(row.classes)
row.classes = String(row.classes||row.classes==0?row.classes:'')
}
tableData.value = [] //
await DeviceAccountsApi.getDeviceAccountsNoPage({}).then(res => {
@ -708,6 +708,7 @@ const openFormSec = async (type: string, row?: any) => {
tableData.value = [] //
newRow.value = { ...row }
newRow.value.turnType = '0'
newRow.value.classes = String(row.classes||row.classes==0?row.classes:'')
DeviceMaintenanceMainSecRules.classes = [{ required: false }]
DeviceMaintenanceMainSecRules.faultType = [{ required: false }]
DeviceMaintenanceMainSecRules.describes = [{ required: false }]

2
src/views/eam/item/itemAccounts/index.vue

@ -32,7 +32,7 @@
v-model:sort="tableObject.sort"
>
<template #code="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, '备件台账编号', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>

37
src/views/eam/item/itemLocationReplace/itemLocationReplace.data.ts

@ -12,6 +12,9 @@ export const ItemLocationReplaceRules = reactive({
locationNumber: [required],
itemNumber: [required],
oldLocationNumber: [required],
ranks: [
{ max: 2000, message: '不得超过2000个字符', trigger: 'blur' },
]
})
export const ItemLocationReplace = useCrudSchemas(reactive<CrudSchema[]>([
@ -114,20 +117,18 @@ export const ItemLocationReplace = useCrudSchemas(reactive<CrudSchema[]>([
}
},
{
label: '变更时间',
field: 'createTime',
label: '描述',
field: 'ranks',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
form: {
component: 'Input',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
type: 'textarea',
}
},
isForm: false,
table: {
width: 170
},
},
{
label: '变更人',
@ -141,6 +142,22 @@ export const ItemLocationReplace = useCrudSchemas(reactive<CrudSchema[]>([
width: 170
},
},
{
label: '变更时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
isForm: false,
},
// {
// label: '操作',
// field: 'action',

2
src/views/eam/item/itemMaintenance/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, '维修工单编号', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>

2
src/views/eam/mold/moldAccounts/index.vue

@ -32,7 +32,7 @@
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '编号', row.number)">
<el-button type="primary" link @click="openDetail(row, '模具台账编号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>

3
src/views/eam/mold/moldAccounts/moldAccounts.data.ts

@ -227,6 +227,9 @@ export const MoldAccounts = useCrudSchemas(reactive<CrudSchema[]>([
type: 'datetime',
valueFormat: 'x'
}
},
detail:{
dateFormat:'YYYY-MM-DD'
}
},
{

2
src/views/eam/mold/moldMaintainPlan/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, '保养计划工单编号', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>

2
src/views/eam/mold/moldRepair/index.vue

@ -15,7 +15,7 @@
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort">
<template #code="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, '报修工单编号', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>

2
src/views/eam/mold/moldSpotInspectionRecordMain/index.vue

@ -32,7 +32,7 @@
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)">
<el-button type="primary" link @click="openDetail(row, '巡检工单编号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>

4
src/views/eam/mold/moldinspectionjob/index.vue

@ -23,7 +23,7 @@
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)">
<el-button type="primary" link @click="openDetail(row, '检修工单编号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>
@ -547,7 +547,7 @@ const detailSubmitForm = async (formType, data, formRef, tableList) => {
estimatedMinutes: data.estimatedMinutes,
actualMinutes: data.actualMinutes,
chargePeoples: data.chargePeoples.join(','),
completionTime: data.completionTime,
completionTime: data.completionTime?data.completionTime:null,
engineer: data.engineer,
uncompleted: data.uncompleted,
itemNumbers: data.itemNumbers,

1
src/views/eam/mold/moldinspectionjob/moldInspectionMain.data.ts

@ -20,6 +20,7 @@ const moldListAll = await MoldAccountsApi.getMoldAccountsAllNoPage({})
const moldListByFactory = moldListAll.filter(item => item.factoryAreaNumber == userStore.userSelfInfo.deptId)
const userList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 })
const dutyUserList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: null })
dutyUserList.push({ name:userStore.user.nickname,id:userStore.user.id,deptId:userStore.userSelfInfo.deptId })
const engineerList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 2})
const repairList = await MoldMaintenanceMainApi.getMoldMainTempList('MOLD')
// 表单校验

2
src/views/eam/mold/moldmaintainjob/index.vue

@ -32,7 +32,7 @@
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)">
<el-button type="primary" link @click="openDetail(row, '保养工单编号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>

11
src/views/eam/mold/moldmaintenancejob/index.vue

@ -32,7 +32,7 @@
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)">
<el-button type="primary" link @click="openDetail(row, '维修工单编号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>
@ -548,7 +548,7 @@ const buttonTableClick = async (val, row) => {
const openForm = async (type: string, row?: any) => {
if(type == 'update'){
row.classes = String(row.classes)
row.classes = String(row.classes||row.classes==0?row.classes:'')
}
await MoldAccountsApi.getMoldAccountsNoPage({}).then(res => {
MoldMaintenanceMain.allSchemas.formSchema.find(item => {
@ -913,6 +913,7 @@ const openFormSec = async (type: string, row?: any) => {
tableData.value = [] //
newRow.value = { ...row }
newRow.value.turnType = '0'
newRow.value.classes = String(row.classes||row.classes==0?row.classes:'')
MoldMaintenanceMainSecRules.classes = [{ required: false }]
MoldMaintenanceMainSecRules.faultType = [{ required: false }]
MoldMaintenanceMainSecRules.describes = [{ required: false }]
@ -1065,7 +1066,7 @@ const onChangeSec = (field, cur, item,formRefSec) => {
setV['deviceNumber'] = newRow.value.deviceNumber
setV['type'] = newRow.value.type
formRefSec.setValues(setV)
MoldMaintenanceMainSecRules.maintenance = [{ required: true }]
MoldMaintenanceMainSecRules.maintenance = [{ required: true, message: '维修人不能为空', trigger: 'blur' },]
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => {
return item.field == 'type'
}).componentProps.disabled = true
@ -1106,8 +1107,8 @@ const onChangeSec = (field, cur, item,formRefSec) => {
formRefSec.setValues(setV)
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => {
return item.field == 'maintenance'
}).componentProps.disabled = false
MoldMaintenanceMainSecRules.maintenance = [{ required: true }]
}).componentProps.disabled = false
MoldMaintenanceMainSecRules.maintenance = [{ required: true, message: '维修人不能为空', trigger: 'blur' },]
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => {
return item.field == 'maintenance'
}).componentProps.options = res

51
src/views/eam/mold/moldmaintenancejob/moldMaintenanceMain.data.ts

@ -8,6 +8,8 @@ import * as ItemApi from '@/api/eam/basic/item'
import * as UserApi from '@/api/system/user'
import { getStrDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import Message from '@/layout/components/Message/src/Message.vue'
import { t } from '@/hooks/web/useI18n'
const userListAll = await UserApi.getSimpleUserList()
console.log(userListAll)
const userStore = useUserStore()
@ -546,19 +548,19 @@ export const MoldMaintenanceDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'maintenances',
sort: 'custom',
isDetail: false,
// formatter: (_: Recordable, __: TableColumn, cellValue) => {
// let cellValueList = []
// if (Array.isArray(cellValue)) {
// cellValueList = cellValue
// } else {
// cellValueList = cellValue ? cellValue.split(',') : [];
// }
// // const cellValueList = cellValue ? cellValue.split(',') : [];
// return userListAll
// .filter(item => cellValueList.includes(item.id.toString()))
// .map(item => item.nickname)
// .join(',');
// },
formatter: (_: Recordable, __: TableColumn, cellValue) => {
let cellValueList = []
if (Array.isArray(cellValue)) {
cellValueList = cellValue
} else {
cellValueList = cellValue ? cellValue.split(',') : [];
}
// const cellValueList = cellValue ? cellValue.split(',') : [];
return userListAll
.filter(item => cellValueList.includes(item.id.toString()))
.map(item => item.nickname)
.join(',');
},
isTable:false,
tableForm: {
type: 'Select',
@ -663,11 +665,19 @@ export const MoldMaintenanceDetail = useCrudSchemas(reactive<CrudSchema[]>([
]))
// 表单校验
export const MoldMaintenanceDetailRules = reactive({
describes: [required],
describes1: [required],
workOut: [required],
maintenance: [required],
itemNumbers: [required],
describes: [
required,
{ max: 200, message: '不得超过200个字符', trigger: 'blur' },
],
describes1: [
required,
{ max: 200, message: '不得超过200个字符', trigger: 'blur' },
],
workOut: [
required,
{ max: 200, message: '不得超过200个字符', trigger: 'blur' },
],
maintenances: [required],
})
@ -677,7 +687,10 @@ export const MoldMaintenanceMainSecRules = reactive({
requestNumber: [required],
deviceNumber: [required],
factoryAreaNumber: [required],
maintenance: [required],
maintenance: [
{
required: true, Message: '维修人不能为空', trigger: 'blur'
}],
turnType: [required],
type: [required],
classes: [required],

Loading…
Cancel
Save