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
...@@ -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
...@@ -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!