qualificationManageDetail.vue 7.5 KB

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