ljlong_2630 7 months ago
parent
commit
cbb18b3989
  1. 20
      src/views/eam/basic/basciYearEquipment/index.vue
  2. 1
      src/views/eam/device/deviceSpotInspectionRecordMain/deviceSpotInspectionRecordMain.data.ts
  3. 2
      src/views/eam/device/deviceSpotInspectionRecordMain/index.vue
  4. 2
      src/views/eam/mold/moldSpotInspectionRecordMain/index.vue
  5. 10
      src/views/eam/mold/moldSpotInspectionRecordMain/moldSpotInspectionRecordMain.data.ts
  6. 24
      src/views/home/index.vue

20
src/views/eam/basic/basciYearEquipment/index.vue

@ -38,10 +38,10 @@
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, row)" />
</template>
<template #goal="{ row }">
<span>{{ row.goal+"%" }}</span>
<span>{{ row.type=='0'?row.goal+"%":row.goal }}</span>
</template>
<template #actual="{ row }">
<span>{{ row.goal==null?"":row.goal+"%" }}</span>
<span>{{ row.actual==null||row.actual==""||row.type!='0'?row.actual:row.actual+"%" }}</span>
</template>
</Table>
</ContentWrap>
@ -170,17 +170,19 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
if (type == 'update') {
console.log("123",BasciYearEquipment.allSchemas.formSchema);
BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factoryType').componentProps.disabled = true//
// BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factory_type').componentProps.disabled = true//
//BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'year_index').componentProps.disabled = true//
}
// if (type == 'update') {
// BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factoryType').componentProps.disabled = true//
// // BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factory_type').componentProps.disabled = true//
// //BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'year_index').componentProps.disabled = true//
// }else{
// BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factoryType').componentProps.disabled = false//
// }
basicFormRef.value.open(type, row)
}
// form
const formsSuccess = async (formType, data) => {
try {
var isHave = BasciYearEquipment.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime'
})
@ -201,6 +203,8 @@ const formsSuccess = async (formType, data) => {
}
basicFormRef.value.dialogVisible = false
getList()
}catch{
basicFormRef.value.dialogVisible = false}
}
/** 详情操作 */

1
src/views/eam/device/deviceSpotInspectionRecordMain/deviceSpotInspectionRecordMain.data.ts

@ -255,6 +255,7 @@ export const DeviceSpotInspectionRecordDetail = useCrudSchemas(reactive<CrudSche
field: 'action',
isForm: false,
isTable: false,
isDetail:false,
table: {
width: 150,
fixed: 'right'

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

@ -77,6 +77,7 @@
:apiPage="DeviceSpotInspectionRecordDetailApi.getDeviceSpotInspectionRecordDetailPage"
:apiDelete="DeviceSpotInspectionRecordDetailApi.deleteDeviceSpotInspectionRecordDetail"
:Echo="Echo"
:isShowAddBtn="false"
@searchTableSuccessDetail="searchTableSuccessDetail"
@detailOpenForm="detailOpenForm"
:detailValidate="detailValidate"
@ -523,6 +524,7 @@ const onSubmit = async (status: string) => {
getList();
} finally {
formRef.value.formLoading = false;
updateFormValue.value.approveOpinion = "";
}
}

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

@ -77,6 +77,7 @@
:apiPage="DeviceSpotInspectionRecordDetailApi.getDeviceSpotInspectionRecordDetailPage"
:apiDelete="DeviceSpotInspectionRecordDetailApi.deleteDeviceSpotInspectionRecordDetail"
:Echo="Echo"
:isShowAddBtn="false"
@searchTableSuccessDetail="searchTableSuccessDetail"
@detailOpenForm="detailOpenForm"
:detailValidate="detailValidate"
@ -538,6 +539,7 @@ const onSubmit = async (status: string) => {
getList();
} finally {
formRef.value.formLoading = false;
updateFormValue.value.approveOpinion = "";
}
}

10
src/views/eam/mold/moldSpotInspectionRecordMain/moldSpotInspectionRecordMain.data.ts

