fix(设备查询):去除文件关联

This commit is contained in:
chengzhaofeng 2025-02-23 14:09:46 +08:00
parent 79fdb0db5a
commit 9c2e6365fa
4 changed files with 18 additions and 19 deletions

View File

@ -1,6 +1,6 @@
<template>
<div style="display: flex; justify-content: center">
<el-image :src="imgUrl" :preview-src-list="[imgUrl]"> fit="contain"></el-image>
<el-image :src="imgUrl" :preview-src-list="[imgUrl]" fit="contain"></el-image>
</div>
</template>

View File

@ -83,13 +83,6 @@
</div>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="是否有RFID:" prop="isHaveRfid">
<div>
{{ equipmentForm.isHaveRfid === 'Y' ? '是' : '否' }}
</div>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="操作手册:" prop="operationManual">
<div>
@ -115,7 +108,7 @@
<span style="font-weight: 800; font-size: 150%; text-align: center">设备历史维修工单</span>
</div>
<avue-crud ref="crud" :page.sync="page" :data="tableData"
:table-loading="tableLoading"
:table-loading="tableLoading" @on-load="getList"
:option="tableOption" @search-change="searchChange"
@search-reset="searchReset"
@refresh-change="refreshChange" @size-change="sizeChange" @current-change="currentChange"
@ -188,7 +181,7 @@ export default {
},
watch: {
model: {
handler(newValue) {
handler(newValue, oldValue) {
let me = this;
if (!newValue || Object.keys(newValue).length < 1) return
me.eqpNoBo = newValue.zPmsResrceExtBo;
@ -215,9 +208,6 @@ export default {
},
getList(page, params) {
this.tableLoading = true
params = {
handle: this.$route.query.name
}
getPageList(Object.assign({
current: page.currentPage,
size: page.pageSize,
@ -236,26 +226,26 @@ export default {
// 当前页发生改变事件
currentChange(current) {
this.page.currentPage = current
this.getList(this.page)
this.getList(this.page, {'handle': this.equipmentForm.resrce})
done()
},
// 查询事件
searchChange(form, done) {
this.page.currentPage = 1
this.getList(this.page, form)
this.getList(this.page, {'handle': this.equipmentForm.resrce})
done()
},
// 清空搜索
searchReset() {
this.getList(this.page)
this.getList(this.page, {'handle': this.equipmentForm.resrce})
},
// 刷新事件
refreshChange() {
this.getList(this.page)
this.getList(this.page, {'handle': this.equipmentForm.resrce})
},
sortChange(column) {
this.tableData = []
this.getList(this.page)
this.getList(this.page, {'handle': this.equipmentForm.resrce})
},
getInfo(name) {
let me = this;
@ -266,6 +256,7 @@ export default {
me.equipmentForm = {}
}else {
me.equipmentForm = response.data.data;
me.getList(this.page, {'handle': me.equipmentForm.resrce})
}
}).catch((e) => {
hideLoading();

View File

@ -10,6 +10,14 @@ export const tableOption = {
addBtn: false,
menu:false,
column: [
{
type: "input",
label: "维修单号",
prop: "repairOrderNumber",
span: 12,
width: 140,
row: true,
},
{
type: "input",
label: "故障说明",

View File

@ -1,7 +1,7 @@
<template>
<div class="execution">
<!-- 设备详细信息 -->
<PmsEqpInfo ref="eqpInfo" :visible.sync="eqpInfoVisible" :model="eqpInfoModel" @close="handleEqpInfoClose"/>
<PmsEqpInfo ref="eqpInfo" :visible.sync="eqpInfoVisible" :model="eqpInfoModel" @update:model="val => eqpInfoModel = val" @close="handleEqpInfoClose"/>
<!-- 维修查看/执行 -->
<PmsRepairOrderExecution ref="eqpExecute" :visible.sync="eqpExecuteVisible" :model="eqpExecuteModel"
@close="handleEqpExecuteClose"/>