|
@@ -4,14 +4,14 @@
|
|
<div class="approval_handle-page" v-if="pageType==1">
|
|
<div class="approval_handle-page" v-if="pageType==1">
|
|
<template>
|
|
<template>
|
|
<el-tabs v-model="activeName" @tab-click="handleTabClick">
|
|
<el-tabs v-model="activeName" @tab-click="handleTabClick">
|
|
- <el-tab-pane label="待审核(10)" name="1"></el-tab-pane>
|
|
|
|
- <el-tab-pane label="已通过(99)" name="2"></el-tab-pane>
|
|
|
|
- <el-tab-pane label="未通过(9)" name="3"></el-tab-pane>
|
|
|
|
|
|
+ <el-tab-pane :label="'待审核('+totalWait+')'" name="1"></el-tab-pane>
|
|
|
|
+ <el-tab-pane :label="'已通过('+totalPass+')'" name="2"></el-tab-pane>
|
|
|
|
+ <el-tab-pane :label="'未通过('+totalRefuse+')'" name="3"></el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</template>
|
|
</template>
|
|
<el-form :model="queryParams" ref="queryForm" style="margin-top:20px;" :inline="true">
|
|
<el-form :model="queryParams" ref="queryForm" style="margin-top:20px;" :inline="true">
|
|
<el-form-item label="关键字" prop="safetyPrecautions" >
|
|
<el-form-item label="关键字" prop="safetyPrecautions" >
|
|
- <el-input v-model="form.safetyPrecautions" placeholder="申请人/联系电话" maxlength="50" />
|
|
|
|
|
|
+ <el-input v-model="queryParams.searchValue" placeholder="申请人/联系电话" maxlength="50" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<p class="inquire-button-one" @click="handleQuery">查询</p>
|
|
<p class="inquire-button-one" @click="handleQuery">查询</p>
|
|
@@ -19,10 +19,10 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table border v-loading="loading" :data="tableData">
|
|
<el-table border v-loading="loading" :data="tableData">
|
|
- <el-table-column label="申请人" align="left" prop="location"/>
|
|
|
|
- <el-table-column label="联系方式" align="left" prop="createTime"></el-table-column>
|
|
|
|
- <el-table-column label="使用气体" align="left" prop="createTime"></el-table-column>
|
|
|
|
- <el-table-column label="申请时间" align="left" prop="createTime"></el-table-column>
|
|
|
|
|
|
+ <el-table-column label="申请人" align="left" prop="applyUserName"/>
|
|
|
|
+ <el-table-column label="联系方式" align="left" prop="applyUserPhone"></el-table-column>
|
|
|
|
+ <el-table-column label="使用气体" align="left" prop="useGasName"></el-table-column>
|
|
|
|
+ <el-table-column label="申请时间" align="left" prop="applyTime"></el-table-column>
|
|
<el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">
|
|
<el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div class="button-box">
|
|
<div class="button-box">
|
|
@@ -55,9 +55,12 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { gasApplyList, } from '@/api/gasManage3_0/gasManage'
|
|
|
|
|
|
+import { usegasPassApplyList, usegasRefuseApplyList,
|
|
|
|
+ usegasTitle,
|
|
|
|
+ usegasWaitApplyList
|
|
|
|
+} from '@/api/gasManage3_0/gasManageSYD'
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
-import detailPage from '@/views/gasManage_syd/useGasCheck/useGasCheckDetail'
|
|
|
|
|
|
+import detailPage from '@/views/gasManage_syd/manage/useGasCheck/useGasCheckDetail'
|
|
export default {
|
|
export default {
|
|
name: "Approval",
|
|
name: "Approval",
|
|
components: {
|
|
components: {
|
|
@@ -76,13 +79,14 @@ export default {
|
|
queryParams: {
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize:20,
|
|
pageSize:20,
|
|
- remark:'login',
|
|
|
|
searchValue:'',
|
|
searchValue:'',
|
|
- startTime:'',
|
|
|
|
- endTime:'',
|
|
|
|
},
|
|
},
|
|
total:0,
|
|
total:0,
|
|
- tableData:[{}],
|
|
|
|
|
|
+ totalWait:0,
|
|
|
|
+ totalPass:0,
|
|
|
|
+ totalRefuse:0,
|
|
|
|
+
|
|
|
|
+ tableData:[],
|
|
dateRange:[],
|
|
dateRange:[],
|
|
pageData2:{},
|
|
pageData2:{},
|
|
form:{
|
|
form:{
|
|
@@ -100,20 +104,23 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
handleTabClick(tab, event) {
|
|
handleTabClick(tab, event) {
|
|
- console.log(tab, event);
|
|
|
|
|
|
+ // console.log(tab, event);
|
|
|
|
+ console.log(this.activeName)
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
handleClick(index,row,doType){
|
|
handleClick(index,row,doType){
|
|
let _this=this;
|
|
let _this=this;
|
|
if(doType=='check'){//审核
|
|
if(doType=='check'){//审核
|
|
this.pageType=2;
|
|
this.pageType=2;
|
|
_this.pageData2.status=0;
|
|
_this.pageData2.status=0;
|
|
- _this.pageData2.id=row.id;
|
|
|
|
|
|
+ _this.pageData2.item=row;
|
|
}else if(doType=='detail'){//详情
|
|
}else if(doType=='detail'){//详情
|
|
this.pageType=2;
|
|
this.pageType=2;
|
|
_this.pageData2.status=1;
|
|
_this.pageData2.status=1;
|
|
- _this.pageData2.id=row.id;
|
|
|
|
|
|
+ _this.pageData2.item=row;
|
|
}else if(doType=='back'){//详情
|
|
}else if(doType=='back'){//详情
|
|
this.pageType=1;
|
|
this.pageType=1;
|
|
|
|
+ this.getList()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
/** 搜索按钮操作 */
|
|
/** 搜索按钮操作 */
|
|
@@ -124,9 +131,6 @@ export default {
|
|
/** 重置按钮操作 */
|
|
/** 重置按钮操作 */
|
|
resetQuery() {
|
|
resetQuery() {
|
|
this.queryParams.searchValue = "";
|
|
this.queryParams.searchValue = "";
|
|
- this.dateRange=[];
|
|
|
|
- this.queryParams.startTime=null;
|
|
|
|
- this.queryParams.endTime=null
|
|
|
|
this.handleQuery();
|
|
this.handleQuery();
|
|
},
|
|
},
|
|
// 取消按钮
|
|
// 取消按钮
|
|
@@ -143,23 +147,43 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ //tab头部数值
|
|
|
|
+ usegasTitle(){
|
|
|
|
+ usegasTitle().then( response => {
|
|
|
|
+ let res=response.data;
|
|
|
|
+ this.totalWait=res.waitApplyCount;
|
|
|
|
+ this.totalPass=res.passApplyCount;
|
|
|
|
+ this.totalRefuse=res.refuseApplyCount;
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ },
|
|
getList(){
|
|
getList(){
|
|
let _this=this;
|
|
let _this=this;
|
|
- if(this.dateRange&&this.dateRange.length>0) {
|
|
|
|
- this.queryParams.startTime=this.dateRange[0]
|
|
|
|
- this.queryParams.endTime=this.dateRange[1]
|
|
|
|
- } else {
|
|
|
|
- this.queryParams.startTime=null;
|
|
|
|
- this.queryParams.endTime=null
|
|
|
|
|
|
+ if(this.activeName==1){
|
|
|
|
+ usegasWaitApplyList(_this.queryParams).then( response => {
|
|
|
|
+ let res=response.rows;
|
|
|
|
+ _this.tableData=res;
|
|
|
|
+ _this.total=response.total;
|
|
|
|
+ });
|
|
|
|
+ }else if(this.activeName==2){
|
|
|
|
+ usegasPassApplyList(_this.queryParams).then( response => {
|
|
|
|
+ let res=response.rows;
|
|
|
|
+ _this.tableData=res;
|
|
|
|
+ _this.total=response.total;
|
|
|
|
+ });
|
|
|
|
+ }else if(this.activeName==3){
|
|
|
|
+ usegasRefuseApplyList(_this.queryParams).then( response => {
|
|
|
|
+ let res=response.rows;
|
|
|
|
+ _this.tableData=res;
|
|
|
|
+ _this.total=response.total;
|
|
|
|
+ });
|
|
}
|
|
}
|
|
- gasApplyList(_this.queryParams).then( response => {
|
|
|
|
- let res=response.rows;
|
|
|
|
- //_this.tableData=res;
|
|
|
|
- _this.total=response.total;
|
|
|
|
- });
|
|
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ this.usegasTitle()
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
};
|
|
};
|