|
|
|
@ -68,6 +68,7 @@ |
|
|
|
<view class="form-item" v-else> |
|
|
|
<button class="form-item--input" @click="chooseImage('jfr_entfile')">上传经办人授权委托书</button> |
|
|
|
</view> |
|
|
|
<input type="hidden" id="jfr_entfile" value=""> |
|
|
|
<!-- 经办人身份证扫描件(需盖章) --> |
|
|
|
<!-- 预览图 --> |
|
|
|
<view class="image-list" v-if="jfr_idafile!=''"> |
|
|
|
@ -79,6 +80,7 @@ |
|
|
|
<view class="form-item" v-else> |
|
|
|
<button class="form-item--input" @click="chooseImage('jfr_idafile')">经办人身份证扫描件(需盖章)国徽面</button> |
|
|
|
</view> |
|
|
|
<input type="hidden" id="jfr_idafile" value=""> |
|
|
|
|
|
|
|
<!-- 经办人身份证扫描件(需盖章) 预览图 --> |
|
|
|
<view class="image-list" v-if="jfr_idbfile!=''"> |
|
|
|
@ -89,6 +91,7 @@ |
|
|
|
<view class="form-item" v-else> |
|
|
|
<button class="form-item--input" @click="chooseImage('jfr_idbfile')">经办人身份证扫描件(需盖章)头像面</button> |
|
|
|
</view> |
|
|
|
<input type="hidden" id="jfr_idbfile" value=""> |
|
|
|
<!-- 经办人姓名 --> |
|
|
|
<view class="form-item"> |
|
|
|
<input class="form-item--input" v-model="managerName" autocomplete="off" placeholder="经办人姓名" /> |
|
|
|
@ -137,7 +140,12 @@ |
|
|
|
<input class="form-item--input" placeholder="法人姓名" v-model="legalsName"/> |
|
|
|
</view> |
|
|
|
<view class="form-item"> |
|
|
|
<input class="form-item--input" placeholder="法人证件类型" v-model="legalsType"/> |
|
|
|
<picker mode="selector" :range="legalsTypeList" range-key="name" :value="legalsTypeIndex" |
|
|
|
@change="onChangeLegalsType"> |
|
|
|
<text v-if="legalsTypeIndex > -1">{{ legalsTypeList[legalsTypeIndex].name }}</text> |
|
|
|
<text v-else class="col-80">选择法人证件类型</text> |
|
|
|
</picker> |
|
|
|
<!-- <input class="form-item--input" placeholder="法人证件类型" v-model="legalsType"/>--> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="form-item"> |
|
|
|
@ -168,8 +176,8 @@ |
|
|
|
<view class="form-item"> |
|
|
|
<view class="title_left">银行卡类型</view> |
|
|
|
<radio-group class="title_radio"> |
|
|
|
<radio id="jjk" class="title_left_radio">借记卡</radio> |
|
|
|
<radio id="dwjs" class="title_left_radio">单位结算卡</radio> |
|
|
|
<radio id="jjk" name="radio_check" class="title_left_radio" value="借记卡" @click="onRadioCheck('借记卡')">借记卡</radio> |
|
|
|
<radio id="dwjs" name="radio_check" class="title_left_radio" value="单位结算卡" @click="onRadioCheck('单位结算卡')">单位结算卡</radio> |
|
|
|
</radio-group> |
|
|
|
</view> |
|
|
|
|
|
|
|
@ -209,6 +217,7 @@ |
|
|
|
<view class="form-item" v-else> |
|
|
|
<button class="form-item--input" @click="chooseImage('yyzz_idbfile')">营业执照/事业单位法人证书扫描件</button> |
|
|
|
</view> |
|
|
|
<input type="hidden" id="yyzz_idbfile" value=""> |
|
|
|
|
|
|
|
<view class="image-list" v-if="fr_idbfile!=''"> |
|
|
|
<view class="image-preview" v-for="(image, imageIndex) in fr_idbfile[0]"> |
|
|
|
@ -218,6 +227,7 @@ |
|
|
|
<view class="form-item" v-else> |
|
|
|
<button class="form-item--input" @click="chooseImage('fr_idbfile')">法人身份证正面扫描件(指纹或盖章)</button> |
|
|
|
</view> |
|
|
|
<input type="hidden" id="fr_idbfile" value=""> |
|
|
|
|
|
|
|
<view class="image-list" v-if="fr_idbfile2!=''"> |
|
|
|
<view class="image-preview" v-for="(image, imageIndex) in fr_idbfile2[0]"> |
|
|
|
@ -227,6 +237,7 @@ |
|
|
|
<view class="form-item" v-else> |
|
|
|
<button class="form-item--input" @click="chooseImage('fr_idbfile2')">法人身份证反面扫描件(指纹或盖章)</button> |
|
|
|
</view> |
|
|
|
<input type="hidden" id="fr_idbfile2" value=""> |
|
|
|
|
|
|
|
<view class="image-list" v-if="door_idbfile!=''"> |
|
|
|
<view class="image-preview" v-for="(image, imageIndex) in door_idbfile[0]"> |
|
|
|
@ -236,6 +247,7 @@ |
|
|
|
<view class="form-item" v-else> |
|
|
|
<button class="form-item--input" @click="chooseImage('door_idbfile')">门头照</button> |
|
|
|
</view> |
|
|
|
<input type="hidden" id="door_idbfile" value=""> |
|
|
|
<!-- 推荐中介服务机构 --> |
|
|
|
<view class="form-item"> |
|
|
|
<picker mode="selector" :range="certiauditList" range-key="name" :value="idIndex2" |
|
|
|
@ -297,6 +309,7 @@ |
|
|
|
import region from 'utils/json/pca.json'; |
|
|
|
import UCheckbox from "../../../uview-ui/components/u-checkbox/u-checkbox"; |
|
|
|
import UCheckboxGroup from "../../../uview-ui/components/u-checkbox-group/u-checkbox-group"; |
|
|
|
import { checkLogin,returnAccountId } from '@/core/app' |
|
|
|
|
|
|
|
// |
|
|
|
//const citydata = cityjson |
|
|
|
@ -305,6 +318,7 @@ |
|
|
|
components: {UCheckboxGroup, UCheckbox}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
radio_check: '', |
|
|
|
// 机构简介 |
|
|
|
desc: "", |
|
|
|
// 成立日期 |
|
|
|
@ -312,7 +326,9 @@ |
|
|
|
// 法人名称 |
|
|
|
legalsName: "", |
|
|
|
// 法人证件类型 |
|
|
|
legalsType: "", |
|
|
|
legalsTypeIndex: 0, |
|
|
|
legalsType: -1, |
|
|
|
legalsTypeList: [{id : 0, name: '身份证'}], |
|
|
|
// 法人证件号 |
|
|
|
legalsIdnum: "", |
|
|
|
// 银行账号 |
|
|
|
@ -413,6 +429,17 @@ |
|
|
|
current_show: 1, |
|
|
|
} |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
*/ |
|
|
|
onLoad(options) { |
|
|
|
// 初始化当前选中的标签 |
|
|
|
this.initCurTab(options) |
|
|
|
// 注册全局事件订阅: 是否刷新订单列表 |
|
|
|
uni.$on('syncRefresh', canReset => { |
|
|
|
this.canReset = canReset |
|
|
|
}) |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
// 页面初始化 |
|
|
|
this.getIndustList() |
|
|
|
@ -463,7 +490,22 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
// 初始化当前选中的标签 |
|
|
|
initCurTab(options) { |
|
|
|
// 判断是否已登录 |
|
|
|
this.isLogin = checkLogin() |
|
|
|
if(!this.isLogin){ |
|
|
|
uni.navigateTo({ |
|
|
|
url:"/pages/login/index" |
|
|
|
}) |
|
|
|
} |
|
|
|
// 登录成功后才可以操作 |
|
|
|
const app = this |
|
|
|
if (options.dataType) { |
|
|
|
const index = app.tabs.findIndex(item => item.value == options.dataType) |
|
|
|
app.curTab = index > -1 ? index : 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
// 身份选择 |
|
|
|
vfselitem(item){ |
|
|
|
this.vfindex = item |
|
|
|
@ -548,7 +590,10 @@ |
|
|
|
.catch(reject) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
onRadioCheck(value) |
|
|
|
{ |
|
|
|
this.radio_check = value |
|
|
|
}, |
|
|
|
// 获取身份,认证费用 |
|
|
|
getSelectCertificationFee(){ |
|
|
|
const app = this |
|
|
|
@ -597,6 +642,12 @@ |
|
|
|
this.idIndex = curIndex |
|
|
|
this.industryType = this.industryList[curIndex].industryId |
|
|
|
}, |
|
|
|
// 选择证件类别 |
|
|
|
onChangeLegalsType(e) { |
|
|
|
const curIndex = e.detail.value |
|
|
|
this.legalsTypeIndex = curIndex |
|
|
|
this.legalsType = this.legalsTypeList[curIndex].id |
|
|
|
}, |
|
|
|
|
|
|
|
// 选择中介服务机构 |
|
|
|
onChangeCertiaudit(e) { |
|
|
|
@ -733,6 +784,7 @@ |
|
|
|
if (res.resultCode != '00000000' ) { |
|
|
|
alert('上传失败') |
|
|
|
} |
|
|
|
document.getElementById(item).value = res.data |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -783,27 +835,116 @@ |
|
|
|
// } |
|
|
|
|
|
|
|
console.log(app.$data) |
|
|
|
|
|
|
|
// 注册地址 |
|
|
|
let regionStr = app.regionStr |
|
|
|
let regionArr = regionStr.split(" ") |
|
|
|
// 银行卡类型 |
|
|
|
let bankCardType = app.radio_check; |
|
|
|
// 开户地址 |
|
|
|
let bankProvince = app.bankProvince |
|
|
|
let bankProvinceArr = bankProvince.split(" ") |
|
|
|
// 买卖方类型 多个,隔开 |
|
|
|
let tagsName = "公共文化机构"; //保存标签名称 |
|
|
|
let estimate = 1; //判断是机构还是服务商 机构1 服务商2 |
|
|
|
let saleTypeTemp = [] |
|
|
|
let identityList2 = app.identityList |
|
|
|
for (let attr in identityList2) { |
|
|
|
let saleTypeData = identityList2[attr] |
|
|
|
if (saleTypeData.checked) { |
|
|
|
saleTypeTemp.push(saleTypeData.saleType) |
|
|
|
if (saleTypeData.saleType == '中介服务机构') { |
|
|
|
estimate = 2; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
let saleType = saleTypeTemp.join(',') |
|
|
|
// |
|
|
|
let tages = '' |
|
|
|
if (app.current_show == 1) { |
|
|
|
tages = '法务' |
|
|
|
} else if (app.current_show == 2) { |
|
|
|
tages = '技术' |
|
|
|
} else if (app.current_show == 3) { |
|
|
|
tages = '估价' |
|
|
|
} else if (app.current_show == 4) { |
|
|
|
tages = '文化数据经纪商' |
|
|
|
} else if (app.current_show == 5) { |
|
|
|
tages = '其他' |
|
|
|
} |
|
|
|
// 营业执照、身份证正面、身份证反面、门头照 |
|
|
|
let yyzz_idbfile = document.getElementById('yyzz_idbfile').value; |
|
|
|
let fr_idbfile = document.getElementById('fr_idbfile').value; |
|
|
|
let fr_idbfile2 = document.getElementById('fr_idbfile2').value; |
|
|
|
let door_idbfile = document.getElementById('door_idbfile').value; |
|
|
|
|
|
|
|
// 用户ID |
|
|
|
let accountId = returnAccountId() |
|
|
|
if (accountId == '') { |
|
|
|
uni.navigateTo({ |
|
|
|
url:"/pages/login/index" |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
// 提交数据 |
|
|
|
let institutionsdata = { |
|
|
|
name: app.name, |
|
|
|
avatar: '', |
|
|
|
industrytype: app.industryType, |
|
|
|
regionprovince: app.industryType, |
|
|
|
name: app.name, //机构名称 |
|
|
|
avatar: '', //头像地址 |
|
|
|
industrytype: app.industryType, //行业类别 |
|
|
|
regionprovince: regionArr[0], //注册地区-省 |
|
|
|
regioncity: regionArr[1], //注册地区-市 |
|
|
|
regiondistrict: regionArr[2], //注册地区-区/县 |
|
|
|
address: app.address, //详细地址 |
|
|
|
establishdate: app.establishdate, //机构成立日期 !!! |
|
|
|
desc: app.desc, //机构简介 |
|
|
|
legalsname: app.legalsName, //法人姓名 |
|
|
|
legalstype: app.legalsType, //法人证件类型 |
|
|
|
legalsidnum: app.legalsIdnum, //法人身份证号 |
|
|
|
uscc: app.Organizationcode, //统一社会信用代码 |
|
|
|
licensedate: app.licenseDate, //营业执照有效期 !!! |
|
|
|
legalscellphone: app.legalsCellPhone, //法人手机号 |
|
|
|
publicaccount: app.publicAccount, //银行账号 |
|
|
|
bankaccountname: app.bankAccountName, //开户人 |
|
|
|
bankcardtype: bankCardType, //银行卡类型 |
|
|
|
bankprovince: bankProvinceArr[0], //开户银行所在地-省 |
|
|
|
bankcity: bankProvinceArr[1], //开户银行所在地-市 |
|
|
|
bankdistrict: bankProvinceArr[2], //开户银行所在地-区/县 |
|
|
|
bankname: app.bankName, //开户银行名称 |
|
|
|
banktype: app.bankType, //银行行号 |
|
|
|
certidnum: app.certIdnum, //开户人身份证号码 |
|
|
|
bankcellphone: app.bankCellPhone, //开户银行预留手机号 |
|
|
|
cerscanpath: yyzz_idbfile, //营业执照/事业单位法人证书扫描件 |
|
|
|
legalsscanpath1: fr_idbfile, //法人身份证正反面扫描件(指纹或盖章) |
|
|
|
legalsscanpath2: fr_idbfile2, //法人身份证正反面扫描件(指纹或盖章) |
|
|
|
doorheadphoto: door_idbfile, //门头照 |
|
|
|
parentislicode: app.islicode, //推荐中介服务机构 中介机构is |
|
|
|
isposttion: 0, //是否后置名单(0、否 1、是 ) 默认0 |
|
|
|
saleType: saleType, //买卖方类型 |
|
|
|
intermediaryType: tages, //中介服务机构类型 |
|
|
|
fees: app.amount, //总费用 |
|
|
|
type: estimate === 1 ? tagsName : tages, //机构类型 |
|
|
|
userid: accountId, //用户ID |
|
|
|
identity: app.sfval === 10 ? '法人' : '经办人', //身份:'法人','经办人',‘个人’ |
|
|
|
usertype: estimate === 1 ? "企业" : "服务商", //用户类型 企业/服务商 "企业"' |
|
|
|
}; |
|
|
|
|
|
|
|
// 10 = 法人 20 = 经办人 |
|
|
|
if (app.sfval == 20) { |
|
|
|
institutionsdata.managerPath = app.jfr_entfile[0]; |
|
|
|
institutionsdata.managerScanPath1 = app.jfr_idafile[0]; |
|
|
|
institutionsdata.managerScanPath2 = app.jfr_idbfile[0]; |
|
|
|
institutionsdata.managerName = app.managerName; |
|
|
|
institutionsdata.managerIdnum = app.managerIdnum; |
|
|
|
// 经办人授权委托书、经办人身份证正面、经办人身份证反面 |
|
|
|
let jfr_entfile = document.getElementById('jfr_entfile').value; |
|
|
|
let jfr_idafile = document.getElementById('jfr_idafile').value; |
|
|
|
let jfr_idbfile = document.getElementById('jfr_idbfile').value; |
|
|
|
institutionsdata.managerpath = jfr_entfile; //经办人授权委托书 |
|
|
|
institutionsdata.managerscanpath1 = jfr_idafile; //经办人身份证正面扫描件 |
|
|
|
institutionsdata.managerscanpath2 = jfr_idbfile; //经办人身份证反面扫描件 |
|
|
|
institutionsdata.managername = app.managerName; //经办人姓名 |
|
|
|
institutionsdata.manageridnum = app.managerIdnum; //经办人身份证号 |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(institutionsdata) |
|
|
|
|
|
|
|
let institutionsdata_json = JSON.stringify(institutionsdata) |
|
|
|
//认证(缴费)接口 |
|
|
|
var ajaxentUserDemo = new AJAX_OBJ("Paymentlist/entuiprise/mannAgeDate", onentiseSuccess, onUrlError); |
|
|
|
ajaxentUserDemo.postRequestData(institutionsdata_json); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|