Compare commits
11 Commits
dbfe05eb09
...
f9ffe473ae
Author | SHA1 | Date |
---|---|---|
杨杰 | f9ffe473ae | 1 year ago |
杨杰 | 2044dbe2e3 | 1 year ago |
杨杰 | eda5021e8a | 1 year ago |
杨杰 | 6c925eab5c | 1 year ago |
杨杰 | fc7003faea | 1 year ago |
杨杰 | 415481251b | 1 year ago |
杨杰 | f562658e1d | 1 year ago |
杨杰 | ff9cd2faee | 1 year ago |
杨杰 | a4ab29645d | 1 year ago |
杨杰 | e297a565ce | 1 year ago |
杨杰 | 3e093b4eb4 | 1 year ago |
@ -0,0 +1,205 @@ |
||||
<template> |
||||
<view> |
||||
<view class="width100 backcorfff"> |
||||
<!-- 审核状态回馈 --> |
||||
<view class="width100 height100p" style="background-color: #eb6a53;" |
||||
v-if="modifyDetails && (modifyDetails.status == 2 || modifyDetails.status == 4 || modifyDetails.status == 6)"> |
||||
<view class="font18 fcorfff paading10 aliitem" |
||||
v-if="modifyDetails.status == 4 || modifyDetails.status == 6"> |
||||
<image src='../../../static/img/error.png' mode="widthFix" class="iconw25 marglerig"></image>审核驳回 |
||||
</view> |
||||
<view class="font14 fcorfff paading10" v-if="modifyDetails.status == 4 || modifyDetails.status == 6"> |
||||
{{modifyDetails.rejectReason}} |
||||
</view> |
||||
<view class="font18 fcorfff paddtop35 fotct" |
||||
v-if="modifyDetails.status == 2 || modifyDetails.status == 5"> |
||||
审核中 |
||||
</view> |
||||
</view> |
||||
|
||||
<view class="titlename font18 fontwig6 fcor333" v-if="rateCodeList">修改商户费率</view> |
||||
<view class="username" v-for="(item,index) in rateCodeList" :key="index"> |
||||
<view class="namecont">{{item.rateTypeName}}</view> |
||||
<input placeholder="请输入" type="digit" v-model="item.ratePct" style="padding-left: 2%;width: 28%;" |
||||
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" /> |
||||
<view style="width: 40%;">(单位: 百分之一)</view> |
||||
</view> |
||||
</view> |
||||
|
||||
<view class="btn" @click="updatemodifyRate()" v-if="!modifyDetails || modifyDetails.status == 4 || modifyDetails.status == 6">提交审核</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getRateByMer, |
||||
editRateApply, |
||||
getNewRateApplyDetail |
||||
} from '../../../Utils/Api.js'; |
||||
let app = getApp(); |
||||
export default { |
||||
data() { |
||||
return { |
||||
merId: '', //用户id |
||||
rateCodeList: [], //费率字典 |
||||
merRateList: [], //提交费率数组 |
||||
modifystatus: '' ,//当前状态 |
||||
modifyDetails:''//费率详情 |
||||
} |
||||
}, |
||||
onLoad(options) { |
||||
this.merId = options.id; |
||||
this.getNewRateApplyDetail(); |
||||
}, |
||||
methods: { |
||||
//查询费率状态 |
||||
getNewRateApplyDetail() { |
||||
let datas = { |
||||
merId: this.merId |
||||
} |
||||
getNewRateApplyDetail(datas).then(res => { |
||||
if (res.return_code == '000000' && res.return_data != null) { |
||||
this.modifyDetails = res.return_data; |
||||
this.modifystatus = res.return_data.status; |
||||
if (res.return_data.status == 1 || res.return_data.status == 3 || res.return_data.status == |
||||
4 || res.return_data.status == 6) { |
||||
this.getRateByMer(); |
||||
} else { |
||||
this.rateCodeList = res.return_data.merRateApplyDetailList; |
||||
} |
||||
} else { |
||||
this.getRateByMer(); |
||||
} |
||||
}) |
||||
}, |
||||
//查询费率 |
||||
getRateByMer() { |
||||
let datas = { |
||||
merId: this.merId |
||||
} |
||||
getRateByMer(datas).then(res => { |
||||
if (res.return_code == '000000') { |
||||
this.rateCodeList = res.return_data; |
||||
} |
||||
}) |
||||
}, |
||||
//修改费率 |
||||
updatemodifyRate() { |
||||
uni.showModal({ |
||||
title: '提交审核', |
||||
content: '确认信息是否正确。', |
||||
success: (res) => { |
||||
if (res.confirm) { |
||||
uni.showLoading({ |
||||
title: '提交审核中...' |
||||
}) |
||||
let rateDatas = []; |
||||
for (var i = 0; i < this.rateCodeList.length; i++) { |
||||
if (this.rateCodeList[i].ratePct) { |
||||
let datas = { |
||||
rateTypeCode: this.rateCodeList[i].rateTypeCode, |
||||
ratePct: this.rateCodeList[i].ratePct |
||||
} |
||||
rateDatas.push(datas); |
||||
} |
||||
} |
||||
this.merRateList = rateDatas; |
||||
let datas = { |
||||
"merId": this.merId, |
||||
"rate": this.merRateList |
||||
} |
||||
editRateApply(datas).then(res => { |
||||
uni.hideLoading(); |
||||
if (res.return_code == '000000') { |
||||
uni.showToast({ |
||||
title: '提交成功', |
||||
icon: 'none', |
||||
duration: 2000 |
||||
}) |
||||
uni.navigateBack(); |
||||
} |
||||
}) |
||||
} |
||||
} |
||||
}) |
||||
} |
||||
}, |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
page { |
||||
background-color: #f7f5f6; |
||||
} |
||||
|
||||
.titlename { |
||||
width: calc(100% - 90upx); |
||||
height: 100upx; |
||||
display: flex; |
||||
align-items: center; |
||||
background-color: rgba($color: #ffffff, $alpha: 0.1); |
||||
padding: 0 45upx; |
||||
} |
||||
|
||||
.username { |
||||
width: calc(100% - 90upx); |
||||
height: 100upx; |
||||
display: flex; |
||||
align-items: center; |
||||
background-color: rgba($color: #ffffff, $alpha: 0.1); |
||||
border-bottom: 1px solid #f6f6f6; |
||||
padding: 8upx 45upx; |
||||
|
||||
input { |
||||
width: 50%; |
||||
height: 50upx; |
||||
font-size: 16px; |
||||
color: #333333; |
||||
font-weight: blod; |
||||
} |
||||
|
||||
.get-code { |
||||
position: absolute; |
||||
display: flex; |
||||
align-items: center; |
||||
justify-content: center; |
||||
right: 7px; |
||||
z-index: 3; |
||||
border: 1px solid #bfbfbf; |
||||
width: 25%; |
||||
padding: 3px 5px; |
||||
border-radius: 22px; |
||||
|
||||
&:after { |
||||
content: " "; |
||||
width: 1upx; |
||||
height: 50upx; |
||||
position: absolute; |
||||
z-index: 3; |
||||
margin-right: 100%; |
||||
left: 0; |
||||
top: 20upx; |
||||
} |
||||
} |
||||
|
||||
.namecont { |
||||
color: #666666; |
||||
width: 28%; |
||||
} |
||||
} |
||||
|
||||
.btn { |
||||
color: #FFFFFF; |
||||
background-color: #0083f5; |
||||
width: 90%; |
||||
margin-left: 5%; |
||||
margin-top: 80rpx; |
||||
margin-bottom: 50rpx; |
||||
height: 90rpx; |
||||
display: flex; |
||||
justify-content: center; |
||||
align-items: center; |
||||
border-radius: 10rpx; |
||||
font-size: 40rpx; |
||||
} |
||||
</style> |
@ -0,0 +1,160 @@ |
||||
<template> |
||||
<view> |
||||
<view class="mart20 width100"> |
||||
<view v-if="merchantlist == '' " class="mart60 fotct font14 fcor666"> |
||||
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image> |
||||
</view> |
||||
<view class="width94 backcorfff border-r mart15" v-for="(item,index) in merchantlist" :key="index" |
||||
@click="jumpmerdes(item.id)"> |
||||
<view class="notes"> |
||||
<image src="../../../static/img/merchantstu.png" mode="widthFix" class="iconw40"></image> |
||||
<view class="width60 margle"> |
||||
<view class="font14 fcor333">{{item.merName}}</view> |
||||
<view class="font12 fcor999"> |
||||
{{item.createTime | timeFormat('yyyy-mm-dd')}} |
||||
{{item.createTime | timeFormat('hh:mm')}} |
||||
</view> |
||||
</view> |
||||
<!-- <view class="statucs font14">正常</view> --> |
||||
</view> |
||||
<view class="notes"> |
||||
<view class="width30 fcor333 font15">联系人</view> |
||||
<view class="width30 fcor999 font15" v-if="item.regName">{{item.regName}}</view> |
||||
<view class="width30 fcor999 font15" v-else>-</view> |
||||
</view> |
||||
<view class="height45 width100 paddbotm10"> |
||||
<button class="btns mart10 margle10" @click.stop="openAccounts(item.id)">开通分账</button> |
||||
<button class="btns mart10 margle10" @click.stop="bindMerchants(item.id)">分账接收方</button> |
||||
<button class="btns mart10 margle10" @click.stop="jumpEquityActivity(item.id)">权益活动</button> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getMerListBySalesman, |
||||
getMerLedgerApply |
||||
} from '../../../Utils/Api.js'; |
||||
export default { |
||||
data() { |
||||
return { |
||||
merchantlist: [], |
||||
pageNum: 1, |
||||
pagesize: 10, |
||||
isLoadMore: false, //是否加载中 |
||||
} |
||||
}, |
||||
onShow() { |
||||
this.merchantlist = []; |
||||
this.pageNum = 1; |
||||
this.getMerListBySalesman(); |
||||
}, |
||||
onReachBottom() { //上拉触底函数 |
||||
if (!this.isLoadMore) { //此处判断,上锁,防止重复请求 |
||||
this.isLoadMore = true |
||||
this.pageNum += 1 |
||||
this.getMerListBySalesman() |
||||
} |
||||
}, |
||||
methods: { |
||||
//查询商户列表 |
||||
getMerListBySalesman() { |
||||
uni.showLoading({ |
||||
title: '加载中' |
||||
}) |
||||
let datas = { |
||||
merStatus: 1, |
||||
pageNum: this.pageNum, |
||||
pageSize: this.pagesize, |
||||
} |
||||
getMerListBySalesman(datas).then(res => { |
||||
uni.hideLoading(); |
||||
if (res.return_code == '000000' && res.return_data.list) { |
||||
this.merchantlist = this.merchantlist.concat(res.return_data.list); |
||||
if (res.return_data.pages == this.pageNum) { |
||||
this.isLoadMore = true; |
||||
} else { |
||||
this.isLoadMore = false |
||||
} |
||||
} else { |
||||
this.isLoadMore = true |
||||
} |
||||
}); |
||||
}, |
||||
//跳转详情 |
||||
jumpmerdes(ids) { |
||||
uni.navigateTo({ |
||||
url: '/pages/index/merchant-details/merchant-details?id=' + ids |
||||
}) |
||||
}, //开通分账 |
||||
openAccounts(item) { |
||||
uni.navigateTo({ |
||||
url: '/pages/index/open-Divide_accounts/open-Divide_accounts?id=' + item |
||||
}) |
||||
}, |
||||
//绑定商户 |
||||
bindMerchants(item) { |
||||
//查询商户分账详情 |
||||
let datas = { |
||||
merId: item, |
||||
platformType: 1 |
||||
} |
||||
getMerLedgerApply(datas).then(res => { |
||||
if (res.return_code == '000000') { |
||||
uni.navigateTo({ |
||||
url: '/pages/index/bindMerchants/bindMerchants?id=' + res.return_data.id + |
||||
'&merId=' + item |
||||
}) |
||||
} else { |
||||
uni.showToast({ |
||||
title: res.return_msg, |
||||
duration: 2000, |
||||
icon: 'none' |
||||
}) |
||||
} |
||||
}) |
||||
}, |
||||
//跳转权益活动 |
||||
jumpEquityActivity(item) { |
||||
uni.navigateTo({ |
||||
url: '/pages/index/equity-activities/equity-activities?id=' + item |
||||
}) |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
page { |
||||
background-color: #f6f6f6; |
||||
} |
||||
|
||||
.notes { |
||||
width: calc(100% - 40upx); |
||||
display: flex; |
||||
align-items: center; |
||||
padding: 20upx 0 20upx 20upx; |
||||
} |
||||
|
||||
//正常状态 |
||||
.statucs { |
||||
background-color: #e9f9e5; |
||||
color: #84b878; |
||||
text-align: center; |
||||
padding: 2px 5px; |
||||
} |
||||
|
||||
.btns { |
||||
width: 21%; |
||||
float: left; |
||||
height: 35px; |
||||
line-height: 35px; |
||||
background-color: #0083f5; |
||||
color: #FFFFFF; |
||||
font-weight: bold; |
||||
font-size: 12px; |
||||
padding: 0px; |
||||
} |
||||
</style> |
@ -0,0 +1,175 @@ |
||||
<template> |
||||
<view> |
||||
<view class="width100 height100p" style="background-color: #eb6a53;" v-if="RateApplyDetail.status == 5"> |
||||
<view class="font18 fcorfff paddtop35 fotct"> |
||||
渠道审核中 |
||||
</view> |
||||
</view> |
||||
|
||||
<view class="titlename width100 font18 fontwig6 fcor333">费率信息审核</view> |
||||
<view class="width100 backcorfff"> |
||||
<view class="notes" v-for="(item,index) in RateApplyDetail.merRateApplyDetailList" :key="index"> |
||||
<view class="fcor666 width25">{{item.rateTypeName}}</view> |
||||
<view class="font14 fcor333 text2 width75 fotrt">{{item.ratePct}} (单位: 百分之一)</view> |
||||
</view> |
||||
</view> |
||||
|
||||
<view class="titlename width100 font18 fontwig6 fcor333" |
||||
v-if="RateApplyDetail.status == 2 || RateApplyDetail.status == 4 || RateApplyDetail.status == 6">驳回信息</view> |
||||
<textarea class="width100 backcorfff" v-model="rejectReason" v-if="RateApplyDetail.status == 2" |
||||
style="padding: 15px;" placeholder="请填写审核驳回内容"></textarea> |
||||
<textarea class="width100 backcorfff" :value="RateApplyDetail.rejectReason" disabled="true" |
||||
v-if="RateApplyDetail.status == 4 || RateApplyDetail.status == 6" style="padding: 15px;"></textarea> |
||||
<view class="alijusstart" v-if="RateApplyDetail.status == 2"> |
||||
<button class="btns mart40 backcor008" @click="approve()">通过</button> |
||||
<button class="btns mart40 backcorlr" @click="reject()">驳回</button> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
reject, |
||||
approve, |
||||
getRateApplyDetail |
||||
} from '../../../Utils/Api.js'; |
||||
export default { |
||||
data() { |
||||
return { |
||||
auditNo: '', //审批编号 |
||||
rateApplyId: '', //审核对象id |
||||
rejectReason: '', //驳回内容 |
||||
RateApplyDetail: '' //费率详情 |
||||
} |
||||
}, |
||||
onLoad(options) { |
||||
this.rateApplyId = options.id; |
||||
this.auditNo = options.auditid; |
||||
this.getRateApplyDetail(); |
||||
}, |
||||
methods: { |
||||
//详情 |
||||
getRateApplyDetail() { |
||||
let datas = { |
||||
rateApplyId: this.rateApplyId |
||||
} |
||||
getRateApplyDetail(datas).then(res => { |
||||
if (res.return_code == '000000') { |
||||
this.RateApplyDetail = res.return_data.rateApply; |
||||
} |
||||
}) |
||||
}, |
||||
//通过审核 |
||||
approve() { |
||||
uni.showModal({ |
||||
title: '通过审核', |
||||
content: '是否通过当前审核', |
||||
success: (res) => { |
||||
if (res.confirm) { |
||||
uni.showLoading({ |
||||
title: '提交中' |
||||
}) |
||||
let datas = { |
||||
auditNo: this.auditNo |
||||
} |
||||
approve(datas).then(res => { |
||||
uni.hideLoading(); |
||||
if (res.return_code == '000000') { |
||||
uni.showToast({ |
||||
title: '提交成功', |
||||
icon: "none", |
||||
duration: 2000 |
||||
}); |
||||
uni.navigateBack(); |
||||
} else { |
||||
uni.showToast({ |
||||
title: res.return_msg, |
||||
icon: "none", |
||||
duration: 2000 |
||||
}); |
||||
} |
||||
}) |
||||
} else if (res.cancel) { |
||||
console.log('用户点击取消'); |
||||
} |
||||
} |
||||
}); |
||||
}, |
||||
//驳回审核 |
||||
reject() { |
||||
if (!this.rejectReason) { |
||||
uni.showToast({ |
||||
title: '请填写驳回理由', |
||||
icon: "none", |
||||
duration: 2000 |
||||
}); |
||||
return; |
||||
} |
||||
uni.showModal({ |
||||
title: '驳回审核', |
||||
content: '是否驳回当前审核', |
||||
success: (res) => { |
||||
if (res.confirm) { |
||||
uni.showLoading({ |
||||
title: '提交中' |
||||
}) |
||||
let datas = { |
||||
auditNo: this.auditNo, |
||||
"rejectReason": this.rejectReason |
||||
} |
||||
reject(datas).then(res => { |
||||
uni.hideLoading(); |
||||
if (res.return_code == '000000') { |
||||
uni.showToast({ |
||||
title: '提交成功', |
||||
icon: "none", |
||||
duration: 2000 |
||||
}); |
||||
uni.navigateBack(); |
||||
} else { |
||||
uni.showToast({ |
||||
title: res.return_msg, |
||||
icon: "none", |
||||
duration: 2000 |
||||
}); |
||||
} |
||||
}) |
||||
} else if (res.cancel) { |
||||
console.log('用户点击取消'); |
||||
} |
||||
} |
||||
}); |
||||
} |
||||
|
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
page { |
||||
background-color: #f6f6f6; |
||||
} |
||||
|
||||
.titlename { |
||||
align-items: center; |
||||
padding: 30rpx 0 30rpx 20rpx; |
||||
background-color: #ffffff; |
||||
border-bottom: 1px solid #f6f6f6; |
||||
} |
||||
|
||||
.notes { |
||||
width: calc(100% - 40rpx); |
||||
display: flex; |
||||
align-items: center; |
||||
padding: 30rpx 0 30rpx 20rpx; |
||||
border-bottom: 1px solid #f6f6f6; |
||||
} |
||||
|
||||
.btns { |
||||
width: 40%; |
||||
height: 50px; |
||||
line-height: 50px; |
||||
color: #FFFFFF; |
||||
font-weight: bold; |
||||
} |
||||
</style> |
Loading…
Reference in new issue