useGasDetail.vue 4.9 KB

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