|
@@ -6,18 +6,24 @@
|
|
<p class="reset-button-one" @click="backPage">返回</p>
|
|
<p class="reset-button-one" @click="backPage">返回</p>
|
|
</div>
|
|
</div>
|
|
<div class="small_title">气瓶信息</div>
|
|
<div class="small_title">气瓶信息</div>
|
|
- <!--基本信息-->
|
|
|
|
- <div class="info" v-if="form">
|
|
|
|
- <li><i>标签码:</i><i>{{form.electronicTag}}<</i></li>
|
|
|
|
- <li><i>气瓶编号:</i><i>{{form.airNumber}}</i></li>
|
|
|
|
- <li><i>气体名称:</i><i>{{form.airName}}</i></li>
|
|
|
|
- <li><i>气瓶规格:</i><i>{{form.configName}}</i></li>
|
|
|
|
- <li><i>最低气压值:</i><i></i></li>
|
|
|
|
- <li><i>气体组分:</i><i>{{form.airConstituents}}</i></li>
|
|
|
|
|
|
+ <!--基本信息-->
|
|
|
|
+ <div class="info" v-if="form">
|
|
|
|
+ <div class="info_l">
|
|
|
|
+ <img src="@/assets/ZDimages/gasManage3_0/icon_qp.png">
|
|
|
|
+ <p>{{form.bottleStorage.storageStatus == 1?'闲置':(form.bottleStorage.storageStatus == 2?'使用':(form.bottleStorage.storageStatus == 3?'出库':''))}}</p>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="info_r">
|
|
|
|
+ <li><i>标签码:</i><i>{{form.electronicTag}}</i></li>
|
|
|
|
+ <li><i>气瓶编号:</i><i>{{form.airNumber}}</i></li>
|
|
|
|
+ <li><i>气体名称:</i><i>{{form.airName}}</i></li>
|
|
|
|
+ <li><i>气瓶规格:</i><i>{{form.configName}}</i></li>
|
|
|
|
+ <li><i>最低气压值:</i><i>{{form.minPressure}}</i></li>
|
|
|
|
+ <li><i>气体组分:</i><i>{{form.airComponent}}</i></li>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="small_title">使用记录</div>
|
|
<div class="small_title">使用记录</div>
|
|
<div class="addPage_b">
|
|
<div class="addPage_b">
|
|
- <el-table border v-loading="loading" :data="form.recordVos" height="300px" >
|
|
|
|
|
|
+ <el-table border v-loading="loading" :data="tableData" height="300px" >
|
|
<el-table-column label="使用量" align="left" prop="amount">
|
|
<el-table-column label="使用量" align="left" prop="amount">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{scope.row.amount}}Mpa</span>
|
|
<span>{{scope.row.amount}}Mpa</span>
|
|
@@ -26,13 +32,13 @@
|
|
<el-table-column label="使用前气压" align="left" prop="beforeUsePic">
|
|
<el-table-column label="使用前气压" align="left" prop="beforeUsePic">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{scope.row.beforeUse}}Mpa</span>
|
|
<span>{{scope.row.beforeUse}}Mpa</span>
|
|
- <span style="color: #0183FA;margin-left: 10px;cursor: pointer;" @click="handleClick('',scope.row,'before')">查看图片</span>
|
|
|
|
|
|
+ <!-- <span style="color: #0183FA;margin-left: 10px;cursor: pointer;" @click="handleClick('',scope.row,'before')">查看图片</span>-->
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="使用后气压" align="left" prop="afterUse">
|
|
<el-table-column label="使用后气压" align="left" prop="afterUse">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{scope.row.afterUse}}Mpa</span>
|
|
<span>{{scope.row.afterUse}}Mpa</span>
|
|
- <span style="color: #0183FA;margin-left: 10px;cursor: pointer;" @click="handleClick('',scope.row,'after')">查看图片</span>
|
|
|
|
|
|
+ <!-- <span style="color: #0183FA;margin-left: 10px;cursor: pointer;" @click="handleClick('',scope.row,'after')">查看图片</span>-->
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="使用时间" align="left" prop="useTime">
|
|
<el-table-column label="使用时间" align="left" prop="useTime">
|
|
@@ -52,7 +58,7 @@
|
|
<script>
|
|
<script>
|
|
|
|
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
-import {useRecordDetail } from '@/api/gasManage3_0/gasManageSYD'
|
|
|
|
|
|
+import { useRecordDetail, useRecordListDetail } from '@/api/gasManage3_0/gasManageSYD'
|
|
let Base64 = require('js-base64').Base64;
|
|
let Base64 = require('js-base64').Base64;
|
|
export default {
|
|
export default {
|
|
name: "addPage",
|
|
name: "addPage",
|
|
@@ -127,6 +133,17 @@ export default {
|
|
});
|
|
});
|
|
|
|
|
|
},
|
|
},
|
|
|
|
+ /* 详情 */
|
|
|
|
+ getList(id){
|
|
|
|
+ let _this=this;
|
|
|
|
+ useRecordListDetail(id).then( response => {
|
|
|
|
+ let res=response.rows;
|
|
|
|
+ if(response.code==200){
|
|
|
|
+ _this.tableData=res;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ },
|
|
//返回
|
|
//返回
|
|
backPage(){
|
|
backPage(){
|
|
this.$parent.handleClick('','','back');
|
|
this.$parent.handleClick('','','back');
|
|
@@ -134,8 +151,9 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.formInfo=this.pageData2.item
|
|
|
|
|
|
+ this.form=this.pageData2.item
|
|
this.getInfo(this.pageData2.item.id);
|
|
this.getInfo(this.pageData2.item.id);
|
|
|
|
+ this.getList(this.pageData2.item.id);
|
|
}
|
|
}
|
|
|
|
|
|
};
|
|
};
|
|
@@ -143,7 +161,7 @@ export default {
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
.el-table__row .warning-row{
|
|
.el-table__row .warning-row{
|
|
- background: #333333;
|
|
|
|
|
|
+ background: #333333;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -193,32 +211,61 @@ export default {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
justify-content: flex-start;
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
- height: 130px;
|
|
|
|
- border: 1px solid #E0E0E0;
|
|
|
|
margin: 20px;
|
|
margin: 20px;
|
|
- padding: 30px 48px;
|
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- >li{
|
|
|
|
- list-style-type: none;
|
|
|
|
- margin-right: 30px;
|
|
|
|
- >i{
|
|
|
|
- font-style: normal;
|
|
|
|
|
|
+ .info_l{
|
|
|
|
+ margin-right: 92px;
|
|
|
|
+ width: 100px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ margin-left: 100px;
|
|
|
|
+ >img{
|
|
|
|
+ width: 38px;
|
|
|
|
+ height: 80px;
|
|
}
|
|
}
|
|
- >i:nth-of-type(1){
|
|
|
|
|
|
+ >P{
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
font-family: Microsoft YaHei;
|
|
font-family: Microsoft YaHei;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
- color: #999999;
|
|
|
|
|
|
+ color: #0183FA;
|
|
line-height: 16px;
|
|
line-height: 16px;
|
|
|
|
+ margin-top: 12px;
|
|
}
|
|
}
|
|
- >i:nth-of-type(2){
|
|
|
|
- font-size: 16px;
|
|
|
|
- font-family: Microsoft YaHei;
|
|
|
|
- font-weight: 400;
|
|
|
|
- color: #333333;
|
|
|
|
- line-height: 16px;
|
|
|
|
|
|
+ }
|
|
|
|
+ .info_r{
|
|
|
|
+ display: flex;
|
|
|
|
+ flex: 1;
|
|
|
|
+ justify-content: flex-start;
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
+ >li{
|
|
|
|
+ list-style-type: none;
|
|
|
|
+ margin: 20px 0;
|
|
|
|
+ >i{
|
|
|
|
+ font-style: normal;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ vertical-align:text-top;
|
|
|
|
+ }
|
|
|
|
+ >i:nth-of-type(1){
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
|
+ font-weight: 400;
|
|
|
|
+ color: #999999;
|
|
|
|
+ line-height: 16px;
|
|
|
|
+ width: 120px;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ >i:nth-of-type(2){
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
|
+ font-weight: 400;
|
|
|
|
+ color: #333333;
|
|
|
|
+ line-height: 16px;
|
|
|
|
+ width: 200px;
|
|
|
|
+ text-align: left;
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.look_img{
|
|
.look_img{
|
|
>i:nth-of-type(2){
|
|
>i:nth-of-type(2){
|
|
color: #0183FA;
|
|
color: #0183FA;
|