设备台账详情展示优化
This commit is contained in:
parent
b34ee99fee
commit
d36908e546
@ -935,12 +935,6 @@
|
|||||||
label-width="80px"
|
label-width="80px"
|
||||||
>
|
>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="24">
|
|
||||||
<el-button
|
|
||||||
type="text"
|
|
||||||
@click="upkeepClick"
|
|
||||||
>设备维保详情</el-button>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="设备型号"
|
label="设备型号"
|
||||||
@ -1174,6 +1168,30 @@
|
|||||||
<span class="pop-span">{{ this.detailsForm.remark ? this.detailsForm.remark : "无"}}</span>
|
<span class="pop-span">{{ this.detailsForm.remark ? this.detailsForm.remark : "无"}}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="维修次数">
|
||||||
|
<a
|
||||||
|
style="color:rgb(42, 116, 255);"
|
||||||
|
@click="upkeepClick('maint')"
|
||||||
|
>{{ this.maintTotal}}</a>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-button
|
||||||
|
type="text"
|
||||||
|
@click="upkeepClick"
|
||||||
|
>设备维保详情</el-button> -->
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="保养次数">
|
||||||
|
<a
|
||||||
|
style="color:rgb(42, 116, 255);"
|
||||||
|
@click="upkeepClick('upkeep')"
|
||||||
|
>{{ this.upkeepTotal}}</a>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-button
|
||||||
|
type="text"
|
||||||
|
@click="upkeepClick"
|
||||||
|
>设备维保详情</el-button> -->
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -1185,22 +1203,22 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 设备维保弹出框 -->
|
<!-- 设备维保弹出框 :close-on-click-modal="false"
|
||||||
|
-->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="upkeepTitle"
|
:title="upkeepTitle"
|
||||||
:visible.sync="upkeepOpen"
|
:visible.sync="upkeepOpen"
|
||||||
width="1200px"
|
width="1200px"
|
||||||
:close-on-click-modal="false"
|
|
||||||
class="card-detail-class"
|
class="card-detail-class"
|
||||||
:before-close="upkeepCancel"
|
:before-close="upkeepCancel"
|
||||||
>
|
>
|
||||||
<el-card>
|
<el-card v-if="type=='maint'">
|
||||||
<div
|
<!-- <div
|
||||||
slot="header"
|
slot="header"
|
||||||
class="clearfix"
|
class="clearfix"
|
||||||
>
|
>
|
||||||
<span>维修信息</span>
|
<span>维修信息</span>
|
||||||
</div>
|
</div> -->
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="maintLoading"
|
v-loading="maintLoading"
|
||||||
:data="maintList"
|
:data="maintList"
|
||||||
@ -1258,13 +1276,13 @@
|
|||||||
@pagination="getMaintList"
|
@pagination="getMaintList"
|
||||||
/>
|
/>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card>
|
<el-card v-if="type=='upkeep'">
|
||||||
<div
|
<!-- <div
|
||||||
slot="header"
|
slot="header"
|
||||||
class="clearfix"
|
class="clearfix"
|
||||||
>
|
>
|
||||||
<span>保养信息</span>
|
<span>保养信息</span>
|
||||||
</div>
|
</div> -->
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="upkeepLoading"
|
v-loading="upkeepLoading"
|
||||||
:data="upkeepList"
|
:data="upkeepList"
|
||||||
@ -1860,6 +1878,8 @@ export default {
|
|||||||
//设备维保
|
//设备维保
|
||||||
upkeepTitle: "设备维保信息",
|
upkeepTitle: "设备维保信息",
|
||||||
upkeepOpen: false,
|
upkeepOpen: false,
|
||||||
|
// 类型 maint:维修,upkeep:保养
|
||||||
|
type: null,
|
||||||
//维修信息
|
//维修信息
|
||||||
maintLoading: false,
|
maintLoading: false,
|
||||||
maintList: [],
|
maintList: [],
|
||||||
@ -2045,14 +2065,6 @@ export default {
|
|||||||
},
|
},
|
||||||
upkeepCancel() {
|
upkeepCancel() {
|
||||||
this.upkeepOpen = false;
|
this.upkeepOpen = false;
|
||||||
this.maintList = [];
|
|
||||||
this.maintTotal = 0;
|
|
||||||
this.upkeepList = [];
|
|
||||||
this.upkeepTotal = 0;
|
|
||||||
this.queryParamsMaint = this.queryParamsUpkeep = {
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
//维修信息
|
//维修信息
|
||||||
getUpkeepList() {
|
getUpkeepList() {
|
||||||
@ -2075,14 +2087,31 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
//设备维保详情
|
//设备维保详情
|
||||||
upkeepClick() {
|
upkeepClick(type) {
|
||||||
|
this.type = type;
|
||||||
|
if (this.type == "maint") {
|
||||||
|
this.upkeepTitle = "设备维修信息";
|
||||||
|
}
|
||||||
|
if (this.type == "upkeep") {
|
||||||
|
this.upkeepTitle = "设备保养信息";
|
||||||
|
}
|
||||||
//获取维修保养信息
|
//获取维修保养信息
|
||||||
this.getMaintList();
|
// this.getMaintList();
|
||||||
this.getUpkeepList();
|
// this.getUpkeepList();
|
||||||
this.upkeepOpen = true;
|
this.upkeepOpen = true;
|
||||||
},
|
},
|
||||||
/**详情按钮 */
|
/**详情按钮 */
|
||||||
handleDetails(row) {
|
handleDetails(row) {
|
||||||
|
this.maintList = [];
|
||||||
|
this.maintTotal = 0;
|
||||||
|
this.upkeepList = [];
|
||||||
|
this.upkeepTotal = 0;
|
||||||
|
this.queryParamsUpkeep = this.queryParamsUpkeep={
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
};
|
||||||
|
this.getMaintList();
|
||||||
|
this.getUpkeepList();
|
||||||
this.selectedEquipId = row.id;
|
this.selectedEquipId = row.id;
|
||||||
this.detailsForm = {};
|
this.detailsForm = {};
|
||||||
getInfo(row.id).then((response) => {
|
getInfo(row.id).then((response) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user