Commit 0066ac2d authored by 14699's avatar 14699

fix-zm页面调整

parent fa90dfe6
...@@ -4,12 +4,12 @@ module.exports = { ...@@ -4,12 +4,12 @@ module.exports = {
CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV), CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV),
debug: true, debug: true,
isMobilePlatform: true, isMobilePlatform: true,
loginPath: '"http://47.97.108.99:18080/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ', loginPath: '"http://47.97.108.99:19808/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ',
basePath: '"http://47.97.108.99:18080/r/api/interface?sysName=XCMG_UAT&apiName="', basePath: '"http://47.97.108.99:19808/r/api/interface?sysName=XCMG_UAT&apiName="',
rootPath: '"http://47.97.108.99:18080/r/api"', rootPath: '"http://47.97.108.99:19808/r/api"',
filePath: '"http://47.97.108.99:18080/r/api/app/fileViewSvc?sysName=XCMG_UAT&apiName=file_view&"', filePath: '"http://47.97.108.99:19808/r/api/app/fileViewSvc?sysName=XCMG_UAT&apiName=file_view&"',
ocrPath:'"http://47.97.108.99:18080/r/api"', ocrPath:'"http://47.97.108.99:19808/r/api"',
fileUploadSvcPath:'"http://47.97.108.99:18080/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="', fileUploadSvcPath:'"http://47.97.108.99:19808/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"', appId: '"com.xcmg.app.dev"',
currentVersion: '"3.5.9"' currentVersion: '"3.5.9"'
} }
...@@ -12,27 +12,44 @@ ...@@ -12,27 +12,44 @@
<div class="bottom" @click="isshow = !isshow">我知道了</div> <div class="bottom" @click="isshow = !isshow">我知道了</div>
</div> </div>
</div> </div>
<div v-show="downNum" class="modal-show">
<div class="down">
<div class="top">
录入产品信息
<img
src="@/assets/intoApproval/close.png"
@click="downNum = false"
>
</div>
<div class="down-content">
<list-item :item-height="44">
<item>
<div slot="name" class="required">产品名称</div>
<input
slot="content"
v-model="info.product_name"
placeholder="请输入产品名称"
>
</item>
<item>
<div slot="name" class="required">产品数量</div>
<input
slot="content"
v-model="info.product_num"
placeholder="请输入产品数量"
>
</item>
</list-item>
</div>
<butto>保存</butto>
</div>
</div>
<h-header :proportion="[5, 1, 1]" class="bar-custom"> <h-header :proportion="[5, 1, 1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()" /> <img src="@/assets/userBind/arrow.png" @click="$routeGo()" />
<span>方案详情</span> <span>方案详情</span>
</div> </div>
</h-header> </h-header>
<!-- <div
v-if="bookFlag"
class="myModal"
>
<div class="box">
<img src="@/assets/intoApproval/top.png">
<div class="outer"><canvas v-for="page in pages" :id="'the-canvas'+page" :key="page" class="canvas"/></div>
<div class="confirm">
<input type="checkbox" @click="select" >
<span>我本人已阅读本协议,并同意授权xxxx</span>
</div>
<button v-if="!ischecked" style="background:rgba(56, 63, 69, 0.5)">同意</button>
<button v-if="ischecked" class="appro" style="background:#00469c" @click="confirm">同意</button>
</div>
</div>-->
<div class="tab-style"> <div class="tab-style">
<div :class="{ 'done': num === 0, 'undone': num !== 0 }" @click="num = 0;"> <div :class="{ 'done': num === 0, 'undone': num !== 0 }" @click="num = 0;">
<img :src="num === 0 ? check1 : uncheck1" />基本信息 <img :src="num === 0 ? check1 : uncheck1" />基本信息
...@@ -40,16 +57,16 @@ ...@@ -40,16 +57,16 @@
<div :class="{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1;"> <div :class="{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1;">
<img :src="num === 1 ? check3 : uncheck3" />方案信息 <img :src="num === 1 ? check3 : uncheck3" />方案信息
</div> </div>
<div :class="{ 'done': num === 2, 'undone': num !== 2 }" @click="num = 2;"> <!-- <div :class="{ 'done': num === 2, 'undone': num !== 2 }" @click="num = 2;">-->
<img :src="num === 2 ? check2 : uncheck2" />征信授权书 <!-- <img :src="num === 2 ? check2 : uncheck2" />征信授权书-->
</div> <!-- </div>-->
</div> </div>
<h-content v-if="num === 0" class="business-condition"> <h-content v-if="num === 0" class="business-condition">
<!-- 法人信息 --> <!-- 法人信息 -->
<LegalPerson v-if="bp_flag" :baseInfo="baseInfo" /> <LegalPerson :baseInfo="baseInfo" />
<!-- 个人信息(自然人) --> <!-- 个人信息(自然人) -->
<Personal v-if="!bp_flag" :baseInfo="baseInfo" /> <!-- <Personal v-if="!bp_flag" :baseInfo="baseInfo" />-->
<div class="equipment-list"> <div class="equipment-list">
担保人信息 担保人信息
...@@ -70,6 +87,192 @@ ...@@ -70,6 +87,192 @@
</div> </div>
</item> </item>
</list-item> </list-item>
<div class="equipment-list">
采矿权许可证
</div>
<list-item :item-height="76">
<div class="house spec">
<!--待上传图片列表-->
<div
v-for="(item, index) in upload_list_mining"
v-if="item.check_id === checkId"
:key="index+'info2'"
class="card-upload"
>
<img :src="item.picture" @click="showBigPicture(item.picture)" >
<div class="close" @click="remove_pic(item.attachment_id,index,'mining')">
<img src="@/assets/userBind/deleteIcon.png" >
</div>
</div>
<!--特批 从服务器上下载的图片-->
<div v-for="(pic, index) in dowload_list_mining" :key="index+'mining'">
<div v-if="pic.check_id==checkId" :key="index+'info3'" class="card-upload">
<img :src="pic.url" @click="showBigPicture(pic.url)" >
<div class="close" @click="delete_pic(pic.attachment_id,'mining')">
<img src="@/assets/userBind/deleteIcon.png" >
</div>
</div>
</div>
<div class="card-upload plus" @click="ocrShow('采矿权许可证',checkId,'mining')">
<img src="@/assets/userBind/camera.png" class="upload-btn" >
</div>
</div>
</list-item>
<div class="equipment-list">
开票信息
</div>
<list-item :item-height="44">
<item :showArrow="true">
<div slot="name" class="font-color">纳税人类型</div>
<input
slot="content"
v-model="invoiceInfo.taxpayer_type_n"
type="text"
readonly
placeholder="请选择"
@click="selectTaxpayer"
>
</item>
<item :showArrow="true">
<div slot="name" class="font-color">发票类型</div>
<input
slot="content"
v-model="invoiceInfo.invoice_kind_n"
type="text"
readonly
placeholder="请选择"
@click="selectInvoiceType"
>
</item>
<item>
<div slot="name" class="font-color">发票抬头</div>
<input slot="content" v-model="invoiceInfo.invoice_title" type="text" placeholder="请输入发票抬头" >
</item>
<item>
<div slot="name" class="font-color">发票地址</div>
<textarea
slot="content" ref="myTestarea" v-model="invoiceInfo.invoice_adds" cols="22"
rows="1"
type="text" placeholder="请输入发票地址" @input="addRows(invoiceInfo.invoice_adds)" />
</item>
<item>
<div slot="name" class="font-color">开户电话</div>
<input slot="content" v-model="invoiceInfo.invoice_tel" type="text" placeholder="请输入开户电话" >
</item>
<item>
<div slot="name" class="font-color">发票开户行</div>
<textarea
slot="content"
ref="myTestareaLive"
v-model="invoiceInfo.open_bank"
cols="22"
rows="1"
type="text"
placeholder="请输入发票开户行"
@input="addRowsLive(invoiceInfo.open_bank)"
/>
</item>
<item>
<div slot="name" class="font-color">开户行账号</div>
<input slot="content" v-model="invoiceInfo.open_account" type="text" placeholder="请输入开户行账号" >
</item>
<item>
<div slot="name" class="font-color">纳税人识别号</div>
<input
slot="content"
v-model="invoiceInfo.organization_code" placeholder="纳税人识别号" type="text" readonly
>
</item>
</list-item>
<div class="equipment-list">
基本账户信息
</div>
<list-item :item-height="44">
<item>
<div slot="name">账户名称</div>
<input slot="content" v-model="bank_lists.bank_account_name" placeholder="请输入账户名称">
</item>
<item>
<div slot="name">开户行</div>
<input
slot="content"
v-model="bank_lists.bank_full_name"
placeholder="请输入开户行"
>
</item>
<item>
<div slot="name">银行账号</div>
<input
slot="content"
v-model="bank_lists.bank_account_num"
placeholder="请输入银行账号"
>
</item>
<item>
<div slot="name">联行号</div>
<input slot="content" v-model="bank_lists.bank_branch_name" placeholder="请输入联行号">
</item>
</list-item>
<div class="equipment-list">
联系人信息
</div>
<list-item :item-height="44">
<item>
<div slot="name">联系人姓名</div>
<input slot="content" v-model="bank_lists.bank_account_name" placeholder="请输入联系人姓名">
</item>
<item>
<div slot="name">身份证号码</div>
<input
slot="content"
v-model="bank_lists.bank_full_name"
placeholder="请输入身份证号码"
>
</item>
<item>
<div slot="name">联系电话</div>
<input
slot="content"
v-model="bank_lists.bank_account_num"
placeholder="请输入联系电话"
>
</item>
<item>
<div slot="name">联系地址</div>
<input slot="content" v-model="bank_lists.bank_branch_name" placeholder="请输入联系地址">
</item>
</list-item>
<div class="equipment-list">
财务报表
</div>
<list-item :item-height="76">
<div class="house spec">
<!--待上传图片列表-->
<div
v-for="(item, index) in upload_list_report"
v-if="item.check_id === checkId"
:key="index+'info2'"
class="card-upload"
>
<img :src="item.picture" @click="showBigPicture(item.picture)" >
<div class="close" @click="remove_pic(item.attachment_id,index,'report')">
<img src="@/assets/userBind/deleteIcon.png" >
</div>
</div>
<!--特批 从服务器上下载的图片-->
<div v-for="(pic, index) in dowload_list_report" :key="index+'report'">
<div v-if="pic.check_id==checkId" :key="index+'info3'" class="card-upload">
<img :src="pic.url" @click="showBigPicture(pic.url)" >
<div class="close" @click="delete_pic(pic.attachment_id,'report')">
<img src="@/assets/userBind/deleteIcon.png" >
</div>
</div>
</div>
<div class="card-upload plus" @click="ocrShow('财务报表',checkId,'report')">
<img src="@/assets/userBind/camera.png" class="upload-btn" >
</div>
</div>
</list-item>
<div class="alert"> <div class="alert">
<div class="alert-content"> <div class="alert-content">
<div class="title"> <div class="title">
...@@ -85,117 +288,137 @@ ...@@ -85,117 +288,137 @@
</div> </div>
</div> </div>
</h-content> </h-content>
<h-content v-if="num === 2"> <!-- <h-content v-if="num === 2">-->
<list-item :item-height="56" class="contract-text" style="background-color:rgb(250,250,250);"> <!-- <list-item :item-height="56" class="contract-text" style="background-color:rgb(250,250,250);">-->
<item v-for="(item,index) in attachArray" :proportion="[7, 1]" :key="index"> <!-- <item v-for="(item,index) in attachArray" :proportion="[7, 1]" :key="index">-->
<div slot="name" class="aguremrnt-list"> <!-- <div slot="name" class="aguremrnt-list">-->
<img src="@/assets/constractSigning/npack.png" alt class="pics" /> <!-- <img src="@/assets/constractSigning/npack.png" alt class="pics" />-->
<p class="second first">{{ item.attachment_file }}</p> <!-- <p class="second first">{{ item.attachment_file }}</p>-->
<img <!-- <img-->
v-if="item.read_status === 'N'" <!-- v-if="item.read_status === 'N'"-->
class="unread" <!-- class="unread"-->
src="@/assets/constractSigning/unread.png" <!-- src="@/assets/constractSigning/unread.png"-->
/> <!-- />-->
<img <!-- <img-->
v-if="item.read_status === 'Y'" <!-- v-if="item.read_status === 'Y'"-->
class="unread" <!-- class="unread"-->
src="@/assets/constractSigning/read.png" <!-- src="@/assets/constractSigning/read.png"-->
/> <!-- />-->
<div <!-- <div-->
v-if="item.template_code === 'PRE_ABC_PAYMENT'" <!-- v-if="item.template_code === 'PRE_ABC_PAYMENT'"-->
class="wrap-img" <!-- class="wrap-img"-->
@click="entryInfo" <!-- @click="entryInfo"-->
> <!-- >-->
<img src="@/assets/constractSigning/scan.png" /> <!-- <img src="@/assets/constractSigning/scan.png" />-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div slot="content" class="in-detail" @click="goContent(item, index)"> <!-- <div slot="content" class="in-detail" @click="goContent(item, index)">-->
<img src="@/assets/constractSigning/detail.png" alt /> <!-- <img src="@/assets/constractSigning/detail.png" alt />-->
</div> <!-- </div>-->
</item> <!-- </item>-->
</list-item> <!-- </list-item>-->
<!-- <iframe <!-- &lt;!&ndash; <iframe-->
v-if="attachFlag" :src="attachUrl" <!-- v-if="attachFlag" :src="attachUrl"-->
frameborder="0" scrolling="yes" width="100%" <!-- frameborder="0" scrolling="yes" width="100%"-->
height="100%" />--> <!-- height="100%" />&ndash;&gt;-->
</h-content> <!-- </h-content>-->
<h-content v-if="num === 1"> <h-content v-if="num === 1">
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <!-- <item>-->
<div slot="name" class="font-color">商务政策</div> <!-- <div slot="name" class="font-color">商务政策</div>-->
<input slot="content" v-model="info.product_plan_id_n" readonly /> <!-- <input slot="content" v-model="info.product_plan_id_n" readonly />-->
</item> <!-- </item>-->
<item> <item>
<div slot="name" class="font-color">设备总价</div> <div slot="name" class="font-color">设备总价</div>
<span slot="content">{{ info.equip_price * info.product_num | currency }}</span> <!-- <span slot="content">{{ info.equip_price * info.product_num | currency }}</span>-->
<CurrencyInput slot="content" v-model="info.equip_price" placeholder="请输入设备总价"/>
</item> </item>
<item> <item>
<div slot="name" class="font-color">融资金额</div> <div slot="name" class="font-color">融资金额</div>
<span slot="content">{{ info.finance_amount * info.product_num | currency }}</span> <!-- <span slot="content">{{ info.finance_amount * info.product_num | currency }}</span>-->
<CurrencyInput slot="content" v-model="info.finance_amount" placeholder="请输入融资金额"/>
</item> </item>
<item> <item>
<div slot="name" class="font-color">首付款</div> <div slot="name" class="font-color">首付款</div>
<span slot="content">{{ info.down_payment * info.product_num | currency }}</span> <!-- <span slot="content">{{ info.down_payment * info.product_num | currency }}</span>-->
<CurrencyInput slot="content" v-model="info.down_payment" placeholder="请输入首付款"/>
</item> </item>
<item> <item>
<div slot="name" class="font-color">保证金比例</div> <div slot="name" class="font-color">保证金比例</div>
<span slot="content">{{ info.deposit_ratio_n }}</span> <!-- <span slot="content">{{ info.deposit_ratio_n }}</span>-->
<RateInput slot="content" v-model="info.deposit_ratio_n" placeholder="请输入保证金比例"/>
</item> </item>
<item> <item>
<div slot="name" class="font-color">保证金</div> <div slot="name" class="font-color">保证金</div>
<span slot="content">{{ info.deposit * info.product_num | currency }}</span> <!-- <span slot="content">{{ info.deposit * info.product_num | currency }}</span>-->
<CurrencyInput slot="content" v-model="info.deposit" placeholder="请输入保证金"/>
</item> </item>
<item> <item>
<div slot="name" class="font-color">手续费比例</div> <div slot="name" class="font-color">手续费比例</div>
<input slot="content" v-model="info.lease_charge_ratio_n" readonly /> <!-- <input slot="content" v-model="info.lease_charge_ratio_n" readonly />-->
<RateInput slot="content" v-model="info.lease_charge_ratio_n" placeholder="请输入手续费比例"/>
</item> </item>
<item> <item>
<div slot="name" class="font-color">手续费</div> <div slot="name" class="font-color">手续费</div>
<span <!-- <span slot="content">{{ parseFloat(info.lease_charge * info.product_num).toFixed(2) | currency }}</span>-->
slot="content" <CurrencyInput slot="content" v-model="info.lease_charge" placeholder="请输入手续费"/>
>{{ parseFloat(info.lease_charge * info.product_num).toFixed(2) | currency }}</span>
</item> </item>
<item> <item>
<div slot="name" class="font-color">保险押金</div> <div slot="name" class="font-color">保险押金</div>
<span slot="content">{{ info.insurance_fee * info.product_num | currency }}</span> <!-- <span slot="content">{{ info.insurance_fee * info.product_num | currency }}</span>-->
<CurrencyInput slot="content" v-model="info.insurance_fee" placeholder="请输入保险押金"/>
</item> </item>
<item> <item>
<div slot="name" class="font-color">GPS费用</div> <div slot="name" class="font-color">GPS费用</div>
<span slot="content">{{ info.gps_fee * info.product_num | currency }}</span> <!-- <span slot="content">{{ info.gps_fee * info.product_num | currency }}</span>-->
<CurrencyInput slot="content" v-model="info.gps_fee" placeholder="请输入GPS费用"/>
</item> </item>
<item> <item>
<div slot="name">首次付款合计</div> <div slot="name">首次付款合计</div>
<span slot="content">{{ parseFloat(info.first_pay).toFixed(2) | currency }}</span> <!-- <span slot="content">{{ parseFloat(info.first_pay).toFixed(2) | currency }}</span>-->
<CurrencyInput slot="content" v-model="info.first_pay" placeholder="请输入首次付款合计"/>
</item> </item>
<item> <!-- <item>-->
<!-- <div slot="name" class="font-color">预计付款日</div>-->
<!-- <span slot="content">{{ dateConverse(info.lease_start_date) }}</span>-->
<!-- </item>-->
<item @click.native="showTime('YYYY-MM-DD')">
<div slot="name" class="font-color">预计付款日</div> <div slot="name" class="font-color">预计付款日</div>
<span slot="content">{{ dateConverse(info.lease_start_date) }}</span> <div slot="content" class="autoColor">{{ info.lease_start_date }}</div>
<img src="@/assets/trial/date.png" alt="" class="date-pic">
</item> </item>
<item> <!-- <item>-->
<!-- <div slot="name" class="font-color">还款周期</div>-->
<!-- <input slot="content" v-model="info.annual_pay_times_n" readonly />-->
<!-- </item>-->
<item :show-arrow="true" @click.native="periodPull">
<div slot="name" class="font-color">还款周期</div> <div slot="name" class="font-color">还款周期</div>
<input slot="content" v-model="info.annual_pay_times_n" readonly /> <span slot="content">{{ info.annual_pay_times_n }}</span>
<!-- <input slot="content" v-model="info.annual_pay_times_n" placeholder="月"> -->
</item> </item>
<item> <item>
<div slot="name" class="font-color">租赁期数</div> <div slot="name" class="font-color">租赁期数</div>
<input slot="content" v-model="info.lease_times" readonly /> <!-- <input slot="content" v-model="info.lease_times" readonly />-->
<input slot="content" v-model="info.lease_times" placeholder="请输入租赁期数" type="number">
</item> </item>
<item> <item>
<div slot="name" class="font-color">年利率</div> <div slot="name" class="font-color">年利率</div>
<input slot="content" v-model="info.int_rate_n" readonly /> <!-- <span slot="content">{{ info.int_rate_n }}</span> -->
<RateInput slot="content" v-model="info.int_rate_n" placeholder="请输入年利率"/>
</item> </item>
</list-item> </list-item>
<div class="repay-plan"> <!-- <div class="repay-plan">-->
<p @click="repayPlan">查看还款计划</p> <!-- <p @click="repayPlan">查看还款计划</p>-->
</div> <!-- </div>-->
<div class="equipment-list-fund"> <div class="equipment-list-fund">
<span /> <span />
<p>设备清单</p> <p>设备清单</p>
</div> </div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <!-- <item>-->
<div slot="name" class="font-color">设备识别号</div> <!-- <div slot="name" class="font-color">设备识别号</div>-->
<input slot="content" v-model="info.product_code" readonly /> <!-- <input slot="content" v-model="info.product_code" readonly />-->
</item> <!-- </item>-->
<item> <item>
<div slot="name" class="font-color">产品名称</div> <div slot="name" class="font-color">产品名称</div>
<input slot="content" v-model="info.product_name" readonly /> <input slot="content" v-model="info.product_name" readonly />
...@@ -218,12 +441,15 @@ ...@@ -218,12 +441,15 @@
</div> </div>
</div> </div>
</h-content> </h-content>
<bottom-tab v-if="con_confirm_status !== 'APPROVED'" class="add-box"> <bottom-tab class="add-box">
<tab-button class="before" @click.native="takePhonto"> <!-- <tab-button class="before" @click.native="takePhonto">-->
<img src="@/assets/constractSigning/certification.png" />征信签约 <!-- <img src="@/assets/constractSigning/certification.png" />征信签约-->
</tab-button> <!-- </tab-button>-->
<tab-button class="next" @click.native="inSure"> <!-- <tab-button class="next" @click.native="inSure">-->
<img src="@/assets/intoApproval/approve.png" />提交审核 <!-- <img src="@/assets/intoApproval/approve.png" />提交审核-->
<!-- </tab-button>-->
<tab-button class="next">
<img src="@/assets/intoApproval/approve.png" />保存
</tab-button> </tab-button>
</bottom-tab> </bottom-tab>
<h-modal <h-modal
...@@ -265,9 +491,12 @@ import unCheck2 from '@/assets/constractSigning/unconstract.png' ...@@ -265,9 +491,12 @@ import unCheck2 from '@/assets/constractSigning/unconstract.png'
import unCheck3 from '@/assets/constractSigning/unLease.png' import unCheck3 from '@/assets/constractSigning/unLease.png'
import LegalPerson from '@/pages/distributorSign/legal-person' import LegalPerson from '@/pages/distributorSign/legal-person'
import Personal from '@/pages/distributorSign/personal' import Personal from '@/pages/distributorSign/personal'
import CurrencyInput from '@/components/currencyInput'
import RateInput from '@/components/rateInput'
// import bodyCheck from './body-check' // import bodyCheck from './body-check'
import axios from 'axios' import axios from 'axios'
import PDFJS from 'pdfjs-dist' import PDFJS from 'pdfjs-dist'
export default { export default {
name: 'ContractDetail', name: 'ContractDetail',
components: { components: {
...@@ -325,6 +554,31 @@ export default { ...@@ -325,6 +554,31 @@ export default {
legalPic: '', // 法人授权书图片 legalPic: '', // 法人授权书图片
abc_deduction_flag: 'N', // 代扣授权书状态 abc_deduction_flag: 'N', // 代扣授权书状态
signCheckFlag: false, // 签约校验,为true已认证通过可进行签约,否则不可签约 signCheckFlag: false, // 签约校验,为true已认证通过可进行签约,否则不可签约
invoiceInfo: {
invoice_kind: '',
invoice_kind_n: '',
taxpayer_type: '',
invoice_title: '',
taxpayer_type_n: '',
organization_code: '',
invoice_adds: '',
invoice_tel: '',
open_bank: '',
open_account: '',
},
bank_lists: {
bank_account_num: '', // 卡号
bank_account_name: '', // 账户姓名
bank_card_type: '', // 类型(信用卡/借记卡/未知)
bank_full_name: '', // 银行名称
bank_branch_name: '', // 支行
},
downNum: false,
checkId: '',
upload_list_mining: [],
down_list_mining: [],
upload_list_report: [],
down_list_report: [],
} }
}, },
computed: {}, computed: {},
...@@ -397,6 +651,9 @@ export default { ...@@ -397,6 +651,9 @@ export default {
if (this.con_confirm_status !== 'APPROVED') { if (this.con_confirm_status !== 'APPROVED') {
// this.popProtocol() // this.popProtocol()
} }
this.getInvoiceType()
this.getTaxpayer()
this.repayPeriod()
}, },
/* beforeRoutrLeave (to, from, next) { /* beforeRoutrLeave (to, from, next) {
next(vm => { next(vm => {
...@@ -913,6 +1170,491 @@ export default { ...@@ -913,6 +1170,491 @@ export default {
} }
}) })
}, },
invoiceQuery () {
let vm = this
let url = process.env.basePath + 'bp_invoice_query'
let param = {
bp_id: vm.bp_id,
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
console.log('invoiceInfo', res.info)
vm.invoiceInfo = res.info
vm.invoiceInfo.invoice_title = JSON.parse(window.localStorage.getItem('handleUser')).bp_name
// Object.assign(vm.invoiceInfo, res.info)
vm.addRows(vm.invoiceInfo.invoice_adds)
vm.addRowsLive(vm.invoiceInfo.open_bank)
}
})
},
addRows (e) {
if (e) {
// let addNum = Math.ceil(e.length / 16)
// if (addNum === 0) {
// this.$refs.myTestarea.rows = 1
// } else if (addNum >= addNum - 1 && addNum < addNum + 1) {
// this.$refs.myTestarea.rows = addNum + 1
// }
let len = 0
for (let i = 0; i < e.length; i++) {
var c = e.charCodeAt(i)
// 统计字符串的字符长度
if ((c >= 0x0001 && c <= 0x007e) || (c >= 0xff60 && c <= 0xff9f)) {
len += 1
} else {
len += 2
}
}
let addNum = Math.ceil(len / 21)
this.$refs.myTestarea.rows = addNum
}
},
addRowsLive (e) {
if (e) {
// let addNum = Math.ceil(e.length / 16)
// if (addNum === 0) {
// this.$refs.myTestareaLive.rows = 1
// } else if (addNum >= addNum - 1 && addNum < addNum + 1) {
// this.$refs.myTestareaLive.rows = addNum + 1
// }
let len = 0
for (let i = 0; i < e.length; i++) {
var c = e.charCodeAt(i)
// 统计字符串的字符长度
if ((c >= 0x0001 && c <= 0x007e) || (c >= 0xff60 && c <= 0xff9f)) {
len += 1
} else {
len += 2
}
}
let addNum = Math.ceil(len / 21)
this.$refs.myTestareaLive.rows = addNum
}
},
getInvoiceType () {
let vm = this
let url = process.env.basePath + 'bp_invoice_kind_query'
let param = {}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.invoicList = res.lists.map(item => {
return {
code: item.invoice_kind,
code_name: item.invoice_kind_n,
}
})
}
})
},
getTaxpayer () {
let vm = this
let url = process.env.basePath + 'bp_taxpayer_type_query'
let param = {}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.taxpayerList = res.lists.map(item => {
return {
code: item.taxpayer_type,
code_name: item.taxpayer_type_n,
}
})
}
})
},
selectTaxpayer (e) {
let vm = this
console.log('vm.taxpayerList', vm.taxpayerList)
vm.hlsPopup.selectList({
list: vm.taxpayerList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.$set(vm.invoiceInfo, 'taxpayer_type', obj.bp_type)
vm.$set(vm.invoiceInfo, 'taxpayer_type_n', obj.bp_type_n)
/* vm.invoiceInfo.taxpayer_type = obj.bp_type
vm.invoiceInfo.taxpayer_type_n = obj.bp_type_n */
console.log('obj', vm.invoiceInfo)
},
})
},
selectInvoiceType (e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.invoicList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.$set(vm.invoiceInfo, 'invoice_kind', obj.bp_type)
vm.$set(vm.invoiceInfo, 'invoice_kind_n', obj.bp_type_n)
/* vm.invoiceInfo.invoice_kind = obj.bp_type
vm.invoiceInfo.invoice_kind_n = obj.bp_type_n */
},
})
},
// 查看大图
showBigPicture (pic) {
let vm = this
vm.hlsPopup.showBigPicture({
imgUrl: pic,
width: '100% !important',
})
},
// ocr识别入口
ocrShow (desc, id, code) {
let vm = this
hlsPopup.showActionSheet({
titleText: '请选择照片',
buttonArray: ['拍照', '从相册取'],
callback: index => {
if (index === 0) {
vm.openCamera(desc, id, code)
} else {
vm.takePicture(desc, id, code)
}
},
})
},
openCamera (desc, id, code) {
let vm = this
let obj = {
'pkvalue': id,
'source_type': 'PRJ_CDD_ITEM_CHECK',
'picture': '',
'check_id': id,
'filePath': '',
'attachment_id': '',
'user_id': 1,
'fileName': desc + '_' + new Date().getTime(),
}
let cameraoptions = {
quality: 100,
}
let success = function (imgdata) {
obj.filePath = imgdata
obj.picture = hlsUtil.convertImageUrl(imgdata)
let list = []
list.push(obj)
// 拍完一张立马执行保存图片逻辑
vm.save_picture(list, code)
}
let error = function () {
hlsPopup.showLongCenter('请拍照')
}
hlsUtil.openCamera(cameraoptions, success, error)
},
takePicture (desc, checkId, code) {
let vm = this
let cameraoptions = {
quality: 100,
}
let success = function (imgUrl) {
var list = []
for (let i = 0; i < imgUrl.length; i++) {
let obj = {
'pkvalue': checkId,
'source_type': 'PRJ_CDD_ITEM_CHECK',
'picture': '',
'check_id': checkId,
'filePath': '',
'attachment_id': '',
'user_id': 1,
'fileName': desc + '_' + new Date().getTime(),
}
obj.filePath = imgUrl[i]
obj.picture = hlsUtil.convertImageUrl(imgUrl[i])
list.push(obj)
}
vm.save_picture(list, code)
}
let error = function () {
}
vm.hlsUtil.takePicture(cameraoptions, success, error)
},
// 图片保存
save_picture (list, code) {
let vm = this
if (list.length) {
// hlsPopup.showLoading('图片上传请稍候')
var alreadyUploadNum = 0
var attLength = 0
var recordUploadInterval = setInterval(function () {
if (alreadyUploadNum === attLength) {
clearInterval(recordUploadInterval)
/* hlsPopup.hideLoading()
hlsPopup.showLongCenter('图片上传成功') */
}
}, 500)
for (var i = 0; i < list.length; i++) {
let uploadSuccess = function (res) {
if (res.result === 'S') {
alreadyUploadNum++
for (var j = 0; j < list.length; j++) {
if (list[j].filePath === res.response.filePath) {
list[j].attachment_id = res.response.attachment_id
if (code === 'spec') {
vm.spec_upload_list.push(list[j])
break
} else if (code === 'mort') {
vm.mort_upload_list.push(list[j])
break
}
}
}
} else {
hlsPopup.hideLoading()
}
}
if (!list[i].attachment_id) {
attLength++
hlsUtil.fileUploadSvc(list[i], uploadSuccess)
}
}
} else {
hlsPopup.hideLoading()
}
},
// 移除图片
remove_pic (attachment_id, index, code) {
let vm = this
var delete_list = []
let obj = {'attachment_id': attachment_id}
delete_list.push(obj)
let url = process.env.basePath + 'app_delete_attment' // 附件删除
let param = {
'picturelist': delete_list,
}
hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showLongCenter('删除成功!')
vm.remove_upload_list(attachment_id, index, code)
} else if (res.result === 'E') {
hlsPopup.showShortCenter(res.message)
}
})
},
remove_upload_list (attachment_id, index, code) {
let vm = this
if (code === 'spec') {
vm.spec_upload_list.remove(index)
vm.spec_upload_list.sort()
} else if (code === 'mort') {
vm.mort_upload_list.remove(index)
vm.mort_upload_list.sort()
}
},
// 删除图片
delete_pic (attachment_id, code) {
let vm = this
let delete_list = []
let obj = {'attachment_id': attachment_id}
delete_list.push(obj)
let url = process.env.basePath + 'app_delete_attment' // 附件删除
let param = {
'picturelist': delete_list,
}
hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showLongCenter('删除成功!')
vm.remove_dowload_list(attachment_id, code)
} else if (res.result === 'E') {
hlsPopup.showShortCenter(res.message)
}
})
},
remove_dowload_list (attachment_id, code) {
console.log('attachment_id', attachment_id)
let vm = this
if (code === 'spec') {
vm.spec_dowload_list = vm.spec_dowload_list.filter(item => {
return item.attachment_id !== attachment_id
})
} else if (code === 'mort') {
vm.mort_dowload_list = vm.mort_dowload_list.filter(item => {
return item.attachment_id !== attachment_id
})
}
},
loadItemList () {
let vm = this
let bp_id_tenant = window.localStorage.getItem('bp_id_tenant')
if (bp_id_tenant === 'undefined') {
bp_id_tenant = null
}
let url = process.env.basePath + 'prj_cdd_check_list'
let group = ''
if (vm.bpClass === 'NP') {
group = 'HLS_NP'
} else {
window.localStorage.auth_flag === '是' ? group = 'HLS_ORG_AUTH' : group = 'HLS_ORG_NAUTH'
}
let param = {
master: {
document_id: bp_id_tenant,
document_table: 'HLS_BP_MASTER',
tab_group: group,
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
console.log(res)
vm.cddItemList = res.lists
if (res.result === 'S') {
let listTemp = [...res.lists]
listTemp.forEach(item => {
switch (item.cdd_item) {
// case 'NP_ID_CARD_F': // 自然人身份证正面
// vm.idCardFrontCheck_id = item.check_id
// break
// case 'LEGAL_ID_CARD_F': // 法人代表身份证正面
// vm.idCardFrontCheck_id = item.check_id
// break
// case 'NP_ID_CARD_B': // 身份证背面
// vm.idCardBackCheck_id = item.check_id
// break
// case 'LEGAL_ID_CARD_B': // 身份证背面
// vm.idCardBackCheck_id = item.check_id
// break
// case 'HOUSE_CARD': // 房产证
// vm.house_id = item.check_id
// break
// case 'CAR_CARD': // 行驶证
// vm.car_id = item.check_id
// break
case 'ORG_CODE': // 营业执照
vm.license_id = item.check_id
break
default:
}
})
// 查询图片
// hlsPopup.showLoading('请稍候')
listTemp.forEach((item, index) => {
vm.load_picture(item.check_id, index, item.cdd_item)
if (index === listTemp.length - 1) {
vm.hlsPopup.hideLoading()
}
})
}
})
},
load_picture (check_id, index, cdd_item) {
let vm = this
let url =
process.env.basePath + 'attachment_list_query' + '&index' + index // 附件查询
let param = {
check_id: check_id,
}
// hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
if (res.result === 'S') {
res.lists.forEach(item => {
item['url'] =
process.env.filePath +
'attachment_id=' +
item.attachment_id +
'&access_token=' +
window.localStorage.access_token
})
console.log('图片查询', res.lists)
switch (cdd_item) {
case 'NP_ID_CARD_F': // 自然人身份证正面
if (!vm.idCardFrontUrlFlag) {
vm.idCardFront = res.lists[0].url
}
// vm.idCardFrontAttachmentId = res.lists[0].attachment_id
break
case 'LEGAL_ID_CARD_F': // 身份证正面
if (!vm.idCardFrontUrlFlag) {
vm.idCardFront = res.lists[0].url
}
// vm.idCardFrontAttachmentId = res.lists[0].attachment_id
break
case 'NP_ID_CARD_B': // 承租人身份证背面
if (!vm.idCardBackUrlFlag) {
vm.idCardBack = res.lists[0].url
}
// vm.idCardBackAttachmentId = res.lists[0].attachment_id
break
case 'LEGAL_ID_CARD_B': // 承租人身份证背面
if (!vm.idCardBackUrlFlag) {
vm.idCardBack = res.lists[0].url
}
// vm.idCardBackAttachmentId = res.lists[0].attachment_id
break
case 'HOUSE_CARD': // 房产证
if (!vm.houseFlag) {
vm.houseImg = res.lists[0].url
}
// vm.house_id = res.lists[0].attachment_id
break
case 'CAR_CARD': // 房产证
if (!vm.carFlag) {
vm.carImg = res.lists[0].url
}
// vm.house_id = res.lists[0].attachment_id
break
case 'ORG_CODE': // 营业执照
if (!vm.licenseFlag) {
vm.licenseImg = res.lists[0].url
}
// vm.house_id = res.lists[0].attachment_id
break
default:
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 还款周期查询
repayPeriod () {
let vm = this
let url = $config.basePath + 'annual_pay_times_query'
let param = {
product_plan_id: vm.product_plan_id,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.periodLists = res.lists.map(item => {
return {
code: item.annual_pay_times,
code_name: item.annual_pay_times_n,
}
})
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 还款周期选择
periodPull () {
let vm = this
vm.hlsPopup.selectList({
list: vm.periodLists, // 下拉列表
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.info.annual_pay_times_n = obj.bp_type_n
vm.annual_pay_times = obj.bp_type
},
})
},
}, },
} }
</script> </script>
...@@ -1581,8 +2323,124 @@ export default { ...@@ -1581,8 +2323,124 @@ export default {
} }
} }
} }
input::placeholder{
color: #B4B4B5;
}
.font-color {
color: #656464;
}
textarea::placeholder {
color: #b4b4b5;
}
textarea {
text-align: right;
color:#666;
resize: none;
}
.footer-button {
padding-top: 15px;
padding-bottom: 15px;
}
.save {
width: 100%;
height: 45px;
color: #fff;
border-radius: 4px;
background-color: @headerColor;
}
.house {
background: #fff;
margin-top: 10px;
padding-bottom: 10px;
.plus {
display: flex;
justify-content: center;
align-items: center;
}
.card-upload {
position: relative;
width: 80px;
height: 80px;
border: 1px dashed #dcdcdd;
// display: flex;
// justify-content: center;
// align-items: center;
margin-top: 12px;
margin-left: 16px;
// float: left;
.close {
/* position: relative;
color: #F96F68;
margin-top: -100%;
margin-left: -10%;*/
position: absolute;
color: #F96F68;
top: -6px;
right: -6px;
img {
width: 14px;
height: 14px;
}
}
img {
/*width: 88px;
height: 88px;*/
width: 100%;
height: 100%;
}
.upload-btn {
width: 24px;
height: 24px;
}
}
}
.house:last-child, .house:nth-last-child(2){
// margin-top: 0;
div {
float: left;
}
}
.upload-box {
display: flex;
justify-content: center;
margin-top: 15px;
div {
width: 172px;
height: 120px;
border: 1px dashed #dcdcdd;
text-align: center;
font-size: 14px;
color: #b4b4b5;
.front,
.back {
width: 172px;
height: 120px;
}
}
div:nth-of-type(2) {
margin-left: 7px;
}
img {
margin-top: 32px;
width: 58px;
height: 45px;
}
p {
margin-top: 12px;
font-size: 13px;
}
}
} }
.modal { .modal {
background-color: rgba(0, 0, 0, 0) !important; background-color: rgba(0, 0, 0, 0) !important;
} }
</style> </style>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</div> </div>
<!-- 搜索 --> <!-- 搜索 -->
<div class="search"> <div class="search">
<input v-model="searchInput" type="text" placeholder="请输入合同号/承租人名称" /> <input v-model="searchInput" type="text" placeholder="请输入承租人名称" />
</div> </div>
<scroll ref="scroll" :updateData="[showLists]" :pullUp="true" @pullingUp="loadMore"> <scroll ref="scroll" :updateData="[showLists]" :pullUp="true" @pullingUp="loadMore">
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<div class="pro-code" @click="goDetails(item)"> <div class="pro-code" @click="goDetails(item)">
<img src="@/assets/distributorSign/fileIcon.png" alt class="file-icon" /> <img src="@/assets/distributorSign/fileIcon.png" alt class="file-icon" />
<p> <p>
<span>合同号</span> <span>承租人</span>
<span>{{ item.project_number }}</span> <span>{{ item.project_number }}</span>
</p> </p>
<img v-if="item.read_check === 'N'" src="@/assets/constractSigning/unread.png" alt class="unread" /> <img v-if="item.read_check === 'N'" src="@/assets/constractSigning/unread.png" alt class="unread" />
...@@ -53,18 +53,18 @@ ...@@ -53,18 +53,18 @@
<p>承租人</p> <p>承租人</p>
<p>{{ item.bp_name }}</p> <p>{{ item.bp_name }}</p>
</div> </div>
<!-- <div>-->
<!-- <p>合同名称</p>-->
<!-- <p>{{ item.project_name }}</p>-->
<!-- </div>-->
<div> <div>
<p>合同名称</p> <p>设备总价</p>
<p>{{ item.project_name }}</p>
</div>
<div>
<p>合同租金</p>
<p class="money">{{ item.total_price | currency }}</p> <p class="money">{{ item.total_price | currency }}</p>
</div> </div>
<div> <!-- <div>-->
<p>产品名称</p> <!-- <p>产品名称</p>-->
<p>{{ item.division_n }}</p> <!-- <p>{{ item.division_n }}</p>-->
</div> <!-- </div>-->
<div> <div>
<p>申请时间</p> <p>申请时间</p>
<p>{{ dateConverse(item.confirm_start_date) }}</p> <p>{{ dateConverse(item.confirm_start_date) }}</p>
...@@ -74,24 +74,24 @@ ...@@ -74,24 +74,24 @@
</div> </div>
</div> </div>
</scroll> </scroll>
<div class="check-bottom"> <!-- <div class="check-bottom">-->
<div class="choose" v-show="isRadio"> <!-- <div class="choose" v-show="isRadio">-->
<div class="radio" @click="allChoose(!chooseAll)"> <!-- <div class="radio" @click="allChoose(!chooseAll)">-->
<img v-show="chooseAll" src="@/assets/login/radio.png" alt="radio" /> <!-- <img v-show="chooseAll" src="@/assets/login/radio.png" alt="radio" />-->
<div class="no-check" v-show="!chooseAll"></div> <!-- <div class="no-check" v-show="!chooseAll"></div>-->
<span :style="{ color: chooseAll ? '#1d3fff' : 'rgb(212,214,212)' }">全选</span> <!-- <span :style="{ color: chooseAll ? '#1d3fff' : 'rgb(212,214,212)' }">全选</span>-->
</div> <!-- </div>-->
<button class="cancel" @click="cancelRadio">× 取消批量</button> <!-- <button class="cancel" @click="cancelRadio">× 取消批量</button>-->
<button class="sign" @click="signContract">签订征信授权书</button> <!-- <button class="sign" @click="signContract">签订征信授权书</button>-->
</div> <!-- </div>-->
<div class="button-box" v-show="num == 1 && !isRadio"> <!-- <div class="button-box" v-show="num == 1 && !isRadio">-->
<div class="go-radio" @click="isRadio = true"> <!-- <div class="go-radio" @click="isRadio = true">-->
<img src="@/assets/login/write.png" alt="icon" /> <!-- <img src="@/assets/login/write.png" alt="icon" />-->
<span>批量签署</span> <!-- <span>批量签署</span>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div v-if="showLists.length === 0"> <div v-if="showLists.length === 0">
<div class="display"> <div class="display">
<img src="@/assets/messageCenter/noMsg.png" alt /> <img src="@/assets/messageCenter/noMsg.png" alt />
...@@ -190,8 +190,8 @@ export default { ...@@ -190,8 +190,8 @@ export default {
signContract() { signContract() {
let list = this.showLists.filter(item => item.checked); let list = this.showLists.filter(item => item.checked);
if (!list.length) return hlsPopup.showLongCenter('请选择合同'); if (!list.length) return hlsPopup.showLongCenter('请选择合同');
if(list.findIndex(item => item.read_check === 'N') > -1) return hlsPopup.showLongCenter('您有授权书未阅读,请阅读后再签署'); if(list.findIndex(item => item.read_check === 'N') > -1) return hlsPopup.showLongCenter('您有授权书未阅读,请阅读后再签署');
list = list.map(item => {item.checked = false; return item}); list = list.map(item => {item.checked = false; return item});
window.localStorage.setItem('handleContact', JSON.stringify(list)); window.localStorage.setItem('handleContact', JSON.stringify(list));
this.$router.push({ path: '/batchSign', query: { name: 'contract' } }); this.$router.push({ path: '/batchSign', query: { name: 'contract' } });
...@@ -524,7 +524,7 @@ export default { ...@@ -524,7 +524,7 @@ export default {
justify-content: center; justify-content: center;
} }
.go-radio { .go-radio {
width: 90%; width: 90%;
color: #fff; color: #fff;
background-color: #1d3fff; background-color: #1d3fff;
......
...@@ -12,24 +12,24 @@ ...@@ -12,24 +12,24 @@
<div slot="name" class="font-color">业务经办</div> <div slot="name" class="font-color">业务经办</div>
<input slot="content" v-model="baseInfo.bp_user_id_n" readonly> <input slot="content" v-model="baseInfo.bp_user_id_n" readonly>
</item> </item>
<item> <!-- <item>-->
<div slot="name" class="font-color">{{ baseInfo.bp_id_agent? '经销商': '办事处' }}</div> <!-- <div slot="name" class="font-color">{{ baseInfo.bp_id_agent? '经销商': '办事处' }}</div>-->
<span slot="content">{{ baseInfo.bp_id_agent?baseInfo.bp_id_agent_n:baseInfo.office_name }}</span> <!-- <span slot="content">{{ baseInfo.bp_id_agent?baseInfo.bp_id_agent_n:baseInfo.office_name }}</span>-->
</item> <!-- </item>-->
</list-item> </list-item>
<div class="equipment-list">承租人信息</div> <div class="equipment-list">承租人信息</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color">公司名称</div> <div slot="name" class="font-color">公司名称</div>
<input slot="content" v-model="baseInfo.bp_name" readonly> <input slot="content" v-model="baseInfo.bp_name">
</item> </item>
<item> <item>
<div slot="name" class="font-color">营业执照号</div> <div slot="name" class="font-color">营业执照号</div>
<input slot="content" v-model="baseInfo.organization_code" readonly> <input slot="content" v-model="baseInfo.organization_code">
</item> </item>
<item> <item>
<div slot="name" class="font-color">注册资本</div> <div slot="name" class="font-color">注册资本</div>
<input slot="content" v-model="baseInfo.registered_capital" readonly> <input slot="content" v-model="baseInfo.registered_capital" >
</item> </item>
<item> <item>
<div slot="name" class="font-color">注册地址</div> <div slot="name" class="font-color">注册地址</div>
...@@ -37,15 +37,19 @@ ...@@ -37,15 +37,19 @@
</item> </item>
<item> <item>
<div slot="name" class="font-color">经营地址</div> <div slot="name" class="font-color">经营地址</div>
<input slot="content" v-model="baseInfo.business_address" readonly> <input slot="content" v-model="baseInfo.business_address" >
</item> </item>
<item> <item>
<div slot="name" class="font-color">固定电话</div> <div slot="name" class="font-color">固定电话</div>
<input slot="content" v-model="baseInfo.phone" readonly> <input slot="content" v-model="baseInfo.phone" >
</item> </item>
<item> <item>
<div slot="name" class="font-color">是否授权</div> <div slot="name" class="font-color">是否授权</div>
<input slot="content" v-model="baseInfo.auth_flag" readonly> <input slot="content" v-model="baseInfo.auth_flag" >
</item>
<item>
<div slot="name" class="font-color">是否征信授权</div>
<input slot="content" v-model="baseInfo.auth_flag" >
</item> </item>
</list-item> </list-item>
<div v-if="baseInfo.auth_flag === '是'" class="equipment-list">{{ '法定授权人' }}</div> <div v-if="baseInfo.auth_flag === '是'" class="equipment-list">{{ '法定授权人' }}</div>
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
<div slot="name" class="font-color">业务经办</div> <div slot="name" class="font-color">业务经办</div>
<input slot="content" v-model="baseInfo.bp_user_id_n" readonly> <input slot="content" v-model="baseInfo.bp_user_id_n" readonly>
</item> </item>
<item> <!-- <item>-->
<div slot="name" class="font-color">{{ baseInfo.bp_id_agent? '经销商': '办事处' }}</div> <!-- <div slot="name" class="font-color">{{ baseInfo.bp_id_agent? '经销商': '办事处' }}</div>-->
<span slot="content">{{ baseInfo.bp_id_agent?baseInfo.bp_id_agent_n:baseInfo.office_name }}</span> <!-- <span slot="content">{{ baseInfo.bp_id_agent?baseInfo.bp_id_agent_n:baseInfo.office_name }}</span>-->
</item> <!-- </item>-->
</list-item> </list-item>
<div class="equipment-list">承租人信息</div> <div class="equipment-list">承租人信息</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="search has-header"> <div class="search has-header">
<img src="@/assets/functionCenter/bgxg-pic@2x.png" alt=""> <img src="@/assets/functionCenter/bgxg-pic@2x.png" alt="">
</div> </div>
<div class="fun-item"> <div class="fun-item" style="height: 200px">
<div class="userInfo"> 租前业务</div> <div class="userInfo"> 租前业务</div>
<div class="info-content"> <div class="info-content">
<div class="add-name"> <div class="add-name">
...@@ -19,35 +19,35 @@ ...@@ -19,35 +19,35 @@
<img src="@/assets/functionCenter/in@2x.png" alt=""> <img src="@/assets/functionCenter/in@2x.png" alt="">
</div> </div>
</div> </div>
<div class="info-content"> <!-- <div class="info-content">-->
<div class="add-name"> <!-- <div class="add-name">-->
<img src="@/assets/functionCenter/todo@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/todo@2x.png" alt="">-->
<div class="name-title">待办审批</div> <!-- <div class="name-title">待办审批</div>-->
</div> <!-- </div>-->
<div class="add-content" @click="todoList()"> <!-- <div class="add-content" @click="todoList()">-->
<img src="@/assets/functionCenter/in@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div class="info-content"> <!-- <div class="info-content">-->
<div class="add-name"> <!-- <div class="add-name">-->
<img src="@/assets/functionCenter/todo@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/todo@2x.png" alt="">-->
<div class="name-title">产品查询</div> <!-- <div class="name-title">产品查询</div>-->
</div> <!-- </div>-->
<div class="add-content" @click="toproduct()"> <!-- <div class="add-content" @click="toproduct()">-->
<img src="@/assets/functionCenter/in@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div class="info-content"> <!-- <div class="info-content">-->
<div class="add-name"> <!-- <div class="add-name">-->
<img src="@/assets/functionCenter/todo@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/todo@2x.png" alt="">-->
<div class="name-title">产品试算</div> <!-- <div class="name-title">产品试算</div>-->
</div> <!-- </div>-->
<div class="add-content" @click="financingTrial()"> <!-- <div class="add-content" @click="financingTrial()">-->
<img src="@/assets/functionCenter/in@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div> </div>
<div class="fun-item-before"> <div class="fun-item-before" style="height: 200px">
<div class="userInfo"> 租中业务</div> <div class="userInfo"> 租中业务</div>
<div class="info-content"> <div class="info-content">
<div class="add-name"> <div class="add-name">
...@@ -58,15 +58,15 @@ ...@@ -58,15 +58,15 @@
<img src="@/assets/functionCenter/in@2x.png" alt=""> <img src="@/assets/functionCenter/in@2x.png" alt="">
</div> </div>
</div> </div>
<div class="info-content"> <!-- <div class="info-content">-->
<div class="add-name"> <!-- <div class="add-name">-->
<img src="@/assets/functionCenter/con-sign@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/con-sign@2x.png" alt="">-->
<div class="name-title">融租合同创建</div> <!-- <div class="name-title">融租合同创建</div>-->
</div> <!-- </div>-->
<div class="add-content" @click="goStart"> <!-- <div class="add-content" @click="goStart">-->
<img src="@/assets/functionCenter/in@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<!-- <div class="info-content"> <!-- <div class="info-content">
<div class="add-name"> <div class="add-name">
<img src="@/assets/functionCenter/video@2x.png" alt="" > <img src="@/assets/functionCenter/video@2x.png" alt="" >
...@@ -76,65 +76,65 @@ ...@@ -76,65 +76,65 @@
<img src="@/assets/functionCenter/in@2x.png" alt="" > <img src="@/assets/functionCenter/in@2x.png" alt="" >
</div> </div>
</div> --> </div> -->
<div class="info-content"> <!-- <div class="info-content">-->
<div class="add-name"> <!-- <div class="add-name">-->
<img src="@/assets/functionCenter/car@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/car@2x.png" alt="">-->
<div class="name-title">合同签订</div> <!-- <div class="name-title">合同签订</div>-->
</div> <!-- </div>-->
<div class="add-content" @click="goCarConfirm"> <!-- <div class="add-content" @click="goCarConfirm">-->
<img src="@/assets/functionCenter/in@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div class="info-content"> <!-- <div class="info-content">-->
<div class="add-name"> <!-- <div class="add-name">-->
<img src="@/assets/functionCenter/payment@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/payment@2x.png" alt="">-->
<div class="name-title">首付还款</div> <!-- <div class="name-title">首付还款</div>-->
</div> <!-- </div>-->
<div class="add-content" @click="goReimburse"> <!-- <div class="add-content" @click="goReimburse">-->
<img src="@/assets/functionCenter/in@2x.png" alt=""> <!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div>
<div class="fun-item-after">
<div class="userInfo"> 租后业务</div>
<div class="info-content">
<div class="add-name">
<img src="@/assets/functionCenter/rent@2x.png" alt="">
<div class="name-title">我的发票</div>
</div>
<div class="add-content" @click="goInvoice">
<img src="@/assets/functionCenter/in@2x.png" alt="">
</div>
</div>
<div class="info-content">
<div class="add-name">
<img src="@/assets/functionCenter/rent@2x.png" alt="">
<div class="name-title">合同还款</div>
</div>
<div class="add-content" @click="goContractRepayment">
<img src="@/assets/functionCenter/in@2x.png" alt="">
</div>
</div>
<div class="info-content">
<div class="add-name">
<img src="@/assets/functionCenter/rent@2x.png" alt="">
<div class="name-title">租金还款</div>
</div>
<div class="add-content" @click="changeRent">
<img src="@/assets/functionCenter/in@2x.png" alt="">
</div>
</div>
<div class="info-content">
<div class="add-name">
<img src="@/assets/functionCenter/con-que@2x.png" alt="">
<div class="name-title">合同查询</div>
</div>
<div class="add-content" @click="changeContract('GUTA')">
<img src="@/assets/functionCenter/in@2x.png" alt="">
</div>
</div>
</div> </div>
<!-- <div class="fun-item-after">-->
<!-- <div class="userInfo"> 租后业务</div>-->
<!-- <div class="info-content">-->
<!-- <div class="add-name">-->
<!-- <img src="@/assets/functionCenter/rent@2x.png" alt="">-->
<!-- <div class="name-title">我的发票</div>-->
<!-- </div>-->
<!-- <div class="add-content" @click="goInvoice">-->
<!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="info-content">-->
<!-- <div class="add-name">-->
<!-- <img src="@/assets/functionCenter/rent@2x.png" alt="">-->
<!-- <div class="name-title">合同还款</div>-->
<!-- </div>-->
<!-- <div class="add-content" @click="goContractRepayment">-->
<!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="info-content">-->
<!-- <div class="add-name">-->
<!-- <img src="@/assets/functionCenter/rent@2x.png" alt="">-->
<!-- <div class="name-title">租金还款</div>-->
<!-- </div>-->
<!-- <div class="add-content" @click="changeRent">-->
<!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="info-content">-->
<!-- <div class="add-name">-->
<!-- <img src="@/assets/functionCenter/con-que@2x.png" alt="">-->
<!-- <div class="name-title">合同查询</div>-->
<!-- </div>-->
<!-- <div class="add-content" @click="changeContract('GUTA')">-->
<!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
</h-content> </h-content>
</h-view> </h-view>
</template> </template>
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
// if (true) { // if (true) {
next(vm => { next(vm => {
if (window.localStorage.getItem('user_phone')) { if (window.localStorage.getItem('user_phone')) {
vm.userQuery() vm.userQuery()
} }
}) })
...@@ -234,8 +234,8 @@ export default { ...@@ -234,8 +234,8 @@ export default {
// } // }
// }) // })
let obj = JSON.parse(window.localStorage.getItem("now_user_bp_bind_id")); let obj = JSON.parse(window.localStorage.getItem("now_user_bp_bind_id"));
if(!Object.keys(obj).length) return vm.role = '未绑定'; if(!Object.keys(obj).length) return vm.role = '未绑定';
let user_bp_status = obj.bp_status; let user_bp_status = obj.bp_status;
...@@ -249,16 +249,16 @@ export default { ...@@ -249,16 +249,16 @@ export default {
if (user_bp_status === 'APPROVED') { if (user_bp_status === 'APPROVED') {
vm.flag = false vm.flag = false
} }
vm.user_bp_status = user_bp_status vm.user_bp_status = user_bp_status
vm.user_bp_class = user_bp_class vm.user_bp_class = user_bp_class
vm.bp_id = bp_id vm.bp_id = bp_id
vm.bp_identity = bp_identity vm.bp_identity = bp_identity
vm.user_bp_type = bp_type vm.user_bp_type = bp_type
vm.user_bp_name = bp_name vm.user_bp_name = bp_name
vm.user_phone = user_phone vm.user_phone = user_phone
if (bp_type === 'TENANT') { if (bp_type === 'TENANT') {
vm.role = '主承租人' vm.role = '主承租人'
...@@ -272,7 +272,7 @@ export default { ...@@ -272,7 +272,7 @@ export default {
vm.role = '办事处' vm.role = '办事处'
} else if (bp_type === 'MANAGER') { } else if (bp_type === 'MANAGER') {
vm.role = '业务经理' vm.role = '业务经理'
} }
if (bp_type === 'AGENT') { if (bp_type === 'AGENT') {
vm.isAGENT = true vm.isAGENT = true
} else { } else {
...@@ -507,6 +507,9 @@ export default { ...@@ -507,6 +507,9 @@ export default {
hlsPopup.showLongCenter('请先进行用户绑定') hlsPopup.showLongCenter('请先进行用户绑定')
} }
}, },
showMessage () {
hlsPopup.showLongCenter('暂未开放')
},
}, },
} }
</script> </script>
......
...@@ -59,21 +59,21 @@ ...@@ -59,21 +59,21 @@
<h-content class="my-content has-footer"> <h-content class="my-content has-footer">
<div class="content-top"> <div class="content-top">
<list-item :item-height="44" class="list"> <list-item :item-height="44" class="list">
<item @click.native="goContract"> <!-- <item @click.native="goContract">-->
<img slot="left-icon" src="@/assets/myInfo/agreement.png" class="left-icon" /> <!-- <img slot="left-icon" src="@/assets/myInfo/agreement.png" class="left-icon" />-->
<div slot="name">我的合同</div> <!-- <div slot="name">我的合同</div>-->
</item> <!-- </item>-->
<item <!-- <item-->
v-if="user_bp_type === 'TENANT' || user_bp_type === 'GUTA'" <!-- v-if="user_bp_type === 'TENANT' || user_bp_type === 'GUTA'"-->
@click.native="goReimburse" <!-- @click.native="goReimburse"-->
> <!-- >-->
<img slot="left-icon" src="@/assets/myInfo/repay.png" class="left-icon" /> <!-- <img slot="left-icon" src="@/assets/myInfo/repay.png" class="left-icon" />-->
<div slot="name">我的还款</div> <!-- <div slot="name">我的还款</div>-->
</item> <!-- </item>-->
<item v-if="user_bp_type === 'TENANT'" @click.native="goInvoice"> <!-- <item v-if="user_bp_type === 'TENANT'" @click.native="goInvoice">-->
<img slot="left-icon" src="@/assets/myInfo/invoice.png" class="left-icon" /> <!-- <img slot="left-icon" src="@/assets/myInfo/invoice.png" class="left-icon" />-->
<div slot="name">我的发票</div> <!-- <div slot="name">我的发票</div>-->
</item> <!-- </item>-->
<item @click.native="goMyProduct"> <item @click.native="goMyProduct">
<img slot="left-icon" src="@/assets/myInfo/collect.png" class="left-icon" /> <img slot="left-icon" src="@/assets/myInfo/collect.png" class="left-icon" />
<div slot="name">我的收藏</div> <div slot="name">我的收藏</div>
...@@ -304,14 +304,14 @@ export default { ...@@ -304,14 +304,14 @@ export default {
// 自己添加认证文字 // 自己添加认证文字
let register = { let register = {
NP_NO: "个人待认证", NP_NO: "个人",
NP_YES: "个人认证通过", NP_YES: "个人",
ORG_YES: "企业认证通过", ORG_YES: "企业",
ORG_NO: "企业待认证", ORG_NO: "企业",
ORG_L_NO: "法人待认证", ORG_L_NO: "法人",
ORG_L_YES: "法人认证通过", ORG_L_YES: "法人",
ORG_AUTH_NO: "授权人待认证", ORG_AUTH_NO: "授权人",
ORG_AUTH_YES: "授权人认证通过" ORG_AUTH_YES: "授权人"
} }
query.lists = query.lists.map(item => { query.lists = query.lists.map(item => {
...@@ -320,7 +320,7 @@ export default { ...@@ -320,7 +320,7 @@ export default {
}) })
window.localStorage.setItem('bind-user-list', JSON.stringify(query.lists)); window.localStorage.setItem('bind-user-list', JSON.stringify(query.lists));
// window.localStorage.setItem('now_user_bp_bind_id', JSON.stringify(query.lists.length ? query.lists[0] : {})); window.localStorage.setItem('now_user_bp_bind_id', JSON.stringify(query.lists.length ? query.lists[0] : {}));
if (!query.lists.length) if (!query.lists.length)
window.localStorage.setItem('now_user_bp_bind_id', JSON.stringify({})); window.localStorage.setItem('now_user_bp_bind_id', JSON.stringify({}));
......
...@@ -96,11 +96,12 @@ export default { ...@@ -96,11 +96,12 @@ export default {
methods: { methods: {
// 未认证进行人脸 认证 // 未认证进行人脸 认证
async face(item) { async face(item) {
return
let vm = this; let vm = this;
let register = ['NP_NO', 'ORG_NO', 'ORG_L_NO', 'ORG_AUTH_NO']; let register = ['NP_NO', 'ORG_NO', 'ORG_L_NO', 'ORG_AUTH_NO'];
if (register.includes(item.bp_identity)) { if (register.includes(item.bp_identity)) {
// 人脸识别之前要确认是否已经在别的渠道已经绑定。 // 人脸识别之前要确认是否已经在别的渠道已经绑定。
let res = await vm.getNpCertificationUrl(item) let res = await vm.getNpCertificationUrl(item)
if (res) { if (res) {
hlsPopup.showLongCenter(item.bp_identity === 'ORG_NO' ? '请联系业务人员协助认证' : '认证已通过'); hlsPopup.showLongCenter(item.bp_identity === 'ORG_NO' ? '请联系业务人员协助认证' : '认证已通过');
...@@ -176,7 +177,7 @@ export default { ...@@ -176,7 +177,7 @@ export default {
this.NowItem = item; this.NowItem = item;
switch (item.bp_status) { switch (item.bp_status) {
// 待提交 拒绝或者被退回 // 待提交 拒绝或者被退回
case "NEW": case "NEW":
case "RETURN": case "RETURN":
case "REJECT": case "REJECT":
...@@ -230,7 +231,7 @@ export default { ...@@ -230,7 +231,7 @@ export default {
vm.hlsPopup.hideLoading(); vm.hlsPopup.hideLoading();
if (res.result === 'S') { if (res.result === 'S') {
vm.hlsPopup.showLongCenter('解绑成功'); vm.hlsPopup.showLongCenter('解绑成功');
// 重新查询一次 用户列表 // 重新查询一次 用户列表
vm.getList(item.bp_id === JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_id); vm.getList(item.bp_id === JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_id);
} else { } else {
vm.hlsPopup.showLongCenter(res.message) vm.hlsPopup.showLongCenter(res.message)
...@@ -255,14 +256,14 @@ export default { ...@@ -255,14 +256,14 @@ export default {
// 自己添加认证文字 // 自己添加认证文字
let register = { let register = {
NP_NO: "个人待认证", NP_NO: "个人",
NP_YES: "个人认证通过", NP_YES: "个人",
ORG_YES: "企业认证通过", ORG_YES: "企业",
ORG_NO: "企业待认证", ORG_NO: "企业",
ORG_L_NO: "法人待认证", ORG_L_NO: "法人",
ORG_L_YES: "法人认证通过", ORG_L_YES: "法人",
ORG_AUTH_NO: "授权人待认证", ORG_AUTH_NO: "授权人",
ORG_AUTH_YES: "授权人认证通过" ORG_AUTH_YES: "授权人"
} }
query.lists = query.lists.map(item => { query.lists = query.lists.map(item => {
......
...@@ -167,9 +167,11 @@ export default { ...@@ -167,9 +167,11 @@ export default {
let length = vm.user_password.length let length = vm.user_password.length
if (length < 6 || length > 20) { if (length < 6 || length > 20) {
hlsPopup.showLongCenter('密码长度6~20位之间') hlsPopup.showLongCenter('密码长度6~20位之间')
} else if (new RegExp('^[0-9]*$').test(vm.user_password)) { }
hlsPopup.showLongCenter('密码不能全为数字') // else if (new RegExp('^[0-9]*$').test(vm.user_password)) {
} else { // hlsPopup.showLongCenter('密码不能全为数字')
// }
else {
vm.passwordFlag = true vm.passwordFlag = true
} }
}, },
...@@ -227,22 +229,22 @@ export default { ...@@ -227,22 +229,22 @@ export default {
getVerifiedCode () { getVerifiedCode () {
let vm = this let vm = this
hlsPopup.showLongCenter('测试验证码为123456') hlsPopup.showLongCenter('测试验证码为123456')
let url = process.env.basePath + 'sms_verify_post' // let url = process.env.basePath + 'sms_verify_post'
let signcode = '123456' // let signcode = '123456'
vm.captchaKey = signcode // vm.captchaKey = signcode
let param = { // let param = {
'phone': vm.phone_number, // 'phone': vm.phone_number,
'signcode': signcode, // 'signcode': signcode,
} // }
vm.hlsPopup.showLoading('请稍候') // vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { // vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() // vm.hlsPopup.hideLoading()
if (res.result === 'S') { // if (res.result === 'S') {
vm.hlsPopup.showSuccess('验证码已发送') // vm.hlsPopup.showSuccess('验证码已发送')
} else { // } else {
vm.hlsPopup.showLongCenter(res.return.description) // vm.hlsPopup.showLongCenter(res.return.description)
} // }
}) // })
}, },
}, },
} }
......
...@@ -9,115 +9,118 @@ ...@@ -9,115 +9,118 @@
</h-header> </h-header>
<h-content> <h-content>
<list-item :item-height="44"> <list-item :item-height="44">
<item v-if="!isApproved" :showArrow="true"> <!-- <item v-if="!isApproved" :showArrow="true">-->
<div slot="name" class="required">客户类型</div> <!-- <div slot="name" class="required">客户类型</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.bp_type_n" <!-- v-model="baseInfo.bp_type_n"-->
placeholder="请选择" <!-- placeholder="请选择"-->
type="text" <!-- type="text"-->
readonly <!-- readonly-->
onfocus="this.blur()" <!-- onfocus="this.blur()"-->
@click="selectIdTypeOnly()" <!-- @click="selectIdTypeOnly()"-->
/> <!-- />-->
</item> <!-- </item>-->
<item v-if="isApproved && !isMultiRole"> <item>
<div slot="name" class="required">客户类型</div> <div slot="name" class="required">客户类型</div>
<span slot="content">{{ baseInfo.bp_type_n }}</span> <span slot="content">{{ baseInfo.bp_type_n }}</span>
</item> </item>
<item <item>
v-if="isApproved && isMultiRole && !hasMultiRole" <div slot="name" class="required">主机厂</div>
:showArrow="true" <span slot="content">{{ baseInfo.factory_bp_name }}</span>
@click.native="selectIdType"
>
<div slot="name" class="required">客户类型</div>
<div slot="content" class="typeBP">
<span>{{ baseInfo.bp_type_n }}</span>
<span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>
<span v-for="(item,index) in multiBpTypeSelectList" :key="item.bp_type">
{{ item.bp_type_n }}
<img
v-if="item.bp_type_n"
src="@/assets/userBind/deleteTag.png"
@click.stop
@click="deleteBP(item)"
/>
</span>
</div>
</item>
<item v-if="isApproved && isMultiRole && hasMultiRole" :showArrow="true">
<div slot="name" class="required">客户类型</div>
<div slot="content" class="typeBP">
<span>{{ baseInfo.bp_type_n }}</span>
<span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>
</div>
</item>
<item
v-if="(((isPaople && from) || (isPaople && isSelected))) || (multipleRole === 'GUTA' || multipleRole === 'TENANT') || searchPeople"
:proportion="[3, 7]"
>
<div slot="name" class="required">业务经办人</div>
<input slot="content" v-model="baseInfo.agent_username" placeholder="请输入业务经办员工代码" />
<!-- <div slot="content" class="add-people"><input v-model="baseInfo.agent_username"><img src="@/assets/contractCreate/add1.png" @click="inputNum=true"></div> -->
<!-- <div slot="content" class="add-people"><div class="people-list"><span v-for="(item,index) in peopleList" :key="index">{{ item }}</span></div>
<div><img src="@/assets/contractCreate/add1.png" @click="inputNum=true"></div></div>-->
</item>
<item
v-if="(((isLesons && from) || (isLesons && isSelected))) || multipleRole === 'AGENT' || searchLecens"
>
<div slot="name" class="required">营业执照</div>
<input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入营业执照号" />
</item>
<item v-if="(isMatter && from) || (isMatter && isSelected)">
<div slot="name" class="required">办事处代码</div>
<input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入办事处代码" />
</item> </item>
<button v-if="isAddNewType" class="type-save" @click="addNewRole">新增角色</button> <!-- <item-->
<!-- v-if="isApproved && isMultiRole && !hasMultiRole"-->
<!-- :showArrow="true"-->
<!-- @click.native="selectIdType"-->
<!-- >-->
<!-- <div slot="name" class="required">客户类型</div>-->
<!-- <div slot="content" class="typeBP">-->
<!-- <span>{{ baseInfo.bp_type_n }}</span>-->
<!-- <span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>-->
<!-- <span v-for="(item,index) in multiBpTypeSelectList" :key="item.bp_type">-->
<!-- {{ item.bp_type_n }}-->
<!-- <img-->
<!-- v-if="item.bp_type_n"-->
<!-- src="@/assets/userBind/deleteTag.png"-->
<!-- @click.stop-->
<!-- @click="deleteBP(item)"-->
<!-- />-->
<!-- </span>-->
<!-- </div>-->
<!-- </item>-->
<!-- <item v-if="isApproved && isMultiRole && hasMultiRole" :showArrow="true">-->
<!-- <div slot="name" class="required">客户类型</div>-->
<!-- <div slot="content" class="typeBP">-->
<!-- <span>{{ baseInfo.bp_type_n }}</span>-->
<!-- <span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>-->
<!-- </div>-->
<!-- </item>-->
<!-- <item-->
<!-- v-if="(((isPaople && from) || (isPaople && isSelected))) || (multipleRole === 'GUTA' || multipleRole === 'TENANT') || searchPeople"-->
<!-- :proportion="[3, 7]"-->
<!-- >-->
<!-- <div slot="name" class="required">业务经办人</div>-->
<!-- <input slot="content" v-model="baseInfo.agent_username" placeholder="请输入业务经办员工代码" />-->
<!-- &lt;!&ndash; <div slot="content" class="add-people"><input v-model="baseInfo.agent_username"><img src="@/assets/contractCreate/add1.png" @click="inputNum=true"></div> &ndash;&gt;-->
<!-- &lt;!&ndash; <div slot="content" class="add-people"><div class="people-list"><span v-for="(item,index) in peopleList" :key="index">{{ item }}</span></div>-->
<!-- <div><img src="@/assets/contractCreate/add1.png" @click="inputNum=true"></div></div>&ndash;&gt;-->
<!-- </item>-->
<!-- <item-->
<!-- v-if="(((isLesons && from) || (isLesons && isSelected))) || multipleRole === 'AGENT' || searchLecens"-->
<!-- >-->
<!-- <div slot="name" class="required">营业执照</div>-->
<!-- <input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入营业执照号" />-->
<!-- </item>-->
<!-- <item v-if="(isMatter && from) || (isMatter && isSelected)">-->
<!-- <div slot="name" class="required">办事处代码</div>-->
<!-- <input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入办事处代码" />-->
<!-- </item>-->
<!-- <button v-if="isAddNewType" class="type-save" @click="addNewRole">新增角色</button>-->
</list-item> </list-item>
<div class="userInfo">客户信息</div> <div class="userInfo">客户信息</div>
<div class="upload-id-card"> <!-- <div class="upload-id-card">-->
<span>身份证照片上传</span> <!-- <span>身份证照片上传</span>-->
<div class="upload-box"> <!-- <div class="upload-box">-->
<div v-if="!idCardFront" @click="ocrShow('idCard', 'front')"> <!-- <div v-if="!idCardFront" @click="ocrShow('idCard', 'front')">-->
<img src="@/assets/userBind/front.png" /> <!-- <img src="@/assets/userBind/front.png" />-->
<p>正面</p> <!-- <p>正面</p>-->
</div> <!-- </div>-->
<div v-if="idCardFront && !isApproved" @click="ocrShow('idCard', 'front')"> <!-- <div v-if="idCardFront && !isApproved" @click="ocrShow('idCard', 'front')">-->
<img :src="idCardFront" style="width: 100%;height: 100%;margin: 0" /> <!-- <img :src="idCardFront" style="width: 100%;height: 100%;margin: 0" />-->
</div> <!-- </div>-->
<div v-if="isApproved && idCardFront"> <!-- <div v-if="isApproved && idCardFront">-->
<img <!-- <img-->
v-if="idCardFront" <!-- v-if="idCardFront"-->
:src="idCardFront" <!-- :src="idCardFront"-->
style="width: 100%;height: 100%;margin: 0" <!-- style="width: 100%;height: 100%;margin: 0"-->
@click="showBigPicture(idCardFront)" <!-- @click="showBigPicture(idCardFront)"-->
/> <!-- />-->
</div> <!-- </div>-->
<div v-if="!idCardBack" @click="ocrShow('idCard', 'back')"> <!-- <div v-if="!idCardBack" @click="ocrShow('idCard', 'back')">-->
<img src="@/assets/userBind/back.png" /> <!-- <img src="@/assets/userBind/back.png" />-->
<p>反面</p> <!-- <p>反面</p>-->
</div> <!-- </div>-->
<div v-if="idCardBack && !isApproved" @click="ocrShow('idCard', 'back')"> <!-- <div v-if="idCardBack && !isApproved" @click="ocrShow('idCard', 'back')">-->
<img :src="idCardBack" style="width: 100%;height: 100%;margin: 0" /> <!-- <img :src="idCardBack" style="width: 100%;height: 100%;margin: 0" />-->
</div> <!-- </div>-->
<div v-if="isApproved && idCardBack"> <!-- <div v-if="isApproved && idCardBack">-->
<img <!-- <img-->
v-if="idCardBack" <!-- v-if="idCardBack"-->
:src="idCardBack" <!-- :src="idCardBack"-->
style="width: 100%;height: 100%;margin: 0" <!-- style="width: 100%;height: 100%;margin: 0"-->
@click="showBigPicture(idCardBack)" <!-- @click="showBigPicture(idCardBack)"-->
/> <!-- />-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="required">姓名</div> <div slot="name" class="required">姓名</div>
<input <input
slot="content" slot="content"
v-model="baseInfo.bp_name" v-model="baseInfo.bp_name"
readonly placeholder="请输入姓名"
placeholder="上传身份证自动填充"
class="auto" class="auto"
/> />
</item> </item>
...@@ -126,8 +129,7 @@ ...@@ -126,8 +129,7 @@
<input <input
slot="content" slot="content"
v-model="baseInfo.id_card_no" v-model="baseInfo.id_card_no"
readonly placeholder="请输入身份证号码"
placeholder="上传身份证自动填充"
class="auto" class="auto"
/> />
</item> </item>
...@@ -137,32 +139,31 @@ ...@@ -137,32 +139,31 @@
slot="content" slot="content"
ref="myTestarea" ref="myTestarea"
v-model="baseInfo.address_on_resident_booklit" v-model="baseInfo.address_on_resident_booklit"
readonly
cols="30" cols="30"
rows="1" rows="1"
placeholder="上传身份证自动填充" placeholder="请输入户籍地址"
class="auto" class="auto"
@input="addRows(baseInfo.address_on_resident_booklit)" @input="addRows(baseInfo.address_on_resident_booklit)"
/> />
</item> </item>
<item> <item @click.native="choseTimes('YYYY-MM-DD', 'id_card_date_from')">
<div slot="name" class="required">身份证有效期从</div> <div slot="name" class="required">身份证有效期从</div>
<input <input
slot="content" slot="content"
v-model="baseInfo.id_card_date_from" v-model="baseInfo.id_card_date_from"
readonly readonly
placeholder="上传身份证自动填充" placeholder="请输入身份证有效期从"
class="auto" class="auto"
/> />
<!-- <span class="auto">{{ baseInfo.id_card_date_from|dateFormat }}</span> --> <!-- <span class="auto">{{ baseInfo.id_card_date_from|dateFormat }}</span> -->
</item> </item>
<item> <item @click.native="choseTimes('YYYY-MM-DD', 'id_card_date_to')">
<div slot="name" class="required">身份证有效期到</div> <div slot="name" class="required">身份证有效期到</div>
<input <input
slot="content" slot="content"
v-model="baseInfo.id_card_date_to"
readonly readonly
placeholder="上传身份证自动填充" v-model="baseInfo.id_card_date_to"
placeholder="请输入身份证有效期到"
class="auto" class="auto"
/> />
</item> </item>
...@@ -170,42 +171,42 @@ ...@@ -170,42 +171,42 @@
<div slot="name" class="required">手机号码</div> <div slot="name" class="required">手机号码</div>
<input slot="content" v-model="baseInfo.cell_phone" readonly placeholder="请输入手机号码" /> <input slot="content" v-model="baseInfo.cell_phone" readonly placeholder="请输入手机号码" />
</item> </item>
<item :showArrow="true"> <!-- <item :showArrow="true">-->
<div slot="name" class="required">业务办理省</div> <!-- <div slot="name" class="required">业务办理省</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.province_name" <!-- v-model="baseInfo.province_name"-->
placeholder="请选择" <!-- placeholder="请选择"-->
type="text" <!-- type="text"-->
readonly <!-- readonly-->
onfocus="this.blur()" <!-- onfocus="this.blur()"-->
@click="selectProvince()" <!-- @click="selectProvince()"-->
/> <!-- />-->
</item> <!-- </item>-->
<item :showArrow="true"> <!-- <item :showArrow="true">-->
<div slot="name" class="required">业务办理市</div> <!-- <div slot="name" class="required">业务办理市</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.city_name" <!-- v-model="baseInfo.city_name"-->
placeholder="请选择" <!-- placeholder="请选择"-->
type="text" <!-- type="text"-->
readonly <!-- readonly-->
onfocus="this.blur()" <!-- onfocus="this.blur()"-->
@click="selectCity()" <!-- @click="selectCity()"-->
/> <!-- />-->
</item> <!-- </item>-->
<item :showArrow="true"> <!-- <item :showArrow="true">-->
<div slot="name" class="required">业务办理区/县</div> <!-- <div slot="name" class="required">业务办理区/县</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.district_name" <!-- v-model="baseInfo.district_name"-->
placeholder="请选择" <!-- placeholder="请选择"-->
type="text" <!-- type="text"-->
readonly <!-- readonly-->
onfocus="this.blur()" <!-- onfocus="this.blur()"-->
@click="selectDistrict()" <!-- @click="selectDistrict()"-->
/> <!-- />-->
</item> <!-- </item>-->
<item> <item>
<div slot="name" class="required">联系地址</div> <div slot="name" class="required">联系地址</div>
<textarea <textarea
...@@ -218,120 +219,120 @@ ...@@ -218,120 +219,120 @@
@input="addRowsLive(baseInfo.living_address)" @input="addRowsLive(baseInfo.living_address)"
/> />
</item> </item>
<item> <!-- <item>-->
<div slot="name" class="required">资产信息</div> <!-- <div slot="name" class="required">资产信息</div>-->
<input slot="content" v-model="baseInfo.capital" placeholder="请输入资产信息" /> <!-- <input slot="content" v-model="baseInfo.capital" placeholder="请输入资产信息" />-->
</item> <!-- </item>-->
<item :showArrow="true"> <!-- <item :showArrow="true">-->
<div slot="name" class="required">学历</div> <!-- <div slot="name" class="required">学历</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.academic_background_n" <!-- v-model="baseInfo.academic_background_n"-->
placeholder="请选择学历" <!-- placeholder="请选择学历"-->
readonly <!-- readonly-->
onfocus="this.blur()" <!-- onfocus="this.blur()"-->
@click="selectBackType" <!-- @click="selectBackType"-->
/> <!-- />-->
</item> <!-- </item>-->
<item <!-- <item-->
v-if="((baseInfo.bp_type === 'TENANT' || baseInfo.bp_type === 'GUTA') && !multipleRole) || multipleRole === 'TENANT' || multipleRole === 'GUTA'" <!-- v-if="((baseInfo.bp_type === 'TENANT' || baseInfo.bp_type === 'GUTA') && !multipleRole) || multipleRole === 'TENANT' || multipleRole === 'GUTA'"-->
:showArrow="true" <!-- :showArrow="true"-->
> <!-- >-->
<div slot="name" class="required">婚姻状况</div> <!-- <div slot="name" class="required">婚姻状况</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.marital_status_n" <!-- v-model="baseInfo.marital_status_n"-->
placeholder="请选择" <!-- placeholder="请选择"-->
readonly <!-- readonly-->
onfocus="this.blur()" <!-- onfocus="this.blur()"-->
@click="selectMarital" <!-- @click="selectMarital"-->
/> <!-- />-->
</item> <!-- </item>-->
</list-item> </list-item>
<div <!-- <div-->
v-if="(hasSP && (((baseInfo.bp_type === 'TENANT' || baseInfo.bp_type === 'GUTA') && !multipleRole) || multipleRole === 'TENANT' || multipleRole === 'GUTA'))" <!-- v-if="(hasSP && (((baseInfo.bp_type === 'TENANT' || baseInfo.bp_type === 'GUTA') && !multipleRole) || multipleRole === 'TENANT' || multipleRole === 'GUTA'))"-->
> <!-- >-->
<!-- 主承租人活担保人为已婚显示--> <!-- &lt;!&ndash; 主承租人活担保人为已婚显示&ndash;&gt;-->
<div class="userInfo">配偶信息</div> <!-- <div class="userInfo">配偶信息</div>-->
<div class="upload-id-card"> <!-- <div class="upload-id-card">-->
<span>身份证照片上传</span> <!-- <span>身份证照片上传</span>-->
<div class="upload-box"> <!-- <div class="upload-box">-->
<div v-if="!idCardFrontSp" @click="ocrShow('idCardSp', 'front')"> <!-- <div v-if="!idCardFrontSp" @click="ocrShow('idCardSp', 'front')">-->
<img src="@/assets/userBind/front.png" /> <!-- <img src="@/assets/userBind/front.png" />-->
<p>正面</p> <!-- <p>正面</p>-->
</div> <!-- </div>-->
<div v-if="idCardFrontSp && !isApproved" @click="ocrShow('idCardSp', 'front')"> <!-- <div v-if="idCardFrontSp && !isApproved" @click="ocrShow('idCardSp', 'front')">-->
<img :src="idCardFrontSp" style="width: 100%;height: 100%;margin: 0" /> <!-- <img :src="idCardFrontSp" style="width: 100%;height: 100%;margin: 0" />-->
</div> <!-- </div>-->
<div v-if="isApproved && idCardFrontSp"> <!-- <div v-if="isApproved && idCardFrontSp">-->
<img <!-- <img-->
v-if="idCardFrontSp" <!-- v-if="idCardFrontSp"-->
:src="idCardFrontSp" <!-- :src="idCardFrontSp"-->
style="width: 100%;height: 100%;margin: 0" <!-- style="width: 100%;height: 100%;margin: 0"-->
@click="showBigPicture(idCardFrontSp)" <!-- @click="showBigPicture(idCardFrontSp)"-->
/> <!-- />-->
</div> <!-- </div>-->
<div v-if="!idCardBackSp" @click="ocrShow('idCardSp', 'back')"> <!-- <div v-if="!idCardBackSp" @click="ocrShow('idCardSp', 'back')">-->
<img src="@/assets/userBind/back.png" /> <!-- <img src="@/assets/userBind/back.png" />-->
<p>反面</p> <!-- <p>反面</p>-->
</div> <!-- </div>-->
<div v-if="idCardBackSp && !isApproved" @click="ocrShow('idCardSp', 'back')"> <!-- <div v-if="idCardBackSp && !isApproved" @click="ocrShow('idCardSp', 'back')">-->
<img :src="idCardBackSp" style="width: 100%;height: 100%;margin: 0" /> <!-- <img :src="idCardBackSp" style="width: 100%;height: 100%;margin: 0" />-->
</div> <!-- </div>-->
<div v-if="isApproved && idCardBackSp"> <!-- <div v-if="isApproved && idCardBackSp">-->
<img <!-- <img-->
v-if="idCardBackSp" <!-- v-if="idCardBackSp"-->
:src="idCardBackSp" <!-- :src="idCardBackSp"-->
style="width: 100%;height: 100%;margin: 0" <!-- style="width: 100%;height: 100%;margin: 0"-->
@click="showBigPicture(idCardBackSp)" <!-- @click="showBigPicture(idCardBackSp)"-->
/> <!-- />-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<list-item :item-height="44"> <!-- <list-item :item-height="44">-->
<item> <!-- <item>-->
<div slot="name" class="required">姓名</div> <!-- <div slot="name" class="required">姓名</div>-->
<input slot="content" v-model="baseInfo.bp_name_sp" readonly placeholder="上传身份证自动填充" /> <!-- <input slot="content" v-model="baseInfo.bp_name_sp" readonly placeholder="上传身份证自动填充" />-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="required">配偶身份证号</div> <!-- <div slot="name" class="required">配偶身份证号</div>-->
<input slot="content" v-model="baseInfo.id_card_no_sp" readonly placeholder="上传身份证自动填充" /> <!-- <input slot="content" v-model="baseInfo.id_card_no_sp" readonly placeholder="上传身份证自动填充" />-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="required">身份证有效期从</div> <!-- <div slot="name" class="required">身份证有效期从</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.id_card_date_from_sp" <!-- v-model="baseInfo.id_card_date_from_sp"-->
readonly <!-- readonly-->
placeholder="上传身份证自动填充" <!-- placeholder="上传身份证自动填充"-->
/> <!-- />-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="required">身份证有效期到</div> <!-- <div slot="name" class="required">身份证有效期到</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.id_card_date_to_sp" <!-- v-model="baseInfo.id_card_date_to_sp"-->
readonly <!-- readonly-->
placeholder="上传身份证自动填充" <!-- placeholder="上传身份证自动填充"-->
/> <!-- />-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="required">手机号码</div> <!-- <div slot="name" class="required">手机号码</div>-->
<input slot="content" v-model="baseInfo.spouse_phone" placeholder="请输入手机号码" /> <!-- <input slot="content" v-model="baseInfo.spouse_phone" placeholder="请输入手机号码" />-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="required">工作单位</div> <!-- <div slot="name" class="required">工作单位</div>-->
<input slot="content" v-model="baseInfo.working_place_sp" placeholder="请输入工作单位" /> <!-- <input slot="content" v-model="baseInfo.working_place_sp" placeholder="请输入工作单位" />-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="required">联系地址</div> <!-- <div slot="name" class="required">联系地址</div>-->
<input slot="content" v-model="baseInfo.address_sp" placeholder="请输入联系地址" /> <!-- <input slot="content" v-model="baseInfo.address_sp" placeholder="请输入联系地址" />-->
</item> <!-- </item>-->
</list-item> <!-- </list-item>-->
</div> <!-- </div>-->
</h-content> </h-content>
<bottom-tab class="footer-button"> <bottom-tab class="footer-button">
<tab-button class="save" @click.native="verified(false)">下一步</tab-button> <tab-button class="save" @click.native="verified(false)">提交</tab-button>
</bottom-tab> </bottom-tab>
<!-- <InputNum <!-- <InputNum
v-show="inputNum" v-show="inputNum"
...@@ -364,7 +365,7 @@ export default { ...@@ -364,7 +365,7 @@ export default {
searchLecens: false, searchLecens: false,
inputNum: false, // 填写业务经办 inputNum: false, // 填写业务经办
isSave: false, isSave: false,
isAGENT: JSON.parse(window.localStorage.getItem('handleUser')).isAGENT, isAGENT: JSON.parse(window.localStorage.getItem('handleUser')).isAGENT,
isMultiRole: false, // 能否选择多角色 isMultiRole: false, // 能否选择多角色
isSelected: false, isSelected: false,
hasMultiRole: false, // 是否有第二个角色 hasMultiRole: false, // 是否有第二个角色
...@@ -392,35 +393,35 @@ export default { ...@@ -392,35 +393,35 @@ export default {
}, // 查询出来的第二个角色 }, // 查询出来的第二个角色
multiRoleList: [], // 查询出来的多角色 multiRoleList: [], // 查询出来的多角色
baseInfo: { baseInfo: {
bp_type_n: '', bp_type: 'FACTORY',
academic_background_n: '', bp_type_n: '营销人员',
marital_status_n: '', // academic_background_n: '',
bp_type: '', // marital_status_n: '',
bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class || 'NP', bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class || 'NP',
bp_name: '', bp_name: '',
province_name: '', // province_name: '',
province_id: '', // province_id: '',
city_name: '', // city_name: '',
city_id: '', // city_id: '',
id_card_no: null, id_card_no: null,
id_card_date_from: '', // 身份证有效期从 id_card_date_from: '', // 身份证有效期从
id_card_date_to: '', // 身份证有效期到 id_card_date_to: '', // 身份证有效期到
cell_phone: window.localStorage.getItem('user_phone'), cell_phone: window.localStorage.getItem('user_phone'),
living_address: '', living_address: '',
address_on_resident_booklit: '', address_on_resident_booklit: '',
marital_status: '', // marital_status: '',
academic_background: '', // academic_background: '',
bp_name_sp: '', // bp_name_sp: '',
id_card_no_sp: '', // 配偶身份证号 // id_card_no_sp: '', // 配偶身份证号
id_card_date_from_sp: '', // 配偶身份证有效期从 // id_card_date_from_sp: '', // 配偶身份证有效期从
id_card_date_to_sp: '', // 配偶身份证有效期到 // id_card_date_to_sp: '', // 配偶身份证有效期到
district_id: '', // district_id: '',
district_name: '', // district_name: '',
spouse_phone: '', // spouse_phone: '',
working_place_sp: '', // working_place_sp: '',
address_sp: '', // address_sp: '',
user_phone: window.localStorage.user_phone, user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.handleUser).bp_id bp_id: JSON.parse(window.localStorage.handleUser).bp_id
}, },
idCardFront: '', // 身份证正面图片 idCardFront: '', // 身份证正面图片
idCardBack: '', // 身份证反面图片 idCardBack: '', // 身份证反面图片
...@@ -513,10 +514,10 @@ export default { ...@@ -513,10 +514,10 @@ export default {
vm.dowload_list = [] // 下载图片列表 vm.dowload_list = [] // 下载图片列表
vm.img_url = {} vm.img_url = {}
vm.baseInfo = { vm.baseInfo = {
bp_type_n: '', bp_type: 'FACTORY',
bp_type_n: '营销人员',
academic_background_n: '', academic_background_n: '',
marital_status_n: '', marital_status_n: '',
bp_type: '',
bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class || 'NP', bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class || 'NP',
bp_name: '', bp_name: '',
province_name: '', province_name: '',
...@@ -594,10 +595,10 @@ export default { ...@@ -594,10 +595,10 @@ export default {
vm.dowload_list = [] // 下载图片列表 vm.dowload_list = [] // 下载图片列表
vm.img_url = {} vm.img_url = {}
vm.baseInfo = { vm.baseInfo = {
bp_type_n: '', bp_type: 'FACTORY',
bp_type_n: '营销人员',
academic_background_n: '', academic_background_n: '',
marital_status_n: '', marital_status_n: '',
bp_type: '',
bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class || 'NP', bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class || 'NP',
bp_name: '', bp_name: '',
province_name: '', province_name: '',
...@@ -786,10 +787,10 @@ export default { ...@@ -786,10 +787,10 @@ export default {
} }
}, },
loadItemList(flag) { // flag用来判断是否需要加载图片文件 loadItemList(flag) { // flag用来判断是否需要加载图片文件
let vm = this let vm = this
let bpId = JSON.parse(window.localStorage.getItem('handleUser')).bp_id let bpId = JSON.parse(window.localStorage.getItem('handleUser')).bp_id
if (bpId === 'undefined') bpId = null; if (bpId === 'undefined') bpId = null;
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
let param = { let param = {
master: { master: {
...@@ -824,7 +825,7 @@ export default { ...@@ -824,7 +825,7 @@ export default {
vm.cddItemList.push(item) vm.cddItemList.push(item)
} }
}) })
// 查询图片 // 查询图片
if (flag) { if (flag) {
console.log(listTemp); console.log(listTemp);
listTemp.forEach((item, index) => { listTemp.forEach((item, index) => {
...@@ -982,11 +983,42 @@ export default { ...@@ -982,11 +983,42 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.submitBind()
// vm.$router.push({
// name: 'NPInvoiceInfo'
// })
} else {
hlsPopup.showError(res.message)
}
})
},
async submitBind () {
let vm = this
let url = $config.basePath + 'bp_bind_submit'
let param = {
master: {
bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
bp_class: 'NP',
bp_type: JSON.parse(window.localStorage.getItem('handleUser')).bp_type,
business_num: window.localStorage.getItem('business_num'),
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.hlsPopup.showSuccess('提交成功')
vm.$router.push({
name: 'MyInfo',
})
} else if (res.result === 'P') {
vm.hlsPopup.showLongCenter(res.message)
vm.$router.push({ vm.$router.push({
name: 'NPInvoiceInfo' name: 'MyInfo',
}) })
} else { } else {
hlsPopup.showError(res.message) vm.hlsPopup.showLongCenter(res.message)
} }
}) })
}, },
...@@ -1018,14 +1050,16 @@ export default { ...@@ -1018,14 +1050,16 @@ export default {
let vm = this let vm = this
if (!vm.baseInfo.bp_type) { if (!vm.baseInfo.bp_type) {
vm.hlsPopup.showLongCenter('客户类型不能为空!') vm.hlsPopup.showLongCenter('客户类型不能为空!')
} else if (vm.isPaople && !vm.baseInfo.agent_username) { }
vm.hlsPopup.showLongCenter('业务经办员工代码不能为空!') // else if (vm.isPaople && !vm.baseInfo.agent_username) {
} else if ( // vm.hlsPopup.showLongCenter('业务经办员工代码不能为空!')
!vm.isPaople && // } else if (
!vm.baseInfo.business_license_num // !vm.isPaople &&
) { // !vm.baseInfo.business_license_num
vm.hlsPopup.showLongCenter('营业执照号不能为空!') // ) {
} else if (!vm.baseInfo.bp_name) { // vm.hlsPopup.showLongCenter('营业执照号不能为空!')
// }
else if (!vm.baseInfo.bp_name) {
vm.hlsPopup.showLongCenter('客户姓名不能为空!') vm.hlsPopup.showLongCenter('客户姓名不能为空!')
} else if (!vm.baseInfo.id_card_no) { } else if (!vm.baseInfo.id_card_no) {
vm.hlsPopup.showLongCenter('身份证号不能为空!') vm.hlsPopup.showLongCenter('身份证号不能为空!')
...@@ -1039,44 +1073,46 @@ export default { ...@@ -1039,44 +1073,46 @@ export default {
vm.hlsPopup.showLongCenter('联系地址不能为空!') vm.hlsPopup.showLongCenter('联系地址不能为空!')
} else if (!vm.baseInfo.address_on_resident_booklit) { } else if (!vm.baseInfo.address_on_resident_booklit) {
vm.hlsPopup.showLongCenter('户籍地址不能为空!') vm.hlsPopup.showLongCenter('户籍地址不能为空!')
} else if (!vm.baseInfo.province_name) { }
vm.hlsPopup.showLongCenter('业务办理省不能为空!') // else if (!vm.baseInfo.province_name) {
} else if (!vm.baseInfo.city_name) { // vm.hlsPopup.showLongCenter('业务办理省不能为空!')
vm.hlsPopup.showLongCenter('业务办理市不能为空!') // } else if (!vm.baseInfo.city_name) {
} else if (!vm.baseInfo.capital) { // vm.hlsPopup.showLongCenter('业务办理市不能为空!')
vm.hlsPopup.showLongCenter('资产信息不能为空!') // } else if (!vm.baseInfo.capital) {
} else if (!vm.baseInfo.academic_background) { // vm.hlsPopup.showLongCenter('资产信息不能为空!')
vm.hlsPopup.showLongCenter('学历不能为空!') // } else if (!vm.baseInfo.academic_background) {
} else if (!vm.baseInfo.marital_status && (((vm.baseInfo.bp_type === 'TENANT' || vm.baseInfo.bp_type === 'GUTA') && !vm.multipleRole) || vm.multipleRole === 'TENANT' || vm.multipleRole === 'GUTA')) { // vm.hlsPopup.showLongCenter('学历不能为空!')
vm.hlsPopup.showLongCenter('婚姻状况不能为空!') // } else if (!vm.baseInfo.marital_status && (((vm.baseInfo.bp_type === 'TENANT' || vm.baseInfo.bp_type === 'GUTA') && !vm.multipleRole) || vm.multipleRole === 'TENANT' || vm.multipleRole === 'GUTA')) {
} else if (vm.baseInfo.marital_status_n === '已婚' && !vm.baseInfo.bp_name_sp) { // vm.hlsPopup.showLongCenter('婚姻状况不能为空!')
vm.hlsPopup.showLongCenter('配偶姓名不能为空!') // } else if (vm.baseInfo.marital_status_n === '已婚' && !vm.baseInfo.bp_name_sp) {
} else if (vm.baseInfo.marital_status_n === '已婚' && !vm.baseInfo.id_card_no_sp) { // vm.hlsPopup.showLongCenter('配偶姓名不能为空!')
vm.hlsPopup.showLongCenter('配偶身份证号不能为空!') // } else if (vm.baseInfo.marital_status_n === '已婚' && !vm.baseInfo.id_card_no_sp) {
} else if ( // vm.hlsPopup.showLongCenter('配偶身份证号不能为空!')
vm.baseInfo.marital_status_n === '已婚' && // } else if (
!vm.baseInfo.id_card_date_from_sp // vm.baseInfo.marital_status_n === '已婚' &&
) { // !vm.baseInfo.id_card_date_from_sp
vm.hlsPopup.showLongCenter('配偶身份证有效期从不能为空!') // ) {
} else if ( // vm.hlsPopup.showLongCenter('配偶身份证有效期从不能为空!')
vm.baseInfo.marital_status_n === '已婚' && // } else if (
!vm.baseInfo.id_card_date_to_sp // vm.baseInfo.marital_status_n === '已婚' &&
) { // !vm.baseInfo.id_card_date_to_sp
vm.hlsPopup.showLongCenter('配偶身份证有效期到不能为空!') // ) {
} else if (vm.baseInfo.marital_status_n === '已婚' && !vm.baseInfo.spouse_phone) { // vm.hlsPopup.showLongCenter('配偶身份证有效期到不能为空!')
vm.hlsPopup.showLongCenter('配偶手机号不能为空!') // } else if (vm.baseInfo.marital_status_n === '已婚' && !vm.baseInfo.spouse_phone) {
} else if ( // vm.hlsPopup.showLongCenter('配偶手机号不能为空!')
vm.baseInfo.marital_status_n === '已婚' && // } else if (
!vm.baseInfo.working_place_sp // vm.baseInfo.marital_status_n === '已婚' &&
) { // !vm.baseInfo.working_place_sp
vm.hlsPopup.showLongCenter('配偶工作单位不能为空!') // ) {
} else if (vm.baseInfo.marital_status_n === '已婚' && !vm.baseInfo.address_sp) { // vm.hlsPopup.showLongCenter('配偶工作单位不能为空!')
vm.hlsPopup.showLongCenter('配偶联系地址不能为空!') // } else if (vm.baseInfo.marital_status_n === '已婚' && !vm.baseInfo.address_sp) {
} else if (!vm.hlsUtil.phoneNumber(vm.baseInfo.cell_phone)) { // vm.hlsPopup.showLongCenter('配偶联系地址不能为空!')
vm.hlsPopup.showLongCenter('手机号码有误!') // } else if (!vm.hlsUtil.phoneNumber(vm.baseInfo.cell_phone)) {
} else if (vm.baseInfo.marital_status_n === '已婚' && !vm.hlsUtil.phoneNumber(vm.baseInfo.spouse_phone)) { // vm.hlsPopup.showLongCenter('手机号码有误!')
vm.hlsPopup.showLongCenter('配偶手机号码有误!') // } else if (vm.baseInfo.marital_status_n === '已婚' && !vm.hlsUtil.phoneNumber(vm.baseInfo.spouse_phone)) {
} else { // vm.hlsPopup.showLongCenter('配偶手机号码有误!')
// }
else {
let bpId = await vm.saveProtocol() let bpId = await vm.saveProtocol()
return bpId; return bpId;
} }
...@@ -1520,7 +1556,7 @@ export default { ...@@ -1520,7 +1556,7 @@ export default {
list: vm.typeList, list: vm.typeList,
code: 'bp_type', code: 'bp_type',
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
vm.baseInfo.bp_type = obj.bp_type vm.baseInfo.bp_type = obj.bp_type
vm.baseInfo.bp_type_n = obj.bp_type_n vm.baseInfo.bp_type_n = obj.bp_type_n
}, },
...@@ -1723,7 +1759,17 @@ export default { ...@@ -1723,7 +1759,17 @@ export default {
width: '100% !important', width: '100% !important',
}) })
}, },
}, choseTimes (format, type) {
let vm = this
vm.hlsPopup.showTime({
nowDate: (new Date()).format('yyyy-MM-dd'),
format: format,
callback: (date) => {
vm.baseInfo[type] = date
},
})
},
}
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn" @click="$routeGo()"> <div slot="left" class="h-header-btn" @click="$routeGo()">
<img src="@/assets/userBind/arrow.png"> <img src="@/assets/userBind/arrow.png">
<span>银行信息</span> <span>收款账户信息</span>
</div> </div>
</h-header> </h-header>
<div class="info"> <div class="info">
...@@ -59,45 +59,43 @@ ...@@ -59,45 +59,43 @@
<span>添加银行卡</span> <span>添加银行卡</span>
<img src="@/assets/userBind/close.png" @click="hideModal"> <img src="@/assets/userBind/close.png" @click="hideModal">
</div> </div>
<img <!-- <img-->
v-if="!bankImg" <!-- v-if="!bankImg"-->
src="@/assets/userBind/addBack.png" <!-- src="@/assets/userBind/addBack.png"-->
class="addBack" <!-- class="addBack"-->
@click="ocrShow('bankCard', '')" <!-- @click="ocrShow('bankCard', '')"-->
> <!-- >-->
<img <!-- <img-->
v-if="bankImg" <!-- v-if="bankImg"-->
:src="bankImg" <!-- :src="bankImg"-->
class="addBack" <!-- class="addBack"-->
style="height: 38%;" <!-- style="height: 38%;"-->
@click="ocrShow('bankCard', '')" <!-- @click="ocrShow('bankCard', '')"-->
> <!-- >-->
<list-item :item-height="44" class="card-Info"> <list-item :item-height="44" class="card-Info" style="margin-top: 50px;">
<item> <item>
<div slot="name">银行卡卡号</div> <div slot="name">账户名称</div>
<input slot="content" v-model="bank_lists.bank_account_name" placeholder="请输入账户名称">
</item>
<item>
<div slot="name">开户行</div>
<input <input
slot="content" slot="content"
v-model="bank_lists.bank_account_num" v-model="bank_lists.bank_full_name"
readonly placeholder="请输入开户行"
placeholder="识别银行卡自动填充"
> >
</item> </item>
<item> <item>
<div slot="name">账户姓名</div> <div slot="name">银行账号</div>
<input slot="content" v-model="bank_lists.bank_account_name" placeholder="请输入账户名称">
</item>
<item>
<div slot="name">银行名称</div>
<input <input
slot="content" slot="content"
v-model="bank_lists.bank_full_name" v-model="bank_lists.bank_account_num"
readonly placeholder="请输入银行账号"
placeholder="识别银行卡自动填充"
> >
</item> </item>
<item> <item>
<div slot="name">支行名称</div> <div slot="name">联行号</div>
<input slot="content" v-model="bank_lists.bank_branch_name" placeholder="请输入支行名称"> <input slot="content" v-model="bank_lists.bank_branch_name" placeholder="请输入联行号">
</item> </item>
</list-item> </list-item>
</div> </div>
...@@ -165,9 +163,9 @@ export default { ...@@ -165,9 +163,9 @@ export default {
let param = { let param = {
bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
if (window.localStorage.getItem('authFlag') === 'true') { if (window.localStorage.getItem('authFlag') === 'true') {
vm.handSubmit() vm.handSubmit()
} else { } else {
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
...@@ -297,55 +295,55 @@ export default { ...@@ -297,55 +295,55 @@ export default {
content: '您确认提交吗?', content: '您确认提交吗?',
onConfirm: d => { onConfirm: d => {
if (d) { if (d) {
if (vm.bp_identity === 'NP_NO' || vm.bp_identity === 'ORG_L_NO' || vm.bp_identity === 'ORG_AUTH_NO' || !vm.bp_identity) { // if (vm.bp_identity === 'NP_NO' || vm.bp_identity === 'ORG_L_NO' || vm.bp_identity === 'ORG_AUTH_NO' || !vm.bp_identity) {
vm.hlsPopup.showConfirm({ // vm.hlsPopup.showConfirm({
title: '提示', // title: '提示',
content: '当前用户尚未认证,是否需要认证', // content: '当前用户尚未认证,是否需要认证',
cancelText: '直接提交', // cancelText: '直接提交',
confirmText: '先去认证', // confirmText: '先去认证',
onConfirm: c => { // onConfirm: c => {
if (c) { // if (c) {
// 只有自然人需要认证 // // 只有自然人需要认证
let url = process.env.basePath + 'bp_query' // let url = process.env.basePath + 'bp_query'
let param = { // let param = {
bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id, // bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} // }
hlsPopup.showLoading('请稍候') // hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then((result) => { // vm.hlsHttp.post(url, param).then((result) => {
hlsPopup.hideLoading() // hlsPopup.hideLoading()
if (result.result === 'S') { // if (result.result === 'S') {
let data = result.lists[0] // let data = result.lists[0]
cordova.plugins.IdCardPlugin.idCardIdentify( // cordova.plugins.IdCardPlugin.idCardIdentify(
{ // {
idNum: data.id_card_no, // idNum: data.id_card_no,
idName: data.bp_name, // idName: data.bp_name,
phoneNum: window.localStorage.user_phone, // phoneNum: window.localStorage.user_phone,
}, // },
function (suc) { // function (suc) {
let success = JSON.parse(suc) // let success = JSON.parse(suc)
if (success.code === 1) { // if (success.code === 1) {
vm.getNpCertificationUrl() // vm.getNpCertificationUrl()
} // }
}, // },
function (reason) { // function (reason) {
let error = JSON.parse(reason) // let error = JSON.parse(reason)
vm.hlsPopup.showLongCenter('认证失败: ' + error.message) // vm.hlsPopup.showLongCenter('认证失败: ' + error.message)
} // }
) // )
} else { // } else {
vm.hlsPopup.showLongCenter(result.message) // vm.hlsPopup.showLongCenter(result.message)
} // }
}) // })
} else { // } else {
// 不校验的也直接提交 // // 不校验的也直接提交
vm.submitBind() // vm.submitBind()
} // }
}, // },
}) // })
} else { // } else {
// 已认证过的用户直接提交 // 已认证过的用户直接提交
vm.submitBind() vm.submitBind()
} // }
} }
}, },
}) })
...@@ -486,7 +484,7 @@ export default { ...@@ -486,7 +484,7 @@ export default {
// 银行卡验证this.hlsUtil.isBankAccount(this.bank.bank_account_num) // 银行卡验证this.hlsUtil.isBankAccount(this.bank.bank_account_num)
if (this.hlsUtil.isBankAccount(this.bank_lists.bank_account_num)) { if (this.hlsUtil.isBankAccount(this.bank_lists.bank_account_num)) {
this.bank_card_flag = false this.bank_card_flag = false
this.hlsPopup.showLongCenter('请输入正确银行号!') this.hlsPopup.showLongCenter('请输入正确银行号!')
} }
if (this.bank_card_flag) { if (this.bank_card_flag) {
this.hlsPopup.showLoading('请稍候') this.hlsPopup.showLoading('请稍候')
......
<!-- <!--
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @Author: your name * @Author: your name
* @Date: 2019-09-19 09:31:19 * @Date: 2019-09-19 09:31:19
* @LastEditTime : 2019-12-24 15:36:17 * @LastEditTime : 2019-12-24 15:36:17
* @LastEditors : Please set LastEditors * @LastEditors : Please set LastEditors
...@@ -17,39 +17,39 @@ ...@@ -17,39 +17,39 @@
<h-content class="content"> <h-content class="content">
<div> <div>
<list-item :item-height="44"> <list-item :item-height="44">
<item v-if="!isApproved" :showArrow="true"> <!-- <item v-if="!isApproved" :showArrow="true">-->
<div slot="name" class="font-color required">客户类型</div> <!-- <div slot="name" class="font-color required">客户类型</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.bp_type_n" <!-- v-model="baseInfo.bp_type_n"-->
placeholder="请选择" <!-- placeholder="请选择"-->
type="text" <!-- type="text"-->
readonly <!-- readonly-->
@click="selectIdTypeOnly()" <!-- @click="selectIdTypeOnly()"-->
> <!-- >-->
</item> <!-- </item>-->
<item v-if="isApproved&&!isMultiRole"> <item>
<div slot="name" class="required">客户类型</div> <div slot="name" class="required">客户类型</div>
<span slot="content">{{ baseInfo.bp_type_n }}</span> <span slot="content">{{ baseInfo.bp_type_n }}</span>
</item> </item>
<item v-if="(isApproved && isMultiRole&&!hasMultiRole)" :showArrow="true" @click.native="selectIdType"> <!-- <item v-if="(isApproved && isMultiRole&&!hasMultiRole)" :showArrow="true" @click.native="selectIdType">-->
<div slot="name" class="required">客户类型</div> <!-- <div slot="name" class="required">客户类型</div>-->
<div slot="content" class="typeBP"> <!-- <div slot="content" class="typeBP">-->
<span>{{ baseInfo.bp_type_n }}</span> <!-- <span>{{ baseInfo.bp_type_n }}</span>-->
<span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span> <!-- <span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>-->
<span v-for="(item,index) in multiBpTypeSelectList" :key="item.bp_type"> <!-- <span v-for="(item,index) in multiBpTypeSelectList" :key="item.bp_type">-->
{{ item.bp_type_n }} <!-- {{ item.bp_type_n }}-->
<img v-if="item.bp_type_n" src="@/assets/userBind/deleteTag.png" @click.stop @click="deleteBP(item)" > <!-- <img v-if="item.bp_type_n" src="@/assets/userBind/deleteTag.png" @click.stop @click="deleteBP(item)" >-->
</span> <!-- </span>-->
</div> <!-- </div>-->
</item> <!-- </item>-->
<item v-if="isApproved&&isMultiRole&&hasMultiRole" :showArrow="true"> <!-- <item v-if="isApproved&&isMultiRole&&hasMultiRole" :showArrow="true">-->
<div slot="name" class="required">客户类型</div> <!-- <div slot="name" class="required">客户类型</div>-->
<div slot="content" class="typeBP"> <!-- <div slot="content" class="typeBP">-->
<span>{{ baseInfo.bp_type_n }}</span> <!-- <span>{{ baseInfo.bp_type_n }}</span>-->
<span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span> <!-- <span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>-->
</div> <!-- </div>-->
</item> <!-- </item>-->
<item v-if="bp_type_flag"> <item v-if="bp_type_flag">
<div slot="name" class="required">业务经办人</div> <div slot="name" class="required">业务经办人</div>
<input slot="content" v-model="baseInfo.agent_username" placeholder="请输入业务经办员工代码" > <input slot="content" v-model="baseInfo.agent_username" placeholder="请输入业务经办员工代码" >
...@@ -66,27 +66,27 @@ ...@@ -66,27 +66,27 @@
> --> > -->
<!-- <input v-if="!bpClass_flag" slot="content" :placeholder="type" v-model="baseInfo.business_license_num" > --> <!-- <input v-if="!bpClass_flag" slot="content" :placeholder="type" v-model="baseInfo.business_license_num" > -->
<!-- </item> --> <!-- </item> -->
<button v-if="isAddNewType" class="type-save" @click="addNewRole">新增角色</button> <!-- <button v-if="isAddNewType" class="type-save" @click="addNewRole">新增角色</button>-->
</list-item> </list-item>
<div class="userInfo martop">企业信息</div> <div class="userInfo martop">企业信息</div>
<div class="upload-id-card"> <!-- <div class="upload-id-card">-->
<span class="font-color">营业执照照片上传</span> <!-- <span class="font-color">营业执照照片上传</span>-->
<div class="upload-box1"> <!-- <div class="upload-box1">-->
<div v-if="!licenseImg" @click="ocrShow('license', '')"> <!-- <div v-if="!licenseImg" @click="ocrShow('license', '')">-->
<img src="@/assets/userBind/camera.png"> <!-- <img src="@/assets/userBind/camera.png">-->
</div> <!-- </div>-->
<div <!-- <div-->
v-if="licenseImg && !isApproved" style="width: 100%;height: 100%" class="licenseBox" <!-- v-if="licenseImg && !isApproved" style="width: 100%;height: 100%" class="licenseBox"-->
@click="ocrShow('license', '')"> <!-- @click="ocrShow('license', '')">-->
<img :src="licenseImg" style="width: 100%;height: 100%;margin: 0"> <!-- <img :src="licenseImg" style="width: 100%;height: 100%;margin: 0">-->
</div> <!-- </div>-->
<div v-if="isApproved" class="licenseBox"><!--v-if="licenseImg && isApproved"--> <!-- <div v-if="isApproved" class="licenseBox">&lt;!&ndash;v-if="licenseImg && isApproved"&ndash;&gt;-->
<img <!-- <img-->
v-if="licenseImg" :src="licenseImg" style="width: 100%;height: 100%;margin: 0" <!-- v-if="licenseImg" :src="licenseImg" style="width: 100%;height: 100%;margin: 0"-->
@click="showBigPicture(licenseImg)"> <!-- @click="showBigPicture(licenseImg)">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<!-- 营业执照识别信息 --> <!-- 营业执照识别信息 -->
...@@ -153,42 +153,42 @@ ...@@ -153,42 +153,42 @@
<div slot="name" class="required">资产信息</div> <div slot="name" class="required">资产信息</div>
<input slot="content" v-model="baseInfo.capital" placeholder="请输入资产信息" > <input slot="content" v-model="baseInfo.capital" placeholder="请输入资产信息" >
</item> </item>
<item :showArrow="true"> <!-- <item :showArrow="true">-->
<div slot="name" class="required">业务办理省</div> <!-- <div slot="name" class="required">业务办理省</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.province_name" <!-- v-model="baseInfo.province_name"-->
placeholder="请选择" <!-- placeholder="请选择"-->
type="text" <!-- type="text"-->
readonly <!-- readonly-->
onfocus="this.blur()" <!-- onfocus="this.blur()"-->
@click="selectProvince()" <!-- @click="selectProvince()"-->
> <!-- >-->
</item> <!-- </item>-->
<item :showArrow="true"> <!-- <item :showArrow="true">-->
<div slot="name" class="required">业务办理市</div> <!-- <div slot="name" class="required">业务办理市</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.city_name" <!-- v-model="baseInfo.city_name"-->
placeholder="请选择" <!-- placeholder="请选择"-->
type="text" <!-- type="text"-->
readonly <!-- readonly-->
onfocus="this.blur()" <!-- onfocus="this.blur()"-->
@click="selectCity()" <!-- @click="selectCity()"-->
> <!-- >-->
</item> <!-- </item>-->
<item :showArrow="true"> <!-- <item :showArrow="true">-->
<div slot="name" class="required">业务办理区/县</div> <!-- <div slot="name" class="required">业务办理区/县</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="baseInfo.district_name" <!-- v-model="baseInfo.district_name"-->
placeholder="请选择" <!-- placeholder="请选择"-->
type="text" <!-- type="text"-->
readonly <!-- readonly-->
onfocus="this.blur()" <!-- onfocus="this.blur()"-->
@click="selectDistrict()" <!-- @click="selectDistrict()"-->
> <!-- >-->
</item> <!-- </item>-->
<item :proportion="[2,2]"> <item :proportion="[2,2]">
<div slot="name" class="font-color required">经营地址</div> <div slot="name" class="font-color required">经营地址</div>
<textarea <textarea
...@@ -209,105 +209,105 @@ ...@@ -209,105 +209,105 @@
</item> </item>
</list-item> </list-item>
<!-- 法定代表人信息--> <!-- 法定代表人信息-->
<div class="userInfo types">法定代表人</div> <!-- <div class="userInfo types">法定代表人</div>-->
<div class="upload-id-cards"> <!-- <div class="upload-id-cards">-->
<span>身份证照片上传</span> <!-- <span>身份证照片上传</span>-->
<div class="upload-box"> <!-- <div class="upload-box">-->
<div v-if="!idCardFront" @click="ocrShow('idCard', 'front')"> <!-- <div v-if="!idCardFront" @click="ocrShow('idCard', 'front')">-->
<img src="@/assets/userBind/org/front.png"> <!-- <img src="@/assets/userBind/org/front.png">-->
<p>正面</p> <!-- <p>正面</p>-->
</div> <!-- </div>-->
<div v-if="idCardFront && !isApproved" @click="ocrShow('idCard', 'front')"> <!-- <div v-if="idCardFront && !isApproved" @click="ocrShow('idCard', 'front')">-->
<img :src="idCardFront" style="width: 100%;height: 100%;margin: 0"> <!-- <img :src="idCardFront" style="width: 100%;height: 100%;margin: 0">-->
</div> <!-- </div>-->
<div v-if="isApproved && idCardFront"> <!-- <div v-if="isApproved && idCardFront">-->
<img <!-- <img-->
v-if="idCardFront" :src="idCardFront" style="width: 100%;height: 100%;margin: 0" <!-- v-if="idCardFront" :src="idCardFront" style="width: 100%;height: 100%;margin: 0"-->
@click="showBigPicture(idCardFront)"> <!-- @click="showBigPicture(idCardFront)">-->
</div> <!-- </div>-->
<div v-if="!idCardBack" @click="ocrShow('idCard', 'back')"> <!-- <div v-if="!idCardBack" @click="ocrShow('idCard', 'back')">-->
<img src="@/assets/userBind/org/back.png"> <!-- <img src="@/assets/userBind/org/back.png">-->
<p>反面</p> <!-- <p>反面</p>-->
</div> <!-- </div>-->
<div v-if="idCardBack && !isApproved" @click="ocrShow('idCard', 'back')"> <!-- <div v-if="idCardBack && !isApproved" @click="ocrShow('idCard', 'back')">-->
<img :src="idCardBack" style="width: 100%;height: 100%;margin: 0"> <!-- <img :src="idCardBack" style="width: 100%;height: 100%;margin: 0">-->
</div> <!-- </div>-->
<div v-if="isApproved && idCardBack"> <!-- <div v-if="isApproved && idCardBack">-->
<img <!-- <img-->
v-if="idCardBack" :src="idCardBack" style="width: 100%;height: 100%;margin: 0" <!-- v-if="idCardBack" :src="idCardBack" style="width: 100%;height: 100%;margin: 0"-->
@click="showBigPicture(idCardBack)"> <!-- @click="showBigPicture(idCardBack)">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<list-item :item-height="44" class="second-part"> <!-- <list-item :item-height="44" class="second-part">-->
<item> <!-- <item>-->
<div slot="name" class="font-color required">姓名</div> <!-- <div slot="name" class="font-color required">姓名</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="legal_personMsg.bp_legal_name" <!-- v-model="legal_personMsg.bp_legal_name"-->
readonly <!-- readonly-->
placeholder="上传身份证自动填充" <!-- placeholder="上传身份证自动填充"-->
class="auto" <!-- class="auto"-->
> <!-- >-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="font-color required">身份证号</div> <!-- <div slot="name" class="font-color required">身份证号</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="legal_personMsg.id_card_no" <!-- v-model="legal_personMsg.id_card_no"-->
readonly <!-- readonly-->
placeholder="上传身份证自动填充" <!-- placeholder="上传身份证自动填充"-->
class="auto" <!-- class="auto"-->
> <!-- >-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="required">身份证有效期从</div> <!-- <div slot="name" class="required">身份证有效期从</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="legal_personMsg.id_card_date_from" <!-- v-model="legal_personMsg.id_card_date_from"-->
readonly <!-- readonly-->
placeholder="上传身份证自动填充" <!-- placeholder="上传身份证自动填充"-->
class="auto" <!-- class="auto"-->
> <!-- >-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="required">身份证有效期到</div> <!-- <div slot="name" class="required">身份证有效期到</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="legal_personMsg.id_card_date_to" <!-- v-model="legal_personMsg.id_card_date_to"-->
readonly <!-- readonly-->
placeholder="上传身份证自动填充" <!-- placeholder="上传身份证自动填充"-->
class="auto" <!-- class="auto"-->
> <!-- >-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="font-color required">手机号</div> <!-- <div slot="name" class="font-color required">手机号</div>-->
<input <!-- <input-->
slot="content" v-model="legal_personMsg.cell_phone" placeholder="请输入手机号" <!-- slot="content" v-model="legal_personMsg.cell_phone" placeholder="请输入手机号"-->
@blur="phoneCheck(legal_personMsg.cell_phone)"> <!-- @blur="phoneCheck(legal_personMsg.cell_phone)">-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="font-color required">联系地址</div> <!-- <div slot="name" class="font-color required">联系地址</div>-->
<textarea <!-- <textarea-->
ref="address" <!-- ref="address"-->
slot="content" <!-- slot="content"-->
v-model="legal_personMsg.living_address" <!-- v-model="legal_personMsg.living_address"-->
cols="30" <!-- cols="30"-->
rows="1" <!-- rows="1"-->
placeholder="请输入联系地址" <!-- placeholder="请输入联系地址"-->
@input="addAddressRows(legal_personMsg.living_address)" <!-- @input="addAddressRows(legal_personMsg.living_address)"-->
/> <!-- />-->
</item> <!-- </item>-->
</list-item> <!-- </list-item>-->
<!-- 授权切换 --> <!-- 授权切换 -->
<div class="authorize"> <!-- <div class="authorize">-->
<p class="authorize-select font-color">是否授权</p> <!-- <p class="authorize-select font-color">是否授权</p>-->
<div class="authorize-checklist" @click="authorizeChange"> <!-- <div class="authorize-checklist" @click="authorizeChange">-->
<div v-if="flag"/> <!-- <div v-if="flag"/>-->
<img v-if="!flag" src="@/assets/userBind/org/checklist.png" alt> <!-- <img v-if="!flag" src="@/assets/userBind/org/checklist.png" alt>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div v-if="!flag" class="userInfo types">授权人信息</div> <div v-if="!flag" class="userInfo types">授权人信息</div>
<div v-if="!flag" class="upload-id-cards"> <div v-if="!flag" class="upload-id-cards">
<span>身份证照片上传</span> <span>身份证照片上传</span>
...@@ -341,77 +341,77 @@ ...@@ -341,77 +341,77 @@
</div> </div>
</div> </div>
<!-- 已授权 --> <!-- 已授权 -->
<list-item v-if="!flag" :item-height="44" class="second-part"> <!-- <list-item v-if="!flag" :item-height="44" class="second-part">-->
<item> <!-- <item>-->
<div slot="name" class="font-color required">姓名</div> <!-- <div slot="name" class="font-color required">姓名</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="authMsg.auth_person_name" <!-- v-model="authMsg.auth_person_name"-->
readonly <!-- readonly-->
placeholder="上传身份证自动填充" <!-- placeholder="上传身份证自动填充"-->
class="auto" <!-- class="auto"-->
> <!-- >-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="font-color required">身份证号</div> <!-- <div slot="name" class="font-color required">身份证号</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="authMsg.auth_person_id_card" <!-- v-model="authMsg.auth_person_id_card"-->
readonly <!-- readonly-->
placeholder="上传身份证自动填充" <!-- placeholder="上传身份证自动填充"-->
class="auto" <!-- class="auto"-->
> <!-- >-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="required">身份证有效期从</div> <!-- <div slot="name" class="required">身份证有效期从</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="authMsg.auth_id_card_date_from" <!-- v-model="authMsg.auth_id_card_date_from"-->
readonly <!-- readonly-->
placeholder="上传身份证自动填充" <!-- placeholder="上传身份证自动填充"-->
class="auto" <!-- class="auto"-->
> <!-- >-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="required">身份证有效期到</div> <!-- <div slot="name" class="required">身份证有效期到</div>-->
<input <!-- <input-->
slot="content" <!-- slot="content"-->
v-model="authMsg.auth_id_card_date_to" <!-- v-model="authMsg.auth_id_card_date_to"-->
readonly <!-- readonly-->
placeholder="上传身份证自动填充" <!-- placeholder="上传身份证自动填充"-->
class="auto" <!-- class="auto"-->
> <!-- >-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="font-color required">手机号</div> <!-- <div slot="name" class="font-color required">手机号</div>-->
<input <!-- <input-->
slot="content" v-model="authMsg.auth_cell_phone" placeholder="请输入手机号" <!-- slot="content" v-model="authMsg.auth_cell_phone" placeholder="请输入手机号"-->
@blur="phoneCheck(authMsg.auth_cell_phone)"> <!-- @blur="phoneCheck(authMsg.auth_cell_phone)">-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="font-color required">公司职务</div> <!-- <div slot="name" class="font-color required">公司职务</div>-->
<input slot="content" v-model="authMsg.auth_person_position" placeholder="请输入公司职务"> <!-- <input slot="content" v-model="authMsg.auth_person_position" placeholder="请输入公司职务">-->
</item> <!-- </item>-->
<item> <!-- <item>-->
<div slot="name" class="font-color required">授权事项</div> <!-- <div slot="name" class="font-color required">授权事项</div>-->
<input slot="content" v-model="authMsg.auth_person_matter" placeholder="请输入授权事项"> <!-- <input slot="content" v-model="authMsg.auth_person_matter" placeholder="请输入授权事项">-->
</item> <!-- </item>-->
</list-item> <!-- </list-item>-->
<div v-if="!flag" class="upload-id-card" style="margin-bottom: 30px;"> <!-- <div v-if="!flag" class="upload-id-card" style="margin-bottom: 30px;">-->
<span>授权书证件上传</span> <!-- <span>授权书证件上传</span>-->
<div class="upload-box1"> <!-- <div class="upload-box1">-->
<div v-if="!laImg" @click="LaUpload()"> <!-- <div v-if="!laImg" @click="LaUpload()">-->
<img src="@/assets/userBind/camera.png"> <!-- <img src="@/assets/userBind/camera.png">-->
</div> <!-- </div>-->
<div v-if="laImg" class="licenseBox" @click="LaUpload()"> <!-- <div v-if="laImg" class="licenseBox" @click="LaUpload()">-->
<img :src="laImg" style="width: 100%;height: 100%;margin: 0"> <!-- <img :src="laImg" style="width: 100%;height: 100%;margin: 0">-->
</div> <!-- </div>-->
<!-- <div v-if="isApproved" class="licenseBox"> <!-- &lt;!&ndash; <div v-if="isApproved" class="licenseBox">-->
<img v-if="laImg" :src="laImg" style="width: 100%;height: 100%;margin: 0" @click="showBigPicture(laImg)"> <!-- <img v-if="laImg" :src="laImg" style="width: 100%;height: 100%;margin: 0" @click="showBigPicture(laImg)">-->
</div> --> <!-- </div> &ndash;&gt;-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<!-- <!--
<div v-if="from&&isApproved&&isAGENT" class="tax" @click="changeUndertake"> <div v-if="from&&isApproved&&isAGENT" class="tax" @click="changeUndertake">
<img src="@/assets/userBind/tax.png" class="left-img"> <img src="@/assets/userBind/tax.png" class="left-img">
...@@ -500,14 +500,14 @@ export default { ...@@ -500,14 +500,14 @@ export default {
}, },
baseInfo: { baseInfo: {
agent_username: '', agent_username: '',
district_id: '', // district_id: '',
district_name: '', // district_name: '',
province_name: '', // province_name: '',
province_id: '', // province_id: '',
city_name: '', // city_name: '',
city_id: '', // city_id: '',
bp_type: '', bp_type: 'FACTORY',
bp_type_n: '', bp_type_n: '主机厂',
bp_name: '', bp_name: '',
phone: '', phone: '',
auth_flag: 'N', auth_flag: 'N',
...@@ -640,14 +640,14 @@ export default { ...@@ -640,14 +640,14 @@ export default {
window.localStorage.setItem('from', true) window.localStorage.setItem('from', true)
vm.baseInfo = { vm.baseInfo = {
agent_username: '', agent_username: '',
district_id: '', // district_id: '',
district_name: '', // district_name: '',
province_name: '', // province_name: '',
province_id: '', // province_id: '',
city_name: '', // city_name: '',
city_id: '', // city_id: '',
bp_type: '', bp_type: 'FACTORY',
bp_type_n: '', bp_type_n: '主机厂',
bp_name: '', bp_name: '',
phone: '', phone: '',
auth_flag: 'N', auth_flag: 'N',
...@@ -731,14 +731,14 @@ export default { ...@@ -731,14 +731,14 @@ export default {
vm.authidCardBackUpload = '' vm.authidCardBackUpload = ''
vm.baseInfo = { vm.baseInfo = {
agent_username: '', agent_username: '',
district_id: '', // district_id: '',
district_name: '', // district_name: '',
province_name: '', // province_name: '',
province_id: '', // province_id: '',
city_name: '', // city_name: '',
city_id: '', // city_id: '',
bp_type: '', bp_type: 'FACTORY',
bp_type_n: '', bp_type_n: '主机厂',
bp_name: '', bp_name: '',
phone: '', phone: '',
auth_flag: 'N', auth_flag: 'N',
...@@ -1072,14 +1072,13 @@ export default { ...@@ -1072,14 +1072,13 @@ export default {
window.localStorage.setItem('authFlag', this.flag) window.localStorage.setItem('authFlag', this.flag)
if (!this.flag) { // 已授权 if (!this.flag) { // 已授权
this.baseInfo.auth_flag = 'Y' this.baseInfo.auth_flag = 'Y'
this.lastInfo = {...this.baseInfo, ...this.legal_personMsg, ...this.authMsg} this.lastInfo = {...this.baseInfo}
this.saveInfo = {...this.lastInfo} this.saveInfo = {...this.lastInfo}
} else { // 未授权 } else { // 未授权
this.baseInfo.auth_flag = 'N' this.baseInfo.auth_flag = 'N'
this.lastInfo = {...this.baseInfo, ...this.legal_personMsg} this.lastInfo = {...this.baseInfo}
this.saveInfo = { this.saveInfo = {
...this.lastInfo, ...this.lastInfo,
...this.authMsg,
} }
} }
let vm = this let vm = this
...@@ -1089,14 +1088,14 @@ export default { ...@@ -1089,14 +1088,14 @@ export default {
console.log(this.lastInfo) console.log(this.lastInfo)
delete this.lastInfo.business_license_num delete this.lastInfo.business_license_num
delete this.lastInfo.id_card_name delete this.lastInfo.id_card_name
if (!vm.baseInfo.province_name) { // if (!vm.baseInfo.province_name) {
vm.hlsPopup.showLongCenter('业务办理省不能为空!') // vm.hlsPopup.showLongCenter('业务办理省不能为空!')
return // return
} // }
if (!vm.baseInfo.city_name) { // if (!vm.baseInfo.city_name) {
vm.hlsPopup.showLongCenter('业务办理市不能为空!') // vm.hlsPopup.showLongCenter('业务办理市不能为空!')
return // return
} // }
if (!vm.baseInfo.capital) { if (!vm.baseInfo.capital) {
vm.hlsPopup.showLongCenter('资产信息不能为空!') vm.hlsPopup.showLongCenter('资产信息不能为空!')
return return
...@@ -1109,15 +1108,15 @@ export default { ...@@ -1109,15 +1108,15 @@ export default {
for (var key in vm.lastInfo) { for (var key in vm.lastInfo) {
if (key !== 'bp_class' && !vm.lastInfo[key] && key !== 'phone') { if (key !== 'bp_class' && !vm.lastInfo[key] && key !== 'phone') {
switch (key) { switch (key) {
case 'province_id': // case 'province_id':
vm.hlsPopup.showLongCenter('请选择省份') // vm.hlsPopup.showLongCenter('请选择省份')
break // break
case 'city_id': // case 'city_id':
vm.hlsPopup.showLongCenter('请选择城市') // vm.hlsPopup.showLongCenter('请选择城市')
break // break
case 'district_id': // case 'district_id':
vm.hlsPopup.showLongCenter('请选择区县') // vm.hlsPopup.showLongCenter('请选择区县')
break // break
case 'bp_type': case 'bp_type':
vm.hlsPopup.showLongCenter('客户类型未填写') vm.hlsPopup.showLongCenter('客户类型未填写')
break break
...@@ -1145,47 +1144,50 @@ export default { ...@@ -1145,47 +1144,50 @@ export default {
case 'business_address': case 'business_address':
vm.hlsPopup.showLongCenter('经营地址未填写') vm.hlsPopup.showLongCenter('经营地址未填写')
break break
case 'id_card_no': // case 'id_card_no':
vm.hlsPopup.showLongCenter('身份证未填写') // vm.hlsPopup.showLongCenter('身份证未填写')
break // break
case 'cell_phone': // case 'cell_phone':
vm.hlsPopup.showLongCenter('手机号未填写') // vm.hlsPopup.showLongCenter('手机号未填写')
break // break
case 'living_address': // case 'living_address':
vm.hlsPopup.showLongCenter('联系地址未填写') // vm.hlsPopup.showLongCenter('联系地址未填写')
break // break
case 'bp_legal_name': // case 'bp_legal_name':
vm.hlsPopup.showLongCenter('法定代表人姓名未填写') // vm.hlsPopup.showLongCenter('法定代表人姓名未填写')
break // break
case 'id_card_date_from': // case 'id_card_date_from':
vm.hlsPopup.showLongCenter('身份证有效期从未填写') // vm.hlsPopup.showLongCenter('身份证有效期从未填写')
break // break
case 'id_card_date_to': // case 'id_card_date_to':
vm.hlsPopup.showLongCenter('身份证有效期到未填写') // vm.hlsPopup.showLongCenter('身份证有效期到未填写')
break // break
case 'auth_person_name': // case 'auth_person_name':
vm.hlsPopup.showLongCenter('授权人姓名未填写') // vm.hlsPopup.showLongCenter('授权人姓名未填写')
break // break
case 'auth_person_id_card': // case 'auth_person_id_card':
vm.hlsPopup.showLongCenter('授权人身份证号未填写') // vm.hlsPopup.showLongCenter('授权人身份证号未填写')
break // break
case 'auth_cell_phone': // case 'auth_cell_phone':
vm.hlsPopup.showLongCenter('授权人手机号未填写') // vm.hlsPopup.showLongCenter('授权人手机号未填写')
break // break
case 'auth_id_card_date_from': // case 'auth_id_card_date_from':
vm.hlsPopup.showLongCenter('授权人身份证有效期从未填写') // vm.hlsPopup.showLongCenter('授权人身份证有效期从未填写')
break // break
case 'auth_id_card_date_to': // case 'auth_id_card_date_to':
vm.hlsPopup.showLongCenter('授权人身份证有效期到未填写') // vm.hlsPopup.showLongCenter('授权人身份证有效期到未填写')
break // break
case 'user_phone': case 'user_phone':
vm.hlsPopup.showLongCenter('您还未登录') vm.hlsPopup.showLongCenter('您还未登录')
break break
case 'auth_person_position': // case 'auth_person_position':
vm.hlsPopup.showLongCenter('公司职务未填写') // vm.hlsPopup.showLongCenter('公司职务未填写')
break // break
case 'auth_person_matter': // case 'auth_person_matter':
vm.hlsPopup.showLongCenter('授权事项未填写') // vm.hlsPopup.showLongCenter('授权事项未填写')
// break
default:
vm.msg_flag = true
break break
} }
// vm.hlsPopup.showLongCenter('基本信息不完整!') // vm.hlsPopup.showLongCenter('基本信息不完整!')
...@@ -1200,14 +1202,14 @@ export default { ...@@ -1200,14 +1202,14 @@ export default {
} else { // 非业务经办人 } else { // 非业务经办人
delete this.lastInfo.agent_username delete this.lastInfo.agent_username
delete this.lastInfo.id_card_name delete this.lastInfo.id_card_name
if (!vm.baseInfo.province_name) { // if (!vm.baseInfo.province_name) {
vm.hlsPopup.showLongCenter('业务办理省不能为空!') // vm.hlsPopup.showLongCenter('业务办理省不能为空!')
return // return
} // }
if (!vm.baseInfo.city_name) { // if (!vm.baseInfo.city_name) {
vm.hlsPopup.showLongCenter('业务办理市不能为空!') // vm.hlsPopup.showLongCenter('业务办理市不能为空!')
return // return
} // }
if (!vm.baseInfo.capital) { if (!vm.baseInfo.capital) {
vm.hlsPopup.showLongCenter('资产信息不能为空!') vm.hlsPopup.showLongCenter('资产信息不能为空!')
return return
...@@ -1219,15 +1221,15 @@ export default { ...@@ -1219,15 +1221,15 @@ export default {
case 'bp_type': case 'bp_type':
vm.hlsPopup.showLongCenter('客户类型未填写') vm.hlsPopup.showLongCenter('客户类型未填写')
break break
case 'province_id': // case 'province_id':
vm.hlsPopup.showLongCenter('请选择省份') // vm.hlsPopup.showLongCenter('请选择省份')
break // break
case 'city_id': // case 'city_id':
vm.hlsPopup.showLongCenter('请选择城市') // vm.hlsPopup.showLongCenter('请选择城市')
break // break
case 'district_id': // case 'district_id':
vm.hlsPopup.showLongCenter('请选择区县') // vm.hlsPopup.showLongCenter('请选择区县')
break // break
case 'bp_name': case 'bp_name':
vm.hlsPopup.showLongCenter('公司名称未填写') vm.hlsPopup.showLongCenter('公司名称未填写')
break break
...@@ -1291,6 +1293,9 @@ export default { ...@@ -1291,6 +1293,9 @@ export default {
case 'auth_person_matter': case 'auth_person_matter':
vm.hlsPopup.showLongCenter('授权事项未填写') vm.hlsPopup.showLongCenter('授权事项未填写')
break break
default:
vm.msg_flag = true
break
} }
// vm.hlsPopup.showLongCenter('基本信息不完整!') // vm.hlsPopup.showLongCenter('基本信息不完整!')
vm.msg_flag = false vm.msg_flag = false
...@@ -1303,20 +1308,20 @@ export default { ...@@ -1303,20 +1308,20 @@ export default {
this.lastInfo.id_card_name = '' this.lastInfo.id_card_name = ''
} }
if (vm.hlsUtil.isCardID(vm.saveInfo.id_card_no)) { // if (vm.hlsUtil.isCardID(vm.saveInfo.id_card_no)) {
vm.msg_flag = false // vm.msg_flag = false
vm.hlsPopup.showLongCenter('身份证不正确') // vm.hlsPopup.showLongCenter('身份证不正确')
} // }
if (!vm.flag) { // if (!vm.flag) {
if (vm.hlsUtil.isCardID(vm.saveInfo.auth_person_id_card)) { // if (vm.hlsUtil.isCardID(vm.saveInfo.auth_person_id_card)) {
vm.msg_flag = false // vm.msg_flag = false
vm.hlsPopup.showLongCenter('授权人身份证不正确') // vm.hlsPopup.showLongCenter('授权人身份证不正确')
} // }
} // }
if (vm.msg_flag) { if (vm.msg_flag) {
vm.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片 vm.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片
vm.upload_list = [] // 保存之前将待上传列表清空,防止出现重复的图片 vm.upload_list = [] // 保存之前将待上传列表清空,防止出现重复的图片
let url = $config.basePath + 'bp_org_bind_save' let url = $config.basePath + 'bp_org_bind_save'
let param = { let param = {
master: {...vm.saveInfo, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id, user_phone: window.localStorage.getItem('user_phone')}, master: {...vm.saveInfo, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id, user_phone: window.localStorage.getItem('user_phone')},
...@@ -1332,7 +1337,7 @@ export default { ...@@ -1332,7 +1337,7 @@ export default {
window.localStorage.setItem('handleUser', JSON.stringify({...JSON.parse(window.localStorage.getItem('handleUser')), bp_id: res.bp_id, bp_type: vm.baseInfo.bp_type})); window.localStorage.setItem('handleUser', JSON.stringify({...JSON.parse(window.localStorage.getItem('handleUser')), bp_id: res.bp_id, bp_type: vm.baseInfo.bp_type}));
vm.loadCheckIdAndSaveAtt(res.bp_id) vm.loadCheckIdAndSaveAtt(res.bp_id)
} else { } else {
vm.hlsPopup.showLongCenter(res.message) vm.hlsPopup.showLongCenter(res.message)
...@@ -1996,7 +2001,7 @@ export default { ...@@ -1996,7 +2001,7 @@ export default {
vm.authidCardBackAttachmentId = res.lists[0].attachment_id vm.authidCardBackAttachmentId = res.lists[0].attachment_id
break break
case 'ORG_CODE': case 'ORG_CODE':
if (!vm.licenseImgUrlFlag) { if (!vm.licenseImgUrlFlag) {
vm.licenseImg = res.lists[0].url vm.licenseImg = res.lists[0].url
} }
vm.licenseAttachmentId = res.lists[0].attachment_id vm.licenseAttachmentId = res.lists[0].attachment_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment