1.修改渠道切换

2.新增经营类型
3.优化线上问题
huipay-master
杨杰 1 year ago
parent f9ffe473ae
commit e35c5223ad
  1. 6
      Utils/Api.js
  2. 79
      pages/index/merchant-details/merchant-details.vue
  3. 125
      pages/index/merchant-incoming-parts/merchant-incoming-parts.vue
  4. 2
      pages/index/modifyRate/modifyRate.vue

@ -320,6 +320,12 @@ export const unbindStore = params => {
return POST('POST', `${base}/device/unbindStore`, params).then(res => res.data); return POST('POST', `${base}/device/unbindStore`, params).then(res => res.data);
} }
//切换渠道
export const switchPlatform = params => {
return POST('POST', `${base}/merPlatform/switchPlatform`, params).then(res => res.data);
}

@ -101,14 +101,34 @@
<!-- 渠道列表 --> <!-- 渠道列表 -->
<view class="mart15 width100" v-if="current == 2"> <view class="mart15 width100" v-if="current == 2">
<!-- v-for="(item,indexplt) in merPlatformList" :key="indexplt" --> <!-- v-for="(item,indexplt) in merPlatformList" :key="indexplt" -->
<view class="width94 backcorfff border-r mart15" v-for="(item,indexplt) in merPlatformList" :key="indexplt"> <view class="width94 backcorfff border-r mart15 paddbotm10" v-for="(item,indexplt) in merPlatformList"
:key="indexplt" @click="jumpDetailsparts(item.merId,item.platformType)">
<view class="notes" style="border-bottom: 0px;"> <view class="notes" style="border-bottom: 0px;">
<view class="width100 margle"> <view class="width70 margle">
<view class="font16 fcor333" v-if="item.platformType == 1">渠道名称: 拉卡拉</view> <view class="font16 fcor333" v-if="item.platformType == 1">渠道名称: 拉卡拉</view>
<view class="font14 fcor999 mart5">商户号: {{item.cupNo}}</view> <view class="font16 fcor333" v-if="item.platformType == 5">渠道名称: 随行付</view>
<view class="font14 fcor999 mart5">终端号: {{item.merPlatformTerm.termNo}}</view> <view class="font14 fcor999 mart5" v-if="item.cupNo">商户号: {{item.cupNo}}</view>
<view class="font14 fcoreb5 mart5" v-if="item.suggestionReject">审核驳回原因:
{{item.suggestionReject}}
</view> </view>
</view> </view>
<view class="otstatucs" v-if="item.status == 0">
不可用
</view>
<view class="storestus" v-if="item.status == 1">
可用
</view>
<view class="otstatucs" v-if="item.status == 2">
审核中
</view>
<view class="otstatucs" v-if="item.status == 3">
审核驳回
</view>
</view>
<view class="btnschange width90 border-r" v-if="item.platformType == 1 && !item.currentPlatform"
@click.stop="switchPlatform(item.merId,item.platformType)">切换拉卡拉</view>
<view class="btnschange width90 border-r" v-if="item.platformType == 5 && !item.currentPlatform"
@click.stop="switchPlatform(item.merId,item.platformType)">切换随行付</view>
</view> </view>
</view> </view>
<view class="width94 alijus" v-if="current == 0"> <view class="width94 alijus" v-if="current == 0">
@ -123,7 +143,8 @@
import { import {
getMerDetail, getMerDetail,
getStoreListByMer, getStoreListByMer,
getMerPlatformList getMerPlatformList,
switchPlatform
} from '../../../Utils/Api.js'; } from '../../../Utils/Api.js';
export default { export default {
components: { components: {
@ -144,6 +165,9 @@
this.merid = options.id; this.merid = options.id;
this.getMerDetail(this.merid); this.getMerDetail(this.merid);
}, },
onShow() {
this.getMerPlatformList();
},
methods: { methods: {
// //
change(index) { change(index) {
@ -250,6 +274,39 @@
uni.navigateTo({ uni.navigateTo({
url: '../bindScan/bindScan?storeid=' + item + '&type=' + items url: '../bindScan/bindScan?storeid=' + item + '&type=' + items
}) })
},
//
jumpDetailsparts(item, item1) {
uni.navigateTo({
url: '../merchant-incoming-parts/merchant-incoming-parts?id=' + item + '&merPlatformType=' +
item1
})
},
//
switchPlatform(item, item1) {
uni.showModal({
title: '切换渠道',
content: '是否确认切换当前渠道',
success: (res) => {
if (res.confirm) {
uni.showLoading({
title: '处理中...'
})
let data = {
"merId": item,
"platformType": item1
}
switchPlatform(data).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
this.getMerPlatformList();
}
})
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
} }
} }
} }
@ -263,7 +320,7 @@
.notes { .notes {
width: calc(100% - 40rpx); width: calc(100% - 40rpx);
display: flex; display: flex;
align-items: center; align-items: flex-start;
padding: 30rpx 0 30rpx 20rpx; padding: 30rpx 0 30rpx 20rpx;
border-bottom: 1px solid #f6f6f6; border-bottom: 1px solid #f6f6f6;
} }
@ -319,4 +376,14 @@
.lin10 { .lin10 {
height: 10px; height: 10px;
} }
.btnschange {
background-color: #0083f5;
font-size: 14px;
width: 90px;
text-align: center;
padding-top: 5px;
padding-bottom: 5px;
color: #FFFFFF;
}
</style> </style>

@ -11,11 +11,12 @@
</view> </view>
<!-- 审核状态回馈 --> <!-- 审核状态回馈 -->
<view class="width100 line10 "></view> <view class="width100 line10 "></view>
<view class="width100" style="background-color: #eb6a53;" v-if="merDetailInfo.merStatus == 4"> <view class="width100" style="background-color: #eb6a53;"
v-if="merDetailInfo.merContractFailMsg && merDetailInfo.merContractFailMsg.response_msg">
<view class="font18 fcorfff paading10 aliitem"> <view class="font18 fcorfff paading10 aliitem">
<image src="../../../static/img/error.png" mode="widthFix" class="iconw25 marglerig"></image>审核失败 <image src="../../../static/img/error.png" mode="widthFix" class="iconw25 marglerig"></image>审核失败
<text class="fotct margle20 backcorfff fcoreb5 font14 border-r marRight20 flright paddtop5 paddbotm5" <text class="fotct margle20 backcorfff fcoreb5 font14 border-r marRight20 flright paddtop5 paddbotm5"
style="width: 80px;" @click="reconsider">复议提交</text> style="width: 80px;" @click="reconsider" v-if="merPlatformType && merPlatformType == 1">复议提交</text>
</view> </view>
<view class="font14 fcorfff paading10">{{merDetailInfo.merContractFailMsg.response_msg}}</view> <view class="font14 fcorfff paading10">{{merDetailInfo.merContractFailMsg.response_msg}}</view>
@ -179,11 +180,39 @@
</pickRegions> </pickRegions>
<image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image> <image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image>
</view> </view>
<!-- <view class="username">
<view class="namecont">mcc编号</view> <view class="username">
<input placeholder="请输入四位数字的mcc编号" v-model="mccno" maxlength="4" style="width: 70%;" <view class="namecont font16">经营类型</view>
<picker mode="selector" style="width: 70%;" :range="merOperateList" range-key="codeName"
@change="bindUserCard">
<view class=" text1 marRight10 font14" v-if="merOperateType">
{{merOperateName}}
</view>
<view class=" text1 marRight10 fcor999 font14" v-else>
请选择设备类型
</view>
</picker>
<image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image>
</view>
<view class="username" v-if="merOperateType == 2">
<view class="namecont font16">线上类型</view>
<picker mode="selector" style="width: 70%;" :range="merOnlineList" range-key="codeName"
@change="bindUserCard1">
<view class=" text1 marRight10 font14" v-if="merOnlineType">
{{merOnlinetypsName}}
</view>
<view class=" text1 marRight10 fcor999 font14" v-else>
请选择设备类型
</view>
</picker>
<image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image>
</view>
<view class="username" v-if="merOperateType == 2">
<view class="namecont">线上产品名称</view>
<input placeholder="请输入线上产品名称" v-model="merOnlineName" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" /> placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view> --> </view>
<view class="username"> <view class="username">
<view class="namecont">mcc编号</view> <view class="namecont">mcc编号</view>
<input placeholder="请选择mcc编号" v-model="mccname" style="width: 70%;" disabled="true" <input placeholder="请选择mcc编号" v-model="mccname" style="width: 70%;" disabled="true"
@ -837,6 +866,13 @@
larIdCardAddress: '', // larIdCardAddress: '', //
idcardtime: '1', // times: longterm: idcardtime: '1', // times: longterm:
uncorporsettelimg: '', // uncorporsettelimg: '', //
merOperateList: '', //
merOnlineList: '', //线
merOperateType: '', //" 1线 2线",
merOperateName: '', // 1线 2线",
merOnlineType: '', //"线 1APP 2 3//
merOnlinetypsName: '', //1APP 2 3//
merOnlineName: '', //"线"
uploaduncorporsettelimg: '', // uploaduncorporsettelimg: '', //
settleimg: '', // settleimg: '', //
uploadsettleimg: '', // uploadsettleimg: '', //
@ -885,6 +921,7 @@
merDetailInfo: '', // merDetailInfo: '', //
rateCodeList: [], // rateCodeList: [], //
merRateList: [], // merRateList: [], //
merPlatformType: '' //ID
} }
}, },
computed: { computed: {
@ -905,6 +942,7 @@
}, },
onLoad(options) { onLoad(options) {
this.merId = options.id; this.merId = options.id;
this.merPlatformType = options.merPlatformType;
this.getMerDetail(1); this.getMerDetail(1);
}, },
onShow() { onShow() {
@ -933,6 +971,8 @@
this.storelongitude = app.globalData.storeMessage.location.lng; this.storelongitude = app.globalData.storeMessage.location.lng;
this.storelatitude = app.globalData.storeMessage.location.lat; this.storelatitude = app.globalData.storeMessage.location.lat;
} }
this.merOperateList = app.globalData.Dictionaries.MER_OPERATE_TYPE;
this.merOnlineList = app.globalData.Dictionaries.MER_ONLINE_TYPE;
}, },
onUnload() { onUnload() {
app.globalData.businessid = ''; app.globalData.businessid = '';
@ -945,6 +985,16 @@
app.globalData.depositaryBank = ''; app.globalData.depositaryBank = '';
}, },
methods: { methods: {
//
bindUserCard(e) {
this.merOperateType = this.merOperateList[e.target.value].codeValue;
this.merOperateName = this.merOperateList[e.target.value].codeName;
},
//线
bindUserCard1(e) {
this.merOnlineType = this.merOnlineList[e.target.value].codeValue;
this.merOnlinetypsName = this.merOnlineList[e.target.value].codeName;
},
// //
showPopup() { showPopup() {
this.$refs.popup.show(); this.$refs.popup.show();
@ -1000,6 +1050,10 @@
// //
reconsider() { reconsider() {
let that = this; let that = this;
let platformType = "";
if (that.merPlatformType && that.merPlatformType != undefined) {
platformType = that.merPlatformType;
}
uni.showModal({ uni.showModal({
title: '复议提交', title: '复议提交',
content: '确认信息是否正确', content: '确认信息是否正确',
@ -1009,7 +1063,8 @@
title: '提交审核中...' title: '提交审核中...'
}) })
let datas = { let datas = {
"merId": that.merId "merId": that.merId,
"merPlatformType": platformType
} }
reconsider(datas).then(res => { reconsider(datas).then(res => {
uni.hideLoading(); uni.hideLoading();
@ -1517,8 +1572,13 @@
}, },
// //
getMerDetail(item) { getMerDetail(item) {
let platformType = "";
if (this.merPlatformType && this.merPlatformType != undefined) {
platformType = this.merPlatformType;
}
let datas = { let datas = {
merId: this.merId merId: this.merId,
merPlatformType: platformType
} }
getMerDetail(datas).then(res => { getMerDetail(datas).then(res => {
if (res.return_code == '000000' && res.return_data) { if (res.return_code == '000000' && res.return_data) {
@ -1581,6 +1641,20 @@
this.idcardname = res.return_data.larName; this.idcardname = res.return_data.larName;
this.idcard = res.return_data.larIdCard; this.idcard = res.return_data.larIdCard;
this.merOperateType = res.return_data.merOperateType;
this.merOnlineType = res.return_data.merOnlineType;
for (var i = 0; i < this.merOperateList.length; i++) {
if (res.return_data.merOperateType == this.merOperateList[i].codeValue) {
this.merOperateName = this.merOperateList[i].codeName;
}
}
for (var j = 0; j < this.merOnlineList.length; j++) {
if (res.return_data.merOnlineType == this.merOnlineList[j].codeValue) {
this.merOnlinetypsName = this.merOnlineList[j].codeName;
}
}
//线
this.merOnlineName = res.return_data.merOnlineName;
this.larIdCardAddress = res.return_data.larIdCardAddress this.larIdCardAddress = res.return_data.larIdCardAddress
this.getImgSignedUrl(1, res.return_data.blisUrl, 2); this.getImgSignedUrl(1, res.return_data.blisUrl, 2);
this.getImgSignedUrl(2, res.return_data.larIdCardPortraitImg, 2); this.getImgSignedUrl(2, res.return_data.larIdCardPortraitImg, 2);
@ -1926,6 +2000,33 @@
}); });
return; return;
} }
if (!that.merOperateType) {
uni.showToast({
title: '请选择经营类型',
icon: "none",
duration: 2000
});
return;
}
if (that.merOperateType && that.merOperateType == 2) {
if (!that.merOnlineType) {
uni.showToast({
title: '请选择线上产品类型',
icon: "none",
duration: 2000
});
return;
}
if (!that.merOnlineName) {
uni.showToast({
title: '请输入线上产品名称',
icon: "none",
duration: 2000
});
return;
}
}
if (that.merchantId == 3) { if (that.merchantId == 3) {
this.start_date = ''; this.start_date = '';
@ -1957,6 +2058,9 @@
"blisPeriodEnd": that.end_date, "blisPeriodEnd": that.end_date,
"larName": that.idcardname, "larName": that.idcardname,
"larIdCard": that.idcard, "larIdCard": that.idcard,
"merOperateType": that.merOperateType,
"merOnlineType": that.merOnlineType,
"merOnlineName": that.merOnlineName,
"larIdCardAddress": that.larIdCardAddress, "larIdCardAddress": that.larIdCardAddress,
"larIdCardPortraitImg": that.uploadidcardposimg, "larIdCardPortraitImg": that.uploadidcardposimg,
"larIdCardNationalEmblemImg": that.uploadidcardsideimg, "larIdCardNationalEmblemImg": that.uploadidcardsideimg,
@ -2308,6 +2412,10 @@
}); });
return; return;
} }
let platformType = "";
if (that.merPlatformType && that.merPlatformType != undefined) {
platformType = that.merPlatformType;
}
uni.showModal({ uni.showModal({
title: '提交审核', title: '提交审核',
content: '确认信息是否正确。', content: '确认信息是否正确。',
@ -2326,6 +2434,7 @@
"doorHeadImg": that.uploadstoreimg1, "doorHeadImg": that.uploadstoreimg1,
"cashRegisterImg": that.uploadstoreimg2, "cashRegisterImg": that.uploadstoreimg2,
"internalImg": that.uploadstoreimg3, "internalImg": that.uploadstoreimg3,
"merPlatformType": platformType,
"storeRegion": { "storeRegion": {
"address": that.storeAddress, "address": that.storeAddress,
"areaCode": that.storeareaCode, "areaCode": that.storeareaCode,

@ -26,7 +26,7 @@
</view> </view>
</view> </view>
<view class="btn" @click="updatemodifyRate()" v-if="!modifyDetails || modifyDetails.status == 4 || modifyDetails.status == 6">提交审核</view> <view class="btn" @click="updatemodifyRate()" v-if="!modifyDetails || modifyDetails.status == 4 || modifyDetails.status == 6 || modifyDetails.status == 3">提交审核</view>
</view> </view>
</template> </template>

Loading…
Cancel
Save