qualificationApplyDetail.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <!--资格申请-添加-->
  2. <template>
  3. <div class="addPage">
  4. <div class="addPage_title">
  5. <p>查看资格</p>
  6. <p v-if="pageData2.remark==2" style="width: 120px;" class="inquire-button-one" @click="handleClick('','','again')">重新申请</p>
  7. <p class="reset-button-one" @click="backPage">返回</p>
  8. </div>
  9. <!--基本信息-->
  10. <div class="info" v-if="form.apply">
  11. <li><i>实验室地点:</i><i>{{form.apply.location}}</i></li>
  12. <li><i>使用期限:</i><i>{{form.apply.startTime}}至{{form.apply.endTime}}</i></li>
  13. <li><i>气瓶用途:</i><i>{{form.apply.gasUse}}</i></li>
  14. <li><i>主要安全措施:</i><i>{{form.apply.safetyPrecautions}}</i></li>
  15. <li class="look_img" @click="lookFile(form.apply.applyCertificate)"><i>用气申请表:</i><i>查看图片</i></li>
  16. </div>
  17. <div class="addPage_b">
  18. <!--气瓶信息-->
  19. <div class="addPage_b_t">
  20. <div class="addPage_b_t_title">气瓶信息</div>
  21. <el-table border v-loading="loading" :data="form.airBottlelist" height="300px">
  22. <el-table-column label="气体名称" align="left" prop="airName"/>
  23. <el-table-column label="气体级别/规格" align="left" prop="configName"></el-table-column>
  24. <el-table-column label="气瓶厂家" align="left" prop="companyName"></el-table-column>
  25. <el-table-column label="气体组分" align="left" prop="airConstituents"></el-table-column>
  26. <el-table-column label="数量" align="left" prop="bottleNumber"></el-table-column>
  27. </el-table>
  28. </div>
  29. </div>
  30. <div class="addPage_b" v-if="form.auditlist !='undefined'">
  31. <!--气瓶信息-->
  32. <div class="addPage_b_t">
  33. <div class="addPage_b_t_title">审核记录</div>
  34. <el-table v-loading="loading" :data="form.auditlist" height="300px">
  35. <el-table-column label="审核人" align="left" prop="auditUser"/>
  36. <el-table-column label="审核时间" align="left" prop="auditTime"></el-table-column>
  37. <el-table-column label="审核操作" align="left" prop="centerAuditStatus">
  38. <template slot-scope="scope">
  39. <p :class="scope.row.auditStatus == 0?'color_warn':(scope.row.auditStatus == 1?'color_14AE10':(scope.row.auditStatus == 2?'color_red':''))">{{scope.row.auditStatus == 0?'待审核':(scope.row.auditStatus == 1?'通过':(scope.row.auditStatus == 2?'驳回':''))}}</p>
  40. </template>
  41. </el-table-column>
  42. <el-table-column label="审核说明" align="left" prop="remark"></el-table-column>
  43. </el-table>
  44. </div>
  45. </div>
  46. </div>
  47. </template>
  48. <script>
  49. import { getToken } from "@/utils/auth";
  50. import { qualificationApplyDetail, qualificationApplyList, subjectList } from '@/api/gasManage3_0/gasManage'
  51. let Base64 = require('js-base64').Base64;
  52. export default {
  53. name: "addPage",
  54. props:{
  55. pageData2: {},
  56. },
  57. data() {
  58. return {
  59. pageType:1,
  60. headers: {
  61. Authorization: "Bearer " + getToken(),
  62. },
  63. loading:false,
  64. form:{
  65. },
  66. total:0,
  67. tableData:[{
  68. num:0,
  69. }],
  70. };
  71. },
  72. methods: {
  73. handleClick(index,row,doType){
  74. let _this=this;
  75. if(doType=='again'){//重新申请
  76. this.$parent.handleClick('',this.form.apply.id,'again');
  77. }
  78. },
  79. /**查看图片 */
  80. lookFile(item){
  81. let visitUrl=window.location.href.split('://')[0]+'://'+this.judgmentNetworkReturnAddress()+'/admin/'+item;
  82. console.log(visitUrl)
  83. window.open(localStorage.getItem('filePreviewUrl') + '/onlinePreview?url='+encodeURIComponent(Base64.encode(visitUrl)));
  84. },
  85. /* 详情 */
  86. getInfo(id){
  87. let _this=this;
  88. qualificationApplyDetail({id:id}).then( response => {
  89. let res=response.data;
  90. if(response.code==200){
  91. _this.form=res;
  92. }
  93. });
  94. },
  95. //返回
  96. backPage(){
  97. this.$parent.handleClick('','','back');
  98. },
  99. },
  100. mounted() {
  101. this.getInfo(this.pageData2.id);
  102. }
  103. };
  104. </script>
  105. <style scoped lang="scss">
  106. .addPage {
  107. flex:1;
  108. display: flex!important;
  109. flex-direction: column;
  110. box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
  111. border-radius:10px;
  112. /*顶部*/
  113. .addPage_title{
  114. display: flex;
  115. justify-content: space-between;
  116. align-items: center;
  117. border-bottom: 1px solid #E0E0E0;
  118. padding-top:20px;
  119. p:nth-child(1){
  120. flex: 1;
  121. line-height:60px;
  122. color: #0045AF;
  123. font-size:18px;
  124. margin:0 12px 0 20px;
  125. }
  126. p:nth-child(2){
  127. margin-right:20px;
  128. }
  129. p:nth-child(3){
  130. margin-right:20px;
  131. }
  132. }
  133. /*基本信息*/
  134. .info{
  135. display: flex;
  136. justify-content: flex-start;
  137. flex-wrap: wrap;
  138. align-items: center;
  139. >li{
  140. list-style-type: none;
  141. margin: 20px;
  142. >i{
  143. font-style: normal;
  144. }
  145. >i:nth-of-type(1){
  146. font-size: 16px;
  147. font-family: Microsoft YaHei;
  148. font-weight: 400;
  149. color: #999999;
  150. line-height: 16px;
  151. }
  152. >i:nth-of-type(2){
  153. font-size: 16px;
  154. font-family: Microsoft YaHei;
  155. font-weight: 400;
  156. color: #333333;
  157. line-height: 16px;
  158. }
  159. }
  160. .look_img{
  161. cursor: pointer;
  162. >i:nth-of-type(2){
  163. color: #0183FA;
  164. }
  165. }
  166. }
  167. .addPage_b{
  168. /*气瓶信息*/
  169. .addPage_b_t{
  170. padding: 0 20px;
  171. box-sizing: border-box;
  172. .addPage_b_t_title{
  173. font-size: 16px;
  174. font-family: Microsoft YaHei;
  175. font-weight: bold;
  176. color: #333333;
  177. line-height: 16px;
  178. margin: 40px 0 30px 0;
  179. }
  180. }
  181. }
  182. }
  183. </style>