123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <!--用气申请-添加-->
- <template>
- <div class="addPage">
- <div class="addPage_title">
- <p>查看</p>
- <p v-if="pageData2.remark==2" style="width: 120px;" class="inquire-button-one" @click="handleClick('','','again')">重新申请</p>
- <p class="reset-button-one" @click="backPage">返回</p>
- </div>
- <!--基本信息-->
- <div class="info" v-if="form.apply">
- <li><i>实验室地点:</i><i>{{form.apply.location}}</i></li>
- <li><i>使用气体:</i><i>{{form.apply.useGasName}}</i></li>
- <li><i>使用期限:</i><i>{{form.apply.startTime}}至{{form.apply.endTime}}</i></li>
- <li><i>气瓶用途:</i><i>{{form.apply.gasUse}}</i></li>
- <li><i>主要安全措施:</i><i>{{form.apply.safetyPrecautions}}</i></li>
- <li class="look_img" @click="lookFile(form.apply.applyCertificate)"><i>用气申请表:</i><i>查看图片</i></li>
- </div>
- <div class="addPage_b" v-if="form.auditlist !='undefined'">
- <!--气瓶信息-->
- <div class="addPage_b_t">
- <div class="addPage_b_t_title">审核记录</div>
- <el-table border v-loading="loading" :data="form.auditlist" height="300px">
- <el-table-column label="审核人" align="left" prop="auditUser"/>
- <el-table-column label="审核时间" align="left" prop="auditTime"></el-table-column>
- <el-table-column label="审核操作" align="left" prop="auditStatus">
- <template slot-scope="scope">
- <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>
- </template>
- </el-table-column>
- <el-table-column label="审核说明" align="left" prop="remark"></el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { getToken } from "@/utils/auth";
- import {
- qualificationApplyDetail,
- qualificationApplyList,
- subjectList,
- useAgsApplyDetail
- } from '@/api/gasManage3_0/gasManage'
- let Base64 = require('js-base64').Base64;
- export default {
- name: "addPage",
- props:{
- pageData2: {},
- },
- data() {
- return {
- pageType:1,
- headers: {
- Authorization: "Bearer " + getToken(),
- },
- loading:false,
- form:{
- },
- total:0,
- tableData:[{
- num:0,
- }],
- };
- },
- methods: {
- handleClick(index,row,doType){
- let _this=this;
- if(doType=='again'){//重新申请
- this.$parent.handleClick('',this.form.apply.id,'again');
- }
- },
- /**查看图片 */
- lookFile(item){
- let visitUrl=window.location.href.split('://')[0]+'://'+this.judgmentNetworkReturnAddress()+'/admin/'+item;
- console.log(visitUrl)
- window.open(localStorage.getItem('filePreviewUrl') + '/onlinePreview?url='+encodeURIComponent(Base64.encode(visitUrl)));
- },
- /* 详情 */
- getInfo(id){
- let _this=this;
- useAgsApplyDetail({id:id}).then( response => {
- let res=response.data;
- if(response.code==200){
- _this.form=res;
- }
- });
- },
- //返回
- backPage(){
- this.$parent.handleClick('','','back');
- },
- },
- mounted() {
- this.getInfo(this.pageData2.id);
- }
- };
- </script>
- <style scoped lang="scss">
- .addPage {
- flex:1;
- display: flex!important;
- flex-direction: column;
- box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
- border-radius:10px;
- /*顶部*/
- .addPage_title{
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-bottom: 1px solid #E0E0E0;
- padding-top:20px;
- p:nth-child(1){
- flex: 1;
- line-height:60px;
- color: #0045AF;
- font-size:18px;
- margin:0 12px 0 20px;
- }
- p:nth-child(2){
- margin-right:20px;
- }
- p:nth-child(3){
- margin-right:20px;
- }
- }
- /*基本信息*/
- .info{
- display: flex;
- justify-content: flex-start;
- flex-wrap: wrap;
- align-items: center;
- >li{
- list-style-type: none;
- margin: 20px;
- >i{
- font-style: normal;
- }
- >i:nth-of-type(1){
- font-size: 16px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #999999;
- line-height: 16px;
- }
- >i:nth-of-type(2){
- font-size: 16px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #333333;
- line-height: 16px;
- }
- }
- .look_img{
- cursor: pointer;
- >i:nth-of-type(2){
- color: #0183FA;
- }
- }
- }
- .addPage_b{
- /*气瓶信息*/
- .addPage_b_t{
- padding: 0 20px;
- box-sizing: border-box;
- .addPage_b_t_title{
- font-size: 16px;
- font-family: Microsoft YaHei;
- font-weight: bold;
- color: #333333;
- line-height: 16px;
- margin: 40px 0 30px 0;
- }
- }
- }
- }
- </style>
|