Browse Source

EAM ——> 1、保养/维修临时工单 无法添加项

2、所有接单都先更新  执行人信息
         3、PDA  删除巡检项
master_hella_20240701
gaojs 5 months ago
parent
commit
130e537554
  1. 14
      src/views/eam/equipmentInspectionMain/finishForm2.vue
  2. 26
      src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts
  3. 14
      src/views/eam/equipmentMaintenanceMain/finishForm2.vue
  4. 14
      src/views/eam/equipmentRepairJobMain/finishForm2.vue
  5. 14
      src/views/eam/equipmentSpotCheckMain/finishForm2.vue

14
src/views/eam/equipmentInspectionMain/finishForm2.vue

@ -2,11 +2,11 @@
<Dialog v-model="dialogVisible" :title="dialogTitle" :close-on-click-modal="false">
<el-form ref="basicFormRef" v-loading="formLoading" :model="formData" :rules="formRules" label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="巡检人ID" prop="maintenancer">
<el-input v-model="formData.maintenancer" placeholder="请输入巡检人" :disabled="isDisabled"/>
</el-form-item>
</el-col>
<!-- <el-col :span="12">-->
<!-- <el-form-item label="巡检人ID" prop="maintenancer">-->
<!-- <el-input v-model="formData.maintenancer" placeholder="请输入巡检人" :disabled="isDisabled"/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="12">
<el-form-item label="巡检人电话" prop="maintenancePhone">
<el-input v-model="formData.maintenancePhone" placeholder="请输入巡检人电话" />
@ -72,16 +72,12 @@ const InputRef = ref<InstanceType<typeof ElInput>>()
const formData = ref({
id:'',
number:'',
maintenancer: '',
maintenancePhone: '',
startTime:'',
endTime:'',
status:'5',
})
const formRules = reactive({
maintenancer: [
{ required: true, message: '巡检人ID不能为空', trigger: 'blur' },
],
maintenancePhone: [
{ required: true, message: '巡检人电话不能为空', trigger: 'blur' },
],

26
src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts

@ -9,11 +9,15 @@ import * as ItemApi from "@/api/eam/relationMaintenancePlanItem";
import {validateroundNumber} from "@/utils/validator";
import {BasicFaultType} from "@/views/eam/basicFaultType/basicFaultType.data";
import * as BasicFaultTypeApi from "@/api/eam/basicFaultType";
import {BasicMaintenanceOption} from "@/views/eam/basicMaintenanceOption/basicMaintenanceOption.data";
import * as BasicMaintenanceOptionApi from "@/api/eam/basicMaintenanceOption";
// 表单校验
export const EquipmentMaintenanceMainRules = reactive({
number: [required],
sources: [required],
optionCode:[required],
equipmentCode: [required],
type: [required],
planStartTime: [required],
@ -112,6 +116,28 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
}
},
},
{
label: '保养方案',
field: 'optionCode',
sort: 'custom',
isSearch: true,
isTable: false,
form: {
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择保养方案', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '保养方案信息', // 查询弹窗标题
searchAllSchemas: BasicMaintenanceOption.allSchemas, // 查询弹窗所需类
searchPage: BasicMaintenanceOptionApi.getBasicMaintenanceOptionPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
},
},
{
label: '保养计划工单号',
field: 'planNumber',

14
src/views/eam/equipmentMaintenanceMain/finishForm2.vue

@ -2,11 +2,11 @@
<Dialog v-model="dialogVisible" :title="dialogTitle" :close-on-click-modal="false">
<el-form ref="basicFormRef" v-loading="formLoading" :model="formData" :rules="formRules" label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="保养人ID" prop="maintenancer">
<el-input v-model="formData.maintenancer" placeholder="请输入保养人" :disabled="isDisabled"/>
</el-form-item>
</el-col>
<!-- <el-col :span="12">-->
<!-- <el-form-item label="保养人ID" prop="maintenancer">-->
<!-- <el-input v-model="formData.maintenancer" placeholder="请输入保养人" :disabled="isDisabled"/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="12">
<el-form-item label="保养人电话" prop="maintenancePhone">
<el-input v-model="formData.maintenancePhone" placeholder="请输入保养人电话" />
@ -71,16 +71,12 @@ const InputRef = ref<InstanceType<typeof ElInput>>()
const formData = ref({
id:'',
number:'',
maintenancer: '',
maintenancePhone: '',
startTime:'',
endTime:'',
status:'5',
})
const formRules = reactive({
maintenancer: [
{ required: true, message: '保养人ID不能为空', trigger: 'blur' },
],
maintenancePhone: [
{ required: true, message: '保养人电话不能为空', trigger: 'blur' },
],

14
src/views/eam/equipmentRepairJobMain/finishForm2.vue

@ -40,11 +40,11 @@
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="执行人" prop="maintenancer">
<el-input v-model="formData.maintenancer" placeholder="请输入执行人"/>
</el-form-item>
</el-col>
<!-- <el-col :span="12">-->
<!-- <el-form-item label="执行人" prop="maintenancer">-->
<!-- <el-input v-model="formData.maintenancer" placeholder="请输入执行人"/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="12">
<el-form-item label="维修人电话" prop="maintenancePhone">
<el-input v-model="formData.maintenancePhone" placeholder="请输入维修人电话" />
@ -102,7 +102,6 @@ const formData = ref({
level: '',
startTime:'',
endTime:'',
maintenancer:'',
maintenancePhone:'',
completeResult:'',
status:'5'
@ -120,9 +119,6 @@ const formRules = reactive({
endTime: [
{ required: true, message: '结束时间不能为空', trigger: 'blur' },
],
maintenancer: [
{ required: true, message: '维修人ID不能为空', trigger: 'blur' },
],
maintenancePhone: [
{ required: true, message: '维修人电话不能为空', trigger: 'blur' },
],

14
src/views/eam/equipmentSpotCheckMain/finishForm2.vue

@ -2,11 +2,11 @@
<Dialog v-model="dialogVisible" :title="dialogTitle" :close-on-click-modal="false">
<el-form ref="basicFormRef" v-loading="formLoading" :model="formData" :rules="formRules" label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="巡检人ID" prop="maintenancer">
<el-input v-model="formData.maintenancer" placeholder="请输入巡检人" :disabled="isDisabled"/>
</el-form-item>
</el-col>
<!-- <el-col :span="12">-->
<!-- <el-form-item label="巡检人ID" prop="maintenancer">-->
<!-- <el-input v-model="formData.maintenancer" placeholder="请输入巡检人" :disabled="isDisabled"/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="12">
<el-form-item label="巡检人电话" prop="maintenancePhone">
<el-input v-model="formData.maintenancePhone" placeholder="请输入巡检人电话" />
@ -73,16 +73,12 @@ const InputRef = ref<InstanceType<typeof ElInput>>()
const formData = ref({
id:'',
number:'',
maintenancer: '',
maintenancePhone: '',
startTime:'',
endTime:'',
status:'5',
})
const formRules = reactive({
maintenancer: [
{ required: true, message: '巡检人ID不能为空', trigger: 'blur' },
],
maintenancePhone: [
{ required: true, message: '巡检人电话不能为空', trigger: 'blur' },
],

Loading…
Cancel
Save