useGasDetail.vue 4.8 KB

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