Commit 4098fd8a by zhangquan

Merge branch 'v3.22.2' of http://192.168.3.233:8090/saas/scrm-micro-points into v3.22.2

2 parents 25a9ff22 ee7001e5
...@@ -135,4 +135,20 @@ const handleSaveImport =params => { ...@@ -135,4 +135,20 @@ const handleSaveImport =params => {
returnAll:true returnAll:true
}) })
} }
export default { getList, getAdmin, orderExport, integralpay, integralApprove, integralOut, getSms, getMerchantList, getAllpayAmount, getDetails,uploadXlsx,handleSaveImport } /*第三方余额查询 */
const getBalance = params => {
params.method = 'scrm.api.shopmall.integral.transfer.out.balance.get'
return http({
url: 'rop-scrm-shopmall/router',
data: params
})
}
// 获取总结算金额
const getSettleAmount = params => {
params.method = 'scrm.api.shopmall.integral.transfer.out.settle.amount.get'
return http({
url: 'rop-scrm-shopmall/router',
data: params
})
}
export default { getList, getAdmin, orderExport, integralpay, integralApprove, integralOut, getSms, getMerchantList, getAllpayAmount, getDetails,uploadXlsx,handleSaveImport,getBalance,getSettleAmount }
...@@ -100,6 +100,20 @@ export default { ...@@ -100,6 +100,20 @@ export default {
name: 'outSettleOrderId' name: 'outSettleOrderId'
}, },
{ {
label: '提现类型',
name: 'transferType',
addHtml: obj => {
return obj.transferType ==0?'积分提现':'普通提现'
}
},
{
label: '提现金额',
name: 'payAmount',
addHtml: obj => {
return (obj.payAmount / 100).toFixed(2)
}
},
{
label: '客户名称', label: '客户名称',
name: 'customerName' name: 'customerName'
}, },
...@@ -111,13 +125,7 @@ export default { ...@@ -111,13 +125,7 @@ export default {
label: '提现积分', label: '提现积分',
name: 'integralAmount' name: 'integralAmount'
}, },
{
label: '提现金额',
name: 'payAmount',
addHtml: obj => {
return (obj.payAmount / 100).toFixed(2)
}
},
{ {
label: '所属门店', label: '所属门店',
name: 'merchantName' name: 'merchantName'
...@@ -156,6 +164,14 @@ export default { ...@@ -156,6 +164,14 @@ export default {
} }
}, },
{ {
label: '结算金额',
name: 'settleAmount'
},
{
label: '到账时间',
name: 'receiptDate'
},
{
label: '状态', label: '状态',
name: 'status', name: 'status',
addStyle: obj => { addStyle: obj => {
...@@ -195,7 +211,7 @@ export default { ...@@ -195,7 +211,7 @@ export default {
{ {
// label: ['审核人', '付款人', '操作人'], // label: ['审核人', '付款人', '操作人'],
label: obj => { label: obj => {
let arr = ['审核人', '付款人'], let arr = ['审核人', '付款人','受理人'],
label label
if (obj.result == 0) { if (obj.result == 0) {
label = arr[obj.type] label = arr[obj.type]
...@@ -208,7 +224,7 @@ export default { ...@@ -208,7 +224,7 @@ export default {
}, },
{ {
label: obj => { label: obj => {
let arr = ['审核时间', '付款时间'], let arr = ['审核时间', '付款时间','受理时间'],
label label
if (obj.result == 0) { if (obj.result == 0) {
label = arr[obj.type] label = arr[obj.type]
......
...@@ -3,22 +3,12 @@ ...@@ -3,22 +3,12 @@
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header"> <div class="table-header">
<h2>积分提现列表</h2> <!-- <h2>积分提现列表</h2> -->
<!-- <div class="statistics"> <div class="statistics">
累计结算金额:熠轩 累计结算金额:熠轩
<span class="price">xxx.xx</span> <span class="price">{{settleAmount.yiXuanSettleAmount}}</span>
元,拓博 元
<span class="price">xxx.xx</span> </div>
元,远行
<span class="price">xxx.xx</span>
元;账户余额:熠轩
<span class="price">xxx.xx</span>
元,拓博
<span class="price">xxx.xx</span>
元,远行
<span class="price">xxx.xx</span>
元;
</div> -->
<div> <div>
<div class="flex"> <div class="flex">
<el-button size="small" @click="handleCheck()" type="primary" plain>批量审核</el-button> <el-button size="small" @click="handleCheck()" type="primary" plain>批量审核</el-button>
...@@ -57,10 +47,10 @@ ...@@ -57,10 +47,10 @@
<!-- 付款 --> <!-- 付款 -->
<GLDialog class="gl-form-page gl-form-min" title="付款" mode="mid" :visible.sync="isPay" :close-on-click-modal="false" :before-close="cancelPay"> <GLDialog class="gl-form-page gl-form-min" title="付款" mode="mid" :visible.sync="isPay" :close-on-click-modal="false" :before-close="cancelPay">
<glsx-combi-form formRef="payChildRef" defaultWidth="284px" ref="payFormRef" :formObj="payForm" :formData="payFormData" :formRules="payRule"> <glsx-combi-form formRef="payChildRef" defaultWidth="284px" ref="payFormRef" :formObj="payForm" :formData="payFormData" :formRules="payRule">
<tempalte slot="money"> <tempalte slot="balance">
<div class="channelMoney"> <div class="channelMoney">
可用余额: 可用余额:
<span class="price">xx.xx</span> <span class="price">{{this.payForm.balance}}</span>
元 元
</div> </div>
</tempalte> </tempalte>
...@@ -145,6 +135,7 @@ export default { ...@@ -145,6 +135,7 @@ export default {
tableStatus, tableStatus,
size: 'small', size: 'small',
url: url, url: url,
settleAmount:{},
searchForm: { searchForm: {
outSettleOrderId: '', outSettleOrderId: '',
customerName: '', customerName: '',
...@@ -220,6 +211,13 @@ export default { ...@@ -220,6 +211,13 @@ export default {
optionsName: 'merchantList' optionsName: 'merchantList'
}, },
{ {
label: '到账时间',
name: 'receiptDateStr',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '提现类型', label: '提现类型',
name: 'transferType', name: 'transferType',
type: 'select', type: 'select',
...@@ -265,7 +263,7 @@ export default { ...@@ -265,7 +263,7 @@ export default {
fn: '驳回' fn: '驳回'
}, },
condition: row => { condition: row => {
return row.status == 0 || row.status == 1 return row.status == 0 || row.status == 1|| row.status == 6
}, },
listeners: { listeners: {
click: row => { click: row => {
...@@ -281,7 +279,7 @@ export default { ...@@ -281,7 +279,7 @@ export default {
fn: '付款' fn: '付款'
}, },
condition: row => { condition: row => {
return row.status == 1 return row.status == 1||row.status == 6
}, },
listeners: { listeners: {
click: row => { click: row => {
...@@ -386,7 +384,17 @@ export default { ...@@ -386,7 +384,17 @@ export default {
let arr = this.baseData.channelList.filter(item => item.confId == cellValue.channel) let arr = this.baseData.channelList.filter(item => item.confId == cellValue.channel)
return arr.length > 0 ? arr[0].confLabel : '--' return arr.length > 0 ? arr[0].confLabel : '--'
} }
} },
{
label: '到账时间',
prop: 'receiptDate',
width: '200px'
},
{
label: '结算金额/元',
prop: 'settleAmount',
width: '150px'
},
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
...@@ -417,6 +425,10 @@ export default { ...@@ -417,6 +425,10 @@ export default {
{ {
confId: '5', confId: '5',
confLabel: '驳回' confLabel: '驳回'
},
{
confId: '6',
confLabel: '受理失败'
} }
], ],
channelList: [ channelList: [
...@@ -452,7 +464,8 @@ export default { ...@@ -452,7 +464,8 @@ export default {
admin: '', admin: '',
channel: 'TXIAT', channel: 'TXIAT',
captcha: '', captcha: '',
remark: '' remark: '',
balance:''
}, },
payFormData: [ payFormData: [
{ {
...@@ -474,12 +487,12 @@ export default { ...@@ -474,12 +487,12 @@ export default {
} }
] ]
}, },
// { {
// label: '', label: '',
// name: 'admin', name: 'admin',
// type: 'input', type: 'input',
// addHtml: 'money' addHtml: 'balance'
// }, },
{ {
label: '管理员', label: '管理员',
name: 'admin', name: 'admin',
...@@ -529,8 +542,14 @@ export default { ...@@ -529,8 +542,14 @@ export default {
mounted() { mounted() {
this.$utils.getOptionsList(this, 'showFormData') this.$utils.getOptionsList(this, 'showFormData')
this.getMerchantList() this.getMerchantList()
this.getSettleAmount()
}, },
methods: { methods: {
getSettleAmount(){
this.$apis.withdraw.getSettleAmount({}).then(res => {
this.settleAmount =res
})
},
getMerchantList() { getMerchantList() {
this.$apis.withdraw.getMerchantList({}).then(res => { this.$apis.withdraw.getMerchantList({}).then(res => {
this.baseData.merchantList = res.map(item => { this.baseData.merchantList = res.map(item => {
...@@ -551,8 +570,13 @@ export default { ...@@ -551,8 +570,13 @@ export default {
params.payDateStart = dayjs(this.searchForm.payTimeStr[0]).format('YYYY-MM-DD') + ' 00:00:01' params.payDateStart = dayjs(this.searchForm.payTimeStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.payDateEnd = dayjs(this.searchForm.payTimeStr[1]).format('YYYY-MM-DD') + ' 23:59:59' params.payDateEnd = dayjs(this.searchForm.payTimeStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
if (this.searchForm.receiptDateStr) {
params.receiptDateStart = dayjs(this.searchForm.receiptDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.receiptDateEnd = dayjs(this.searchForm.receiptDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
delete params.payTimeStr, delete params.applyDateStr delete params.payTimeStr, delete params.applyDateStr,
delete params.receiptDateStr
return params return params
}, },
beforeSearchFn() { beforeSearchFn() {
...@@ -605,7 +629,7 @@ export default { ...@@ -605,7 +629,7 @@ export default {
reader.onload = event => { reader.onload = event => {
const imgFile = event.target.result const imgFile = event.target.result
const arrBase64 = imgFile.split(',') const arrBase64 = imgFile.split(',')
this.importForm.fileUrl = file.name.split('.')[1] + '@' + arrBase64[1] this.importForm.fileUrl = file.name.split('.').pop() + '@' + arrBase64[1]
this.importForm.fileName = file.name this.importForm.fileName = file.name
} }
} }
...@@ -769,6 +793,7 @@ export default { ...@@ -769,6 +793,7 @@ export default {
this.getAllpayAmount() this.getAllpayAmount()
} }
this.getAdmin() this.getAdmin()
this.getBalance()
this.isPay = true this.isPay = true
}, },
//获取批量付款的金额 //获取批量付款的金额
...@@ -782,6 +807,12 @@ export default { ...@@ -782,6 +807,12 @@ export default {
this.payForm.admin = `${res.name} ${res.phone}` this.payForm.admin = `${res.name} ${res.phone}`
}) })
}, },
getBalance(){
this.$apis.withdraw.getBalance({ channel: this.payForm.channel }).then(res => {
console.log(res)
this.payForm.balance=res
})
},
comfirmCheck() { comfirmCheck() {
// console.log(this.ids) // console.log(this.ids)
if (this.isRefuse == 2 && this.form.remark == '') { if (this.isRefuse == 2 && this.form.remark == '') {
...@@ -857,7 +888,8 @@ export default { ...@@ -857,7 +888,8 @@ export default {
admin: '', admin: '',
channel: 'TXIAT', channel: 'TXIAT',
captcha: '', captcha: '',
remark: '' remark: '',
balance:''
} }
this.$refs.withdrawRef.clearMutiSelect() this.$refs.withdrawRef.clearMutiSelect()
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!