|
|
@ -19,10 +19,51 @@ |
|
|
|
<rich-text :nodes="activitydetails.details"></rich-text> |
|
|
|
<rich-text :nodes="activitydetails.details"></rich-text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="width90 mart20 marb15 fcor333 fontwig6 font16" v-if="activitydetails.bankActivityRoster ==null"> |
|
|
|
|
|
|
|
商户信息 |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="username"> |
|
|
|
|
|
|
|
<view class="namecont">商户名称</view> |
|
|
|
|
|
|
|
<view class="font14 fcor333 text2 width75 fotrt">{{merDetailInfo.mer.merName}}</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="username"> |
|
|
|
|
|
|
|
<view class="namecont">支行名称</view> |
|
|
|
|
|
|
|
<view class="font14 fcor333 text2 width75 fotrt">{{merDetailInfo.mer.merSettleAcct.openningBankName}}</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="username"> |
|
|
|
|
|
|
|
<view class="namecont">支行行号</view> |
|
|
|
|
|
|
|
<view class="font14 fcor333 text2 width75 fotrt">{{merDetailInfo.mer.merSettleAcct.openningBankCode}}</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- <view class="username"> |
|
|
|
|
|
|
|
<view class="namecont">银行地址</view> |
|
|
|
|
|
|
|
<pickRegions :defaultRegion="defaultRegionCodes" class="width70" @getRegion="handleBankCityCode"> |
|
|
|
|
|
|
|
<view style="color: #333333;font-size:14px;padding-top:2px; text-align: right;padding-right: 10px;" |
|
|
|
|
|
|
|
v-if="bankregionName"> |
|
|
|
|
|
|
|
{{bankregionName}} |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view style="color: #bfbfbf;font-size:14px;padding-top:2px; text-align: right;padding-right: 10px;" |
|
|
|
|
|
|
|
v-else>请选择银行地址</view> |
|
|
|
|
|
|
|
</pickRegions> |
|
|
|
|
|
|
|
<image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image> |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <view class="username"> |
|
|
|
|
|
|
|
<view class="namecont">所属支行</view> |
|
|
|
|
|
|
|
<input placeholder="请选择所属支行" v-model="belongbranch" style="width: 70%;" disabled="true" |
|
|
|
|
|
|
|
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" /> |
|
|
|
|
|
|
|
<image src="../../../static/img/jtg.png" mode="widthFix" class="iconw" @click="showdepositaryBank()"> |
|
|
|
|
|
|
|
</image> |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="width90 mart20 marb15 fcor333 fontwig6 font16" v-if="activitydetails.bankActivityRoster !=null"> |
|
|
|
<view class="width90 mart20 marb15 fcor333 fontwig6 font16" v-if="activitydetails.bankActivityRoster !=null"> |
|
|
|
选择周期费率 |
|
|
|
选择周期费率 |
|
|
|
<text class="fcoreb5" v-if="activitydetails.bankActivityRoster.bankActivityRosterRateList[0].status == 1">(已生效)</text> |
|
|
|
<text class="fcoreb5" |
|
|
|
<text class="fcoreb5" v-if="activitydetails.bankActivityRoster.bankActivityRosterRateList[0].status == 2">(未配置)</text> |
|
|
|
v-if="activitydetails.bankActivityRoster.bankActivityRosterRateList[0].status == 1">(已生效)</text> |
|
|
|
|
|
|
|
<text class="fcoreb5" |
|
|
|
|
|
|
|
v-if="activitydetails.bankActivityRoster.bankActivityRosterRateList[0].status == 2">(未配置)</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="username" v-for="(item,index) in activityList" :key="index"> |
|
|
|
<view class="username" v-for="(item,index) in activityList" :key="index"> |
|
|
|
<view class="namecont"> |
|
|
|
<view class="namecont"> |
|
|
@ -46,24 +87,78 @@ |
|
|
|
import { |
|
|
|
import { |
|
|
|
queryActivityDetail, |
|
|
|
queryActivityDetail, |
|
|
|
enrollActivity, |
|
|
|
enrollActivity, |
|
|
|
configRosterRate |
|
|
|
configRosterRate, |
|
|
|
|
|
|
|
getSettleAcctByMer |
|
|
|
} from '../../../Utils/Api.js'; |
|
|
|
} from '../../../Utils/Api.js'; |
|
|
|
|
|
|
|
import pickRegions from '../../../components/pick-regions/pick-regions.vue'; |
|
|
|
|
|
|
|
let app = getApp(); |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
|
|
|
|
components: { |
|
|
|
|
|
|
|
pickRegions |
|
|
|
|
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
activitydetails: '', //活动数据 |
|
|
|
activitydetails: '', //活动数据 |
|
|
|
detailsid: '', // 详情id |
|
|
|
detailsid: '', // 详情id |
|
|
|
merId: '', //商户id |
|
|
|
merId: '', //商户id |
|
|
|
activityList: [], // 所有费率 |
|
|
|
activityList: [], // 所有费率 |
|
|
|
changeValue: '' //选择的值 |
|
|
|
changeValue: '', //选择的值 |
|
|
|
|
|
|
|
region: [], //选择区域 |
|
|
|
|
|
|
|
defaultRegion: ['北京市', '市辖区', '东城区'], //默认地区 |
|
|
|
|
|
|
|
defaultRegionCodes: '110101', //区级编号 |
|
|
|
|
|
|
|
bankareaCode: '', //开户行市区编号 |
|
|
|
|
|
|
|
bankregionName: '', //开户行名字 |
|
|
|
|
|
|
|
belongbranch: '', //所属支行 |
|
|
|
|
|
|
|
branchBankNo: '', //所属支行编号 |
|
|
|
|
|
|
|
merDetailInfo: '' //商户信息 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
onLoad(options) { |
|
|
|
this.detailsid = options.id; |
|
|
|
this.detailsid = options.id; |
|
|
|
this.merId = options.merid; |
|
|
|
this.merId = options.merid; |
|
|
|
this.queryActivityDetail(); |
|
|
|
this.queryActivityDetail(); |
|
|
|
|
|
|
|
this.getSettleAcctByMer(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
onShow() { |
|
|
|
|
|
|
|
if (app.globalData.depositaryBank) { |
|
|
|
|
|
|
|
this.belongbranch = app.globalData.depositaryBank; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (app.globalData.branchBankNo) { |
|
|
|
|
|
|
|
this.branchBankNo = app.globalData.branchBankNo; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
onUnload() { |
|
|
|
|
|
|
|
app.globalData.depositaryBank = ''; |
|
|
|
|
|
|
|
app.globalData.bankareaCode = ''; |
|
|
|
|
|
|
|
app.globalData.branchBankNo = ''; |
|
|
|
|
|
|
|
app.globalData.clearNo = ''; |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
//查询商户信息 |
|
|
|
|
|
|
|
getSettleAcctByMer() { |
|
|
|
|
|
|
|
let datas = { |
|
|
|
|
|
|
|
merId: this.merId |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
getSettleAcctByMer(datas).then(res => { |
|
|
|
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
this.merDetailInfo = res.return_data; |
|
|
|
|
|
|
|
this.branchBankNo = res.return_data.mer.merSettleAcct.openningBankCode; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
title: res.return_msg, |
|
|
|
|
|
|
|
duration: 2000, |
|
|
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//选择开户行 |
|
|
|
|
|
|
|
handleBankCityCode(region) { |
|
|
|
|
|
|
|
this.region = region; |
|
|
|
|
|
|
|
this.bankareaCode = this.region.map(item => item.code)[2]; |
|
|
|
|
|
|
|
this.bankregionName = this.region.map(item => item.name).join('-'); |
|
|
|
|
|
|
|
app.globalData.bankareaCode = this.bankareaCode; |
|
|
|
|
|
|
|
}, |
|
|
|
//选择卡号 |
|
|
|
//选择卡号 |
|
|
|
changefeil(e) { |
|
|
|
changefeil(e) { |
|
|
|
let query = e.target.value; |
|
|
|
let query = e.target.value; |
|
|
@ -75,6 +170,20 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//选择支行 |
|
|
|
|
|
|
|
showdepositaryBank() { |
|
|
|
|
|
|
|
if (!this.bankareaCode) { |
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
title: '请选择地区', |
|
|
|
|
|
|
|
duration: 2000, |
|
|
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '/pages/index/depositaryBank/depositaryBank' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
changefeilvalue(item) { |
|
|
|
changefeilvalue(item) { |
|
|
|
this.changeValue = item; |
|
|
|
this.changeValue = item; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -91,8 +200,11 @@ |
|
|
|
uni.hideLoading(); |
|
|
|
uni.hideLoading(); |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
this.activitydetails = res.return_data; |
|
|
|
this.activitydetails = res.return_data; |
|
|
|
|
|
|
|
if (res.return_data.bankActivityRoster) { |
|
|
|
this.activityList = res.return_data.bankActivityRoster |
|
|
|
this.activityList = res.return_data.bankActivityRoster |
|
|
|
.bankActivityRosterRateList |
|
|
|
.bankActivityRosterRateList |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: res.return_msg, |
|
|
|
title: res.return_msg, |
|
|
@ -115,6 +227,7 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
let datas = { |
|
|
|
let datas = { |
|
|
|
bankActivityId: that.detailsid, |
|
|
|
bankActivityId: that.detailsid, |
|
|
|
|
|
|
|
branchBankNo: that.branchBankNo, |
|
|
|
merId: that.merId |
|
|
|
merId: that.merId |
|
|
|
} |
|
|
|
} |
|
|
|
enrollActivity(datas).then(res => { |
|
|
|
enrollActivity(datas).then(res => { |
|
|
@ -129,7 +242,7 @@ |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: res.return_msg, |
|
|
|
title: res.return_msg, |
|
|
|
duration: 2000, |
|
|
|
duration: 3000, |
|
|
|
icon: 'none' |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
@ -228,7 +341,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
.namecont { |
|
|
|
.namecont { |
|
|
|
color: #666666; |
|
|
|
color: #666666; |
|
|
|
width: 80%; |
|
|
|
width: 60%; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |