Browse Source

EAM ——> 巡检工单 状态流转 前后端

master_hella_20240701
gaojs 5 months ago
parent
commit
a245463793
  1. 60
      src/api/eam/equipmentInspectionDetail/index.ts
  2. 24
      src/api/eam/equipmentInspectionMain/index.ts
  3. 57
      src/api/eam/relationInspectionPlanItem/index.ts
  4. 3
      src/utils/dict.ts
  5. 232
      src/views/eam/equipmentInspectionDetail/equipmentInspectionDetail.data.ts
  6. 244
      src/views/eam/equipmentInspectionDetail/index.vue
  7. 1055
      src/views/eam/equipmentInspectionMain/InspectionOrderDetail.vue
  8. 188
      src/views/eam/equipmentInspectionMain/equipmentInspectionMain.data.ts
  9. 143
      src/views/eam/equipmentInspectionMain/finishForm1.vue
  10. 150
      src/views/eam/equipmentInspectionMain/finishForm2.vue
  11. 291
      src/views/eam/equipmentInspectionMain/index.vue
  12. 25
      src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts
  13. 1
      src/views/eam/equipmentMaintenanceMain/finishForm2.vue
  14. 5
      src/views/eam/equipmentMaintenanceMain/index.vue
  15. 5
      src/views/eam/equipmentRepairJobMain/equipmentRepairJobMain.data.ts

60
src/api/eam/equipmentInspectionDetail/index.ts

@ -0,0 +1,60 @@
import request from '@/config/axios'
export interface EquipmentInspectionDetailVO {
id: number
number: string
masterId: number
completionTime: Date
uncompletedCause: string
result: string
name: string
content: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检工单子列表
export const getEquipmentInspectionDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-inspection-detail/senior', data })
} else {
return await request.get({ url: `/eam/equipment-inspection-detail/page`, params })
}
}
// 查询巡检工单子详情
export const getEquipmentInspectionDetail = async (id: number) => {
return await request.get({ url: `/eam/equipment-inspection-detail/get?id=` + id })
}
// 新增巡检工单子
export const createEquipmentInspectionDetail = async (data: EquipmentInspectionDetailVO) => {
return await request.post({ url: `/eam/equipment-inspection-detail/create`, data })
}
// 修改巡检工单子
export const updateEquipmentInspectionDetail = async (data: EquipmentInspectionDetailVO) => {
return await request.put({ url: `/eam/equipment-inspection-detail/update`, data })
}
// 删除巡检工单子
export const deleteEquipmentInspectionDetail = async (id: number) => {
return await request.delete({ url: `/eam/equipment-inspection-detail/delete?id=` + id })
}
// 导出巡检工单子 Excel
export const exportEquipmentInspectionDetail = async (params) => {
return await request.download({ url: `/eam/equipment-inspection-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-inspection-detail/get-import-template' })
}

24
src/api/eam/equipmentInspectionMain/index.ts

@ -1,4 +1,6 @@
import request from '@/config/axios'
import {EquipmentMainPartVO} from "@/api/eam/equipmentMainPart";
import {EquipmentMaintenanceMainVO} from "@/api/eam/equipmentMaintenanceMain";
export interface EquipmentInspectionMainVO {
id: number
@ -66,6 +68,11 @@ export const updateEquipmentInspectionMain = async (data: EquipmentInspectionMai
return await request.put({ url: `/eam/equipment-inspection-main/update`, data })
}
// 修改巡检工单主
export const updateEquipmentInspection = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/updateOrders`, data })
}
// 删除巡检工单主
export const deleteEquipmentInspectionMain = async (id: number) => {
return await request.delete({ url: `/eam/equipment-inspection-main/delete?id=` + id })
@ -79,4 +86,19 @@ export const exportEquipmentInspectionMain = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-inspection-main/get-import-template' })
}
}
// 修改保养工单状态
export const updateEquipmentInspectionOrder = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/updateOrder`, data })
}
//完成保养工单
export const executeEquipmentInspectionOrder = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/execute`, data })
}
//验证不通过,打回保养工单
export const backEquipmentInspectionOrder = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/fallback`, data })
}

57
src/api/eam/relationInspectionPlanItem/index.ts

@ -0,0 +1,57 @@
import request from '@/config/axios'
export interface RelationInspectionPlanItemVO {
id: number
planNumber: string
itemCode: string
itemName: string
isSelectd: boolean
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检计划和巡检项关系列表
export const getRelationInspectionPlanItemPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/relation-inspection-plan-item/senior', data })
} else {
return await request.get({ url: `/eam/relation-inspection-plan-item/page`, params })
}
}
// 查询巡检计划和巡检项关系详情
export const getRelationInspectionPlanItem = async (id: number) => {
return await request.get({ url: `/eam/relation-inspection-plan-item/get?id=` + id })
}
// 新增巡检计划和巡检项关系
export const createRelationInspectionPlanItem = async (data: RelationInspectionPlanItemVO) => {
return await request.post({ url: `/eam/relation-inspection-plan-item/create`, data })
}
// 修改巡检计划和巡检项关系
export const updateRelationInspectionPlanItem = async (data: RelationInspectionPlanItemVO) => {
return await request.put({ url: `/eam/relation-inspection-plan-item/update`, data })
}
// 删除巡检计划和巡检项关系
export const deleteRelationInspectionPlanItem = async (id: number) => {
return await request.delete({ url: `/eam/relation-inspection-plan-item/delete?id=` + id })
}
// 导出巡检计划和巡检项关系 Excel
export const exportRelationInspectionPlanItem = async (params) => {
return await request.download({ url: `/eam/relation-inspection-plan-item/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/relation-inspection-plan-item/get-import-template' })
}

