Commit 19c29cf9 by wangzhihui

积分提现审批

1 parent 9302a45a
...@@ -200,6 +200,17 @@ const checkRecordsTransferType = params => { ...@@ -200,6 +200,17 @@ const checkRecordsTransferType = params => {
} }
// 详情查询
const approvalDetail = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 积分提现 生成批次 // 积分提现 生成批次
const integralorderBatch = params => { const integralorderBatch = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.generate` params.method = `scrm.api.shopmall.integral.transfer.out.approval.generate`
...@@ -231,8 +242,7 @@ const getApprovalLog = params => { ...@@ -231,8 +242,7 @@ const getApprovalLog = params => {
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
returnAll: true
}) })
} }
// 积分提现审批分页查询 // 积分提现审批分页查询
...@@ -242,8 +252,7 @@ const getApprovalPage = params => { ...@@ -242,8 +252,7 @@ const getApprovalPage = params => {
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
returnAll: true
}) })
} }
......
...@@ -77,4 +77,7 @@ p{ ...@@ -77,4 +77,7 @@ p{
.el-message{ .el-message{
z-index: 9999999 !important; z-index: 9999999 !important;
}
.el-message-box__content{
height:auto !important;
} }
\ No newline at end of file \ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</div> </div>
<!-- 详情 --> <!-- 详情 -->
<detail-dialog :detail-visible="detailVisible" :id="id" @dialogClose="dialogClose"></detail-dialog> <detail-dialog :detail-visible="detailVisible" :id="id" @dialogClose="dialogClose"></detail-dialog>
<pay-approval :payVisible="payVisible" :id="id" @cancelPay="cancelPay" ></pay-approval> <pay-approval :payVisible="payVisible" :id="id" @cancelPay="cancelPay"></pay-approval>
</div> </div>
</template> </template>
...@@ -28,7 +28,7 @@ import util from '@/utils/index' ...@@ -28,7 +28,7 @@ import util from '@/utils/index'
import DetailDialog from './approveView.vue' import DetailDialog from './approveView.vue'
import PayApproval from './payApproval.vue' import PayApproval from './payApproval.vue'
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E', '#2CCA74'] const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E', '#2CCA74']
const tableStatus = ['待审批', '审批中', '审批通过', '已驳回', '已付款', '到账异常'] const tableStatus = ['待审批', '审批中', '审批通过', '审批驳回', '已付款', '到账异常']
export default { export default {
components: { components: {
DetailDialog, DetailDialog,
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
}, },
data() { data() {
return { return {
recordInfo:{}, recordInfo: {},
id: '', id: '',
checkLoading: false, checkLoading: false,
loading: false, loading: false,
...@@ -47,42 +47,37 @@ export default { ...@@ -47,42 +47,37 @@ export default {
size: 'small', size: 'small',
url: url, url: url,
searchForm: { searchForm: {
outSettleOrderId: '', batchNo: '',
customerName: '', paymentSubject: '',
customerPhone: '', paymentChannel: '',
status: '', approvalTime: [],
channel: '', oaApprovalTime: [],
merchantName: '', userSettleTime: []
transferType: '',
mode: '',
withdrawalSource: ''
}, },
hasFooter: false, hasFooter: false,
tableSearchForm: {}, tableSearchForm: {},
showFormData: [ showFormData: [
{ {
label: '批次号', label: '批次号',
name: 'outSettleOrderId', name: 'batchNo',
type: 'input', type: 'input',
isClear: true, isClear: true,
maxlength: 20 maxlength: 20
}, },
{ {
label: '付款渠道', label: '付款渠道',
name: 'channel', name: 'paymentChannel',
type: 'select', type: 'select',
optionList: [], optionList: [],
addHtml: 'channel',
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'channelList' optionsName: 'channelList'
}, },
{ {
label: '付款主体', label: '付款主体',
name: 'channel', name: 'paymentSubject',
type: 'select', type: 'select',
optionList: [], optionList: [],
addHtml: 'channel',
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'PayerelList' optionsName: 'PayerelList'
...@@ -98,21 +93,21 @@ export default { ...@@ -98,21 +93,21 @@ export default {
}, },
{ {
label: '审批时间', label: '审批时间',
name: 'applyDateStr', name: 'approvalTime',
type: 'datePicker', type: 'datePicker',
isClear: true, isClear: true,
pickerOptions: 'beforeRangePickerOptions' pickerOptions: 'beforeRangePickerOptions'
}, },
{ {
label: 'OA审批时间', label: 'OA审批时间',
name: 'applyDateStr', name: 'oaApprovalTimeStart',
type: 'datePicker', type: 'datePicker',
isClear: true, isClear: true,
pickerOptions: 'beforeRangePickerOptions' pickerOptions: 'beforeRangePickerOptions'
}, },
{ {
label: '付款时间', label: '付款时间',
name: 'payTimeStr', name: 'userSettleTime',
type: 'datePicker', type: 'datePicker',
isClear: true, isClear: true,
pickerOptions: 'beforeRangePickerOptions' pickerOptions: 'beforeRangePickerOptions'
...@@ -166,9 +161,9 @@ export default { ...@@ -166,9 +161,9 @@ export default {
type: 'text', type: 'text',
fn: '到账明细' fn: '到账明细'
}, },
condition: row => { // condition: row => {
return row.status == 0 || row.status == 1 || row.status == 6 // return row.status == 0 || row.status == 1 || row.status == 6
}, // },
listeners: { listeners: {
click: row => { click: row => {
this.handleParticulars(row) this.handleParticulars(row)
...@@ -202,46 +197,43 @@ export default { ...@@ -202,46 +197,43 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '批次号', label: '批次号',
prop: 'outSettleOrderId', prop: 'batchNo'
line: 1,
minWidth: 200
}, },
{ {
label: '客户数量', label: '客户数量',
prop: 'outSettleOrderId', prop: 'customerCount',
line: 1, width: 110,
minWidth: 200
}, },
{ {
label: '积分总额', label: '积分总额',
prop: 'integralAmount', prop: 'pointTotal',
width: 100 width: 110,
}, },
{ {
label: '付款总额/元', label: '付款总额/元',
prop: 'payAmount', prop: 'paymentTotal',
width: 100, width: 120,
formatter: cellValue => { formatter: cellValue => {
return cellValue.payAmount ? (cellValue.payAmount / 100).toFixed(2) : '--' return cellValue.paymentTotal ? (cellValue.paymentTotal / 100).toFixed(2) : '--'
} }
}, },
{ {
label: '付款渠道', label: '付款渠道',
prop: 'channel', prop: 'paymentChannel',
width: '200px', width: '200px',
formatter: cellValue => { formatter: cellValue => {
let arr = this.baseData.channelList.filter(item => item.value == cellValue.channel) let arr = this.baseData.channelList.filter(item => item.confId == cellValue.paymentChannel)
return arr.length > 0 ? arr[0].label : '--' return arr.length > 0 ? arr[0].label : '--'
} }
}, },
{ {
label: '付款主体', label: '付款主体',
prop: 'transferType', prop: 'paymentSubject',
width: '200px', width: '200px',
formatter: cellValue => { // formatter: cellValue => {
let arr = this.baseData.withdrawalTypeList.filter(item => item.confId == cellValue.transferType) // let arr = this.baseData.withdrawalTypeList.filter(item => item.confId == cellValue.transferType)
return arr.length > 0 ? arr[0].confLabel : '--' // return arr.length > 0 ? arr[0].confLabel : '--'
} // }
}, },
{ {
...@@ -252,8 +244,8 @@ export default { ...@@ -252,8 +244,8 @@ export default {
}, },
{ {
label: '批次生成时间', label: '批次生成时间',
prop: 'payDate', prop: 'updatedDate',
width: '200px' width: 150
}, },
{ {
label: '审批人', label: '审批人',
...@@ -262,29 +254,28 @@ export default { ...@@ -262,29 +254,28 @@ export default {
}, },
{ {
label: '审批时间', label: '审批时间',
prop: 'payDate', prop: 'approvalTime',
width: '200px' width: '200px'
}, },
{ {
label: 'OA审批时间', label: 'OA审批时间',
prop: 'merchantName', prop: 'oaApprovalTimeStart',
line: 1, line: 1,
width: 150 width: 150
}, },
{ {
label: '渠道到账时间', label: '渠道到账时间',
prop: 'name', prop: 'channelSettleTime',
width: '110px' width: 150
}, },
{ {
label: '用户到账时间', label: '用户到账时间',
prop: 'idCardNo', prop: 'userSettleTime',
width: '180px' width: 150
} }
] ]
}, },
providers: {},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据 // 基本数据
baseData: { baseData: {
...@@ -328,46 +319,12 @@ export default { ...@@ -328,46 +319,12 @@ export default {
], ],
channelList: [ channelList: [
{ {
value: 'SHENBIANYUN', confId: 'BIRDWORK',
label: '身边云-银行卡', confLabel: '智鸟-银行卡'
children: [
{
value: 'SHENBIANYUN-XH',
label: '翔禾'
},
{
value: 'SHENBIANYUN-YJ',
label: '雅钧'
},
{
value: 'SHENBIANYUN-BC',
label: '博晟'
},
{
value: 'SHENBIANYUN-CJ',
label: '晨景'
}
]
},
{
value: 'TXIAT',
label: '熠轩-银行卡'
},
{
value: 'ZX',
label: '中雄-银行卡'
},
{
value: 'YUNHUO',
label: '云获(嘀加)-银行卡'
}, },
{ {
value: 'YUNHUO-ZY', confId: 'SHENBIANYUN_JX',
label: '云获(中赢)-银行卡' confLabel: '身边云(江西)-银行卡'
},
{
value: 'YUNHUO-WX',
label: '云获(中赢)-微信'
} }
], ],
withdrawalTypeList: [ withdrawalTypeList: [
...@@ -383,50 +340,20 @@ export default { ...@@ -383,50 +340,20 @@ export default {
confId: '2', confId: '2',
confLabel: '阳光激励' confLabel: '阳光激励'
} }
],
modeTypeList: [
{
confId: '0',
confLabel: '银行卡'
},
{
confId: '1',
confLabel: '微信'
}
],
sourceList: [
{
confId: '0',
confLabel: '车生活助手'
},
{
confId: '1',
confLabel: '系统导入'
},
{
confId: '2',
confLabel: '生意助手员工版'
},
{
confId: '3',
confLabel: '门店助手'
}
] ]
} }
} }
}, },
mounted() { mounted() {
// this.$utils.getOptionsList(this, 'showFormData') this.$utils.getOptionsList(this, 'showFormData')
// this.getMerchantList()
// this.getSettleAmount()
}, },
methods: { methods: {
dialogClose() { dialogClose() {
this.detailVisible = false this.detailVisible = false
}, },
handleCheck(row) { handleCheck(row) {
this.recordInfo=row this.recordInfo = row
this.payVisible = true this.payVisible = true
}, },
cancelPay() { cancelPay() {
...@@ -458,133 +385,42 @@ export default { ...@@ -458,133 +385,42 @@ export default {
} }
}) })
}, },
//选择服务商
selectChannelProvider(e) {
console.log(e, this.payForm.channelProvider)
if (this.payForm.channelProvider) {
this.payForm.channel = this.providers.channel
this.getBalance()
this.getAdmin()
}
},
//获取批量付款的金额
getAllPayAmount(index, type) {
return new Promise(resolve => {
let key = index == 0 ? 'canApprove' : 'canPay',
Method = type == 'batch' ? 'getPayAmount' : 'getAllPayAmount',
textErr = ['请选择待审核的提现记录', '请选择已审核或受理失败的提现记录']
let params = {}
if (type == 'batch') {
if (!this.ids || this.ids.length == 0) {
this.$message.error(textErr[index])
return
}
params.ids = this.ids
} else {
params = {
...this.tableSearchForm
}
}
params[key] = false
this.$apis.withdraw[Method](params).then(res => {
if (!res[key]) {
this.$message.error(textErr[index])
resolve(false)
} else {
if (index == 1) {
this.payForm.payMoney = (res.payAmount / 100).toFixed(2)
}
resolve(true)
}
})
})
},
isZeroTrue(value) {
return value === 0 ? true : Boolean(value)
},
checkRecordsTransferType(type) {
return new Promise(resolve => {
let params = {}
if (type == 'batch') {
params.ids = this.ids
} else {
params = {
...this.tableSearchForm
}
}
this.$apis.withdraw.checkRecordsTransferType(params).then(res => {
// console.log(res)
if (this.isZeroTrue(res)) {
resolve(res)
}
})
})
},
getSettleAmount() {
let params = {
...this.tableSearchForm
}
this.$apis.withdraw.getSettleAmount(params).then(res => {
this.settleAmount = res
})
},
getMerchantList() {
this.$apis.withdraw.getMerchantList({}).then(res => {
this.baseData.merchantList = res.map(item => {
return {
merchantName: item
}
})
this.$utils.getOptionsList(this, 'showFormData', false, 'merchantName')
})
},
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
console.log(this.searchForm) if (this.searchForm.approvalTime) {
if (this.searchForm.applyDateStr) { params.approvalTimeStart = dayjs(this.searchForm.approvalTime[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.applyDateStart = dayjs(this.searchForm.applyDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01' params.approvalTimeEnd = dayjs(this.searchForm.approvalTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
params.applyDateEnd = dayjs(this.searchForm.applyDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.payTimeStr) {
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) { if (this.searchForm.userSettleTime) {
params.receiptDateStart = dayjs(this.searchForm.receiptDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01' params.userSettleTimeStart = dayjs(this.searchForm.userSettleTime[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.receiptDateEnd = dayjs(this.searchForm.receiptDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59' params.userSettleTimeEnd = dayjs(this.searchForm.userSettleTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
if (this.searchForm.channel) { if (this.searchForm.oaApprovalTime) {
params.channel = this.searchForm.channel[0] params.oaApprovalTimeStart = dayjs(this.searchForm.oaApprovalTime[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.channelProvider = this.searchForm.channel.length > 1 ? this.searchForm.channel[1] : '' params.oaApprovalTimeEnd = dayjs(this.searchForm.oaApprovalTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
delete params.payTimeStr, delete params.applyDateStr, delete params.receiptDateStr delete params.userSettleTime, delete params.approvalTime, delete params.oaApprovalTime
return params return params
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm = this.getParams() this.tableSearchForm = this.getParams()
delete this.tableSearchForm.payTimeStr
delete this.tableSearchForm.applyDateStr
resolve() resolve()
}) })
}, },
handleSearch() { handleSearch() {
this.$refs.withdrawRef.refreshTable() this.$refs.withdrawRef.refreshTable()
this.getSettleAmount()
}, },
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
outSettleOrderId: '', batchNo: '',
customerName: '', paymentSubject: '',
customerPhone: '', paymentChannel: '',
status: '', approvalTime: [],
channel: '', oaApprovalTime: [],
merchantName: '', userSettleTime: []
mode: '',
withdrawalSource: ''
} }
this.handleSearch() this.handleSearch()
}, },
......
...@@ -31,34 +31,36 @@ export default { ...@@ -31,34 +31,36 @@ export default {
data() { data() {
return { return {
id: '', id: '',
checkLoading: false,
loading: false,
colors, colors,
tableStatus, tableStatus,
size: 'small', size: 'small',
url: url, url: url,
settleAmount: {},
searchForm: { searchForm: {
customerName: '' customerName: '',
customerPhone:''
}, },
hasFooter: false, hasFooter: false,
tableSearchForm: {}, tableSearchForm: {},
showFormData: [ showFormData: [
{ {
label: '', label: '客户名称',
labelWidth: '0',
name: 'customerName', name: 'customerName',
placeholder: '客户名称/手机号',
type: 'input', type: 'input',
isClear: true, isClear: true,
maxlength: 20 maxlength: 20
},
{
label: '手机号',
name: 'customerPhone',
type: 'input',
isClear: true,
maxlength: 11
} }
], ],
// 表格 // 表格
getListApi: this.$apis.withdraw.getList, getListApi: this.$apis.withdraw.getList,
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableColumns: [ tableColumns: [
{ {
label: '客户名称', label: '客户名称',
...@@ -68,11 +70,11 @@ export default { ...@@ -68,11 +70,11 @@ export default {
{ {
label: '提现方式', label: '提现方式',
prop: 'mode', prop: 'mode',
width: '200px' width: '200px',
// formatter: cellValue => { formatter: cellValue => {
// let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode) let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
// return arr.length > 0 ? arr[0].confLabel : '--' return arr.length > 0 ? arr[0].confLabel : '--'
// } }
}, },
{ {
label: '手机号', label: '手机号',
...@@ -155,6 +157,11 @@ export default { ...@@ -155,6 +157,11 @@ export default {
} }
}, },
{ {
label: '提现时间',
prop: 'updatedDate',
width: 150
},
{
label: '收款人姓名', label: '收款人姓名',
prop: 'name', prop: 'name',
width: '110px' width: '110px'
...@@ -179,54 +186,34 @@ export default { ...@@ -179,54 +186,34 @@ export default {
label: '收款手机号', label: '收款手机号',
prop: 'mobile', prop: 'mobile',
width: '130px' width: '130px'
},
{
label: '到账情况',
prop: 'customerOpenId',
width: '130px'
},
{
label: '到账时间',
prop: 'receiptDate',
width: '200px'
} }
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据 // 基本数据
baseData: {} baseData: {
modeTypeList: [
{
confId: '0',
confLabel: '银行卡'
},
{
confId: '1',
confLabel: '微信'
}
],
}
} }
}, },
mounted() {}, mounted() {},
methods: { methods: {
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
console.log(this.searchForm)
if (this.searchForm.applyDateStr) {
params.applyDateStart = dayjs(this.searchForm.applyDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.applyDateEnd = dayjs(this.searchForm.applyDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.payTimeStr) {
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'
}
if (this.searchForm.channel) {
params.channel = this.searchForm.channel[0]
params.channelProvider = this.searchForm.channel.length > 1 ? this.searchForm.channel[1] : ''
}
delete params.payTimeStr, delete params.applyDateStr, delete params.receiptDateStr
return params return params
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm = this.getParams() this.tableSearchForm = this.getParams()
delete this.tableSearchForm.payTimeStr
delete this.tableSearchForm.applyDateStr
resolve() resolve()
}) })
}, },
...@@ -235,14 +222,8 @@ export default { ...@@ -235,14 +222,8 @@ export default {
}, },
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
outSettleOrderId: '',
customerName: '', customerName: '',
customerPhone: '', customerPhone:''
status: '',
channel: '',
merchantName: '',
mode: '',
withdrawalSource: ''
} }
this.handleSearch() this.handleSearch()
} }
...@@ -260,11 +241,7 @@ export default { ...@@ -260,11 +241,7 @@ export default {
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
} }
} }
.gl-form-page /deep/ .search-list .search-item .name {
width: 0px !important;
}
.gl-form-page /deep/ .glsx-combi-form .el-form-item--small {
width: auto;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
<div class="title">编辑</div> <div class="title">编辑</div>
</div> </div>
<div class="container gl-form-page"> <div class="container gl-form-page">
<div class="flex-sb"> <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 flex-sb">
<el-button size="small" @click="handleCheck('', true)" type="primary" plain>全部驳回</el-button> <h2>积分提现明细</h2>
<el-button size="small" @click="handleDissolve(true)" type="primary" plain>解散批次</el-button>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
...@@ -56,7 +57,6 @@ export default { ...@@ -56,7 +57,6 @@ export default {
id: '', id: '',
isAll: true, isAll: true,
checkLoading: false, checkLoading: false,
showPassDialog: false,
loading: false, loading: false,
colors, colors,
tableStatus, tableStatus,
...@@ -64,34 +64,40 @@ export default { ...@@ -64,34 +64,40 @@ export default {
url: url, url: url,
settleAmount: {}, settleAmount: {},
searchForm: { searchForm: {
customerName: '' customerName: '',
customerPhone: ''
}, },
hasFooter: false, hasFooter: false,
tableSearchForm: {}, tableSearchForm: {},
tableButtonList: [ tableButtonList: [
{ {
type: 'el-button', type: 'el-button',
name: '驳回', name: '移除',
attrs: { attrs: {
type: 'text', type: 'text',
fn: '驳回' fn: '移除'
}, },
listeners: { listeners: {
click: row => { click: row => {
this.handleCheck(row, false) this.handleDissolve(false, row)
} }
} }
} }
], ],
showFormData: [ showFormData: [
{ {
label: '', label: '客户名称',
labelWidth: '0',
name: 'customerName', name: 'customerName',
placeholder: '客户名称/手机号',
type: 'input', type: 'input',
isClear: true, isClear: true,
maxlength: 20 maxlength: 20
},
{
label: '手机号',
name: 'customerPhone',
type: 'input',
isClear: true,
maxlength: 11
} }
], ],
// 表格 // 表格
...@@ -110,11 +116,11 @@ export default { ...@@ -110,11 +116,11 @@ export default {
{ {
label: '提现方式', label: '提现方式',
prop: 'mode', prop: 'mode',
width: '200px' width: '200px',
// formatter: cellValue => { formatter: cellValue => {
// let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode) let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
// return arr.length > 0 ? arr[0].confLabel : '--' return arr.length > 0 ? arr[0].confLabel : '--'
// } }
}, },
{ {
label: '手机号', label: '手机号',
...@@ -197,6 +203,11 @@ export default { ...@@ -197,6 +203,11 @@ export default {
} }
}, },
{ {
label: '提现时间',
prop: 'updatedDate',
width: 150
},
{
label: '收款人姓名', label: '收款人姓名',
prop: 'name', prop: 'name',
width: '110px' width: '110px'
...@@ -221,16 +232,6 @@ export default { ...@@ -221,16 +232,6 @@ export default {
label: '收款手机号', label: '收款手机号',
prop: 'mobile', prop: 'mobile',
width: '130px' width: '130px'
},
{
label: '到账情况',
prop: 'customerOpenId',
width: '130px'
},
{
label: '到账时间',
prop: 'receiptDate',
width: '200px'
} }
] ]
}, },
...@@ -242,69 +243,40 @@ export default { ...@@ -242,69 +243,40 @@ export default {
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据 // 基本数据
baseData: {} baseData: {
modeTypeList: [
{
confId: '0',
confLabel: '银行卡'
},
{
confId: '1',
confLabel: '微信'
}
]
}
} }
}, },
mounted() {}, mounted() {},
methods: { methods: {
clearSelect() { handleDissolve(isAll, row) {
this.ids = '' let title = isAll ? '解散批次提示' : '移除提示',
this.form.remark = '' cxt = isAll ? '解散本批次,所有未驳回的积分提现记录将恢复「待审核」状态,如需重新生成批次,请选中后重新生成批次。' : '移除该记录,该条积分提现记录将恢复「待审核」状态,如需重新生成批次,请选中后重新生成批次。',
this.showPassDialog = false params = {
}, type: isAll ? 2 : 1
comfirmCheck() { },
this.$refs.form.validate(valid => { Method = 'removeApproval'
if (valid) { !isAll ? (params.id = row.id) : ''
// this.checkLoading = true this.$utils.secondConfirm(this, title, cxt, 'withdraw', Method, params)
// this.$apis.withdraw[Methods](params)
// .then(res => {
// this.$message({
// message: res.code == '0' ? '操作成功' : res.message,
// type: res.code == '0' ? 'success' : 'error'
// })
// })
// .finally(() => {
// this.handleReset()
// this.clearSelect()
// this.checkLoading = false
// })
}
})
},
//驳回
handleCheck(row, isAll) {
this.isAll = isAll
this.form.id = !this.isAll ? row.id : ''
this.showPassDialog = true
}, },
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
console.log(this.searchForm)
if (this.searchForm.applyDateStr) {
params.applyDateStart = dayjs(this.searchForm.applyDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.applyDateEnd = dayjs(this.searchForm.applyDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.payTimeStr) {
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'
}
if (this.searchForm.channel) {
params.channel = this.searchForm.channel[0]
params.channelProvider = this.searchForm.channel.length > 1 ? this.searchForm.channel[1] : ''
}
delete params.payTimeStr, delete params.applyDateStr, delete params.receiptDateStr
return params return params
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm = this.getParams() this.tableSearchForm = this.getParams()
delete this.tableSearchForm.payTimeStr
delete this.tableSearchForm.applyDateStr
resolve() resolve()
}) })
}, },
...@@ -313,14 +285,8 @@ export default { ...@@ -313,14 +285,8 @@ export default {
}, },
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
outSettleOrderId: '',
customerName: '', customerName: '',
customerPhone: '', customerPhone: ''
status: '',
channel: '',
merchantName: '',
mode: '',
withdrawalSource: ''
} }
this.handleSearch() this.handleSearch()
} }
...@@ -337,31 +303,14 @@ export default { ...@@ -337,31 +303,14 @@ export default {
font-weight: 600; font-weight: 600;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
} }
.remind { .table-header {
display: flex;
align-items: center; align-items: center;
width: 680px;
height: 36px; h2 {
border-radius: 3.6px; color: #333333;
border: 1px solid #5850ff; font-size: 16px;
background: #ebebff;
padding-left: 16px;
box-sizing: border-box;
color: #000000a6;
font-size: 14px;
margin-bottom: 20px;
.tip {
width: 14px;
height: 14px;
margin-right: 8px;
} }
} }
} }
.gl-form-page /deep/ .search-list .search-item .name {
width: 0px !important;
}
.gl-form-page /deep/ .glsx-combi-form .el-form-item--small {
width:auto;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<!-- 查看 --> <!-- 查看 -->
<!-- 盘点详情弹窗弹窗 --> <!-- 盘点详情弹窗弹窗 -->
<template> <template>
<GLDialog bigTitle="详细信息" :visible.sync="isVisible" :hasFooter="false" :before-close="handleClose" class="points" mode="big" okText="关闭" @onCancel="handleClose" @onOk="handleClose"> <GLDialog bigTitle="详细信息" :visible.sync="isVisible" :hasFooter="false" :before-close="handleClose" class="points" mode="big" okText="关闭" @onCancel="handleClose" @onOk="handleClose">
<div class="wrap edit-box"> <div class="wrap edit-box">
<div> <div>
<p class="edit-title">订单信息</p> <p class="edit-title">订单信息</p>
<el-form label-width="150px" :inline="true"> <el-form label-width="150px" :inline="true">
<el-row v-for="(item, index) in withdrawDataRow" :key="index"> <el-row v-for="(item, index) in withdrawDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item"> <el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span v-if="subItem.addHtml"> <span v-if="subItem.addHtml">
{{ subItem.addHtml(recordInfo) }} {{ subItem.addHtml(recordInfo) }}
</span> </span>
<span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span> <span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<div> <div>
<p class="edit-title">付款信息</p> <p class="edit-title">付款信息</p>
<el-form label-width="154px" :inline="true"> <el-form label-width="154px" :inline="true">
<el-row v-for="(item, index) in paymentDataRow" :key="index"> <el-row v-for="(item, index) in paymentDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item"> <el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span v-if="subItem.addHtml"> <span v-if="subItem.addHtml">
{{ subItem.addHtml(recordInfo) }} {{ subItem.addHtml(recordInfo) }}
</span> </span>
<span v-else-if="subItem.addStyle" class="flex_sc"> <span v-else-if="subItem.addStyle" class="flex_sc">
<div class="table_point" :style="{ background: subItem.addStyle(recordInfo).color }"></div> <div class="table_point" :style="{ background: subItem.addStyle(recordInfo).color }"></div>
{{ subItem.addStyle(recordInfo).status }} {{ subItem.addStyle(recordInfo).status }}
</span> </span>
<span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span> <span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<div v-if="recordInfo.operationList"> <div v-if="recordInfo.operationList">
<p class="edit-title">操作记录</p> <p class="edit-title">操作记录</p>
<!-- <template v-for="(record, recordIdx) in recordInfo.operationList"> <!-- <template v-for="(record, recordIdx) in recordInfo.operationList">
<el-form label-width="154px" :inline="true" :key="recordIdx"> <el-form label-width="154px" :inline="true" :key="recordIdx">
<el-row v-for="(item, index) in operationDataRow" :key="index"> <el-row v-for="(item, index) in operationDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label(record) + ':'" class="row-item"> <el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label(record) + ':'" class="row-item">
...@@ -48,182 +48,187 @@ ...@@ -48,182 +48,187 @@
</el-row> </el-row>
</el-form> </el-form>
</template> --> </template> -->
</div>
</div> </div>
</GLDialog> </div>
</template> </GLDialog>
</template>
<script> <script>
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回'] const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E'] const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E']
const channelObj = { const channelObj = {
'TXIAT': '熠轩-银行卡', TXIAT: '熠轩-银行卡',
'ZX': '中雄-银行卡', ZX: '中雄-银行卡',
'YUNHUO': '云获(嘀加)-银行卡', YUNHUO: '云获(嘀加)-银行卡',
"YUNHUO-ZY": '云获(中赢)-银行卡', 'YUNHUO-ZY': '云获(中赢)-银行卡',
'YUNHUO-WX': '云获(中赢)-微信', 'YUNHUO-WX': '云获(中赢)-微信',
'SHENBIANYUN':'身边云-银行卡' SHENBIANYUN: '身边云-银行卡'
} }
export default { export default {
name: 'DetailDialog', name: 'DetailDialog',
data() { data() {
return { return {
recordInfo: {}, recordInfo: {
withdrawDataRow: [], detail:{},
paymentDataRow: [], operationList:[]
operationDataRow: [],
withdrawData: [],
paymentData: [],
operationData: [],
isVisible: this.detailVisible,
}
},
props: {
detailVisible: {
type: Boolean,
default: false
}, },
id: { withdrawDataRow: [],
type: Number, paymentDataRow: [],
default: 0 operationDataRow: [],
} withdrawData: [],
paymentData: [],
operationData: [],
isVisible: this.detailVisible
}
},
props: {
detailVisible: {
type: Boolean,
default: false
}, },
watch: { id: {
detailVisible(newVal) { type: Number,
this.isVisible = newVal default: 0
this.getDetails() }
} },
watch: {
detailVisible(newVal) {
this.isVisible = newVal
this.getDetails()
}
},
computed: {},
mounted() {},
methods: {
getDetails() {
this.$apis.withdraw.approvalDetail({ id: this.id }).then(res => {
this.recordInfo.detail = res
this.getConfig()
})
}, },
computed: {}, getApprovalLog() {
mounted() {}, this.$apis.withdraw.getApprovalLog({ id: this.id }).then(res => {
methods: { this.recordInfo.operationList = res
getDetails() { })
this.$apis.withdraw.getDetails({ id: this.id }).then(res => { },
this.recordInfo = res getConfig() {
this.getConfig() this.withdrawData = [
}) {
}, label: '批次号',
getConfig() { name: 'batchNo '
this.withdrawData = [ },
{ {
label: '批次号', label: '客户数量',
name: 'outSettleOrderId' name: 'customerCount'
}, },
{ {
label: '客户数量', label: '积分总额:',
name: 'transferType', name: 'pointTotal'
addHtml: obj => { },
return obj.transferType == 0 ? '积分提现' : obj.transferType == 1 ? '普通提现' : '阳光激励' {
} label: '付款总额/元:',
}, name: 'paymentTotal',
{ addHtml: obj => {
label: '积分总额:', return obj.paymentTotal ? (obj.paymentTotal / 100).toFixed(2) : '--'
name: 'integralAmount'
},
{
label: '付款总额/元:',
name: 'payAmount',
addHtml: obj => {
return obj.payAmount ? (obj.payAmount / 100).toFixed(2) : '--'
}
},
{
label: '状态',
name: 'status',
addStyle: obj => {
return {
status: tableStatus[obj.status],
color: colors[obj.status]
}
}
}
]
this.paymentData = [
{
label: '付款渠道',
name: 'name'
},
{
label: '付款主体',
name: 'idCardNo'
},
{
label: '渠道到账时间',
name: 'receiptDate'
} }
] },
this.formToRow('withdrawData') {
// this.formToRow('operationData') label: '状态',
this.formToRow('paymentData') name: 'status',
}, addStyle: obj => {
return {
handleJudgment(target, key) { status: tableStatus[obj.status],
let arr = target, color: colors[obj.status]
len = arr.length, }
item
for (let i = 0; i < len; i++) {
item = arr[i]
if (item.name == key) {
arr.splice(i, 1)
} }
} }
}, ]
formToRow(formName, numOfRow = 3) { this.paymentData = [
var rowNum = Math.ceil(this[formName].length / numOfRow) {
for (var i = 0; i < rowNum; i++) { label: '付款渠道',
for (var j = 0; j < numOfRow; j++) { name: 'paymentChannel'
if (j == 0) { },
this[formName + 'Row'][i] = { {
rowList: [] label: '付款主体',
} name: 'paymentSubject'
} },
if (i * numOfRow + j < this[formName].length) {
this[formName + 'Row'][i].rowList.push(this[formName][i * numOfRow + j]) {
label: '渠道到账时间',
name: 'channelSettleTime'
}
]
this.formToRow('withdrawData')
// this.formToRow('operationData')
this.formToRow('paymentData')
},
handleJudgment(target, key) {
let arr = target,
len = arr.length,
item
for (let i = 0; i < len; i++) {
item = arr[i]
if (item.name == key) {
arr.splice(i, 1)
}
}
},
formToRow(formName, numOfRow = 3) {
var rowNum = Math.ceil(this[formName].length / numOfRow)
for (var i = 0; i < rowNum; i++) {
for (var j = 0; j < numOfRow; j++) {
if (j == 0) {
this[formName + 'Row'][i] = {
rowList: []
} }
} }
if (i * numOfRow + j < this[formName].length) {
this[formName + 'Row'][i].rowList.push(this[formName][i * numOfRow + j])
}
} }
},
handleClose() {
this.isVisible = false
this.$emit('dialogClose')
} }
},
handleClose() {
this.isVisible = false
this.$emit('dialogClose')
} }
} }
</script> }
</script>
<style scoped lang="scss"> <style scoped lang="scss">
.edit-box .row-item { .edit-box .row-item {
width: 30%; width: 30%;
/deep/ { /deep/ {
.el-form-item__content { .el-form-item__content {
height: 30px; height: 30px;
}
} }
} }
.detail-txt {
display: inline-block;
width: 136px;
}
.edit-title {
font-weight: 600;
font-size: 16px;
color: #000000d9;
line-height: 24px;
}
.m-b-20 {
margin-top: 20px;
}
/deep/ .el-form-item {
margin-bottom: 0;
}
.table_point {
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
.copy {
color: #5850ff;
margin-left: 20px;
cursor: pointer;
}
</style>
\ No newline at end of file \ No newline at end of file
}
.detail-txt {
display: inline-block;
width: 136px;
}
.edit-title {
font-weight: 600;
font-size: 16px;
color: #000000d9;
line-height: 24px;
}
.m-b-20 {
margin-top: 20px;
}
/deep/ .el-form-item {
margin-bottom: 0;
}
.table_point {
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
.copy {
color: #5850ff;
margin-left: 20px;
cursor: pointer;
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -848,7 +848,8 @@ export default { ...@@ -848,7 +848,8 @@ export default {
//全部生成批次 //全部生成批次
async handleAllBatch(all = true) { async handleAllBatch(all = true) {
let title = all ? '全部生成批次提示' : '生成批次提示', let title = all ? '全部生成批次提示' : '生成批次提示',
cxt = await this.generateBatchCount(all), // cxt = await this.generateBatchCount(all),
cxt='当前共 ${numberOfRecord}条未处理【积分提现】记录,付款金额共',
params = { params = {
type: all ? 2 : 1 type: all ? 2 : 1
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!