Commit ba7bfae8 by wangzhihui

积分管理

1 parent d6609fe1
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
maxlength: 20 maxlength: 20
}, },
{ {
label: '付款主体', label: '付款渠道',
name: 'channelList', name: 'channelList',
type: 'select', type: 'select',
addHtml: 'channelHtml', addHtml: 'channelHtml',
...@@ -371,7 +371,6 @@ export default { ...@@ -371,7 +371,6 @@ export default {
return list return list
}, },
selectAddAttr(e, formName) { selectAddAttr(e, formName) {
console.log(e)
let [value1, value2, value3] = e let [value1, value2, value3] = e
if (value2) this[formName].paymentSubjectId = value2 if (value2) this[formName].paymentSubjectId = value2
...@@ -430,7 +429,6 @@ export default { ...@@ -430,7 +429,6 @@ export default {
params.userSettleTimeStart = dayjs(this.searchForm.userSettleTime[0]).format('YYYY-MM-DD') + ' 00:00:01' params.userSettleTimeStart = dayjs(this.searchForm.userSettleTime[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.userSettleTimeEnd = dayjs(this.searchForm.userSettleTime[1]).format('YYYY-MM-DD') + ' 23:59:59' params.userSettleTimeEnd = dayjs(this.searchForm.userSettleTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
console.log(this.searchForm.oaApprovalTime)
if (this.searchForm.oaApprovalTime && this.searchForm.oaApprovalTime.length) { if (this.searchForm.oaApprovalTime && this.searchForm.oaApprovalTime.length) {
params.oaApprovalTimeStart = dayjs(this.searchForm.oaApprovalTime[0]).format('YYYY-MM-DD') + ' 00:00:01' params.oaApprovalTimeStart = dayjs(this.searchForm.oaApprovalTime[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.oaApprovalTimeEnd = dayjs(this.searchForm.oaApprovalTime[1]).format('YYYY-MM-DD') + ' 23:59:59' params.oaApprovalTimeEnd = dayjs(this.searchForm.oaApprovalTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
...@@ -453,6 +451,7 @@ export default { ...@@ -453,6 +451,7 @@ export default {
batchNo: '', batchNo: '',
oaSpNo: '', oaSpNo: '',
paymentSubjectId: '', paymentSubjectId: '',
channelList:[],
paymentChannelId: '', paymentChannelId: '',
approvalTime: [], approvalTime: [],
oaApprovalTime: [], oaApprovalTime: [],
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="fold" @click="isMore=true"> <div class="fold" @click="isMore = true">
查看更多 查看更多
<i class="el-icon-arrow-right"></i> <i class="el-icon-arrow-right"></i>
</div> </div>
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
元, 薪享云-银行卡 元, 薪享云-银行卡
<span class="price">{{ settleAmount.xinXiangYunSettleAmount }}</span> <span class="price">{{ settleAmount.xinXiangYunSettleAmount }}</span>
</div> --> </div> -->
</div> </div>
<div class="table-header"> <div class="table-header">
<h2>积分提现列表</h2> <h2>积分提现列表</h2>
...@@ -226,7 +225,7 @@ export default { ...@@ -226,7 +225,7 @@ export default {
}, },
data() { data() {
return { return {
isMore:false, isMore: false,
statisticsTypeList, statisticsTypeList,
props: { props: {
value: 'code', value: 'code',
...@@ -457,7 +456,7 @@ export default { ...@@ -457,7 +456,7 @@ export default {
{ {
label: '提现类型', label: '提现类型',
prop: 'transferType', prop: 'transferType',
width: '200px', width: '120px',
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 : '--'
...@@ -466,7 +465,7 @@ export default { ...@@ -466,7 +465,7 @@ export default {
{ {
label: '提现方式', label: '提现方式',
prop: 'mode', prop: 'mode',
width: '200px', width: '100px',
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 : '--'
...@@ -511,7 +510,7 @@ export default { ...@@ -511,7 +510,7 @@ export default {
label: '收款人身份证', label: '收款人身份证',
prop: 'idCardNo', prop: 'idCardNo',
addHtml: 'idCardNo', addHtml: 'idCardNo',
width: '180px' width: '200px'
}, },
{ {
label: '收款银行卡号', label: '收款银行卡号',
...@@ -566,12 +565,14 @@ export default { ...@@ -566,12 +565,14 @@ export default {
{ {
label: '付款主体', label: '付款主体',
prop: 'paymentEntityName', prop: 'paymentEntityName',
width: '200px' width: 200,
line: 1
}, },
{ {
label: '代征主体', label: '代征主体',
prop: 'levyName', prop: 'levyName',
width: '200px' width: 200,
line: 1
}, },
{ {
label: '付款时间', label: '付款时间',
...@@ -783,7 +784,6 @@ export default { ...@@ -783,7 +784,6 @@ export default {
return arr.map(item => { return arr.map(item => {
// 如果有 child 字段,递归处理 // 如果有 child 字段,递归处理
if (item.child) { if (item.child) {
console.log(this)
item.child = this.removeEmptyChild(item.child) item.child = this.removeEmptyChild(item.child)
} }
...@@ -885,7 +885,22 @@ export default { ...@@ -885,7 +885,22 @@ export default {
return null return null
}, },
selectAddAttr(e, formName) { selectAddAttr(e, formName) {
let [value1, value2, value3] = e let [value1, value2, value3] = e || ['', '', '']
// 处理清除情况
if (!e || e.length === 0) {
this[formName].channel = ''
this[formName].levyCode = ''
this[formName].channelProvider = ''
this[formName].paymentEntityCode = ''
this[formName].channelList = []
this.$nextTick(() => {
// 手动触发重新渲染
this.$forceUpdate()
})
return
}
this[formName].channel = value1 ? value1 : '' this[formName].channel = value1 ? value1 : ''
this[formName].levyCode = value3 ? value3 : '' //代征主体 this[formName].levyCode = value3 ? value3 : '' //代征主体
...@@ -1024,10 +1039,7 @@ export default { ...@@ -1024,10 +1039,7 @@ export default {
params.receiptDateStart = dayjs(this.searchForm.receiptDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01' 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' params.receiptDateEnd = dayjs(this.searchForm.receiptDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
if (this.searchForm.channelList.length) {
delete params.channelList delete params.channelList
}
delete params.payTimeStr, delete params.applyDateStr, delete params.receiptDateStr delete params.payTimeStr, delete params.applyDateStr, delete params.receiptDateStr
return params return params
}, },
...@@ -1056,7 +1068,8 @@ export default { ...@@ -1056,7 +1068,8 @@ export default {
channelProvider: '', channelProvider: '',
paymentEntityCode: '', paymentEntityCode: '',
levyCode: '', levyCode: '',
channel: '' channel: '',
transferType: ''
} }
this.handleSearch() this.handleSearch()
}, },
...@@ -1356,6 +1369,9 @@ export default { ...@@ -1356,6 +1369,9 @@ export default {
this.form.remark = '' this.form.remark = ''
this.showPassDialog = false this.showPassDialog = false
this.$refs.withdrawRef.clearMutiSelect() this.$refs.withdrawRef.clearMutiSelect()
if (this.$refs.payFormRef && this.$refs.payFormRef.$refs.payChildRef) {
this.$refs.payFormRef.$refs.payChildRef.resetFields()
}
}, },
dialogClose() { dialogClose() {
this.detailVisible = false this.detailVisible = false
...@@ -1390,15 +1406,17 @@ export default { ...@@ -1390,15 +1406,17 @@ export default {
this.loading = true this.loading = true
this.$apis.withdraw[Methods](params) this.$apis.withdraw[Methods](params)
.then(res => { .then(res => {
if (res.code == '0') {
this.handleReset()
this.getSettleAmount()
this.cancelPay()
}
this.$message({ this.$message({
message: res.code == '0' ? '付款成功' : res.message, message: res.code == '0' ? '付款成功' : res.message,
type: res.code == '0' ? 'success' : 'error' type: res.code == '0' ? 'success' : 'error'
}) })
}) })
.finally(() => { .finally(() => {
this.handleReset()
this.getSettleAmount()
this.cancelPay()
this.loading = false this.loading = false
}) })
} }
...@@ -1419,6 +1437,9 @@ export default { ...@@ -1419,6 +1437,9 @@ export default {
clearInterval(this.timer) clearInterval(this.timer)
this.timer = null this.timer = null
this.$refs.withdrawRef.clearMutiSelect() this.$refs.withdrawRef.clearMutiSelect()
if (this.$refs.payFormRef && this.$refs.payFormRef.$refs.payChildRef) {
this.$refs.payFormRef.$refs.payChildRef.resetFields()
}
}, },
getCode() { getCode() {
...@@ -1512,16 +1533,16 @@ export default { ...@@ -1512,16 +1533,16 @@ export default {
color: #999999; color: #999999;
line-height: 18px; line-height: 18px;
margin-bottom: 16px; margin-bottom: 16px;
position: relative; position: relative;
.content { .content {
display: flex; display: flex;
align-items: center; align-items: center;
margin-right:140px; margin-right: 140px;
.content-item { .content-item {
padding: 20px; padding: 20px;
background: #f7f9fa; background: #f7f9fa;
flex:1; flex: 1;
margin-right:16px; margin-right: 16px;
&-title { &-title {
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
...@@ -1560,9 +1581,9 @@ position: relative; ...@@ -1560,9 +1581,9 @@ position: relative;
align-items: center; align-items: center;
white-space: nowrap; white-space: nowrap;
margin-left: 16px; margin-left: 16px;
position:absolute; position: absolute;
bottom:0; bottom: 0;
right:58px; right: 58px;
} }
} }
.price { .price {
...@@ -1573,7 +1594,7 @@ position: relative; ...@@ -1573,7 +1594,7 @@ position: relative;
font-size: 12px; font-size: 12px;
margin-left: 154px; margin-left: 154px;
color: #999999; color: #999999;
margin-top: -20px; margin-top: -10px;
.price { .price {
color: #333333; color: #333333;
} }
...@@ -1738,18 +1759,18 @@ position: relative; ...@@ -1738,18 +1759,18 @@ position: relative;
} }
} }
} }
.settleAmount-dialog{ .settleAmount-dialog {
.content { .content {
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap:wrap; flex-wrap: wrap;
.content-item { .content-item {
width: calc((100% - 16px * 4) / 4); width: calc((100% - 16px * 4) / 4);
padding: 20px; padding: 20px;
background: #f7f9fa; background: #f7f9fa;
margin-right:16px; margin-right: 16px;
box-sizing: border-box; box-sizing: border-box;
margin-bottom:16px; margin-bottom: 16px;
&-title { &-title {
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
......
...@@ -209,7 +209,7 @@ export default { ...@@ -209,7 +209,7 @@ export default {
async getListPayLevy(value) { async getListPayLevy(value) {
this.baseData.paymentEntityList = await this.$apis.withdraw.getListPayLevy({ this.baseData.paymentEntityList = await this.$apis.withdraw.getListPayLevy({
paymentEntityId: value, paymentEntityId: value,
channel:this.payForm.channel channel: this.payForm.channel
}) })
let list = this.baseData.paymentEntityList.map(item => { let list = this.baseData.paymentEntityList.map(item => {
return { return {
...@@ -352,6 +352,9 @@ export default { ...@@ -352,6 +352,9 @@ export default {
clearInterval(this.timer) clearInterval(this.timer)
this.timer = null this.timer = null
this.$emit('cancelPay') this.$emit('cancelPay')
if (this.$refs.payFormRef && this.$refs.payFormRef.$refs.payChildRef) {
this.$refs.payFormRef.$refs.payChildRef.resetFields()
}
}, },
getCode() { getCode() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!