3
src/utils/dict.ts

@ -364,6 +364,9 @@ export enum DICT_TYPE {
EAM_MAINTENANCE_SOURCES = 'eam_maintenance_sources', // 维保数据来源
EAM_MAINTENANCE_URGENCY = 'eam_maintenance_urgency', // 维保紧急程度
EAM_MAINTENANCE_LEVEL = 'eam_maintenance_level', // 维保维修级别
EAM_INSPECTION_SOURCES = 'eam_inspection_sources', // 巡检工单数据来源
EAM_SPOTCHECK_SOURCES = 'eam_spotcheck_sources', // 点检工单数据来源
EAM_BAOYANG_SOURCES = 'eam_baoyang_sources', // 保养工单数据来源
EAM_REPAIR_STATUS = 'eam_repair_status', // 维修状态
EAM_COMPLETE_RESULT = 'eam_complete_result', // 维修状态
OFF_BACK_STATUS = 'off_back_status',

232
src/views/eam/equipmentInspectionDetail/equipmentInspectionDetail.data.ts

@ -0,0 +1,232 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import * as ItemApi from "@/api/eam/relationInspectionPlanItem";
import {
RelationInspectionPlanItem
} from "@/views/eam/equipmentInspectionMain/equipmentInspectionMain.data";
// 表单校验
export const EquipmentInspectionDetailRules = reactive({
number: [required],
masterId: [required],
name: [required],
uncompletedCause:[{
required:false ,
message:'该项为必填项',
tagger:['blur','change']
}],
result: [
{
required:false ,
message:'该项为必填项',
tagger:['blur']
}],
})
export const EquipmentInspectionDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '巡检工单号',
field: 'number',
sort: 'custom',
isSearch: true,
form:{
componentProps: {
disabled: true
}
}
},
{
label: '主表id',
field: 'masterId',
sort: 'custom',
isSearch: true,
form:{
componentProps: {
disabled: true
}
}
},
{
label: '完成时间',
field: 'completionTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: true,
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')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
},
{
label: '未完成原因',
field: 'uncompletedCause',
sort: 'custom',
isSearch: true,
},
{
label: '结果枚举',
field: 'result',
sort: 'custom',
isSearch: true,
dictType: DICT_TYPE.IS_COMPLETED,
dictClass: 'string',
},
{
label: '巡检项名称',
field: 'name',
sort: 'custom',
isSearch: true,
isForm: true,
form: {
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择 非必选巡检项',
searchTitle: '非必选巡检项信息', // 查询弹窗标题
searchAllSchemas: RelationInspectionPlanItem.allSchemas, // 查询弹窗所需类
searchField: 'itemName', // 查询弹窗赋值字段
searchPage: ItemApi.getRelationInspectionPlanItemPage, // 查询弹窗所需分页方法
searchCondition: []
}
}
},
// {
// label: '巡检内容',
// field: 'content',
// sort: 'custom',
// isSearch: true,
// form: {
// componentProps: {
// type:"textarea",
// maxlength:"100"
// }
// }
// },
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: true,
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: '部门id',
field: 'departmentCode',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '备注',
field: 'remark',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '地点ID',
field: 'siteId',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '是否可用默认TRUE',
field: 'available',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '删除时间',
field: 'deletionTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
isTable: false,
isForm: false,
isDetail: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')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
},
{
label: '删除人id',
field: 'deleterId',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '并发乐观锁',
field: 'concurrencyStamp',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
form: {
component: 'InputNumber',
value: 0
},
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))

