useGasManageDetail.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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.apply">
  10. <li><i>申请人:</i><i>{{form.apply.applyUser}}</i></li>
  11. <li><i>联系方式:</i><i>{{form.apply.phone}}</i></li>
  12. <li><i>实验地点:</i><i>{{form.apply.location}}</i></li>
  13. <li><i>使用气体:</i><i>{{form.apply.useGasName}}</i></li>
  14. <li><i>使用期限:</i><i>{{form.apply.startTime}}-{{form.apply.endTime}}</i></li>
  15. <li><i>气瓶用途:</i><i>{{form.apply.gasUse}}</i></li>
  16. <li><i>主要安全措施:</i><i>{{form.apply.safetyPrecautions}}</i></li>
  17. <li class="look_img" @click="lookFile(form.apply.applyCertificate)"><i>用气申请表:</i><i>查看图片</i></li>
  18. </div>
  19. <div class="addPage_b">
  20. <!--审核记录-->
  21. <div class="addPage_b_t">
  22. <div class="addPage_b_t_title">审核记录</div>
  23. <el-table border v-loading="loading" :data="form.auditlist" height="300">
  24. <el-table-column label="审核人" align="left" prop="auditUser"/>
  25. <el-table-column label="审核时间" align="left" prop="auditTime"></el-table-column>
  26. <el-table-column label="审核操作" align="left" prop="auditStatus">
  27. <template slot-scope="scope">
  28. <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>
  29. </template>
  30. </el-table-column>
  31. <el-table-column label="审核说明" align="left" prop="remark">
  32. <template slot-scope="scope">
  33. <span >{{scope.row.remark?scope.row.remark:'-'}}</span>
  34. </template>
  35. </el-table-column>
  36. </el-table>
  37. </div>
  38. </div>
  39. </div>
  40. </template>
  41. <script>
  42. import { getToken } from "@/utils/auth";
  43. import {
  44. abnormalRecordDetail, qualificationcenterCheck,
  45. qualificationCheckDetail, qualificationlabCheck,
  46. subjectList,
  47. supplierCheck, useGasManageCheckDetail
  48. } from '@/api/gasManage3_0/gasManage'
  49. let Base64 = require('js-base64').Base64;
  50. export default {
  51. name: "addPage",
  52. props:{
  53. pageData2:{},
  54. },
  55. data() {
  56. return {
  57. pageType:1,
  58. uploadImgUrl: window.location.href.split('://')[0]+'://' + process.env.VUE_APP_BASE_API + "/base/upload", // 上传的图片服务器地址
  59. headers: {
  60. Authorization: "Bearer " + getToken(),
  61. },
  62. // 设置只能选择当前日期及之后的日期
  63. pickerOptions0: {
  64. disabledDate(time) {
  65. return time.getTime() < Date.now() - 8.64e7;//如果没有后面的-8.64e7就是不可以选择今天的
  66. }
  67. },
  68. loading:false,
  69. form:{
  70. apply:{
  71. leadAuditStatus:'',
  72. },
  73. },
  74. dateRange:[],
  75. laboratoryOptions:[],
  76. // 查询参数
  77. queryParams: {
  78. pageNum: 1,
  79. pageSize:20,
  80. },
  81. // 实验室审核参数
  82. queryParamsCheck: {
  83. id: '',
  84. leadAuditStatus:'',//1通过2驳回
  85. leadAuditCause:'',// 审核内容
  86. },
  87. // 实验室审核参数
  88. queryParamsCheck2: {
  89. id: '',
  90. centerAuditStatus:'',//1通过2驳回
  91. centerAuditCause:'',// 审核内容
  92. },
  93. total:0,
  94. tableData:[],
  95. };
  96. },
  97. created() {
  98. },
  99. methods: {
  100. //审核按钮
  101. checkFun(){
  102. let _this=this;
  103. qualificationlabCheck(this.queryParamsCheck).then( response => {
  104. if(response.code==200){
  105. this.$message({
  106. type: 'success',
  107. message:response.msg,
  108. duration:2000,
  109. onClose:function(){
  110. _this.backPage();
  111. _this.loading = false;
  112. }
  113. });
  114. }
  115. });
  116. },
  117. //实验中心审核按钮
  118. checkFun2(){
  119. let _this=this;
  120. qualificationcenterCheck(this.queryParamsCheck2).then( response => {
  121. if(response.code==200){
  122. this.$message({
  123. type: 'success',
  124. message:response.msg,
  125. duration:2000,
  126. onClose:function(){
  127. _this.backPage();
  128. _this.loading = false;
  129. }
  130. });
  131. }
  132. });
  133. },
  134. /**查看图片 */
  135. lookFile(item){
  136. let visitUrl=window.location.href.split('://')[0]+'://'+process.env.VUE_APP_BASE_API+'/admin/'+item;
  137. console.log(visitUrl)
  138. window.open(localStorage.getItem('filePreviewUrl') + '/onlinePreview?url='+encodeURIComponent(Base64.encode(visitUrl)));
  139. },
  140. /* 详情 */
  141. getInfo(id){
  142. let _this=this;
  143. useGasManageCheckDetail({id:id}).then( response => {
  144. let res=response.data;
  145. if(response.code==200){
  146. _this.form=res;
  147. }
  148. });
  149. },
  150. //返回
  151. backPage(){
  152. this.$parent.handleClick('','','back');
  153. this.$parent.getList();
  154. },
  155. },
  156. mounted() {
  157. this.queryParamsCheck.id=this.pageData2.id;
  158. this.queryParamsCheck2.id=this.pageData2.id;
  159. this.getInfo(this.pageData2.id);
  160. }
  161. };
  162. </script>
  163. <style scoped lang="scss">
  164. .addPage {
  165. flex:1;
  166. display: flex!important;
  167. flex-direction: column;
  168. box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
  169. border-radius:10px;
  170. /*顶部*/
  171. .addPage_title{
  172. display: flex;
  173. justify-content: space-between;
  174. align-items: center;
  175. border-bottom: 1px solid #E0E0E0;
  176. padding-top:20px;
  177. p:nth-child(1){
  178. flex: 1;
  179. line-height:60px;
  180. color: #0045AF;
  181. font-size:18px;
  182. margin:0 12px 0 20px;
  183. }
  184. p:nth-child(2){
  185. margin-right:20px;
  186. }
  187. p:nth-child(3){
  188. margin-right:20px;
  189. }
  190. }
  191. /*基本信息*/
  192. .info{
  193. display: flex;
  194. justify-content: flex-start;
  195. flex-wrap: wrap;
  196. align-items: center;
  197. >li{
  198. list-style-type: none;
  199. margin: 20px;
  200. >i{
  201. font-style: normal;
  202. }
  203. >i:nth-of-type(1){
  204. font-size: 16px;
  205. font-family: Microsoft YaHei;
  206. font-weight: 400;
  207. color: #999999;
  208. line-height: 16px;
  209. }
  210. >i:nth-of-type(2){
  211. font-size: 16px;
  212. font-family: Microsoft YaHei;
  213. font-weight: 400;
  214. color: #333333;
  215. line-height: 16px;
  216. }
  217. }
  218. .look_img{
  219. cursor: pointer;
  220. >i:nth-of-type(2){
  221. color: #0183FA;
  222. }
  223. }
  224. }
  225. .addPage_b{
  226. /*气瓶信息*/
  227. .addPage_b_t{
  228. padding: 0 20px;
  229. box-sizing: border-box;
  230. .addPage_b_t_title{
  231. font-size: 16px;
  232. font-family: Microsoft YaHei;
  233. font-weight: bold;
  234. color: #333333;
  235. line-height: 16px;
  236. margin: 40px 0 30px 0;
  237. }
  238. }
  239. .check_operate{
  240. text-align: center;
  241. margin-top: 20px;
  242. .apply_tree_b2{
  243. width: 800px;
  244. }
  245. .sub_btn{
  246. display: flex;
  247. justify-content: center;
  248. margin: 30px 0;
  249. }
  250. }
  251. }
  252. }
  253. </style>