1.对接费率接口

huipay-master
杨杰 3 years ago
parent 87e5571b8f
commit 618f2a5288
  1. 5
      Utils/Api.js
  2. 46
      pages/index/merchant-incoming-parts/merchant-incoming-parts.vue

@ -61,6 +61,11 @@ export const getMerListBySalesman = params => {
export const getLklMcc = params => { export const getLklMcc = params => {
return POST('GET', `${base}/common/getLklMcc`, params).then(res => res.data); return POST('GET', `${base}/common/getLklMcc`, params).then(res => res.data);
} }
//业务员查询费率类型
export const getDictionaryByCodeType = params => {
return POST('GET', `${base}/common/getDictionaryByCodeType`, params).then(res => res.data);
}
//查询商户门店 //查询商户门店
export const getStoreListByMer = params => { export const getStoreListByMer = params => {
return POST('GET', `${base}/store/getStoreListByMer`, params).then(res => res.data); return POST('GET', `${base}/store/getStoreListByMer`, params).then(res => res.data);

@ -664,7 +664,8 @@
getMerDetail, getMerDetail,
configMerBasis, configMerBasis,
configMerSettlement, configMerSettlement,
configMerStore configMerStore,
getDictionaryByCodeType
} from '../../../Utils/Api.js'; } from '../../../Utils/Api.js';
let app = getApp(); let app = getApp();
export default { export default {
@ -759,7 +760,8 @@
}, },
onLoad(options) { onLoad(options) {
this.merId = options.id this.merId = options.id
this.getMerDetail(1); this.getMerDetail(1);
this.getDictionaryByCodeType();
}, },
onShow() { onShow() {
if (app.globalData.businessid) { if (app.globalData.businessid) {
@ -1007,9 +1009,9 @@
this.businnum = this.businessLicenselist.creditCode; this.businnum = this.businessLicenselist.creditCode;
this.regaddress = this.businessLicenselist.businessAddress; this.regaddress = this.businessLicenselist.businessAddress;
this.start_date = this.businessLicenselist.RegistrationDate; this.start_date = this.businessLicenselist.RegistrationDate;
let times = this.businessLicenselist.validPeriod.split('至'); let times = this.businessLicenselist.validPeriod.split('至');
if (times == '长期') { if (times == '长期') {
this.timetype = '2'; this.timetype = '2';
} }
if (times[1] == '永久') { if (times[1] == '永久') {
this.timetype = '2'; this.timetype = '2';
@ -1181,17 +1183,17 @@
this.companyname = res.return_data.blisName; this.companyname = res.return_data.blisName;
this.businnum = res.return_data.blisNo this.businnum = res.return_data.blisNo
this.regaddress = res.return_data.blisRegAddress; this.regaddress = res.return_data.blisRegAddress;
if(res.return_data.blisPeriodStart){ if (res.return_data.blisPeriodStart) {
this.start_date = res.return_data.blisPeriodStart; this.start_date = res.return_data.blisPeriodStart;
} }
if(res.return_data.blisPeriodType){ if (res.return_data.blisPeriodType) {
this.timetype = res.return_data.blisPeriodType; this.timetype = res.return_data.blisPeriodType;
} }
if(res.return_data.blisPeriodEnd){ if (res.return_data.blisPeriodEnd) {
this.end_date = res.return_data.blisPeriodEnd; this.end_date = res.return_data.blisPeriodEnd;
} }
this.inducateid = res.return_data.merIndustry.childId; this.inducateid = res.return_data.merIndustry.childId;
this.industrycategory = res.return_data.merIndustry.childName; this.industrycategory = res.return_data.merIndustry.childName;
this.detailsaddress = res.return_data.merRegion.address; this.detailsaddress = res.return_data.merRegion.address;
if (this.merchart == 2) { if (this.merchart == 2) {
this.idcardname = res.return_data.larName; this.idcardname = res.return_data.larName;
@ -1792,9 +1794,17 @@
} }
} }
}); });
}, },
//
getDictionaryByCodeType() {
let params = {
codeType: 'MER_PLATFORM_NO_RATE'
}
getDictionaryByCodeType(params).then(res=>{
if(res.return_code == '000000'){
}
})
}
} }
} }
</script> </script>

Loading…
Cancel
Save