|
@@ -2,203 +2,117 @@
|
|
|
<view class="total-page page-env-160 page-box task-bg">
|
|
<view class="total-page page-env-160 page-box task-bg">
|
|
|
<Nav :title="title" is_fixed :genre="4" :opacity="scrollTop"></Nav>
|
|
<Nav :title="title" is_fixed :genre="4" :opacity="scrollTop"></Nav>
|
|
|
<view id="apply-info" class="m-t20 m-lr30 text-color-12">
|
|
<view id="apply-info" class="m-t20 m-lr30 text-color-12">
|
|
|
- <view class="sys-background-fff r-20 p-20 m-b20" v-for="(item,index) in tripartiteList" :key="index">
|
|
|
|
|
|
|
+ <view class="sys-background-fff r-20 p-20 m-b20" v-for="(tripartite,index) in tripartiteList" :key="index">
|
|
|
<!-- 个人担保start -->
|
|
<!-- 个人担保start -->
|
|
|
- <view class="" v-if="item.data.type == 1">
|
|
|
|
|
|
|
+ <view class="" v-if="editIndex!==index">
|
|
|
<!-- 个人担保信息start -->
|
|
<!-- 个人担保信息start -->
|
|
|
- <view class="sys-from-background-color p-20 r-20 size-26" v-if="!item.is_edit">
|
|
|
|
|
|
|
+ <view class="sys-from-background-color p-20 r-20 size-26" >
|
|
|
<view class="">
|
|
<view class="">
|
|
|
<view class="row-justify-sb center">
|
|
<view class="row-justify-sb center">
|
|
|
- <text class="size-28 sys-weight-600">担保人信息({{index+1}})</text>
|
|
|
|
|
|
|
+ <text class="size-28 sys-weight-600">担保{{tripartite.type*1===1?'人':'企业'}}信息({{index+1}})</text>
|
|
|
<view class="row-c sys-background-fff r-100 p-lr30 p-tb10">
|
|
<view class="row-c sys-background-fff r-100 p-lr30 p-tb10">
|
|
|
<image class="wh-30" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/edit.png" mode="aspectFill"
|
|
<image class="wh-30" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/edit.png" mode="aspectFill"
|
|
|
- @click="onEditInfo(item)"></image>
|
|
|
|
|
|
|
+ @click="onEditInfo(index)"></image>
|
|
|
<view class="title-line m-lr20"></view>
|
|
<view class="title-line m-lr20"></view>
|
|
|
<image class="wh-30" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/delete.png" mode="aspectFill"
|
|
<image class="wh-30" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/delete.png" mode="aspectFill"
|
|
|
- @click="onDeleteInfo(index)">
|
|
|
|
|
|
|
+ @click="delTripartite(index)">
|
|
|
</image>
|
|
</image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="row-c p-tb30">
|
|
|
|
|
- <view class="text-color-666"><text></text>担保类型:</view>
|
|
|
|
|
- <text>个人</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="row-c">
|
|
|
|
|
- <view class="text-color-666"><text></text>担保人信息:</view>
|
|
|
|
|
- <text>张三</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="p-t30">
|
|
|
|
|
- <view class="wh-text size-28 text-color-666 m-b20">证件照片</view>
|
|
|
|
|
- <EnImage :img="['https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/logo.png','https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/logo.png']"></EnImage>
|
|
|
|
|
|
|
+ <view v-if="tripartite.type*1===1">
|
|
|
|
|
+ <view class="row-c p-tb30">
|
|
|
|
|
+ <view class="text-color-666"><text></text>担保类型:</view>
|
|
|
|
|
+ <text>个人</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="row-c">
|
|
|
|
|
+ <view class="text-color-666"><text></text>担保人姓名:</view>
|
|
|
|
|
+ <text>{{tripartite.name}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="row-c">
|
|
|
|
|
+ <view class="text-color-666"><text></text>身份证号码:</view>
|
|
|
|
|
+ <text>{{tripartite.id_number}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="p-t30">
|
|
|
|
|
+ <view class="wh-text size-28 text-color-666 m-b20">证件照片</view>
|
|
|
|
|
+ <EnImage :img="[tripartite.identity_one,tripartite.identity_two]"></EnImage>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else>
|
|
|
|
|
+ <view class="row-c p-tb30">
|
|
|
|
|
+ <view class="text-color-666"><text></text>担保类型:</view>
|
|
|
|
|
+ <text>企业</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="row-c">
|
|
|
|
|
+ <view class="text-color-666"><text></text>企业名称:</view>
|
|
|
|
|
+ <text>{{tripartite.name}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="row-c">
|
|
|
|
|
+ <view class="text-color-666"><text></text>营业执照编号:</view>
|
|
|
|
|
+ <text>{{tripartite.id_number}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="p-t30">
|
|
|
|
|
+ <view class="wh-text size-28 text-color-666 m-b20">证件照片</view>
|
|
|
|
|
+ <EnImage :img="[tripartite.identity_one]"></EnImage>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="m-t30" v-for="(value,key) in item.data.bank_card" :key="key">
|
|
|
|
|
|
|
+ <view class="m-t30" v-for="(bankItem,bIndex) in tripartite.bank_data" :key="bIndex">
|
|
|
<text class="size-28 sys-weight-600">银行信息({{key+1}})</text>
|
|
<text class="size-28 sys-weight-600">银行信息({{key+1}})</text>
|
|
|
<view class="row-c p-tb30">
|
|
<view class="row-c p-tb30">
|
|
|
- <view class="text-color-666"><text></text>客户姓名:</view>
|
|
|
|
|
- <text>张三</text>
|
|
|
|
|
|
|
+ <view class="text-color-666"><text></text>账户姓名:</view>
|
|
|
|
|
+ <text>{{bankItem.name}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="row-c">
|
|
<view class="row-c">
|
|
|
<view class="text-color-666"><text></text>所属银行:</view>
|
|
<view class="text-color-666"><text></text>所属银行:</view>
|
|
|
- <text>中国银行</text>
|
|
|
|
|
|
|
+ <text>{{bankItem.bank_name}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="row-c p-t30">
|
|
<view class="row-c p-t30">
|
|
|
- <view class="text-color-666"><text></text>交通银行:</view>
|
|
|
|
|
- <text>4576476465498790878</text>
|
|
|
|
|
|
|
+ <view class="text-color-666"><text></text>银行卡号:</view>
|
|
|
|
|
+ <text>{{bankItem.bank_num}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- 个人担保信息end -->
|
|
|
|
|
|
|
+ <view v-else>
|
|
|
|
|
|
|
|
- <!-- 编辑个人担保start -->
|
|
|
|
|
- <view v-else>
|
|
|
|
|
- <view class="">
|
|
|
|
|
- <text class="size-30 sys-weight-600'">担保人信息({{index+1}})</text>
|
|
|
|
|
- <EnRadio :value="item.data.type" name="担保类型" :list="guaranteeList" @onSelect="onGuarantee">
|
|
|
|
|
- </EnRadio>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="sys-bg-BFD2CC row-justify-sb sys-weight-500 center r-20 p-30 m-t30">
|
|
|
|
|
- <view class="row-c flex">
|
|
|
|
|
- <image class="wh-45 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task/sf_icon.png" mode=""></image>
|
|
|
|
|
- <text class="size-26">身份证认证</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <button class="attestation-button button-background button-color size-26 r-30"
|
|
|
|
|
- type="default" hover-class="is-hover" @click="onAuthentication">去认证</button>
|
|
|
|
|
- </view>
|
|
|
|
|
- <WhInput name="姓名" disabled placeholder="待自动录入"></WhInput>
|
|
|
|
|
- <WhInput name="身份证号" disabled placeholder="待自动录入"></WhInput>
|
|
|
|
|
- <view class="m-t30" v-for="(value,key) in item.data.bank_card" :key="key">
|
|
|
|
|
|
|
+ <en-radio label="担保类型" v-model="tripartite.type" @updateData="farming(index)" :list="appliesData"></en-radio>
|
|
|
|
|
+ <view v-if="tripartite.type*1===1">
|
|
|
|
|
+ <add-identity v-if="verifyKey('id_number')" :user-name.sync="tripartite.name" :id-number.sync="tripartite.id_number" :identity-one.sync="tripartite.identity_one" :identity-two.sync="tripartite.identity_two"></add-identity>
|
|
|
|
|
+ <en-input label="姓名" v-if="verifyKey('name')" v-model="tripartite.name" type="text" placeholder="等待自动录入"></en-input>
|
|
|
|
|
+ <en-input label="身份证号" v-if="verifyKey('id_number')" v-model="tripartite.id_number" type="idcard" placeholder="等待自动录入"></en-input>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else>
|
|
|
|
|
+ <en-input label="企业名称" v-if="verifyKey('name')" v-model="tripartite.name" type="text" placeholder="请输入企业名称"></en-input>
|
|
|
|
|
+ <en-input label="营业执照编号" v-if="verifyKey('id_number')" v-model="tripartite.id_number" type="text" placeholder="请输入营业执照编号"></en-input>
|
|
|
|
|
+ <add-license v-if="verifyKey('identity_one')" v-model="tripartite.identity_one" :user-name.sync="tripartite.name" :id-number.sync="tripartite.id_number"></add-license>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="m-t30" v-for="(bankItem,bIndex) in tripartite.bank_data">
|
|
|
<view class="row-justify-sb center">
|
|
<view class="row-justify-sb center">
|
|
|
- <text class="size-30 sys-weight-600'">银行卡信息({{key+1}})</text>
|
|
|
|
|
|
|
+ <text class="size-30 sys-weight-600'">银行卡信息({{bIndex+1}})</text>
|
|
|
<image class="wh-30" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/delete.png" mode="aspectFill"
|
|
<image class="wh-30" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/delete.png" mode="aspectFill"
|
|
|
- @click="onDeleteBank(index)">
|
|
|
|
|
|
|
+ @click="delBank(index,bIndex)">
|
|
|
</image>
|
|
</image>
|
|
|
</view>
|
|
</view>
|
|
|
- <WhInput name="账户姓名" placeholder="请输入批复金额"></WhInput>
|
|
|
|
|
- <WhInput name="银行卡" placeholder="请输入银行账户">
|
|
|
|
|
- <uni-icons type="camera" size="28" color="#999999"></uni-icons>
|
|
|
|
|
- </WhInput>
|
|
|
|
|
- <WhInput name="所属银行" disabled is_select></WhInput>
|
|
|
|
|
|
|
+ <en-input label="账户姓名" v-model="bankItem.name" type="text" placeholder="请输开户人姓名" ></en-input>
|
|
|
|
|
+ <add-bank :bank-name.sync="bankItem.bank_name" :bank-num.sync="bankItem.bank_num"></add-bank>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="row-justify-sb">
|
|
<view class="row-justify-sb">
|
|
|
<button class="size-26 r-10 button-color still-button m-t30" hover-class="is-hover"
|
|
<button class="size-26 r-10 button-color still-button m-t30" hover-class="is-hover"
|
|
|
- @click="onAddBank">+ 添加还款信息</button>
|
|
|
|
|
|
|
+ @click="addBank(index)">+ 添加还款信息</button>
|
|
|
<view class="flex"></view>
|
|
<view class="flex"></view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="row-justify-sb">
|
|
|
|
|
- <view class="flex"></view>
|
|
|
|
|
- <view class="row-c m-tb20">
|
|
|
|
|
- <button class="size-26 r-10 apply-button-delete m-r20" hover-class="is-hover"
|
|
|
|
|
- @click="onDeleteInfo(index)">删除</button>
|
|
|
|
|
- <button class="size-26 r-10 button-color apply-button-save" hover-class="is-hover"
|
|
|
|
|
- @click="onSaveInfo(item)">保存</button>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <!-- 编辑个人担保end -->
|
|
|
|
|
- </view>
|
|
|
|
|
- <!-- 个人担保end -->
|
|
|
|
|
|
|
|
|
|
- <!-- 公司担保start -->
|
|
|
|
|
- <view class="" v-if="item.data.type == 2">
|
|
|
|
|
- <!-- 企业信息start -->
|
|
|
|
|
- <view class="sys-from-background-color p-20 r-20 size-26" v-if="!item.is_edit">
|
|
|
|
|
- <view class="">
|
|
|
|
|
- <view class="row-justify-sb center">
|
|
|
|
|
- <text class="size-28 sys-weight-600'">企业担保信息({{index+1}})</text>
|
|
|
|
|
- <view class="row-c sys-background-fff r-100 p-lr30 p-tb10">
|
|
|
|
|
- <image class="wh-30" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/edit.png" mode="aspectFill"
|
|
|
|
|
- @click="onEditInfo(item)"></image>
|
|
|
|
|
- <view class="title-line m-lr20"></view>
|
|
|
|
|
- <image class="wh-30" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/delete.png" mode="aspectFill"
|
|
|
|
|
- @click="onDeleteInfo(index)">
|
|
|
|
|
- </image>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="row-c p-tb30">
|
|
|
|
|
- <view class="text-color-666"><text></text>担保类型:</view>
|
|
|
|
|
- <text>企业</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="row-c">
|
|
|
|
|
- <view class="text-color-666"><text></text>企业名称:</view>
|
|
|
|
|
- <text>成都九吨科技</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="row-c p-tb30">
|
|
|
|
|
- <view class="text-color-666"><text></text>营业执照编号:</view>
|
|
|
|
|
- <text>YX4857i345</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="row-c">
|
|
|
|
|
- <view class="text-color-666"><text></text>证件照片:</view>
|
|
|
|
|
- <text>YX4857i345</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="m-t30" v-for="(value,key) in item.data.bank_card" :key="key">
|
|
|
|
|
- <text class="size-28 sys-weight-600">银行信息({{key+1}})</text>
|
|
|
|
|
- <view class="row-c p-tb30">
|
|
|
|
|
- <view class="text-color-666"><text></text>客户姓名:</view>
|
|
|
|
|
- <text>张三</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="row-c">
|
|
|
|
|
- <view class="text-color-666"><text></text>所属银行:</view>
|
|
|
|
|
- <text>中国银行</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="row-c p-t30">
|
|
|
|
|
- <view class="text-color-666"><text></text>交通银行:</view>
|
|
|
|
|
- <text>4576476465498790878</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- 企业信息end -->
|
|
|
|
|
|
|
|
|
|
- <!-- 编辑企业信息start -->
|
|
|
|
|
- <view v-else>
|
|
|
|
|
- <view class="">
|
|
|
|
|
- <text class="size-30 sys-weight-600'">企业担保信息({{index+1}})</text>
|
|
|
|
|
- <EnRadio :value="item.data.type" name="担保类型" :list="guaranteeList" @onSelect="onGuarantee">
|
|
|
|
|
- </EnRadio>
|
|
|
|
|
- <WhInput name="企业名称" placeholder="请输入企业名称"></WhInput>
|
|
|
|
|
- <WhInput name="营业执照" placeholder="请输入营业执照编号"></WhInput>
|
|
|
|
|
- <view class="p-tb30 bor-bottom-1">
|
|
|
|
|
- <view class="wh-text size-28">营业执照图片</view>
|
|
|
|
|
- <EnUpload></EnUpload>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="m-t30" v-for="(value,key) in item.data.bank_card" :key="key">
|
|
|
|
|
- <view class="row-justify-sb center">
|
|
|
|
|
- <text class="size-30 sys-weight-600'">银行卡信息({{key+1}})</text>
|
|
|
|
|
- <image class="wh-30" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/delete.png" mode="aspectFill"
|
|
|
|
|
- @click="onDeleteBank(index)">
|
|
|
|
|
- </image>
|
|
|
|
|
- </view>
|
|
|
|
|
- <WhInput name="账户姓名" placeholder="请输入批复金额"></WhInput>
|
|
|
|
|
- <WhInput name="银行卡" placeholder="请输入银行账户">
|
|
|
|
|
- <uni-icons type="camera" size="28" color="#999999"></uni-icons>
|
|
|
|
|
- </WhInput>
|
|
|
|
|
- <WhInput name="所属银行" disabled is_select></WhInput>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="row-justify-sb">
|
|
|
|
|
- <button class="size-26 r-10 button-color still-button m-t30" hover-class="is-hover"
|
|
|
|
|
- @click="onAddBank">+ 添加还款信息</button>
|
|
|
|
|
- <view class="flex"></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="row-justify-sb">
|
|
|
|
|
- <view class="flex"></view>
|
|
|
|
|
- <view class="row-c m-tb20">
|
|
|
|
|
- <button class="size-26 r-10 apply-button-delete m-r20" hover-class="is-hover"
|
|
|
|
|
- @click="onDeleteInfo(index)">删除</button>
|
|
|
|
|
- <button class="size-26 r-10 button-color apply-button-save" hover-class="is-hover"
|
|
|
|
|
- @click="onSaveInfo(item)">保存</button>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <!-- 编辑企业信息end -->
|
|
|
|
|
- </view>
|
|
|
|
|
- <!-- 公司担保start -->
|
|
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <en-blank message="暂无第三方信息~~" v-if="tripartiteList.length<=0"></en-blank>
|
|
|
|
|
+
|
|
|
<button class="size-26 r-10 button-color apply-button m-t30" hover-class="is-hover"
|
|
<button class="size-26 r-10 button-color apply-button m-t30" hover-class="is-hover"
|
|
|
- @click="onAddInfo">+添加第三方信息</button>
|
|
|
|
|
|
|
+ @click="addItem">+添加第三方信息</button>
|
|
|
</view>
|
|
</view>
|
|
|
- <EnButton is_both leftText="保存" rightText="提交" @onLeftSubmit="onLeftSubmit" @onSubmit="onSubmit">
|
|
|
|
|
|
|
+ <EnButton leftText="保存" @onSubmit="onSubmit">
|
|
|
</EnButton>
|
|
</EnButton>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -207,9 +121,20 @@
|
|
|
import WhInput from "@/components/en-from/en-input/en-input.vue"
|
|
import WhInput from "@/components/en-from/en-input/en-input.vue"
|
|
|
import EnUpload from "@/components/en-from/en-upload/en-upload.vue"
|
|
import EnUpload from "@/components/en-from/en-upload/en-upload.vue"
|
|
|
import EnImage from "@/components/en-utils/en-image/en-image.vue"
|
|
import EnImage from "@/components/en-utils/en-image/en-image.vue"
|
|
|
|
|
+ import AddIdentity from "@/page_task/identity_upload/add-identity.vue";
|
|
|
|
|
+ import EnInput from "@/components/en-from/en-input/en-input.vue";
|
|
|
|
|
+ import AddLicense from "@/page_task/apply/components/add-license.vue";
|
|
|
|
|
+ import EnBlank from "@/components/en-utils/en-blank/en-blank.vue";
|
|
|
|
|
+ import AddBank from "@/page_task/apply/components/add-bank.vue";
|
|
|
|
|
+ import tools from "@/service/tools";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
|
|
+ AddBank,
|
|
|
|
|
+ EnBlank,
|
|
|
|
|
+ AddLicense,
|
|
|
|
|
+ EnInput,
|
|
|
|
|
+ AddIdentity,
|
|
|
WhInput,
|
|
WhInput,
|
|
|
EnUpload,
|
|
EnUpload,
|
|
|
EnImage
|
|
EnImage
|
|
@@ -218,38 +143,17 @@
|
|
|
return {
|
|
return {
|
|
|
title: '',
|
|
title: '',
|
|
|
scrollTop: 0,
|
|
scrollTop: 0,
|
|
|
- guaranteeList: [{
|
|
|
|
|
- text: '个人',
|
|
|
|
|
- value: 1
|
|
|
|
|
- }, {
|
|
|
|
|
- text: '企业',
|
|
|
|
|
- value: 2
|
|
|
|
|
- }],
|
|
|
|
|
- tripartiteList: [{
|
|
|
|
|
- is_edit: false,
|
|
|
|
|
- data: {
|
|
|
|
|
- type: 1,
|
|
|
|
|
- bank_card: [1]
|
|
|
|
|
- }
|
|
|
|
|
- }, {
|
|
|
|
|
- is_edit: true,
|
|
|
|
|
- data: {
|
|
|
|
|
- type: 1,
|
|
|
|
|
- bank_card: [1]
|
|
|
|
|
- }
|
|
|
|
|
- }, {
|
|
|
|
|
- is_edit: false,
|
|
|
|
|
- data: {
|
|
|
|
|
- type: 2,
|
|
|
|
|
- bank_card: [1]
|
|
|
|
|
- }
|
|
|
|
|
- }, {
|
|
|
|
|
- is_edit: true,
|
|
|
|
|
- data: {
|
|
|
|
|
- type: 2,
|
|
|
|
|
- bank_card: [1]
|
|
|
|
|
- }
|
|
|
|
|
- }]
|
|
|
|
|
|
|
+ editIndex:0,
|
|
|
|
|
+ appliesData:[{'value':1,'text':'个人'},{'value':2,'text':'企业'}],
|
|
|
|
|
+ tripartiteList:[],
|
|
|
|
|
+ tripartiteItem:{
|
|
|
|
|
+ "type": "1",
|
|
|
|
|
+ "name": "",
|
|
|
|
|
+ "id_number": "",
|
|
|
|
|
+ "identity_one": "",
|
|
|
|
|
+ "identity_two": "",
|
|
|
|
|
+ "bank_data": [],
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onPageScroll(res) {
|
|
onPageScroll(res) {
|
|
@@ -257,14 +161,84 @@
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
this.title = options.title
|
|
this.title = options.title
|
|
|
|
|
+ let tripartiteList = uni.getStorageSync('tripartiteData')
|
|
|
|
|
+ let tripartiteKey = uni.getStorageSync('tripartiteKey')
|
|
|
|
|
+ this.tripartiteList=tripartiteList
|
|
|
|
|
+ this.showKeys=tripartiteKey
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- // 身份认证
|
|
|
|
|
- onAuthentication(item) {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/page_task/identity_upload/identity_upload"
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ addItem(){
|
|
|
|
|
+ this.tripartiteList.push(this.tripartiteItem)
|
|
|
|
|
+ },
|
|
|
|
|
+ delTripartite(itemKey){
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: '是否删除当前第三方信息',
|
|
|
|
|
+ content: '确定删除?',
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ if (res.confirm) {
|
|
|
|
|
+ this.tripartiteList.splice(itemKey,1)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+ farming(key) {
|
|
|
|
|
+ if(this.tripartiteList[key].type*1===1){
|
|
|
|
|
+ this.tripartiteList[key].q_identity_one=this.tripartiteList[key].identity_one
|
|
|
|
|
+ this.tripartiteList[key].q_name=this.tripartiteList[key].name
|
|
|
|
|
+ this.tripartiteList[key].q_id_number=this.tripartiteList[key].id_number
|
|
|
|
|
+ this.tripartiteList[key].name=''
|
|
|
|
|
+ this.tripartiteList[key].identity_one=''
|
|
|
|
|
+ this.tripartiteList[key].id_number=''
|
|
|
|
|
+ if( this.tripartiteList[key].u_identity_one){
|
|
|
|
|
+ this.tripartiteList[key].identity_one=this.tripartiteList[key].u_identity_one
|
|
|
|
|
+ }
|
|
|
|
|
+ if( this.tripartiteList[key].u_name){
|
|
|
|
|
+ this.tripartiteList[key].name=this.tripartiteList[key].u_name
|
|
|
|
|
+ }
|
|
|
|
|
+ if( this.tripartiteList[key].u_id_number){
|
|
|
|
|
+ this.tripartiteList[key].id_number=this.tripartiteList[key].u_id_number
|
|
|
|
|
+ }
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.tripartiteList[key].u_identity_one=this.tripartiteList[key].identity_one
|
|
|
|
|
+ this.tripartiteList[key].u_name=this.tripartiteList[key].name
|
|
|
|
|
+ this.tripartiteList[key].u_id_number=this.tripartiteList[key].id_number
|
|
|
|
|
+ this.tripartiteList[key].name=''
|
|
|
|
|
+ this.tripartiteList[key].identity_one=''
|
|
|
|
|
+ this.tripartiteList[key].id_number=''
|
|
|
|
|
+ if( this.tripartiteList[key].q_identity_one){
|
|
|
|
|
+ this.tripartiteList[key].identity_one=this.tripartiteList[key].q_identity_one
|
|
|
|
|
+ }
|
|
|
|
|
+ if( this.tripartiteList[key].q_name){
|
|
|
|
|
+ this.tripartiteList[key].name=this.tripartiteList[key].q_name
|
|
|
|
|
+ }
|
|
|
|
|
+ if( this.tripartiteList[key].q_id_number){
|
|
|
|
|
+ this.tripartiteList[key].id_number=this.tripartiteList[key].q_id_number
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ delBank(applyKey,itemKey){
|
|
|
|
|
+
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: '是否删除当前还款信息',
|
|
|
|
|
+ content: '确定删除?',
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ if (res.confirm) {
|
|
|
|
|
+ this.tripartiteList[applyKey].bank_data.splice(itemKey,1)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ addBank(applyKey){
|
|
|
|
|
+ if(!this.tripartiteList[applyKey].bank_data){
|
|
|
|
|
+ this.tripartiteList[applyKey].bank_data=[];
|
|
|
|
|
+ }
|
|
|
|
|
+ this.tripartiteList[applyKey].bank_data.push({'name':'','bank_name':'','bank_num':''})
|
|
|
|
|
+ },
|
|
|
|
|
+ verifyKey(field) {
|
|
|
|
|
+ return this.showKeys.indexOf(field) >= 0
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
// 保存
|
|
// 保存
|
|
|
onLeftSubmit() {
|
|
onLeftSubmit() {
|
|
|
this.tripartiteList.map(item => {
|
|
this.tripartiteList.map(item => {
|
|
@@ -272,48 +246,19 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 提交
|
|
// 提交
|
|
|
- onSubmit() {},
|
|
|
|
|
- // 添加信息
|
|
|
|
|
- onAddInfo() {
|
|
|
|
|
- this.tripartiteList.push({
|
|
|
|
|
- is_edit: true,
|
|
|
|
|
- data: {
|
|
|
|
|
- type: 1
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
- // 添加银行卡信息
|
|
|
|
|
- onAddBank() {
|
|
|
|
|
|
|
+ onSubmit() {
|
|
|
|
|
+ uni.$emit('putTripartiteInfo',this.tripartiteList)
|
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
|
+ tools.leftClick()
|
|
|
|
|
+ },50)
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
|
|
|
- },
|
|
|
|
|
// 编辑单个信息
|
|
// 编辑单个信息
|
|
|
- onEditInfo(item) {
|
|
|
|
|
- item.is_edit = !item.is_edit
|
|
|
|
|
|
|
+ onEditInfo(index) {
|
|
|
|
|
+ this.editIndex=index
|
|
|
},
|
|
},
|
|
|
- // 删除信息
|
|
|
|
|
- onDeleteInfo(index) {
|
|
|
|
|
- uni.showModal({
|
|
|
|
|
- title: '提示',
|
|
|
|
|
- content: '确定删除?',
|
|
|
|
|
- success: (res) => {
|
|
|
|
|
- if (res.confirm) {
|
|
|
|
|
- this.tripartiteList.splice(index, 1)
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
|
|
|
- },
|
|
|
|
|
- // 删除银行卡
|
|
|
|
|
- onDeleteBank(index) {
|
|
|
|
|
- console.log(index);
|
|
|
|
|
- },
|
|
|
|
|
- // 保存单个信息
|
|
|
|
|
- onSaveInfo(item) {
|
|
|
|
|
- item.is_edit = !item.is_edit
|
|
|
|
|
- },
|
|
|
|
|
- onGuarantee(e) {
|
|
|
|
|
- console.log(e);
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|