|
|
@@ -1,39 +1,27 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-main ref="elMain" style="padding: 0px;">
|
|
|
- <!-- 搜索区域Start -->
|
|
|
- <div class="queryForm" title="检索区" style="padding-top:10px;padding-left:15px;">
|
|
|
- <el-form size="mini" ref="queryForm" :model="queryForm" label-width="120px">
|
|
|
- <el-row>
|
|
|
- <el-col :span="6" style="height: 40px;">
|
|
|
- <el-form-item label="业务员工号">
|
|
|
- <el-input clearable placeholder="业务员工号" v-model="queryForm.userid"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6" style="height: 40px;">
|
|
|
- <el-form-item label="提现单号">
|
|
|
- <el-input clearable placeholder="提现单号" v-model="queryForm.applyno"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12" style="height: 40px;">
|
|
|
- <el-form-item label="提现日期">
|
|
|
- <el-date-picker v-model="queryForm.date" style="width:100%" type="daterange" align="left" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="u-f u-f-je" style="height: 40px;">
|
|
|
- <div class="u-f" style="margin-bottom: 20px; width: 60px;height: 32px; border-radius: 5px;overflow: hidden;" @click="queryEsmInfo" >
|
|
|
- <div class="u-f u-f1 u-f-ajc" style="background: #409EFF;color:#fff">查询</div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
-
|
|
|
- <kt-common-table permsDelete="sys:user:delete" :showBatchDelete="false" :showBatchPrint="true" permsButton3="sys:user:edit" :data="pageResult" :columns="columns" @findPage="findPage" button3Name="审核并支付" button3Background="#00B0F0" @handleButton3="handleButton3" @handlePrint="handlePrint">
|
|
|
+ <el-row>
|
|
|
+ <el-form :inline="true" :model="queryForm" class="demo-form-inline" label-width="130px" size="small">
|
|
|
+ <el-form-item label="业务员工号">
|
|
|
+ <el-input v-model="queryForm.userId" placeholder="业务员工号" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="提现单号">
|
|
|
+ <el-input v-model="queryForm.id" placeholder="提现单号" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="金钱属性">
|
|
|
+ <el-select v-model="queryForm.amountStatus" placeholder="金钱属性" clearable>
|
|
|
+ <el-option v-for="val in pay_statusoptions" :key="val.label" :label="val.dictTag" :value="val.dictValue" ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" size="small" @click="findPage">查询</el-button>
|
|
|
+ </el-form-item>
|
|
|
+</el-form>
|
|
|
+ </el-row>
|
|
|
+ <kt-common-table button2Type="text" button3Type="text" :showBatchDelete="false" :showBatchPrint="true" permsButton3="sys:balanceWithdrawalnotpay:examine" permsButton2="sys:balanceWithdrawalnotpay:examinepay" :data="pageResult" :columns="columns" @findPage="findPage" button3Name="审核并支付" @handleButton3="handleButton3" button2Name="审核提现" @handleButton2="handleButton2" >
|
|
|
</kt-common-table>
|
|
|
</el-main>
|
|
|
-
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -41,10 +29,6 @@
|
|
|
import KtCommonTable from "@/views/Core/KtCommonTable.vue"; //表格组件
|
|
|
import KtButton from "@/views/Core/KtButton";
|
|
|
import CommonUtil from "@/utils/comutil.js";
|
|
|
- import {
|
|
|
- formatWithSeperator,
|
|
|
- format
|
|
|
- } from "@/utils/datetime.js";
|
|
|
export default {
|
|
|
components: {
|
|
|
KtCommonTable,
|
|
|
@@ -58,62 +42,34 @@
|
|
|
pageRequest: { //查询的默认条件
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- columnFilters: {
|
|
|
- "applystatus": {
|
|
|
- "name": "applystatus",
|
|
|
- "value": "0"
|
|
|
- },
|
|
|
- "applytype": {
|
|
|
- "name": "applytype",
|
|
|
- "value": "A"
|
|
|
- },
|
|
|
- "applyno": {
|
|
|
- "name": "applyno",
|
|
|
- "value": ""
|
|
|
- },
|
|
|
- "userid": {
|
|
|
- "name": "userid",
|
|
|
- "value": ""
|
|
|
- },
|
|
|
- "startdate": {
|
|
|
- "name": "startdate",
|
|
|
- "value": ""
|
|
|
- },
|
|
|
- "enddate": {
|
|
|
- "name": "enddate",
|
|
|
- "value": ""
|
|
|
- }
|
|
|
- }
|
|
|
+ auditingStatus:'2'
|
|
|
},
|
|
|
columns: [ //数据列
|
|
|
- {prop: "applyno",label: "提现单号",minWidth: 160},
|
|
|
- {prop: "userid",label: "业务员工号",minWidth: 100},
|
|
|
- {prop: "username",label: "业务员姓名",minWidth: 100},
|
|
|
- {prop: "deptid",label: "机构代码",minWidth: 100},
|
|
|
- {prop: "deptname",label: "机构名称",minWidth: 100},
|
|
|
- {prop: "accountbalance",label: "可提现账户余额",minWidth: 100},
|
|
|
- {prop: "applyamount",label: "提现金额",minWidth: 100},
|
|
|
- {prop: "balance",label: "账户余额",minWidth: 100},
|
|
|
- {prop: "disrate",label: "服务费",minWidth: 100},
|
|
|
- {prop: "bankname",label: "开户行",minWidth: 100},
|
|
|
- {prop: "accountno",label: "账号",minWidth: 100},
|
|
|
- {prop: "createtime",label: "提现时间",minWidth: 130}
|
|
|
+ {prop: "id",label: "提现单号"},
|
|
|
+ {prop: "userId",label: "业务员工号"},
|
|
|
+ {prop: "userName",label: "业务员姓名"},
|
|
|
+ {prop: "deptId",label: "机构代码",},
|
|
|
+ {prop: "deptName",label: "机构名称"},
|
|
|
+ {prop: "userAmount ",label: "可提现账户余额",},
|
|
|
+ {prop: "amount",label: "提现金额"},
|
|
|
+ {prop: "surplusAmount",label: "账户余额",},
|
|
|
+ {prop: "bankAccount",label: "开户行"},
|
|
|
+ {prop: "bankNumber",label: "账号",},
|
|
|
+ {prop: "createTime",label: "提现时间"}
|
|
|
],
|
|
|
- //------------协议下拉框数据 begin-----------------
|
|
|
- agreementtypeoptions: [], //协议类型
|
|
|
- //------------协议下拉框数据 end-----------------
|
|
|
+ pay_statusoptions:[]
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
//获取所有下拉框数据
|
|
|
- this.getDictItems("agreementtype");
|
|
|
+ this.getDictItems("pay_status");
|
|
|
},
|
|
|
mounted() {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- handlePrint(){
|
|
|
- this.$api.task.excelExport(this.pageRequest).then(res=>{
|
|
|
+ handlePrint(index,row){
|
|
|
+ this.$api.task.AmountReview(this.pageRequest).then(res=>{
|
|
|
console.log(res)
|
|
|
let blob = new Blob([res], {
|
|
|
type: "application/vnd.ms-excel"
|
|
|
@@ -128,63 +84,16 @@
|
|
|
window.URL.revokeObjectURL(url);
|
|
|
})
|
|
|
},
|
|
|
- //-- formatter begin--
|
|
|
- agreetypeFormatter(row, column) { //协议类型
|
|
|
- let agreetype = row.agreetype;
|
|
|
- return CommonUtil.getDataName({
|
|
|
- dataList: this.agreementtypeoptions,
|
|
|
- value: 'value',
|
|
|
- label: 'label',
|
|
|
- data: agreetype
|
|
|
- })
|
|
|
- },
|
|
|
- inscompanyFormatter(row, column) { //协议类型
|
|
|
- let inscompany = row.inscompany;
|
|
|
- return CommonUtil.getDataName({
|
|
|
- dataList: this.global.insCompanyList,
|
|
|
- value: 'code',
|
|
|
- label: 'name',
|
|
|
- data: inscompany
|
|
|
- })
|
|
|
- },
|
|
|
- totalmoenyFormatter(row, column) { //协议类型
|
|
|
- let inscompany = row.inscompany;
|
|
|
- return (row.feeamount + row.disamount).toFixed(2);
|
|
|
- },
|
|
|
- //-- formatter end--
|
|
|
-
|
|
|
- queryEsmInfo(){
|
|
|
- if(this.queryForm.date != null ){
|
|
|
- var startdate =formatWithSeperator(this.queryForm.date[0],'-',':').split(' ')[0];
|
|
|
- var enddate = formatWithSeperator(this.queryForm.date[1],'-',':').split(' ')[0];
|
|
|
- this.pageRequest.columnFilters.startdate.value = startdate;
|
|
|
- this.pageRequest.columnFilters.enddate.value = enddate;
|
|
|
- }else{
|
|
|
- this.pageRequest.columnFilters.startdate.value = '';
|
|
|
- this.pageRequest.columnFilters.enddate.value = '';
|
|
|
- }
|
|
|
- this.pageRequest.columnFilters.userid.value = this.queryForm.userid;
|
|
|
- this.pageRequest.columnFilters.applyno.value = this.queryForm.applyno;
|
|
|
-
|
|
|
- this.pageRequest.pageNum = 1;
|
|
|
- this.findPage();
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
-
|
|
|
- //--数据字典 begin --
|
|
|
getDictItems: function(typeName) {
|
|
|
let that = this;
|
|
|
- that.$api.dict.findByLableName(typeName)
|
|
|
+ this.$api.insCompany.dicType(typeName)
|
|
|
.then(function(res) {
|
|
|
- that[typeName + "options"] = res.data; // 把获取到的数据赋给this.data
|
|
|
+ that[typeName + "options"] = res.data.ddList; // 把获取到的数据赋给this.data
|
|
|
})
|
|
|
.catch(function(error) {
|
|
|
that[typeName + "options"] = [];
|
|
|
});
|
|
|
},
|
|
|
- //--数据字典 end --
|
|
|
-
|
|
|
// 右侧列表的方法Start
|
|
|
findPage(data) {
|
|
|
// 获取分页数据
|
|
|
@@ -193,13 +102,25 @@
|
|
|
this.pageRequest.pageNum = data.pageRequest.pageNum;
|
|
|
this.pageRequest.pageSize = data.pageRequest.pageSize;
|
|
|
}
|
|
|
- that.$api.task.payApplyFindPage(that.pageRequest)
|
|
|
+ that.$api.task.payqueryPage ({...this.pageRequest,...this.queryForm})
|
|
|
.then(res => {
|
|
|
- console.log(res.data)
|
|
|
- that.pageResult = res.data;
|
|
|
+ if(res.code==200){
|
|
|
+ that.pageResult = res.data;
|
|
|
+ }
|
|
|
})
|
|
|
.then(data != null ? data.callback : "");
|
|
|
},
|
|
|
+ handleButton2({row,index}) {
|
|
|
+ this.$api.task.AmountReview(row).then(res => {
|
|
|
+ if(res.code==200){
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.msg
|
|
|
+ });
|
|
|
+ this.findPage()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
handleButton3({row,index}) {
|
|
|
let auditid = Cookies.get('user') // 放置token到Cookie
|
|
|
let auditname = Cookies.get('name') // 放置token到Cookie
|
|
|
@@ -258,33 +179,4 @@
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
- .el-divider {
|
|
|
- margin: 10px 0px 15px !important;
|
|
|
- }
|
|
|
-
|
|
|
- .queryForm .el-row {
|
|
|
- margin: 0px;
|
|
|
- }
|
|
|
-
|
|
|
- .queryForm .el-form-item {
|
|
|
- margin-bottom: 0px;
|
|
|
- }
|
|
|
- .queryForm{
|
|
|
- background: #F2F7FC;
|
|
|
- position:relative;
|
|
|
- border:1px solid #ddd;
|
|
|
- border-radius: 10px;
|
|
|
- margin-top: 15px;
|
|
|
- margin-bottom: 15px;
|
|
|
- padding: 10px 20px 0;
|
|
|
- }
|
|
|
- .queryForm:before{
|
|
|
- content:attr(title);
|
|
|
- position:absolute;
|
|
|
- left:10%;
|
|
|
- transform:translate(-50%,-120%);
|
|
|
- /* -webkit-transform:translate(-50%,-50%); */
|
|
|
- padding:0 10px;
|
|
|
- background-color:#fff;
|
|
|
- }
|
|
|
</style>
|