qualificationManageCheckList.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <!--资格审核-->
  2. <template>
  3. <div class="check">
  4. <div class="check-page" v-if="pageType == 1">
  5. <el-form :model="queryParams" ref="queryForm" style="margin-top:20px;" :inline="true">
  6. <el-form-item label="关键字" prop="searchValue">
  7. <el-input
  8. v-model="queryParams.searchValue"
  9. placeholder="申请人/联系电话/实验地点"
  10. clearable
  11. maxLength="30"
  12. size="small"
  13. />
  14. </el-form-item>
  15. <el-form-item label="审核状态" prop="zgType" label-width="80px">
  16. <el-select v-model="queryParams.auditStatus" placeholder="请选择" clearable size="small">
  17. <el-option label="待审核" value="0" />
  18. <el-option label="已通过" value="1" />
  19. <el-option label="未通过" value="2" />
  20. </el-select>
  21. </el-form-item>
  22. <el-form-item>
  23. <p class="inquire-button-one" @click="handleQuery">查询</p>
  24. <p class="reset-button-one" @click="resetQuery">重置</p>
  25. </el-form-item>
  26. <el-form-item label="" prop="title" style="float: right">
  27. <p class="reset-button-one" @click="backPage">返回</p>
  28. </el-form-item>
  29. </el-form>
  30. <el-table border v-loading="loading" :data="tableData">
  31. <el-table-column label="申请人" align="left" prop="applyUser"/>
  32. <el-table-column label="联系方式" align="left" prop="phone"></el-table-column>
  33. <el-table-column label="实验地点" align="left" prop="location"></el-table-column>
  34. <el-table-column label="气瓶数量" align="left" prop="bottleNumber"></el-table-column>
  35. <el-table-column label="申请时间" align="left" prop="createTime"></el-table-column>
  36. <el-table-column label="审核状态" align="left" prop="remark">
  37. <template slot-scope="scope">
  38. <p :class="scope.row.remark == 0?'color_warn':(scope.row.remark == 1?'color_14AE10':(scope.row.remark == 2?'color_red':''))">{{scope.row.remark == 0?'待审核':(scope.row.remark == 1?'通过':(scope.row.remark == 2?'驳回':''))}}</p>
  39. </template>
  40. </el-table-column>
  41. <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">
  42. <template slot-scope="scope">
  43. <div class="button-box">
  44. <p class="table-min-button"
  45. @click="handleClick('',scope.row,'audit')"
  46. v-hasPermi="['airbottle:qualificationApplyManage:query']"
  47. >审核</p>
  48. </div>
  49. </template>
  50. </el-table-column>
  51. </el-table>
  52. <pagination
  53. :total="total"
  54. layout="total, prev, pager, next, sizes, jumper"
  55. :page.sync="queryParams.pageNum"
  56. :limit.sync="queryParams.pageSize"
  57. @pagination="getList"
  58. />
  59. </div>
  60. <!--审核页面-->
  61. <check-page v-if="pageType==2" :pageData2="pageData2"></check-page>
  62. </div>
  63. </template>
  64. <script>
  65. import { qualificationCheckList } from '@/api/gasManage3_0/gasManage'
  66. import { getToken } from "@/utils/auth";
  67. import checkPage from "./qualificationManageCheck.vue"
  68. export default {
  69. name: "Approval",
  70. components: {
  71. checkPage
  72. },
  73. data() {
  74. return {
  75. //页面状态
  76. pageType:1,
  77. loading:false,
  78. headers: {
  79. Authorization: "Bearer " + getToken()
  80. },
  81. // 查询参数
  82. queryParams: {
  83. pageNum: 1,
  84. pageSize:20,
  85. searchValue:'',
  86. auditStatus:'',
  87. },
  88. total:0,
  89. tableData:[],
  90. dateRange:[],
  91. pageData2:{},
  92. };
  93. },
  94. methods: {
  95. handleClick(index,row,doType){
  96. let _this=this;
  97. if(doType=='audit'){//申请
  98. _this.pageData2.id=row.id;
  99. _this.pageType=2;
  100. }else if(doType=='detail'){//查看
  101. _this.pageType=3;
  102. }else if(doType=='back'){//返回
  103. _this.pageType=1;
  104. }else if(doType=='again'){//重新申请
  105. _this.pageType=2;
  106. }
  107. },
  108. //返回
  109. backPage(){
  110. this.$parent.handleClick('','','back');
  111. this.$parent.getList();
  112. },
  113. /** 搜索按钮操作 */
  114. handleQuery() {
  115. this.queryParams.pageNum = 1;
  116. this.getList();
  117. },
  118. /** 重置按钮操作 */
  119. resetQuery() {
  120. this.queryParams.searchValue = "";
  121. this.queryParams.auditStatus = "";
  122. this.handleQuery();
  123. },
  124. getList(){
  125. let _this=this;
  126. qualificationCheckList(_this.queryParams).then( response => {
  127. let res=response.rows;
  128. _this.tableData=res;
  129. _this.total=response.total;
  130. });
  131. },
  132. },
  133. mounted() {
  134. this.getList()
  135. }
  136. };
  137. </script>
  138. <style scoped lang="scss">
  139. .check {
  140. flex: 1;
  141. display: flex!important;
  142. flex-direction: column;
  143. .check-page{
  144. flex:1;
  145. display: flex!important;
  146. flex-direction: column;
  147. box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
  148. padding:20px 20px 20px!important;
  149. border-radius:10px;
  150. .button-box{
  151. width:200px;
  152. display: flex;
  153. }
  154. }
  155. }
  156. </style>