@ -2,6 +2,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import { selectAllFactoryArea } from '@/api/system/dept'
import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts'
import * as MOldAccountsApi from '@/api/eam/mold/moldAccounts'
import { useUserStore } from '@/store/modules/user'
import { selecUserByType } from '@/api/system/dept'
import { ItemSearchTable } from '../../basic/item/item.data'
@ -14,8 +15,8 @@ const factoryList = await selectAllFactoryArea()
const deviceList = await DeviceAccountsApi.getDeviceAccountsNoPage({})
const userList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 })
const userListAll = await UserApi.getSimpleUserList()
const deviceListNoPage = await DeviceAccountsApi.getDeviceAccountsAllNoPage({})
const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value == 'DEVICE')
const deviceListNoPage = await MOldAccountsApi.getMoldAccountsAllNoPage({})
const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value == 'MOLD')
const deviceDeviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE)
const isConformList = [{
label:'是',
@ -211,7 +212,7 @@ export const DeviceSpotInspectionRecordDetailRules = reactive({
export const DeviceSpotInspectionRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '检修工单号',
label: '巡检点检工单号',
field: 'number',
sort: 'custom',
isSearch: true,
@ -254,7 +255,8 @@ export const DeviceSpotInspectionRecordDetail = useCrudSchemas(reactive<CrudSche
label: '操作',
field: 'action',
isForm: false,
isTable: true,
isTable: false,
isDetail:false,
table: {
width: 150,
fixed: 'right'

24
src/views/home/index.vue

@ -127,7 +127,7 @@
</ul>
<ul class="table ul-body">
<li class="one">平均故障恢复时间(MTTR/min)</li>
<li class="two orange">{{ yearTarget.zsHFGoal || '0%' }}</li>
<li class="two orange">{{ yearTarget.zsHFGoal || '0' }}</li>
<li
class="three"
:class="
@ -135,12 +135,12 @@
? 'red'
: 'green'
"
>{{ yearTarget.zsHFActual || '0%' }}</li
>{{ yearTarget.zsHFActual || '0' }}</li
>
</ul>
<ul class="table ul-body">
<li class="one">平均故障间隔时间(H)</li>
<li class="two orange">{{ yearTarget.zsJGGoal || '0%' }}</li>
<li class="two orange">{{ yearTarget.zsJGGoal || '0' }}</li>
<li
class="three"
:class="
@ -148,7 +148,7 @@
? 'red'
: 'green'
"
>{{ yearTarget.zsJGActual || '0%' }}</li
>{{ yearTarget.zsJGActual || '0' }}</li
>
</ul>
</div>
@ -178,7 +178,7 @@
</ul>
<ul class="table ul-body">
<li class="one">平均故障恢复时间(MTTR/min)</li>
<li class="two orange">{{ yearTarget.zpHFGoal || '0%' }}</li>
<li class="two orange">{{ yearTarget.zpHFGoal || '0' }}</li>
<li
class="three"
:class="
@ -186,12 +186,12 @@
? 'red'
: 'green'
"
>{{ yearTarget.zpHFActual || '0%' }}</li
>{{ yearTarget.zpHFActual || '0' }}</li
>
</ul>
<ul class="table ul-body">
<li class="one">平均故障间隔时间(H)</li>
<li class="two orange">{{ yearTarget.zpJGGoal || '0%' }}</li>
<li class="two orange">{{ yearTarget.zpJGGoal || '0' }}</li>
<li
class="three"
:class="
@ -199,7 +199,7 @@
? 'red'
: 'green'
"
>{{ yearTarget.zpJGActual || '0%' }}</li
>{{ yearTarget.zpJGActual || '0' }}</li
>
</ul>
</div>
@ -229,7 +229,7 @@
</ul>
<ul class="table ul-body">
<li class="one">平均故障恢复时间(MTTR/min)</li>
<li class="two orange">{{ yearTarget.tzHFGoal || '0%' }}</li>
<li class="two orange">{{ yearTarget.tzHFGoal || '0' }}</li>
<li
class="three"
:class="
@ -237,12 +237,12 @@
? 'red'
: 'green'
"
>{{ yearTarget.tzHFActual || '0%' }}</li
>{{ yearTarget.tzHFActual || '0' }}</li
>
</ul>
<ul class="table ul-body">
<li class="one">平均故障间隔时间(H)</li>
<li class="two orange">{{ yearTarget.tzJGGoal || '0%' }}</li>
<li class="two orange">{{ yearTarget.tzJGGoal || '0' }}</li>
<li
class="three"
:class="
@ -250,7 +250,7 @@
? 'red'
: 'green'
"
>{{ yearTarget.tzJGActual || '0%' }}</li
>{{ yearTarget.tzJGActual || '0' }}</li
>
</ul>
</div>

Loading…
Cancel
Save