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 => {
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 {
name: 'outSettleOrderId'
},
{
label: '提现类型',
name: 'transferType',
addHtml: obj => {
return obj.transferType ==0?'积分提现':'普通提现'
}
},
{
label: '提现金额',
name: 'payAmount',
addHtml: obj => {
return (obj.payAmount / 100).toFixed(2)
}
},
{
label: '客户名称',
name: 'customerName'
},
......@@ -111,13 +125,7 @@ export default {
label: '提现积分',
name: 'integralAmount'
},
{
label: '提现金额',
name: 'payAmount',
addHtml: obj => {
return (obj.payAmount / 100).toFixed(2)
}
},
{
label: '所属门店',
name: 'merchantName'
......@@ -156,6 +164,14 @@ export default {
}
},
{
label: '结算金额',
name: 'settleAmount'
},
{
label: '到账时间',
name: 'receiptDate'
},
{
label: '状态',
name: 'status',
addStyle: obj => {
......@@ -195,7 +211,7 @@ export default {
{
// label: ['审核人', '付款人', '操作人'],
label: obj => {
let arr = ['审核人', '付款人'],
let arr = ['审核人', '付款人','受理人'],
label
if (obj.result == 0) {
label = arr[obj.type]
......@@ -208,7 +224,7 @@ export default {
},
{
label: obj => {
let arr = ['审核时间', '付款时间'],
let arr = ['审核时间', '付款时间','受理时间'],
label
if (obj.result == 0) {
label = arr[obj.type]
......
......@@ -3,22 +3,12 @@
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<h2>积分提现列表</h2>
<!-- <div class="statistics">
<!-- <h2>积分提现列表</h2> -->
<div class="statistics">
累计结算金额:熠轩
<span class="price">xxx.xx</span>
元,拓博
<span class="price">xxx.xx</span>
元,远行
<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> -->
<span class="price">{{settleAmount.yiXuanSettleAmount}}</span>
元
</div>
<div>
<div class="flex">
<el-button size="small" @click="handleCheck()" type="primary" plain>批量审核</el-button>
......@@ -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">
<glsx-combi-form formRef="payChildRef" defaultWidth="284px" ref="payFormRef" :formObj="payForm" :formData="payFormData" :formRules="payRule">
<tempalte slot="money">
<tempalte slot="balance">
<div class="channelMoney">
可用余额:
<span class="price">xx.xx</span>
<span class="price">{{this.payForm.balance}}</span>
元
</div>
</tempalte>
......@@ -145,6 +135,7 @@ export default {
tableStatus,
size: 'small',
url: url,
settleAmount:{},
searchForm: {
outSettleOrderId: '',
customerName: '',
......@@ -220,6 +211,13 @@ export default {
optionsName: 'merchantList'
},
{
label: '到账时间',
name: 'receiptDateStr',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '提现类型',
name: 'transferType',
type: 'select',
......@@ -265,7 +263,7 @@ export default {
fn: '驳回'
},
condition: row => {
return row.status == 0 || row.status == 1
return row.status == 0 || row.status == 1|| row.status == 6
},
listeners: {
click: row => {
......@@ -281,7 +279,7 @@ export default {
fn: '付款'
},
condition: row => {
return row.status == 1
return row.status == 1||row.status == 6
},
listeners: {
click: row => {
......@@ -386,7 +384,17 @@ export default {
let arr = this.baseData.channelList.filter(item => item.confId == cellValue.channel)
return arr.length > 0 ? arr[0].confLabel : '--'
}
}
},
{
label: '到账时间',
prop: 'receiptDate',
width: '200px'
},
{
label: '结算金额/元',
prop: 'settleAmount',
width: '150px'
},
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
......@@ -417,6 +425,10 @@ export default {
{
confId: '5',
confLabel: '驳回'
},
{
confId: '6',
confLabel: '受理失败'
}
],
channelList: [
......@@ -452,7 +464,8 @@ export default {
admin: '',
channel: 'TXIAT',
captcha: '',
remark: ''
remark: '',
balance:''
},
payFormData: [
{
......@@ -474,12 +487,12 @@ export default {
}
]
},
// {
// label: '',
// name: 'admin',
// type: 'input',
// addHtml: 'money'
// },
{
label: '',
name: 'admin',
type: 'input',
addHtml: 'balance'
},
{
label: '管理员',
name: 'admin',
......@@ -529,8 +542,14 @@ export default {
mounted() {
this.$utils.getOptionsList(this, 'showFormData')
this.getMerchantList()
this.getSettleAmount()
},
methods: {
getSettleAmount(){
this.$apis.withdraw.getSettleAmount({}).then(res => {
this.settleAmount =res
})
},
getMerchantList() {
this.$apis.withdraw.getMerchantList({}).then(res => {
this.baseData.merchantList = res.map(item => {
......@@ -551,8 +570,13 @@ export default {
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'
}
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
},
beforeSearchFn() {
......@@ -605,7 +629,7 @@ export default {
reader.onload = event => {
const imgFile = event.target.result
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
}
}
......@@ -769,6 +793,7 @@ export default {
this.getAllpayAmount()
}
this.getAdmin()
this.getBalance()
this.isPay = true
},
//获取批量付款的金额
......@@ -782,6 +807,12 @@ export default {
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() {
// console.log(this.ids)
if (this.isRefuse == 2 && this.form.remark == '') {
......@@ -857,7 +888,8 @@ export default {
admin: '',
channel: 'TXIAT',
captcha: '',
remark: ''
remark: '',
balance:''
}
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!