infoStatisticsDetail.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <!--资格申请-添加-->
  2. <template>
  3. <div class="addPage">
  4. <div class="addPage_title">
  5. <p>查看气瓶</p>
  6. <p class="reset-button-one" @click="backPage">返回</p>
  7. </div>
  8. <!--基本信息-->
  9. <div class="info_title">气瓶信息</div>
  10. <div class="info" v-if="form">
  11. <li><i>气瓶编号:</i><i>{{form.airNumber}}</i></li>
  12. <li><i>气体名称:</i><i>{{form.airName}}</i></li>
  13. <li><i>气体级别/规格:</i><i>{{form.configName}}</i></li>
  14. <li><i>气瓶厂家:</i><i>{{form.companyName}}</i></li>
  15. <li><i>气体组分:</i><i>{{form.airConstituents}}</i></li>
  16. </div>
  17. <div class="info_title">申请人信息</div>
  18. <div class="info" v-if="form.taskRVO">
  19. <li><i>申领人:</i><i>{{form.taskRVO.userName}}</i></li>
  20. <li><i>联系方式:</i><i>{{form.taskRVO.phone}}</i></li>
  21. <li><i>实验地点:</i><i>{{form.taskRVO.location}}</i></li>
  22. <li v-if="form.storageStatus==1"><i>状态:</i><i>空闲</i></li>
  23. <li v-if="form.storageStatus==2"><i>状态:</i><i>使用中</i></li>
  24. <li v-if="form.storageStatus==3"><i>状态:</i><i>已出库</i></li>
  25. </div>
  26. <div class="addPage_b">
  27. <!--审核记录-->
  28. <div class="addPage_b_t">
  29. <div class="addPage_b_t_title">使用信息</div>
  30. <el-table border v-loading="loading" :data="form.recordVos">
  31. <el-table-column label="使用人" align="left" prop="contacts"/>
  32. <el-table-column label="联系方式" align="left" prop="phone"></el-table-column>
  33. <el-table-column label="使用次数" align="left" prop="countNumber"></el-table-column>
  34. <el-table-column label="总使用量" align="left" prop="amount">
  35. <template slot-scope="scope">
  36. <span >{{scope.row.amount}}Mpa</span>
  37. </template>
  38. </el-table-column>
  39. <el-table-column label="最后使用时间" align="left" prop="backTime"></el-table-column>
  40. </el-table>
  41. </div>
  42. </div>
  43. </div>
  44. </template>
  45. <script>
  46. import { getToken } from "@/utils/auth";
  47. import { gasApplyDetail, storageInfoDetail, subjectList } from '@/api/gasManage3_0/gasManage'
  48. let Base64 = require('js-base64').Base64;
  49. export default {
  50. name: "addPage",
  51. props:{
  52. pageData2: {},
  53. },
  54. data() {
  55. return {
  56. pageType:1,
  57. uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
  58. headers: {
  59. Authorization: "Bearer " + getToken(),
  60. },
  61. loading:false,
  62. form:{
  63. },
  64. formInfo:{},
  65. total:0,
  66. tableData:[],
  67. };
  68. },
  69. methods: {
  70. handleClick(index,row,doType){
  71. let _this=this;
  72. if(doType=='again'){//重新申请
  73. this.$parent.handleClick('','','again');
  74. }
  75. },
  76. /* 详情 */
  77. getInfo(id){
  78. let _this=this;
  79. storageInfoDetail(id).then( response => {
  80. let res=response.data;
  81. if(response.code==200){
  82. _this.form=res;
  83. }
  84. });
  85. },
  86. //返回
  87. backPage(){
  88. this.$parent.handleClick('','','back');
  89. this.$parent.getList();
  90. this.$parent.gasStorageStatistics();
  91. this.$parent.buildingStorageStatistics();
  92. this.$parent.labStorageStatistics();
  93. },
  94. },
  95. mounted() {
  96. this.getInfo(this.pageData2.item.id)
  97. }
  98. };
  99. </script>
  100. <style scoped lang="scss">
  101. .addPage {
  102. flex:1;
  103. display: flex!important;
  104. flex-direction: column;
  105. box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
  106. border-radius:10px;
  107. /*顶部*/
  108. .addPage_title{
  109. display: flex;
  110. justify-content: space-between;
  111. align-items: center;
  112. border-bottom: 1px solid #E0E0E0;
  113. padding-top:20px;
  114. p:nth-child(1){
  115. flex: 1;
  116. line-height:60px;
  117. color: #0045AF;
  118. font-size:18px;
  119. margin:0 12px 0 20px;
  120. }
  121. p:nth-child(2){
  122. margin-right:20px;
  123. }
  124. p:nth-child(3){
  125. margin-right:20px;
  126. }
  127. }
  128. /*小标题*/
  129. .info_title{
  130. margin:20px 20px 0;
  131. font-size: 16px;
  132. font-family: Microsoft YaHei;
  133. font-weight: bold;
  134. color: #333333;
  135. line-height: 16px;
  136. }
  137. /*基本信息*/
  138. .info{
  139. display: flex;
  140. justify-content: flex-start;
  141. flex-wrap: wrap;
  142. align-items: center;
  143. border: 1px solid #E0E0E0;
  144. margin: 20px;
  145. >li{
  146. list-style-type: none;
  147. margin: 20px;
  148. >i{
  149. font-style: normal;
  150. }
  151. >i:nth-of-type(1){
  152. font-size: 16px;
  153. font-family: Microsoft YaHei;
  154. font-weight: 400;
  155. color: #999999;
  156. line-height: 16px;
  157. }
  158. >i:nth-of-type(2){
  159. font-size: 16px;
  160. font-family: Microsoft YaHei;
  161. font-weight: 400;
  162. color: #333333;
  163. line-height: 16px;
  164. }
  165. }
  166. .look_img{
  167. >i:nth-of-type(2){
  168. color: #0183FA;
  169. }
  170. }
  171. }
  172. .addPage_b{
  173. flex:1;
  174. display: flex!important;
  175. flex-direction: column;
  176. /*气瓶信息*/
  177. .addPage_b_t{
  178. flex:1;
  179. display: flex!important;
  180. flex-direction: column;
  181. padding: 0 20px;
  182. box-sizing: border-box;
  183. .addPage_b_t_title{
  184. font-size: 16px;
  185. font-family: Microsoft YaHei;
  186. font-weight: bold;
  187. color: #333333;
  188. line-height: 16px;
  189. margin: 40px 0 30px 0;
  190. }
  191. }
  192. }
  193. }
  194. </style>