244
src/views/eam/equipmentInspectionDetail/index.vue

@ -0,0 +1,244 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="EquipmentInspectionDetail.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="EquipmentInspectionDetail.allSchemas"
/>
<!-- 列表 -->
<ContentWrap>
<Table
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
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)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="formsSuccess"
:rules="EquipmentInspectionDetailRules"
:formAllSchemas="EquipmentInspectionDetail.allSchemas"
:apiUpdate="EquipmentInspectionDetailApi.updateEquipmentInspectionDetail"
:apiCreate="EquipmentInspectionDetailApi.createEquipmentInspectionDetail"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="EquipmentInspectionDetail.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/eam/equipment-inspection-detail/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import { EquipmentInspectionDetail,EquipmentInspectionDetailRules } from './equipmentInspectionDetail.data'
import * as EquipmentInspectionDetailApi from '@/api/eam/equipmentInspectionDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'EquipmentInspectionDetail' })
const message = useMessage() //
const { t } = useI18n() //
const route = useRoute() //
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(EquipmentInspectionDetail.allSchemas.tableColumns)
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
})
}
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
const { tableObject, tableMethods } = useTable({
getListApi: EquipmentInspectionDetailApi.getEquipmentInspectionDetailPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:equipmentInspectionDetail:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:equipmentInspectionDetail:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:equipmentInspectionDetail:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:equipmentInspectionDetail:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:equipmentInspectionDetail:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
// form
const formsSuccess = async (formType,data) => {
var isHave =EquipmentInspectionDetail.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime';
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
message.error('失效时间要大于生效时间')
return;
}
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await EquipmentInspectionDetailApi.createEquipmentInspectionDetail(data)
message.success(t('common.createSuccess'))
} else {
await EquipmentInspectionDetailApi.updateEquipmentInspectionDetail(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicEquipmentInspectionDetail')
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await EquipmentInspectionDetailApi.deleteEquipmentInspectionDetail(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await EquipmentInspectionDetailApi.exportEquipmentInspectionDetail(tableObject.params)
download.excel(data, '巡检工单子.xlsx')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '巡检工单子导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await EquipmentInspectionDetailApi.importTemplate()
})
</script>

1055
src/views/eam/equipmentInspectionMain/InspectionOrderDetail.vue

File diff suppressed because it is too large

188
src/views/eam/equipmentInspectionMain/equipmentInspectionMain.data.ts

@ -4,6 +4,8 @@ import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import {Workshop} from "@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data";
import * as WorkshopApi from "@/api/wms/workshop";
import {BasicFaultType} from "@/views/eam/basicFaultType/basicFaultType.data";
import * as BasicFaultTypeApi from "@/api/eam/basicFaultType";
// 表单校验
export const EquipmentInspectionMainRules = reactive({
@ -38,6 +40,8 @@ export const EquipmentInspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '来源字典',
field: 'sources',
sort: 'custom',
dictType: DICT_TYPE.EAM_INSPECTION_SOURCES,
dictClass: 'string',
isSearch: false,
},
{
@ -232,6 +236,12 @@ export const EquipmentInspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: false,
},
{
label: '巡检人电话',
field: 'maintenancePhone',
sort: 'custom',
isSearch: false,
},
{
label: '完成时间',
field: 'completionTime',
@ -321,16 +331,31 @@ export const EquipmentInspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '故障类型枚举',
field: 'faultType',
sort: 'custom',
dictType: DICT_TYPE.FAILURE_REASON,
dictClass: 'string',
isSearch: true,
isSearch: false,
form: {
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择故障类型', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '故障类型信息', // 查询弹窗标题
searchAllSchemas: BasicFaultType.allSchemas, // 查询弹窗所需类
searchPage: BasicFaultTypeApi.getBasicFaultTypePage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
},
},
{
label: '所属厂区编号',
field: 'factoryAreaCode',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '车间编号',
@ -494,3 +519,160 @@ export const EquipmentInspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
}
}
]))
// 表单校验
export const RelationInspectionPlanItemRules = reactive({
planNumber: [required],
itemCode: [required],
itemName: [required],
concurrencyStamp: [required],
})
export const RelationInspectionPlanItem = useCrudSchemas(reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '计划编号',
field: 'planNumber',
sort: 'custom',
isSearch: true,
},
{
label: '项编号',
field: 'itemCode',
sort: 'custom',
isSearch: true,
},
{
label: '巡检项名称',
field: 'itemName',
sort: 'custom',
isSearch: true,
},
{
label: '是否必选',
field: 'isSelectd',
sort: 'custom',
isSearch: true,
dictType: DICT_TYPE.FALSE_OR_TRUE,
dictClass: 'string',
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
isTable: false,
isForm: false,
isDetail: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: '部门id',
field: 'departmentCode',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '备注',
field: 'remark',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '地点ID',
field: 'siteId',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '是否可用默认TRUE',
field: 'available',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '删除时间',
field: 'deletionTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
isTable: false,
isForm: false,
isDetail: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')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
},
{
label: '删除人id',
field: 'deleterId',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '并发乐观锁',
field: 'concurrencyStamp',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
form: {
component: 'InputNumber',
value: 0
},
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))

