<!--出库记录-详情-->
<template>
  <div class="addPage">
    <div class="addPage_title">
      <p>查看气瓶</p>
      <p  class="reset-button-one" @click="backPage">返回</p>
    </div>
    <div class="small_title">气瓶信息</div>
     <!--基本信息-->
    <div class="info" v-if="formInfo">
      <li><i>标签码：</i><i></i></li>
      <li><i>气瓶编号：</i><i>{{formInfo.airNumber}}</i></li>
      <li><i>气体名称：</i><i>{{formInfo.airName}}</i></li>
      <li><i>气瓶规格：</i><i></i></li>
      <li><i>最低气压值：</i><i></i></li>
      <li><i>气体组分：</i><i>{{formInfo.airConstituents}}</i></li>
    </div>
    <div class="small_title">出库信息</div>
    <div class="info" v-if="form.bottleStorageOut">
      <li><i>出库人：</i><i></i></li>
      <li><i>出库时间：</i><i></i></li>
    </div>
  </div>
</template>
<script>

import { getToken } from "@/utils/auth";
import { enterRecordDetail, outRecordDetail, subjectList } from '@/api/gasManage3_0/gasManage'
let Base64 = require('js-base64').Base64;
export default {
  name: "addPage",
  props:{
    pageData2: {},
  },
  data() {
    return {
      pageType:1,
      uploadImgUrl: window.location.href.split('://')[0]+'://' + process.env.VUE_APP_BASE_API + "/file/upload", // 上传的图片服务器地址
      headers: {
        Authorization: "Bearer " + getToken(),
      },
      loading:false,
      form:{},
      formInfo:{},
      infoParams:{
        radio:1,
      },
      dateRange:[],
      laboratoryOptions:[],

      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize:20,
      },
      total:0,
      tableData:[{
        num:0,
      }],
    };
  },
  created() {

  },
  methods: {
    getList(){

    },
    //返回
    backPage(){
      this.$parent.handleClick('','','back');
    },
    /* 详情 */
    getInfo(id){
      let _this=this;
      outRecordDetail({id:id}).then( response => {
        let res=response.data;
        if(response.code==200){
          _this.form=res;
        }
      });

    },

  },
  mounted() {

    this.formInfo=this.pageData2.item
    this.getInfo(this.pageData2.item.id);
    console.log(this.formInfo)
  }

};
</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;
    }
  }
  /*小标题*/
  .small_title{
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #333333;
    line-height: 16px;
    margin: 20px 0 0 20px;
  }
  /*基本信息*/
  .info{
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: 130px;
    border: 1px solid #E0E0E0;
    margin: 20px;
    padding: 30px 48px;
    box-sizing: border-box;
    >li{
      list-style-type: none;
      margin-right: 30px;
      >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{
    margin: 20px;
  }

}
</style>
