Compare commits
No commits in common. "bb6ae137f982843185707e02977064e7e2895c17" and "013ebef9cd5126d76220c2358d1aaf1d22b6320e" have entirely different histories.
bb6ae137f9
...
013ebef9cd
@ -935,6 +935,12 @@
|
|||||||
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="设备型号"
|
||||||
@ -1168,30 +1174,6 @@
|
|||||||
<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>
|
||||||
@ -1203,22 +1185,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 v-if="type=='maint'">
|
<el-card>
|
||||||
<!-- <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"
|
||||||
@ -1276,13 +1258,13 @@
|
|||||||
@pagination="getMaintList"
|
@pagination="getMaintList"
|
||||||
/>
|
/>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card v-if="type=='upkeep'">
|
<el-card>
|
||||||
<!-- <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"
|
||||||
@ -1570,7 +1552,7 @@
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
listInfo,
|
listInfo,
|
||||||
@ -1878,8 +1860,6 @@ export default {
|
|||||||
//设备维保
|
//设备维保
|
||||||
upkeepTitle: "设备维保信息",
|
upkeepTitle: "设备维保信息",
|
||||||
upkeepOpen: false,
|
upkeepOpen: false,
|
||||||
// 类型 maint:维修,upkeep:保养
|
|
||||||
type: null,
|
|
||||||
//维修信息
|
//维修信息
|
||||||
maintLoading: false,
|
maintLoading: false,
|
||||||
maintList: [],
|
maintList: [],
|
||||||
@ -2065,6 +2045,14 @@ 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() {
|
||||||
@ -2086,32 +2074,15 @@ export default {
|
|||||||
this.maintLoading = false;
|
this.maintLoading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//设备维保详情
|
//设备维保详情
|
||||||
upkeepClick(type) {
|
upkeepClick() {
|
||||||
this.type = type;
|
//获取维修保养信息
|
||||||
if (this.type == "maint") {
|
this.getMaintList();
|
||||||
this.upkeepTitle = "设备维修信息";
|
this.getUpkeepList();
|
||||||
}
|
this.upkeepOpen = true;
|
||||||
if (this.type == "upkeep") {
|
},
|
||||||
this.upkeepTitle = "设备保养信息";
|
|
||||||
}
|
|
||||||
//获取维修保养信息
|
|
||||||
// this.getMaintList();
|
|
||||||
// this.getUpkeepList();
|
|
||||||
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