| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- <!--资格申请-添加-->
- <template>
- <div class="addPage">
- <div class="addPage_title">
- <p>查看气瓶</p>
- <p class="reset-button-one" @click="backPage">返回</p>
- </div>
- <!--基本信息-->
- <div class="info_title">气瓶信息</div>
- <div class="info" v-if="form">
- <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.companyName}}</i></li>
- <li><i>气体组分:</i><i>{{form.airConstituents}}</i></li>
- </div>
- <div class="info_title">申请人信息</div>
- <div class="info" v-if="form.taskRVO">
- <li><i>申领人:</i><i>{{form.taskRVO.userName}}</i></li>
- <li><i>联系方式:</i><i>{{form.taskRVO.phone}}</i></li>
- <li><i>实验地点:</i><i>{{form.taskRVO.location}}</i></li>
- <li v-if="form.storageStatus==1"><i>状态:</i><i>空闲</i></li>
- <li v-if="form.storageStatus==2"><i>状态:</i><i>使用中</i></li>
- <li v-if="form.storageStatus==3"><i>状态:</i><i>已出库</i></li>
- </div>
- <div class="addPage_b">
- <!--审核记录-->
- <div class="addPage_b_t">
- <div class="addPage_b_t_title">使用信息</div>
- <el-table border v-loading="loading" :data="form.recordVos">
- <el-table-column label="使用人" align="left" prop="contacts"/>
- <el-table-column label="联系方式" align="left" prop="phone"></el-table-column>
- <el-table-column label="使用次数" align="left" prop="countNumber"></el-table-column>
- <el-table-column label="总使用量" align="left" prop="amount">
- <template slot-scope="scope">
- <span >{{scope.row.amount}}Mpa</span>
- </template>
- </el-table-column>
- <el-table-column label="最后使用时间" align="left" prop="backTime"></el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { getToken } from "@/utils/auth";
- import { gasApplyDetail, storageInfoDetail, subjectList } from '@/api/gasManage3_0/gasManage'
- let Base64 = require('js-base64').Base64;
- export default {
- name: "addPage",
- props:{
- pageData2: {},
- },
- data() {
- return {
- pageType:1,
- uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
- headers: {
- Authorization: "Bearer " + getToken(),
- },
- loading:false,
- form:{
- },
- formInfo:{},
- total:0,
- tableData:[],
- };
- },
- methods: {
- handleClick(index,row,doType){
- let _this=this;
- if(doType=='again'){//重新申请
- this.$parent.handleClick('','','again');
- }
- },
- /* 详情 */
- getInfo(id){
- let _this=this;
- storageInfoDetail(id).then( response => {
- let res=response.data;
- if(response.code==200){
- _this.form=res;
- }
- });
- },
- //返回
- backPage(){
- this.$parent.handleClick('','','back');
- this.$parent.getList();
- this.$parent.gasStorageStatistics();
- this.$parent.buildingStorageStatistics();
- this.$parent.labStorageStatistics();
- },
- },
- mounted() {
- this.getInfo(this.pageData2.item.id)
- }
- };
- </script>
- <style scoped lang="scss">
- .addPage {
- flex:1;
- display: flex!important;
- flex-direction: column;
- box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
- border-radius:10px;
- /*顶部*/
- .addPage_title{
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-bottom: 1px solid #E0E0E0;
- padding-top:20px;
- p:nth-child(1){
- flex: 1;
- line-height:60px;
- color: #0045AF;
- font-size:18px;
- margin:0 12px 0 20px;
- }
- p:nth-child(2){
- margin-right:20px;
- }
- p:nth-child(3){
- margin-right:20px;
- }
- }
- /*小标题*/
- .info_title{
- margin:20px 20px 0;
- font-size: 16px;
- font-family: Microsoft YaHei;
- font-weight: bold;
- color: #333333;
- line-height: 16px;
- }
- /*基本信息*/
- .info{
- display: flex;
- justify-content: flex-start;
- flex-wrap: wrap;
- align-items: center;
- border: 1px solid #E0E0E0;
- margin: 20px;
- >li{
- list-style-type: none;
- margin: 20px;
- >i{
- font-style: normal;
- }
- >i:nth-of-type(1){
- font-size: 16px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #999999;
- line-height: 16px;
- }
- >i:nth-of-type(2){
- font-size: 16px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #333333;
- line-height: 16px;
- }
- }
- .look_img{
- >i:nth-of-type(2){
- color: #0183FA;
- }
- }
- }
- .addPage_b{
- flex:1;
- display: flex!important;
- flex-direction: column;
- /*气瓶信息*/
- .addPage_b_t{
- flex:1;
- display: flex!important;
- flex-direction: column;
- padding: 0 20px;
- box-sizing: border-box;
- .addPage_b_t_title{
- font-size: 16px;
- font-family: Microsoft YaHei;
- font-weight: bold;
- color: #333333;
- line-height: 16px;
- margin: 40px 0 30px 0;
- }
- }
- }
- }
- </style>
|