gasApplyDetail.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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" v-if="form.qpTask">
  10. <li><i>申领人:</i><i>{{form.qpTask.userName}}</i></li>
  11. <li><i>联系方式:</i><i>{{form.qpTask.phone}}</i></li>
  12. <li><i>实验地点:</i><i>{{form.qpTask.location}}</i></li>
  13. <li><i>申请时间:</i><i>{{form.qpTask.createTime}}</i></li>
  14. </div>
  15. <div class="addPage_b">
  16. <!--审核记录-->
  17. <div class="addPage_b_t">
  18. <div class="addPage_b_t_title">气瓶信息</div>
  19. <el-table border v-loading="loading" :data="form.detailList">
  20. <el-table-column label="气体名称" align="left" prop="airName"/>
  21. <el-table-column label="气体级别/规格" align="left" prop="configName"></el-table-column>
  22. <el-table-column label="气瓶厂家" align="left" prop="companyName"></el-table-column>
  23. <el-table-column label="气体组分" align="left" prop="airConstituents"></el-table-column>
  24. <el-table-column label="数量" align="left" prop="bottleNumber"></el-table-column>
  25. <el-table-column label="状态" align="left" prop="qpStatus">
  26. <template slot-scope="scope">
  27. <p :class="scope.row.qpStatus == 0?'color_warn':'color_14AE10'">{{scope.row.qpStatus == 0?'未派送':'已派送'}}</p>
  28. </template>
  29. </el-table-column>
  30. </el-table>
  31. </div>
  32. </div>
  33. </div>
  34. </template>
  35. <script>
  36. import { getToken } from "@/utils/auth";
  37. import { gasApplyDetail, } from '@/api/gasManage3_0/gasManage'
  38. let Base64 = require('js-base64').Base64;
  39. export default {
  40. name: "addPage",
  41. props:{
  42. pageData2: {},
  43. },
  44. data() {
  45. return {
  46. pageType:1,
  47. uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
  48. headers: {
  49. Authorization: "Bearer " + getToken(),
  50. },
  51. loading:false,
  52. form:{
  53. },
  54. // 查询参数
  55. queryParams: {
  56. pageNum: 1,
  57. pageSize:20,
  58. },
  59. total:0,
  60. tableData:[{
  61. num:0,
  62. }],
  63. };
  64. },
  65. created() {
  66. },
  67. methods: {
  68. /* 详情 */
  69. getInfo(id){
  70. let _this=this;
  71. gasApplyDetail(id).then( response => {
  72. let res=response.data;
  73. if(response.code==200){
  74. _this.form=res;
  75. }
  76. });
  77. },
  78. //返回
  79. backPage(){
  80. this.$parent.handleClick('','','back');
  81. },
  82. },
  83. mounted() {
  84. console.log(this.pageData2.id)
  85. this.getInfo(this.pageData2.id);
  86. }
  87. };
  88. </script>
  89. <style scoped lang="scss">
  90. .addPage {
  91. flex:1;
  92. display: flex!important;
  93. flex-direction: column;
  94. box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
  95. border-radius:10px;
  96. /*顶部*/
  97. .addPage_title{
  98. display: flex;
  99. justify-content: space-between;
  100. align-items: center;
  101. border-bottom: 1px solid #E0E0E0;
  102. padding-top:20px;
  103. p:nth-child(1){
  104. flex: 1;
  105. line-height:60px;
  106. color: #0045AF;
  107. font-size:18px;
  108. margin:0 12px 0 20px;
  109. }
  110. p:nth-child(2){
  111. margin-right:20px;
  112. }
  113. p:nth-child(3){
  114. margin-right:20px;
  115. }
  116. }
  117. /*基本信息*/
  118. .info{
  119. display: flex;
  120. justify-content: flex-start;
  121. flex-wrap: wrap;
  122. align-items: center;
  123. >li{
  124. list-style-type: none;
  125. margin: 20px;
  126. >i{
  127. font-style: normal;
  128. }
  129. >i:nth-of-type(1){
  130. font-size: 16px;
  131. font-family: Microsoft YaHei;
  132. font-weight: 400;
  133. color: #999999;
  134. line-height: 16px;
  135. }
  136. >i:nth-of-type(2){
  137. font-size: 16px;
  138. font-family: Microsoft YaHei;
  139. font-weight: 400;
  140. color: #333333;
  141. line-height: 16px;
  142. }
  143. }
  144. .look_img{
  145. >i:nth-of-type(2){
  146. color: #0183FA;
  147. }
  148. }
  149. }
  150. .addPage_b{
  151. flex:1;
  152. display: flex!important;
  153. flex-direction: column;
  154. /*气瓶信息*/
  155. .addPage_b_t{
  156. flex:1;
  157. display: flex!important;
  158. flex-direction: column;
  159. padding: 0 20px;
  160. box-sizing: border-box;
  161. .addPage_b_t_title{
  162. font-size: 16px;
  163. font-family: Microsoft YaHei;
  164. font-weight: bold;
  165. color: #333333;
  166. line-height: 16px;
  167. margin: 40px 0 30px 0;
  168. }
  169. }
  170. }
  171. }
  172. </style>