Commit 19c29cf9 by wangzhihui

积分提现审批

1 parent 9302a45a
......@@ -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 => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.generate`
......@@ -231,8 +242,7 @@ const getApprovalLog = params => {
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
sign: true
})
}
// 积分提现审批分页查询
......@@ -242,8 +252,7 @@ const getApprovalPage = params => {
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
sign: true
})
}
......
......@@ -77,4 +77,7 @@ p{
.el-message{
z-index: 9999999 !important;
}
.el-message-box__content{
height:auto !important;
}
\ No newline at end of file
......@@ -31,34 +31,36 @@ export default {
data() {
return {
id: '',
checkLoading: false,
loading: false,
colors,
tableStatus,
size: 'small',
url: url,
settleAmount: {},
searchForm: {
customerName: ''
customerName: '',
customerPhone:''
},
hasFooter: false,
tableSearchForm: {},
showFormData: [
{
label: '',
labelWidth: '0',
{
label: '客户名称',
name: 'customerName',
placeholder: '客户名称/手机号',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '手机号',
name: 'customerPhone',
type: 'input',
isClear: true,
maxlength: 11
}
],
// 表格
getListApi: this.$apis.withdraw.getList,
tableParams: {
listName: 'list',
tableColumns: [
{
label: '客户名称',
......@@ -68,11 +70,11 @@ export default {
{
label: '提现方式',
prop: 'mode',
width: '200px'
// formatter: cellValue => {
// let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
// return arr.length > 0 ? arr[0].confLabel : '--'
// }
width: '200px',
formatter: cellValue => {
let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
return arr.length > 0 ? arr[0].confLabel : '--'
}
},
{
label: '手机号',
......@@ -155,6 +157,11 @@ export default {
}
},
{
label: '提现时间',
prop: 'updatedDate',
width: 150
},
{
label: '收款人姓名',
prop: 'name',
width: '110px'
......@@ -179,54 +186,34 @@ export default {
label: '收款手机号',
prop: 'mobile',
width: '130px'
},
{
label: '到账情况',
prop: 'customerOpenId',
width: '130px'
},
{
label: '到账时间',
prop: 'receiptDate',
width: '200px'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据
baseData: {}
baseData: {
modeTypeList: [
{
confId: '0',
confLabel: '银行卡'
},
{
confId: '1',
confLabel: '微信'
}
],
}
}
},
mounted() {},
methods: {
getParams() {
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
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
delete this.tableSearchForm.payTimeStr
delete this.tableSearchForm.applyDateStr
resolve()
})
},
......@@ -235,14 +222,8 @@ export default {
},
handleReset() {
this.searchForm = {
outSettleOrderId: '',
customerName: '',
customerPhone: '',
status: '',
channel: '',
merchantName: '',
mode: '',
withdrawalSource: ''
customerPhone:''
}
this.handleSearch()
}
......@@ -260,11 +241,7 @@ export default {
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>
\ No newline at end of file
......@@ -6,9 +6,10 @@
<div class="title">编辑</div>
</div>
<div class="container gl-form-page">
<div class="flex-sb">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<el-button size="small" @click="handleCheck('', true)" type="primary" plain>全部驳回</el-button>
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header flex-sb">
<h2>积分提现明细</h2>
<el-button size="small" @click="handleDissolve(true)" type="primary" plain>解散批次</el-button>
</div>
<!-- 表格区域 开始 -->
......@@ -56,7 +57,6 @@ export default {
id: '',
isAll: true,
checkLoading: false,
showPassDialog: false,
loading: false,
colors,
tableStatus,
......@@ -64,34 +64,40 @@ export default {
url: url,
settleAmount: {},
searchForm: {
customerName: ''
customerName: '',
customerPhone: ''
},
hasFooter: false,
tableSearchForm: {},
tableButtonList: [
{
type: 'el-button',
name: '驳回',
name: '移除',
attrs: {
type: 'text',
fn: '驳回'
fn: '移除'
},
listeners: {
click: row => {
this.handleCheck(row, false)
this.handleDissolve(false, row)
}
}
}
],
showFormData: [
{
label: '',
labelWidth: '0',
label: '客户名称',
name: 'customerName',
placeholder: '客户名称/手机号',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '手机号',
name: 'customerPhone',
type: 'input',
isClear: true,
maxlength: 11
}
],
// 表格
......@@ -110,11 +116,11 @@ export default {
{
label: '提现方式',
prop: 'mode',
width: '200px'
// formatter: cellValue => {
// let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
// return arr.length > 0 ? arr[0].confLabel : '--'
// }
width: '200px',
formatter: cellValue => {
let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
return arr.length > 0 ? arr[0].confLabel : '--'
}
},
{
label: '手机号',
......@@ -197,6 +203,11 @@ export default {
}
},
{
label: '提现时间',
prop: 'updatedDate',
width: 150
},
{
label: '收款人姓名',
prop: 'name',
width: '110px'
......@@ -221,16 +232,6 @@ export default {
label: '收款手机号',
prop: 'mobile',
width: '130px'
},
{
label: '到账情况',
prop: 'customerOpenId',
width: '130px'
},
{
label: '到账时间',
prop: 'receiptDate',
width: '200px'
}
]
},
......@@ -242,69 +243,40 @@ export default {
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据
baseData: {}
baseData: {
modeTypeList: [
{
confId: '0',
confLabel: '银行卡'
},
{
confId: '1',
confLabel: '微信'
}
]
}
}
},
mounted() {},
methods: {
clearSelect() {
this.ids = ''
this.form.remark = ''
this.showPassDialog = false
},
comfirmCheck() {
this.$refs.form.validate(valid => {
if (valid) {
// this.checkLoading = true
// 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
handleDissolve(isAll, row) {
let title = isAll ? '解散批次提示' : '移除提示',
cxt = isAll ? '解散本批次,所有未驳回的积分提现记录将恢复「待审核」状态,如需重新生成批次,请选中后重新生成批次。' : '移除该记录,该条积分提现记录将恢复「待审核」状态,如需重新生成批次,请选中后重新生成批次。',
params = {
type: isAll ? 2 : 1
},
Method = 'removeApproval'
!isAll ? (params.id = row.id) : ''
this.$utils.secondConfirm(this, title, cxt, 'withdraw', Method, params)
},
getParams() {
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
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
delete this.tableSearchForm.payTimeStr
delete this.tableSearchForm.applyDateStr
resolve()
})
},
......@@ -313,14 +285,8 @@ export default {
},
handleReset() {
this.searchForm = {
outSettleOrderId: '',
customerName: '',
customerPhone: '',
status: '',
channel: '',
merchantName: '',
mode: '',
withdrawalSource: ''
customerPhone: ''
}
this.handleSearch()
}
......@@ -337,31 +303,14 @@ export default {
font-weight: 600;
border-bottom: 1px solid #e5e5e5;
}
.remind {
display: flex;
.table-header {
align-items: center;
width: 680px;
height: 36px;
border-radius: 3.6px;
border: 1px solid #5850ff;
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;
h2 {
color: #333333;
font-size: 16px;
}
}
}
.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>
\ No newline at end of file
......@@ -848,7 +848,8 @@ export default {
//全部生成批次
async handleAllBatch(all = true) {
let title = all ? '全部生成批次提示' : '生成批次提示',
cxt = await this.generateBatchCount(all),
// cxt = await this.generateBatchCount(all),
cxt='当前共 ${numberOfRecord}条未处理【积分提现】记录,付款金额共',
params = {
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!