|
@@ -20,35 +20,56 @@
|
|
<el-form-item label="身份证" prop="cardId">
|
|
<el-form-item label="身份证" prop="cardId">
|
|
<el-input v-model="searchInfo.cardId" clearable></el-input>
|
|
<el-input v-model="searchInfo.cardId" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ <el-form-item label="状态" prop="type">
|
|
|
|
+ <el-select placeholder="更多" v-model="searchInfo.status" style="width: 120px;">
|
|
|
|
+ <el-option v-for="(value,index) in payLogStatus" :label="value" :value="index"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-table :data="tableData" border stripe>
|
|
<el-table :data="tableData" border stripe>
|
|
<el-table-column label="序号" width="80" prop="id" align="center"></el-table-column>
|
|
<el-table-column label="序号" width="80" prop="id" align="center"></el-table-column>
|
|
- <el-table-column label="姓名" prop="nickname" align="center"></el-table-column>
|
|
|
|
|
|
+ <el-table-column label="姓名" prop="nickname" width="100" align="center"></el-table-column>
|
|
<el-table-column label="身份证" prop="cardId" align="center"></el-table-column>
|
|
<el-table-column label="身份证" prop="cardId" align="center"></el-table-column>
|
|
<el-table-column label="报考岗位" prop="courseName" align="center"></el-table-column>
|
|
<el-table-column label="报考岗位" prop="courseName" align="center"></el-table-column>
|
|
- <el-table-column label="考试分期" prop="planName" align="center">
|
|
|
|
|
|
+ <el-table-column label="考试分期" prop="planName" width="120" align="center">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span>{{planMap[row.planId]}}</span>
|
|
<span>{{planMap[row.planId]}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="更新时间" prop="updateAt" align="center"></el-table-column>
|
|
|
|
|
|
+ <el-table-column label="备注" prop="marks" min-width="100">
|
|
|
|
+ <template slot-scope="{ row }">
|
|
|
|
+ <p> {{row.marks}} </p>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
|
|
+ <el-table-column label="支付凭证" prop="buyImg" width="90" align="center">
|
|
|
|
+ <template slot-scope="{ row }">
|
|
|
|
+ <show-img :src="row.buyImg"></show-img>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
|
|
+ <el-table-column label="申请时间" prop="createAt" align="center"></el-table-column>
|
|
<el-table-column align="center" width="160" label="操作">
|
|
<el-table-column align="center" width="160" label="操作">
|
|
<template slot-scope="{row, $index, _self}">
|
|
<template slot-scope="{row, $index, _self}">
|
|
<el-popover width="160px" :ref="`popover-${$index}`">
|
|
<el-popover width="160px" :ref="`popover-${$index}`">
|
|
- <p style="height: 20px;">你是否确认取消?</p>
|
|
|
|
|
|
+ <p style="height: 20px;">你确定收到钱了么?本操作不可逆,您是否继续操作?</p>
|
|
<div style="text-align: right;margin: 0;">
|
|
<div style="text-align: right;margin: 0;">
|
|
<el-button size="mini" type="text" @click="_self.$refs[`popover-${$index}`].doClose()">取消</el-button>
|
|
<el-button size="mini" type="text" @click="_self.$refs[`popover-${$index}`].doClose()">取消</el-button>
|
|
- <el-button type="primary" size="mini" @click="confirmCancel(row, $index)">确定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="confirmPayLog(row, $index)">确定</el-button>
|
|
</div>
|
|
</div>
|
|
- <el-button type="primary" slot="reference">确认</el-button>
|
|
|
|
|
|
+ <el-button type="text" slot="reference">确认</el-button>
|
|
</el-popover>
|
|
</el-popover>
|
|
|
|
+ <el-button type="text" icon="el-icon-reset" size="small" @click="unpassRow(row, $index)">拒绝</el-button>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+
|
|
|
|
+
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
<el-pagination :current-page="page" :page-size="size"
|
|
<el-pagination :current-page="page" :page-size="size"
|
|
@@ -57,31 +78,58 @@
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
layout="total, sizes, prev, pager, next, jumper"></el-pagination>
|
|
layout="total, sizes, prev, pager, next, jumper"></el-pagination>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <el-dialog title="拒绝通过" center :visible.sync="unpassDialog">
|
|
|
|
+ <el-form :model="unpassData" label-width="120px" :rules="rules" ref="elForm">
|
|
|
|
+ <el-form-item prop="marks">
|
|
|
|
+ <el-input v-model="unpassData.marks" type="textarea" placeholder="拒绝理由" clearable></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+
|
|
|
|
+ </el-form>
|
|
|
|
+ <div class="dialog-footer" slot="footer">
|
|
|
|
+ <el-button @click="unpassDialog = false">取 消</el-button>
|
|
|
|
+ <el-button @click="buyCourseUnPass()" type="primary">确 定</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import {postData,getTrainPlanList, getAdminUserPlanList} from "@/api/xinpei";
|
|
|
|
|
|
+ import {postData,getTrainPlanList, getPayLogList} from "@/api/xinpei";
|
|
import {toDate,toDatetime} from "@/utils/date"
|
|
import {toDate,toDatetime} from "@/utils/date"
|
|
|
|
+ import gstatus from "@/utils/status.js"
|
|
import infoList from "@/mixins/infoList";
|
|
import infoList from "@/mixins/infoList";
|
|
-
|
|
|
|
|
|
+ import ShowImg from "@/components/customPic/showImg.vue";
|
|
export default {
|
|
export default {
|
|
name: "Api",
|
|
name: "Api",
|
|
mixins: [infoList],
|
|
mixins: [infoList],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- listApi:getAdminUserPlanList,
|
|
|
|
|
|
+ listApi:getPayLogList,
|
|
planId: "",
|
|
planId: "",
|
|
searchInfo:{
|
|
searchInfo:{
|
|
- status:2,
|
|
|
|
|
|
+ status:1,
|
|
|
|
+ cardId:'',
|
|
|
|
+ nickname:'',
|
|
planId:0
|
|
planId:0
|
|
},
|
|
},
|
|
|
|
+ unpassData:{
|
|
|
|
+ marks:'',
|
|
|
|
+ temp:{}
|
|
|
|
+ },
|
|
|
|
+ payLogStatus:gstatus.payLogStatus,
|
|
|
|
+ unpassDialog: false,
|
|
planMap:{},
|
|
planMap:{},
|
|
planList:[],
|
|
planList:[],
|
|
- tableData:[]
|
|
|
|
|
|
+ tableData:[],
|
|
|
|
+ rules:{
|
|
|
|
+ marks:[{required:true, message:'请留下拒绝原因', min: 1}]
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ components:{ShowImg},
|
|
watch:{
|
|
watch:{
|
|
planId( planId ){
|
|
planId( planId ){
|
|
this.page=1
|
|
this.page=1
|
|
@@ -114,15 +162,36 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- confirmCancel( row, index ){
|
|
|
|
- let logId = row.id;
|
|
|
|
- postData("confirmCancelUserPlan", {logId}).then(res => {
|
|
|
|
|
|
+ confirmPayLog( row, index ){
|
|
|
|
+ let id = row.id;
|
|
|
|
+ postData("confirmPayLog", {id}).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
- this.tableData.splice(index, 1)
|
|
|
|
- this.$message.sucessMsg( "审核成功", 2)
|
|
|
|
|
|
+ this.$message.successMsg( "审核成功", 2)
|
|
|
|
+ this.getTableData()
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ unpassRow(row, index){
|
|
|
|
+ this.unpassData.temp = row;
|
|
|
|
+ this.unpassData.marks = "";
|
|
|
|
+ this.unpassData.index = index;
|
|
|
|
+ this.unpassDialog = true
|
|
|
|
+ },
|
|
|
|
+ buyCourseUnPass( row ){
|
|
|
|
+ this.$refs["elForm"].validate((valid) => {
|
|
|
|
+ if (!valid) return;
|
|
|
|
+ let {id} = this.unpassData.temp
|
|
|
|
+ let marks = this.unpassData.marks
|
|
|
|
+ let param = {id, marks}
|
|
|
|
+ postData("refusePayLog", param ).then( res=>{
|
|
|
|
+ if (res.code == 200){
|
|
|
|
+ this.$message.successMsg("拒绝完成", 1)
|
|
|
|
+ this.getTableData();
|
|
|
|
+ this.unpassDialog = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
handleCurrentChange(page){
|
|
handleCurrentChange(page){
|
|
this.page = page
|
|
this.page = page
|
|
this.getTableData()
|
|
this.getTableData()
|