Browse Source

EAM ——> 巡检 点检 保养方案 更新

hella_online_20240829
gaojs 4 months ago
parent
commit
d5cd87ad2a
  1. 47
      src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts
  2. 6
      src/views/eam/equipmentMaintenanceMain/index.vue
  3. 8
      src/views/eam/equipmentMaintenanceRecordMain/equipmentMaintenanceRecordMain.data.ts
  4. 30
      src/views/eam/equipmentMaintenanceRecordMain/index.vue
  5. 25
      src/views/eam/equipmentRepairJobMain/equipmentRepairJobMain.data.ts
  6. 16
      src/views/eam/equipmentRepairJobMain/finishForm2.vue
  7. 10
      src/views/eam/equipmentRepairJobMain/index.vue
  8. 8
      src/views/eam/equipmentRepairRecordMain/equipmentRepairRecordMain.data.ts
  9. 29
      src/views/eam/equipmentRepairRecordMain/index.vue
  10. 72
      src/views/eam/equipmentReportRepairRequest/audiForm.vue
  11. 12
      src/views/eam/equipmentReportRepairRequest/equipmentReportRepairRequest.data.ts
  12. 38
      src/views/eam/equipmentReportRepairRequest/index.vue
  13. 5
      src/views/eam/inspectionItem/inspectionItem.data.ts
  14. 10
      src/views/eam/maintainExperience/index.vue
  15. 8
      src/views/eam/maintainExperience/maintainExperience.data.ts
  16. 8
      src/views/eam/planInspection/planInspection.data.ts
  17. 10
      src/views/eam/repairExperience/index.vue
  18. 14
      src/views/eam/repairExperience/repairExperience.data.ts
  19. 5
      src/views/eam/spotCheckItem/spotCheckItem.data.ts

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

