USER-20230908AJ\Administrator 1 жил өмнө
parent
commit
7254610194

+ 5 - 1
components/en-from/en-radio/en-radio.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="row-justify-sb center p-tb30 bor-bottom-1 size-28">
-		<view class="wh-text"><text>{{name}}</text></view>
+		<view class="wh-text"><text>{{name?name:label}}</text></view>
 		<view class="row-c">
 			<view class="row-c radiu-item m-l20" :class="{'active-radiu':radioValue === item.value}"
 				v-for="(item,index) in list" :key="index" @click="onSelect(item.value)">
@@ -20,6 +20,10 @@
 				type: String,
 				default: ''
 			},
+      label: {
+        type: String,
+        default: ''
+      },
 			value: {
 				type: Number,
 				default: 0

+ 155 - 0
page_task/apply/components/add-license.vue

@@ -0,0 +1,155 @@
+<template>
+  <view class="license-box">
+    <view class="account-name">
+      上传营业执照图片
+    </view>
+    <view class="credentials-box" @click="showUploadingImg(true)">
+      <view class="credentials-img" v-if="identity_one">
+        <image class="credentials-imgs" :src="identity_one" mode="aspectFill"></image>
+      </view>
+      <view class="credentials-img" v-else>
+        <image class="credentials-imgs" src="/page_task/static/img/scmb.png" mode=""></image>
+      </view>
+    </view>
+    <uni-popup ref="popup" :safeArea="false" type="bottom" @change="closePopup">
+      <view class="popup-block">
+        <view class="popup-row" @click="uploadingImg(1)">拍照</view>
+        <view class="popup-row" @click="uploadingImg(2)">从手机里面选择</view>
+        <view class="popup-row" @click="showUploadingImg(false,0)">取消</view>
+      </view>
+    </uni-popup>
+  </view>
+</template>
+
+<script>
+import {getBaiDuImgRecognition} from "@/api/common";
+import txUploadFile from "@/service/txOssSts";
+import tools from "@/service/tools";
+
+export default {
+  name: "add-license",
+  components: {},
+  props: {
+    'value': {
+      default: '',
+    },
+    'userName': {
+      default: '',
+    },
+    'idNumber': {
+      default: '',
+    }
+  },
+  data() {
+    return {
+      'identity_one': '',
+      'name': '',
+      'id_number': '',
+    }
+  },
+  watch: {
+    'identity_one': function () {
+      this.$emit("input", this.identity_one);
+    },
+    'value': function () {
+      this.setValue()
+    },
+  },
+  mounted() {
+    this.setValue()
+  },
+  methods: {
+    setValue() {
+      console.log(this.value)
+      this.identity_one = this.value
+    },
+    uploadingImg(sourceType) {
+      uni.chooseMedia({
+        mediaType: 'image',
+        count: 1, //默认9
+        sizeType: "compressed",
+        sourceType: [sourceType === 1 ? 'camera' : 'album'],
+        success: (res) => {
+          if (res.tempFiles.length > 0) {
+            res.tempFiles.forEach((tempFile) => {
+              txUploadFile(tempFile.tempFilePath).then((data) => {
+                if (!data) {
+                  tools.error('图片上传失败')
+                  tools.hideLoading()
+                } else {
+                  tools.showLoading()
+                  getBaiDuImgRecognition({
+                    'imgUrl': data.Location,
+                    'imgType': '3'
+                  }).then((res) => {
+                    tools.hideLoading()
+                    if (res.code === 1) {
+                      this.identity_one = data.Location;
+                      this.name = res.data.name;
+                      this.id_number = res.data.id_number;
+                      this.$emit('update:userName',this.name)
+                      this.$emit('update:idNumber',this.id_number)
+                    } else {
+                      tools.error(res.msg)
+                    }
+                  })
+                }
+              })
+            })
+            this.showUploadingImg(false, 0);
+          } else {
+            tools.error("请选择上传的图片")
+          }
+        },
+      });
+    },
+    showUploadingImg(showImg) {
+      if (showImg) {
+        if (this.isUploading) {
+          return
+        }
+        this.isUploading = true
+        this.$refs.popup.open("bottom");
+      } else {
+        this.$refs.popup.close();
+        this.isUploading = false
+      }
+    },
+    closePopup(e) {
+      if (e.show === false) {
+        this.isUploading = false
+      }
+    },
+  }
+}
+</script>
+
+<style scoped lang="scss">
+@import "@/static/css/wh-common";
+
+.license-box {
+  .account-name {
+    font-size: 32rpx;
+    padding: 16px 0 0 0;
+    color: #232A35;
+  }
+
+  .credentials-box {
+    padding: 24rpx 0 0 0;
+    border-bottom: 1px solid #F0F0F0;
+
+    .credentials-img {
+      width: 160rpx;
+      height: 160rpx;
+      margin: 0 16rpx 30rpx 0;
+
+      .credentials-imgs {
+        width: 100%;
+        height: 100%;
+        display: block;
+      }
+    }
+  }
+}
+
+</style>

+ 3 - 0
page_task/information/information.vue

@@ -216,6 +216,9 @@
         }else {
           this.taskData.clientInfo=clientInfo
         }
+      })
+      uni.$on('putTripartiteInfo',tripartiteInfo=>{
+        this.taskData.tripartite=tripartiteInfo
       })
 		},
 		methods: {

BIN
page_task/static/img/scmb.png


+ 179 - 234
page_task/tripartite_info/tripartite_info.vue

@@ -2,203 +2,117 @@
 	<view class="total-page page-env-160 page-box task-bg">
 		<Nav :title="title" is_fixed :genre="4" :opacity="scrollTop"></Nav>
 		<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 -->
-				<view class="" v-if="item.data.type == 1">
+				<view class="" v-if="editIndex!==index">
 					<!-- 个人担保信息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="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">
 									<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>
 									<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>
 								</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 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>
 							<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 class="row-c">
 								<view class="text-color-666"><text></text>所属银行:</view>
-								<text>中国银行</text>
+								<text>{{bankItem.bank_name}}</text>
 							</view>
 							<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>
-					<!-- 个人担保信息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">
-								<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"
-									@click="onDeleteBank(index)">
+                       @click="delBank(index,bIndex)">
 								</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>
+              <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 class="row-justify-sb">
 							<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>
-						<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>
-					<!-- 企业信息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>
+      <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"
-				@click="onAddInfo">+添加第三方信息</button>
+				@click="addItem">+添加第三方信息</button>
 		</view>
-		<EnButton is_both leftText="保存" rightText="提交" @onLeftSubmit="onLeftSubmit" @onSubmit="onSubmit">
+		<EnButton  leftText="保存"  @onSubmit="onSubmit">
 		</EnButton>
 	</view>
 </template>
@@ -207,9 +121,20 @@
 	import WhInput from "@/components/en-from/en-input/en-input.vue"
 	import EnUpload from "@/components/en-from/en-upload/en-upload.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 {
 		components: {
+      AddBank,
+      EnBlank,
+      AddLicense,
+      EnInput,
+      AddIdentity,
 			WhInput,
 			EnUpload,
 			EnImage
@@ -218,38 +143,17 @@
 			return {
 				title: '',
 				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) {
@@ -257,14 +161,84 @@
 		},
 		onLoad(options) {
 			this.title = options.title
+      let tripartiteList = uni.getStorageSync('tripartiteData')
+      let tripartiteKey = uni.getStorageSync('tripartiteKey')
+      this.tripartiteList=tripartiteList
+      this.showKeys=tripartiteKey
 		},
 		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() {
 				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>