143
src/views/eam/equipmentInspectionMain/finishForm1.vue

@ -0,0 +1,143 @@
<template>
<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="验证人" prop="verifyer">
<el-input v-model="formData.verifyer" placeholder="请输入验证人" :disabled="isDisabled"/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="验证内容" prop="verifyContent">
<el-input v-model="formData.verifyContent" type="textarea" :input-style="{height:'100px'}" maxlength="300" placeholder="请输入验证内容" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="验证时间" prop="verifyTime">
<el-date-picker
v-model="formData.verifyTime"
type="datetime"
value-format="x"
placeholder="选择验证时间">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
<template #footer>
<el-button :disabled="formLoading" type="primary" @click="submitForm('success')"> </el-button>
<el-button @click="handleClose('close')"> </el-button>
</template>
</Dialog>
<!--添加巡检项弹窗-->
<SearchTable ref="searchTableRef" @searchTableSuccess="searchTableSuccess" />
</template>
<script lang="ts" setup>
import * as EquipmentMaintenanceMainApi from '@/api/eam/equipmentMaintenanceMain'
import * as EquipmentInspectionMainApi from '@/api/eam/equipmentInspectionMain'
import { SearchTable } from '@/components/SearchTable'
import {ElInput} from "element-plus";
defineOptions({ name: 'TeamForm' })
const { t } = useI18n() //
const message = useMessage() //
const dialogVisible = ref(false) //
const dialogTitle = ref('') //
const formLoading = ref(false) // 12
const formType = ref('') // create - update -
const tags=ref([])
const inputValue = ref('')
const inputVisible = ref(false)
const isDisabled = ref(false)
const InputRef = ref<InstanceType<typeof ElInput>>()
const formData = ref({
id:'',
number:'',
verifyer: '',
verifyContent: '',
verifyTime: '',
})
const formRules = reactive({
verifyer: [
{ required: true, message: '验证人不能为空', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
verifyContent: [
{ required: true, message: '验证内容不能为空', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
verifyTime: [
{ required: true, message: '验证时间不能为空', trigger: 'blur' },
],
})
const basicFormRef = ref() // Ref
/** 初始化弹窗 */
const open = async (type: string, row?: object) => {
dialogVisible.value = true
dialogTitle.value = t('action.' + type)
formType.value = type
//
formData.value.id = row.id
formData.value.number = row.planNumber
}
defineExpose({ open }) // open
/** 提交表单 */
const submitForm = async (val) => {
//
if (!basicFormRef) return
const valid = await basicFormRef.value.validate()
if (!valid) return
//
await EquipmentInspectionMainApi.updateEquipmentInspectionMain(formData.value)
//success
emit('success',formData.value.id)
dialogVisible.value = false
}
const handleClose=(val)=>{
dialogVisible.value = false
emit('close',val)
}
//
const emit = defineEmits(['close','success'])
</script>
<style scoped>
.tag-container {
margin-top: 10px; /* 可根据需要调整标签容器与表单项之间的间距 */
border: 1px solid #ccc; /* 添加边框样式 */
padding: 10px; /* 可根据需要调整容器内边距 */
width: 950px; /* 设置固定宽度为 950px */
overflow-y: auto; /* 当内容溢出容器高度时显示滚动条 */
word-wrap: break-word; /* 使用 word-wrap 属性实现超出范围换行 */
overflow-wrap: break-word; /* 兼容性更好的写法 */
flex-wrap: wrap;
}
.input-with-button {
display: flex;
align-items: center;
width: 100%;
}
.input-with-button > .el-input {
flex: 1;
/*margin-right: 10px;*/
}
</style>

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

@ -0,0 +1,150 @@
<template>
<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="巡检人电话" prop="maintenancePhone">
<el-input v-model="formData.maintenancePhone" placeholder="请输入巡检人电话" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="巡检开始时间" prop="startTime">
<el-date-picker
v-model="formData.startTime"
type="datetime"
value-format="x"
placeholder="选择巡检开始时间">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="巡检结束时间" prop="endTime">
<el-date-picker
v-model="formData.endTime"
type="datetime"
value-format="x"
placeholder="巡检结束时间">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
<template #footer>
<el-button :disabled="formLoading" type="primary" @click="submitForm('success')"> </el-button>
<el-button @click="handleClose('close')"> </el-button>
</template>
</Dialog>
<!--添加巡检项弹窗-->
<SearchTable ref="searchTableRef" @searchTableSuccess="searchTableSuccess" />
</template>
<script lang="ts" setup>
import * as EquipmentInspectionMainApi from '@/api/eam/equipmentInspectionMain'
import { SearchTable } from '@/components/SearchTable'
import {ElInput} from "element-plus";
defineOptions({ name: 'TeamForm' })
const { t } = useI18n() //
const message = useMessage() //
const dialogVisible = ref(false) //
const dialogTitle = ref('') //
const formLoading = ref(false) // 12
const formType = ref('') // create - update -
const tags=ref([])
const inputValue = ref('')
const inputVisible = ref(false)
const isDisabled = ref(false)
const InputRef = ref<InstanceType<typeof ElInput>>()
const formData = ref({
id:'',
number:'',
maintenancer: '',
maintenancePhone: '',
startTime:'',
endTime:'',
})
const formRules = reactive({
maintenancer: [
{ required: true, message: '巡检人ID不能为空', trigger: 'blur' },
],
maintenancePhone: [
{ required: true, message: '巡检人电话不能为空', trigger: 'blur' },
],
})
const basicFormRef = ref() // Ref
/** 初始化弹窗 */
const open = async (type: string, row?: object) => {
dialogVisible.value = true
dialogTitle.value = t('action.' + type)
formType.value = type
//
formData.value.id = row.id
formData.value.number = row.planNumber
}
defineExpose({ open }) // open
/** 提交表单 */
const submitForm = async (val) => {
//
if (!basicFormRef) return
const valid = await basicFormRef.value.validate()
if (!valid) return
//
await EquipmentInspectionMainApi.updateEquipmentInspection(formData.value);
//success
emit('success',formData.value.id)
dialogVisible.value = false
}
const handleClose=(val)=>{
dialogVisible.value = false
emit('close',val)
}
//
const emit = defineEmits(['close','success'])
</script>
<style scoped>
.tag-container {
margin-top: 10px; /* 可根据需要调整标签容器与表单项之间的间距 */
border: 1px solid #ccc; /* 添加边框样式 */
padding: 10px; /* 可根据需要调整容器内边距 */
width: 950px; /* 设置固定宽度为 950px */
overflow-y: auto; /* 当内容溢出容器高度时显示滚动条 */
word-wrap: break-word; /* 使用 word-wrap 属性实现超出范围换行 */
overflow-wrap: break-word; /* 兼容性更好的写法 */
flex-wrap: wrap;
}
.input-with-button {
display: flex;
align-items: center;
width: 100%;
}
.input-with-button > .el-input {
flex: 1;
/*margin-right: 10px;*/
}
</style>

291
src/views/eam/equipmentInspectionMain/index.vue

@ -33,7 +33,7 @@
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
<ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
@ -48,10 +48,31 @@
:apiCreate="EquipmentInspectionMainApi.createEquipmentInspectionMain"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
@onChange="onChange"
/>
<FinishForm1 ref="finishForm1Ref" @success="getData1" @close="getClosed1"/>
<FinishForm2 ref="finishForm2Ref" @success="getData2" @close="getClosed2"/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="EquipmentInspectionMain.allSchemas" />
<Detail ref="detailRef"
:isBasic="false"
:allSchemas="EquipmentInspectionMain.allSchemas"
:detailAllSchemasRules="EquipmentInspectionDetailRules"
:detailAllSchemas="EquipmentInspectionDetail.allSchemas"
:apiPage="EquipmentInspectionDetailApi.getEquipmentInspectionDetailPage"
:apiCreate="EquipmentInspectionDetailApi.createEquipmentInspectionDetail"
:apiUpdate="EquipmentInspectionDetailApi.updateEquipmentInspectionDetail"
:apiDelete="EquipmentInspectionDetailApi.deleteEquipmentInspectionDetail"
:detailButtonIsShowAdd=statusBtn
:detailButtonIsShowEdit=statusBtn
:detailButtonIsShowDelete=statusBtn
@handleMainFefresh="handleMainFefresh"
@searchTableSuccessDetail="searchTableSuccessDetail"
@detailBasicFormOnChange="detailBasicFormOnChange"
:key="count"
/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/eam/equipment-inspection-main/import" :importTemplateData="importTemplateData" @success="importSuccess" />
@ -60,11 +81,25 @@
<script setup lang="ts">
import download from '@/utils/download'
import { EquipmentInspectionMain,EquipmentInspectionMainRules } from './equipmentInspectionMain.data'
import { EquipmentInspectionDetail,EquipmentInspectionDetailRules } from '../equipmentInspectionDetail/equipmentInspectionDetail.data'
import * as EquipmentInspectionMainApi from '@/api/eam/equipmentInspectionMain'
import * as EquipmentInspectionDetailApi from '@/api/eam/equipmentInspectionDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import Detail from '@/views/eam/equipmentInspectionMain/InspectionOrderDetail.vue'
import FinishForm1 from '@/views/eam/equipmentInspectionMain/finishForm1.vue'
import FinishForm2 from '@/views/eam/equipmentInspectionMain/finishForm2.vue'
import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts.data";
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data";
import * as ToolItemApi from "@/api/eam/toolAccounts";
import * as EquipmentMaintenanceMainApi from "@/api/eam/equipmentMaintenanceMain";
import {
executeEquipmentInspectionOrder,
updateEquipmentInspectionOrder
} from "@/api/eam/equipmentInspectionMain";
defineOptions({ name: 'EquipmentInspectionMain' })
@ -75,6 +110,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(EquipmentInspectionMain.allSchemas.tableColumns)
const statusBtn = ref(false);
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
@ -131,11 +167,34 @@ const buttonBaseClick = (val, item) => {
}
}
const isShowMainButton = (row,val) => {
if (val.indexOf(row.available) > -1) {
return false
} else {
return true
}
}
const isShowStatusButton = (row,val) => {
if (val.indexOf(row.status) > -1) {
return false
} else {
return true
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:equipmentInspectionMain:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:equipmentInspectionMain:delete'}), //
]
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi:'eam:equipmentInspectionMain:update'}), //
defaultButtons.mainListReceiveOrderBtn({hide: isShowStatusButton(row,['3']),hasPermi:'eam:equipmentMaintenanceMain:update'}), //
defaultButtons.mainListExecuteBtn({hide: isShowStatusButton(row,['4']),hasPermi:'eam:equipmentMaintenanceMain:update'}), //
defaultButtons.mainListFinishBtn({hide: isShowStatusButton(row,['5']),hasPermi:'eam:equipmentMaintenanceMain:update'}), //
defaultButtons.mainListValidateBtn({hide: isShowStatusButton(row,['6']),hasPermi:'eam:equipmentMaintenanceMain:update'}), //
defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'eam:equipmentMaintenanceMain:update'}),
defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'eam:equipmentMaintenanceMain:update'}),
]
}
// -
const buttonTableClick = async (val, row) => {
@ -143,9 +202,24 @@ const buttonTableClick = async (val, row) => {
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
} else if (val == 'receive') { //
handleReceive(row.id)
} else if (val == 'execute') { //
handleExecute(row.id)
} else if (val == 'finish') { //
handleFinish(row)
} else if (val == 'validate') { //
handleValidate(row)
}
}
let count = ref(0)
const handleMainFefresh = async()=>{
count.value++
getList()
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
@ -176,9 +250,32 @@ const formsSuccess = async (formType,data) => {
getList()
}
//
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
const setV = {}
let result = '';
for (var i = 0; i < val.length; i++) {
result += val[i].itemName + ',';
}
if(result.endsWith(',')){
result = result.substring(0,result.length -1)
}
setV[formField] = result;
formRef.setValues(setV)
})
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
if('5' === row.status){
statusBtn.value=true
}else {
statusBtn.value=false
}
detailRef.value.openDetail(row, titleName, titleValue, 'basicEquipmentInspectionMain')
}
@ -195,6 +292,186 @@ const handleDelete = async (id: number) => {
} catch {}
}
/** 领取按钮操作 */
const handleReceive = async (id: number) => {
try {
//
await message.delConfirm('是否接单?');
const params = ref({
id: '',
status:'',
})
params.value.id = id
params.value.status = '4'
//
await EquipmentInspectionMainApi.updateEquipmentInspectionOrder(params.value)
message.success(t('接单成功'))
//
await getList()
} catch {}
}
/** 执行按钮操作 */
const handleExecute = async (id: number) => {
try {
//
await message.delConfirm('是否执行所选中任务?');
const params = ref({
id: '',
status:'',
})
params.value.id = id
params.value.status = '5'
//
await EquipmentInspectionMainApi.updateEquipmentInspectionOrder(params.value)
message.success(t('执行成功'))
//
await getList()
} catch {}
}
/** 完成按钮操作 */
const finishForm2Ref = ref()
const handleFinish = async (row) => {
//
await message.delConfirm('是否完成所选中工单?');
//
finishForm2Ref.value.open('update', row);
}
/** 验证按钮操作 */
const finishForm1Ref = ref()
const handleValidate = async (row) => {
await message.delConfirm('是否验证所选中工单?');
message.confirmPassword(t('')).then(async () => {
//
//
finishForm1Ref.value.open('update', row);
}).catch (async (action: Action) => {
if(action === 'cancel'){
const params = ref({id: '', status:''})
params.value.id = row.id
params.value.status = '5'
await EquipmentInspectionMainApi.backEquipmentInspectionOrder(params.value)
message.success(t('工单已打回'))
//
await getList()
}
})
}
const detailBasicFormOnChange = (field, item) => {
//
if(field == 'result' && item == '1'){
EquipmentInspectionDetail.allSchemas.formSchema.forEach((items) => {
if (items.field == 'uncompletedCause') {
EquipmentInspectionDetailRules.uncompletedCause[0].required = true
}
})
}
//
if(field == 'result' && item == '0'){
EquipmentInspectionDetail.allSchemas.formSchema.forEach((items) => {
if (items.field == 'uncompletedCause') {
EquipmentInspectionDetailRules.uncompletedCause[0].required = false
detailRef.value.formRef.formRef.setValues({
uncompletedCause:''
})
}
})
}
}
const onChange = (field, item) => {
//
if(field == 'type' && item == 'DEVICE'){
EquipmentInspectionMain.allSchemas.formSchema.forEach((items) => {
if (items.field == 'equipmentCode') {
//
basicFormRef.value.formRef.setValues({
equipmentCode:''
})
items.componentProps.searchAllSchemas = EquipmentAccounts.allSchemas
items.componentProps.searchPage = EquipmentItemApi.getEquipmentAccountsPage
}
})
}
//
if(field == 'type' && item == 'EQUIPMENT'){
EquipmentInspectionMain.allSchemas.formSchema.forEach((items) => {
if (items.field == 'equipmentCode') {
console.log(basicFormRef.value.formRef)
basicFormRef.value.formRef.setValues({
equipmentCode:''
})
items.componentProps.searchAllSchemas = ToolAccounts.allSchemas
items.componentProps.searchPage = ToolItemApi.getToolAccountsPage
}
})
}
}
//finishForm1
const getClosed1=(val)=> {
nextTick?.(() => {
console.log(val)
getList()
})
}
//finishForm1
const getData1=(val)=> {
nextTick?.(async () => {
console.log(val)
try {
const params = ref({
id: '',
status:'',
})
params.value.id = val
params.value.status = '7'
await EquipmentInspectionMainApi.updateEquipmentInspectionOrder(params.value)
message.success(t('工单已流转'))
//
await getList()
} catch {}
}
)
}
//finishForm2
const getClosed2=(val)=> {
nextTick?.(() => {
console.log(val)
getList()
})
}
//finishForm2
const getData2=(val)=> {
nextTick?.(async () => {
console.log(val)
const params = ref({
id: '',
status: '',
})
params.value.id = val
params.value.status = '5'
//
await EquipmentInspectionMainApi.executeEquipmentInspectionOrder(params.value)
//message.success(t(''))
//
await getList()
})
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {

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

@ -7,6 +7,8 @@ import * as WorkshopApi from "@/api/wms/workshop";
import {RelationMaintenancePlanItem} from "@/views/eam/maintenance/maintenance.data";
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";
// 表单校验
export const EquipmentMaintenanceMainRules = reactive({
@ -48,7 +50,10 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '来源字典',
field: 'sources',
sort: 'custom',
dictType: DICT_TYPE.EAM_BAOYANG_SOURCES,
dictClass: 'string',
isSearch: false,
isForm: true,
},
{
label: '设备编号',
@ -85,13 +90,25 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
},
{
label: '故障类型枚举',
label: '故障类型',
field: 'faultType',
sort: 'custom',
dictType: DICT_TYPE.FAILURE_REASON,
dictClass: 'string',
isSearch: true,
isSearch: false,
form: {
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择故障类型', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '故障类型信息', // 查询弹窗标题
searchAllSchemas: BasicFaultType.allSchemas, // 查询弹窗所需类
searchPage: BasicFaultTypeApi.getBasicFaultTypePage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
},
},
{
label: '保养计划工单号',

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

@ -50,7 +50,6 @@
import * as EquipmentMaintenanceMainApi from '@/api/eam/equipmentMaintenanceMain'
import { SearchTable } from '@/components/SearchTable'
import {ElInput} from "element-plus";
import {updateEquipmentMaintenance} from "@/api/eam/equipmentMaintenanceMain";
defineOptions({ name: 'TeamForm' })

5
src/views/eam/equipmentMaintenanceMain/index.vue

@ -100,7 +100,6 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/views/eam/equipmentMaintenanceMain/MaintenanceOrderDetail.vue'
import FinishForm1 from '@/views/eam/equipmentMaintenanceMain/finishForm1.vue'
import FinishForm2 from '@/views/eam/equipmentMaintenanceMain/finishForm2.vue'
import {Maintenance} from "@/views/eam/maintenance/maintenance.data";
import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts.data";
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data";
@ -433,7 +432,7 @@ const detailBasicFormOnChange = (field, item) => {
const onChange = (field, item) => {
//
if(field == 'type' && item == 'DEVICE'){
Maintenance.allSchemas.formSchema.forEach((items) => {
EquipmentMaintenanceMain.allSchemas.formSchema.forEach((items) => {
if (items.field == 'equipmentCode') {
//
basicFormRef.value.formRef.setValues({
@ -446,7 +445,7 @@ const onChange = (field, item) => {
}
//
if(field == 'type' && item == 'EQUIPMENT'){
Maintenance.allSchemas.formSchema.forEach((items) => {
EquipmentMaintenanceMain.allSchemas.formSchema.forEach((items) => {
if (items.field == 'equipmentCode') {
console.log(basicFormRef.value.formRef)
basicFormRef.value.formRef.setValues({

5
src/views/eam/equipmentRepairJobMain/equipmentRepairJobMain.data.ts

@ -66,9 +66,6 @@ export const EquipmentRepairJobMain = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string',
isSearch: false,
isForm: true,
form:{
value:'1'
}
},
{
label: '维修描述',
@ -399,7 +396,7 @@ export const EquipmentRepairJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择故障类型', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '车间信息', // 查询弹窗标题
searchTitle: '故障类型信息', // 查询弹窗标题
searchAllSchemas: BasicFaultType.allSchemas, // 查询弹窗所需类
searchPage: BasicFaultTypeApi.getBasicFaultTypePage, // 查询弹窗所需分页方法
searchCondition: [{

Loading…
Cancel
Save