@ -99,7 +99,10 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '故障类型',
field: 'faultType',
sort: 'custom',
isSearch: true,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
form: {
componentProps: {
isSearchList: true, // 开启查询弹窗
@ -151,6 +154,9 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
search: {
component: 'DatePicker',
componentProps: {
@ -173,6 +179,9 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
search: {
component: 'DatePicker',
componentProps: {
@ -195,7 +204,9 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
isForm:false,
isTable: false,
isForm: false,
isDetail:false,
search: {
component: 'DatePicker',
componentProps: {
@ -218,7 +229,9 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
isForm:false,
isTable: false,
isForm: false,
isDetail:false,
search: {
component: 'DatePicker',
componentProps: {
@ -369,6 +382,9 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'directCreateRecord',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '所属厂区编号',
@ -382,6 +398,9 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'workshopCode',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
required: true,
form: {
componentProps: {
@ -597,26 +616,38 @@ export const EquipmentMaintenanceDetail = useCrudSchemas(reactive<CrudSchema[]>(
label: '人数',
field: 'peoples',
sort: 'custom',
isSearch: true,
isForm: true,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '预计分钟',
field: 'estimatedMinutes',
sort: 'custom',
isSearch: true,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '实际分钟',
field: 'actualMinutes',
sort: 'custom',
isSearch: true,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '责任人多选',
field: 'chargePeoples',
sort: 'custom',
isSearch: true,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '完成时间',

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

@ -198,14 +198,14 @@ const isShowEditStatusButton = (row) => {
// -
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hide: isShowStatusButton(row,['3','4']),hasPermi:'eam:equipmentMaintenanceMain:update'}), //
//defaultButtons.mainListEditBtn({hide: isShowStatusButton(row,['3','4']),hasPermi:'eam:equipmentMaintenanceMain:update'}), //
defaultButtons.mainListReceiveOrderBtn({hide: isShowStatusButton(row,['3']),hasPermi:'eam:equipmentMaintenanceMain:update'}), //
defaultButtons.mainListExecuteBtn({hide: isShowStatusButton(row,['4']),hasPermi:'eam:equipmentMaintenanceMain:update'}), //
defaultButtons.mainListCancelBtn({hide: isShowStatusButton(row,['5']),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'}),
//defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'eam:equipmentMaintenanceMain:update'}),
//defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'eam:equipmentMaintenanceMain:update'}),
]
}

8
src/views/eam/equipmentMaintenanceRecordMain/equipmentMaintenanceRecordMain.data.ts

@ -273,6 +273,14 @@ export const EquipmentMaintenanceRecordMain = useCrudSchemas(reactive<CrudSchema
dictType: DICT_TYPE.EAM_ORDER_STATUS,
dictClass: 'string',
},
{
label: '保养经验',
field: 'isExperience',
sort: 'custom',
isSearch: true,
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
},
// {
// label: '自动接单',
// field: 'autoOrder',

30
src/views/eam/equipmentMaintenanceRecordMain/index.vue

@ -32,8 +32,8 @@
<span>{{ row.recordNo }}</span>
</el-button>
</template>
<template #action="{ row,$index }">
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" />
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
@ -88,6 +88,7 @@ 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 {maintainExperienceBtn} from "@/utils/disposition/defaultButtons";
defineOptions({ name: 'EquipmentMaintenanceRecordMain' })
@ -154,21 +155,16 @@ const buttonBaseClick = (val, item) => {
}
}
const butttondata = (row,$index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
if(findIndex>-1&&findIndex<$index){
return []
}
return [
defaultButtons.repairExperienceBtn({ hide:isShowMainButton(row,['0']),hasPermi: 'eam:equipmentMaintenanceRecordMain:maintainExperience' }) //
]
const butttondata = (row) => {
return [
defaultButtons.maintainExperienceBtn({ hide:isShowMainButton(row),hasPermi: 'eam:equipmentMaintenanceRecordMain:maintainExperience' }) //
]
}
//
const isShowMainButton = (row,val) => {
console.log(row.isExperience)
if (val.indexOf(row.isExperience) > -1) {
//
const isShowMainButton = (row) => {
if (row.isExperience === 'FALSE') {
return false
} else {
} else{
return true
}
}
@ -189,7 +185,7 @@ const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
//
//
const maintainExperienceFormRef = ref()
const openMaintainExperience = (type: string, row?: any) => {
maintainExperienceFormRef.value.open(type, row)
@ -225,7 +221,6 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
}
//
const maintainExperienceFormsSuccess = async (formType, data) => {
console.log(data)
const data1 = {
maintainRecordNumber: data.recordNo,
name: data.name,
@ -233,7 +228,6 @@ const maintainExperienceFormsSuccess = async (formType, data) => {
masterId: data.id,
orderType: 'MAINTAIN',
}
console.log(data1)
try {
await MaintainExperienceApi.createMaintainExperience(data1)
message.success(t('common.createSuccess'))

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

@ -90,7 +90,10 @@ export const EquipmentRepairJobMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
dictType: DICT_TYPE.EAM_MAINTENANCE_LEVEL,
dictClass: 'string',
isSearch: true,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '设备编号',
@ -123,7 +126,10 @@ export const EquipmentRepairJobMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
dictType: DICT_TYPE.INFRA_BOOLEAN_STRING,
dictClass: 'string',
isSearch: true,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
form: {
component: 'Radio'
}
@ -407,6 +413,12 @@ export const EquipmentRepairJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}
},
},
{
label: '故障描述',
field: 'faultDesc',
sort: 'custom',
isSearch: false
},
{
label: '流程状态',
field: 'status',
@ -438,12 +450,18 @@ export const EquipmentRepairJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'directCreateRecord',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '班组类型',
field: 'classType',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
// {
// label: '所属厂区编号',
@ -456,6 +474,9 @@ export const EquipmentRepairJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'workshopCode',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
required: true,
form: {
componentProps: {

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

@ -45,11 +45,11 @@
<!-- <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="请输入维修人电话" />
</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">
@ -101,9 +101,8 @@ const formData = ref({
level: '',
startTime:'',
endTime:'',
maintenancePhone:'',
completeResult:'',
status:'6'
status:'5'
})
const formRules = reactive({
maintenanceDesc: [
@ -118,9 +117,6 @@ const formRules = reactive({
endTime: [
{ required: true, message: '结束时间不能为空', trigger: 'blur' },
],
maintenancePhone: [
{ required: true, message: '维修人电话不能为空', trigger: 'blur' },
],
completeResult: [
{ required: true, message: '结果不能为空', trigger: 'blur' },
],

10
src/views/eam/equipmentRepairJobMain/index.vue

@ -184,7 +184,7 @@ const isShowBaoXiuButton = (row) => {
// -
const butttondata = (row) => {
return[
defaultButtons.mainListEditBtn({hide: isShowStatusButton(row,['3','4']),hasPermi:'eam:equipmentRepairJobMain:update'}), //
//defaultButtons.mainListEditBtn({hide: isShowStatusButton(row,['3','4']),hasPermi:'eam:equipmentRepairJobMain:update'}), //
defaultButtons.mainListReceiveOrderBtn({hide: isShowStatusButton(row,['3']),hasPermi:'eam:equipmentRepairJobMain:update'}), //
defaultButtons.mainListExecuteBtn({hide: isShowStatusButton(row,['4']),hasPermi:'eam:equipmentRepairJobMain:update'}), //
defaultButtons.mainListTransferBtn({hide: isShowStatusButton(row,['4']),hasPermi:'eam:equipmentRepairJobMain:update'}), //
@ -486,14 +486,6 @@ const getClosed2=(val)=> {
//finishForm2
const getData2=(val)=> {
nextTick?.(async () => {
// const params = ref({
// id: '',
// status: '',
// })
// params.value.id = val
// params.value.status = '5'
// //
// await EquipmentRepairJobMainApi.executeEquipmentRepairJobMain(params.value)
message.success(t('工单已完成'))
//
await getList()

8
src/views/eam/equipmentRepairRecordMain/equipmentRepairRecordMain.data.ts

@ -316,6 +316,14 @@ export const EquipmentRepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string',
isSearch: true,
},
{
label: '维修经验',
field: 'isExperience',
sort: 'custom',
isSearch: true,
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
},
{
label: '自动接单',
field: 'autoOrder',

29
src/views/eam/equipmentRepairRecordMain/index.vue

@ -36,8 +36,8 @@
<span>{{ row.number }}</span>
</el-button>
</template>
<template #action="{ row,$index }">
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event, row)" />
<template #action="{row}">
<ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event, row)" />
</template>
</Table>
</ContentWrap>
@ -103,6 +103,7 @@ 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 {repairExperienceBtn} from "@/utils/disposition/defaultButtons";
defineOptions({ name: 'EquipmentRepairRecordMain' })
@ -176,23 +177,17 @@ const buttonBaseClick = (val, item) => {
}
// -
const butttondata = (row,$index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
if(findIndex>-1&&findIndex<$index){
return []
}
return [
defaultButtons.repairExperienceBtn({ hide:isShowMainButton(row,['0']),hasPermi: 'eam:equipmentRepairRecordMain:repairExperience' }) //
]
const butttondata = (row) => {
return [
defaultButtons.repairExperienceBtn({ hide:isShowMainButton(row),hasPermi: 'eam:equipmentMaintenanceRecordMain:maintainExperience' }) //
]
}
//
const isShowMainButton = (row,val) => {
console.log(row.isExperience)
if (val.indexOf(row.isExperience) > -1) {
//
const isShowMainButton = (row) => {
if (row.isExperience === 'FALSE') {
return false
} else {
} else{
return true
}
}
@ -252,7 +247,6 @@ const openRepairExperience = (type: string, row?: any) => {
}
//
const repairExperienceFormsSuccess = async (formType, data) => {
console.log(data)
const data1 = {
repairRecordNumber: data.recordNo,
name: data.name,
@ -260,7 +254,6 @@ const repairExperienceFormsSuccess = async (formType, data) => {
masterId: data.id,
orderType: 'REPAIR',
}
console.log(data1)
try {
await RepairExperienceApi.createRepairExperience(data1)
message.success(t('common.createSuccess'))

72
src/views/eam/equipmentReportRepairRequest/audiForm.vue

@ -2,29 +2,24 @@
<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="approver">-->
<!-- <el-input v-model="formData.approver" placeholder="请输入审核人" :disabled="isDisabled"/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="12">
<el-form-item label="审核内容" prop="approveContent">
<el-input v-model="formData.approveContent" placeholder="请输入审核内容" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="审核时间" prop="approveTime">
<el-date-picker
v-model="formData.approveTime"
type="datetime"
value-format="x"
placeholder="选择审核时间">
</el-date-picker>
<el-input v-model="formData.approveContent" 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="approveTime">-->
<!-- <el-date-picker-->
<!-- v-model="formData.approveTime"-->
<!-- 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>
@ -40,7 +35,6 @@
import { SearchTable } from '@/components/SearchTable'
import {ElInput} from "element-plus";
import * as EquipmentReportRepairRequestApi from "@/api/eam/equipmentReportRepairRequest";
import {audiEquipmentReportRepairOrder} from "@/api/eam/equipmentReportRepairRequest";
defineOptions({ name: 'TeamForm' })
@ -50,7 +44,7 @@ const message = useMessage() // 消息弹窗
const dialogVisible = ref(false) //
const dialogTitle = ref('') //
const formLoading = ref(false) // 12
const formType = ref('') // create - update -
const formType = ref('') // passed - noPassed -
const tags=ref([])
const inputValue = ref('')
@ -62,22 +56,17 @@ const InputRef = ref<InstanceType<typeof ElInput>>()
const formData = ref({
id:'',
number:'',
//approver: '',
approveContent: '',
approveTime: '',
status:'',
})
const formRules = reactive({
// approver: [
// { required: true, message: '', trigger: 'blur' },
// { max: 50, message: '50', trigger: 'blur' }
// ],
approveContent: [
{ required: true, message: '审核内容不能为空', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
approveTime: [
{ required: true, message: '审核时间不能为空', trigger: 'blur' },
],
// approveTime: [
// { required: true, message: '', trigger: 'blur' },
// ],
})
const basicFormRef = ref() // Ref
@ -85,7 +74,7 @@ const basicFormRef = ref() // 表单 Ref
/** 初始化弹窗 */
const open = async (type: string, row?: object) => {
dialogVisible.value = true
dialogTitle.value = t('action.' + type)
dialogTitle.value = t('编辑')
formType.value = type
//
formData.value.id = row.id
@ -95,16 +84,29 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
/** 提交表单 */
const submitForm = async (val) => {
//success
emit('success',formData.value.id)
//
if (!basicFormRef) return
const valid = await basicFormRef.value.validate()
if (!valid) return
//
await EquipmentReportRepairRequestApi.audiEquipmentReportRepairOrder(formData.value)
dialogVisible.value = false
if(formType.value == 'passed'){
formData.value.status = '3'
//
await EquipmentReportRepairRequestApi.audiEquipmentReportRepairOrder(formData.value)
dialogVisible.value = false
}else if(formType.value == 'noPassed'){
formData.value.status = '4'
//
await EquipmentReportRepairRequestApi.audiEquipmentReportRepairOrder(formData.value)
dialogVisible.value = false
}else{
console.log("error")
}
//success
emit('success')
}
const handleClose=(val)=>{

12
src/views/eam/equipmentReportRepairRequest/equipmentReportRepairRequest.data.ts

@ -105,7 +105,10 @@ export const EquipmentReportRepairRequest = useCrudSchemas(reactive<CrudSchema[]
sort: 'custom',
dictType: DICT_TYPE.INFRA_BOOLEAN_STRING,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isSearch: true,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
form: {
component: 'Radio'
}
@ -140,6 +143,9 @@ export const EquipmentReportRepairRequest = useCrudSchemas(reactive<CrudSchema[]
field: 'workshopCode',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
required: true,
form: {
componentProps: {
@ -162,12 +168,14 @@ export const EquipmentReportRepairRequest = useCrudSchemas(reactive<CrudSchema[]
field: 'repairmaner',
sort: 'custom',
isSearch: false,
isForm: false,
},
{
label: '报修人联系电话',
field: 'repairPhone',
sort: 'custom',
isSearch: false
isSearch: false,
isForm: false,
},
{
label: '报修状态',

38
src/views/eam/equipmentReportRepairRequest/index.vue

@ -162,7 +162,7 @@ const butttondata = (row) => {
defaultButtons.mainListAuditedBtn({ hide: isShowStatusButton(row, ['2']), hasPermi: 'eam:equipmentReportRepairRequest:update' }), //
defaultButtons.mainListRevokeBtn({ hide: isShowStatusButton(row, ['0']), hasPermi: 'eam:equipmentReportRepairRequest:update' }), //
defaultButtons.mainListFinishBtn({ hide: isShowStatusButton(row, ['3']), hasPermi: 'eam:equipmentReportRepairRequest:update' }),
defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:equipmentReportRepairRequest:update' }), //
//defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:equipmentReportRepairRequest:update' }), //
]
}
@ -281,20 +281,12 @@ const handleFinish = async (id: number) => {
//
const handleAudited = async (row) => {
message.confirmAudi(t('')).then(async () => {
//
audiFormRef.value.open('update', row);
//
audiFormRef.value.open('passed', row);
}).catch(async (action: Action) => {
//
if (action === 'cancel') {
const params = ref({
id: '',
status: '',
})
params.value.id = row.id
params.value.status = '4'
await EquipmentReportRepairRequestApi.updateEquipmentReportRepairOrder(params.value)
message.success(t('common.updateSuccess'))
//
await getList()
audiFormRef.value.open('noPassed', row);
}
})
}
@ -387,23 +379,9 @@ const getClosed = (val) => {
//audiForm
const getData = (val) => {
nextTick?.(async () => {
try {
const params = ref({
id: '',
status: '',
})
params.value.id = val
params.value.status = '3'
await EquipmentReportRepairRequestApi.updateEquipmentReportRepairOrder(params.value)
message.success(t('工单已流转'))
//
await getList()
} catch { }
}
)
nextTick?.(() => {
getList()
})
}

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

@ -74,7 +74,10 @@ export const InspectionItem = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
dictType: DICT_TYPE.DEVICE_TYPE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isSearch: true,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
form: {
component: 'Select'
}

10
src/views/eam/maintainExperience/index.vue

@ -111,9 +111,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:maintainExperience:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:maintainExperience:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:maintainExperience:export'}), //
defaultButtons.defaultAddBtn({hasPermi:'eam:maintainExperience:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:maintainExperience:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:maintainExperience:export'}), //
defaultButtons.defaultFreshBtn(null), //
// defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -145,8 +145,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:maintainExperience:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:maintainExperience:delete'}), //
defaultButtons.mainListEditBtn({hasPermi:'eam:maintainExperience:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:maintainExperience:delete'}), //
]
// -

8
src/views/eam/maintainExperience/maintainExperience.data.ts

@ -8,7 +8,11 @@ export const MaintainExperienceRules = reactive({
})
export const MaintainExperience = useCrudSchemas(reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
sort: 'custom',
},
{
label: '经验标题',
field: 'name',
@ -19,7 +23,7 @@ export const MaintainExperience = useCrudSchemas(reactive<CrudSchema[]>([
label: '经验内容',
field: 'content',
sort: 'custom',
isTable:false,
isTable:true,
form: {
componentProps: {
type: 'textarea',

8
src/views/eam/planInspection/planInspection.data.ts

@ -222,6 +222,9 @@ export const PlanInspection = useCrudSchemas(reactive<CrudSchema[]>([
field: 'directCreateRecord',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
{
label: '所属厂区编号',
@ -237,7 +240,10 @@ export const PlanInspection = useCrudSchemas(reactive<CrudSchema[]>([
field: 'workshopCode',
sort: 'custom',
isSearch: false,
required: true,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
form: {
componentProps: {
isSearchList: true, // 开启查询弹窗

10
src/views/eam/repairExperience/index.vue

@ -114,9 +114,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:repairExperience:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:repairExperience:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:repairExperience:export'}), //
defaultButtons.defaultAddBtn({hasPermi:'eam:repairExperience:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:repairExperience:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:repairExperience:export'}), //
defaultButtons.defaultFreshBtn(null), //
// defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -148,8 +148,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:repairExperience:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:repairExperience:delete'}), //
defaultButtons.mainListEditBtn({hasPermi:'eam:repairExperience:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:repairExperience:delete'}), //
]
// -

14
src/views/eam/repairExperience/repairExperience.data.ts

@ -8,7 +8,12 @@ export const RepairExperienceRules = reactive({
})
export const RepairExperience = useCrudSchemas(reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
sort: 'custom',
},
{
label: '经验标题',
field: 'name',
@ -27,7 +32,6 @@ export const RepairExperience = useCrudSchemas(reactive<CrudSchema[]>([
label: '经验内容',
field: 'content',
sort: 'custom',
isTable:false,
isSearch:false,
form: {
component: 'Input',
@ -86,8 +90,6 @@ export const RepairExperience = useCrudSchemas(reactive<CrudSchema[]>([
label: '故障类型',
field: 'faultType',
sort: 'custom',
dictType: DICT_TYPE.FAILURE_REASON,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isSearch: false,
isForm:false
},
@ -96,7 +98,9 @@ export const RepairExperience = useCrudSchemas(reactive<CrudSchema[]>([
field: 'createTime',
sort: 'custom',
isSearch:false,
isForm:false
isForm:false,
isTable:false,
isDetail:false
},
{
label: '创建时间',

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

@ -67,7 +67,10 @@ export const SpotCheckItem = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
dictType: DICT_TYPE.DEVICE_TYPE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isSearch: true,
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
form: {
component: 'Select'
}

Loading…
Cancel
Save