Compare commits

..

No commits in common. "bb6ae137f982843185707e02977064e7e2895c17" and "013ebef9cd5126d76220c2358d1aaf1d22b6320e" have entirely different histories.

View File

@ -935,6 +935,12 @@
label-width="80px"
>
<el-row :gutter="20">
<el-col :span="24">
<el-button
type="text"
@click="upkeepClick"
>设备维保详情</el-button>
</el-col>
<el-col :span="12">
<el-form-item
label="设备型号"
@ -1168,30 +1174,6 @@
<span class="pop-span">{{ this.detailsForm.remark ? this.detailsForm.remark : "无"}}</span>
</el-form-item>
</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-form>
@ -1203,22 +1185,22 @@
</div>
</el-dialog>
<!-- 设备维保弹出框 :close-on-click-modal="false"
-->
<!-- 设备维保弹出框 -->
<el-dialog
:title="upkeepTitle"
:visible.sync="upkeepOpen"
width="1200px"
:close-on-click-modal="false"
class="card-detail-class"
:before-close="upkeepCancel"
>
<el-card v-if="type=='maint'">
<!-- <div
slot="header"
class="clearfix"
>
<span>维修信息</span>
</div> -->
<el-card>
<div
slot="header"
class="clearfix"
>
<span>维修信息</span>
</div>
<el-table
v-loading="maintLoading"
:data="maintList"
@ -1276,13 +1258,13 @@
@pagination="getMaintList"
/>
</el-card>
<el-card v-if="type=='upkeep'">
<!-- <div
slot="header"
class="clearfix"
>
<span>保养信息</span>
</div> -->
<el-card>
<div
slot="header"
class="clearfix"
>
<span>保养信息</span>
</div>
<el-table
v-loading="upkeepLoading"
:data="upkeepList"
@ -1570,7 +1552,7 @@
</el-dialog>
</div>
</template>
<script>
import {
listInfo,
@ -1878,8 +1860,6 @@ export default {
//
upkeepTitle: "设备维保信息",
upkeepOpen: false,
// maintupkeep
type: null,
//
maintLoading: false,
maintList: [],
@ -2065,6 +2045,14 @@ export default {
},
upkeepCancel() {
this.upkeepOpen = false;
this.maintList = [];
this.maintTotal = 0;
this.upkeepList = [];
this.upkeepTotal = 0;
this.queryParamsMaint = this.queryParamsUpkeep = {
pageNum: 1,
pageSize: 10,
};
},
//
getUpkeepList() {
@ -2086,32 +2074,15 @@ export default {
this.maintLoading = false;
});
},
//
upkeepClick(type) {
this.type = type;
if (this.type == "maint") {
this.upkeepTitle = "设备维修信息";
}
if (this.type == "upkeep") {
this.upkeepTitle = "设备保养信息";
}
//
// this.getMaintList();
// this.getUpkeepList();
this.upkeepOpen = true;
},
//
upkeepClick() {
//
this.getMaintList();
this.getUpkeepList();
this.upkeepOpen = true;
},
/**详情按钮 */
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.detailsForm = {};
getInfo(row.id).then((response) => {