|
|
|
@@ -179,8 +179,8 @@ |
|
|
|
</template> |
|
|
|
</van-field> |
|
|
|
<div v-if="form.type=='1'"> |
|
|
|
<van-field v-model="form.name" @input="nameChange" @blur="showPopover = false" required :rules="[{ required: true , message:'请输入当事人姓名' }]" label="当事人姓名" placeholder="请输入当事人姓名" :border="false" label-width="auto" input-align="right" /> |
|
|
|
|
|
|
|
<van-field v-model="form.name" @input="nameChange" required :rules="[{ required: true , message:'请输入当事人姓名' }]" label="当事人姓名" placeholder="请输入当事人姓名" :border="false" label-width="auto" input-align="right" /> |
|
|
|
<!-- @blur="showPopover = false"--> |
|
|
|
<div class="popover_box" v-if="showPopover"> |
|
|
|
<p v-for="(item,index) in personalList" @click="takePeople(item)">{{item.name}}<span>{{item.phone}}</span></p> |
|
|
|
</div> |
|
|
|
@@ -244,7 +244,8 @@ |
|
|
|
<van-field v-model="form.zihao" label="字号名称" placeholder="请输入字号名称" :border="false" label-width="auto" input-align="right" /> |
|
|
|
</div> |
|
|
|
<div v-if="form.type=='2'"> |
|
|
|
<van-field v-model="form.companyName" @input="companyChange" @blur="showCompany = false" :rules="[{ required: true , message:'请输入企业名称' }]" label="企业名称" placeholder="请输入企业名称" :border="false" label-width="auto" input-align="right" /> |
|
|
|
<!-- @blur="showCompany = false"--> |
|
|
|
<van-field v-model="form.companyName" @input="companyChange" :rules="[{ required: true , message:'请输入企业名称' }]" label="企业名称" placeholder="请输入企业名称" :border="false" label-width="auto" input-align="right" /> |
|
|
|
<div class="popover_box" v-if="showCompany"> |
|
|
|
<p v-for="(item,index) in companyList" @click="takeCompany(item)">{{item.companyName}}</p> |
|
|
|
</div> |
|
|
|
@@ -337,7 +338,19 @@ |
|
|
|
caseStatus:'1', |
|
|
|
attachement:[], |
|
|
|
attachementList:[], |
|
|
|
id:null |
|
|
|
id:null, |
|
|
|
name : '' , |
|
|
|
cardNum : '' , |
|
|
|
birthday : '' , |
|
|
|
nation : '' , |
|
|
|
companyPosition : '' , |
|
|
|
duties : '' , |
|
|
|
zihao : '' , |
|
|
|
companyName : '' , |
|
|
|
legalName : '' , |
|
|
|
phone : '' , |
|
|
|
address : '' , |
|
|
|
uniformCode : '' , |
|
|
|
}, |
|
|
|
registerDate:new Date(), |
|
|
|
birthday:new Date(), |
|
|
|
@@ -561,6 +574,8 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
takePeople(item){ |
|
|
|
|
|
|
|
console.log(item) |
|
|
|
this.form.bodyId = item.id; |
|
|
|
this.form.name = item.name; |
|
|
|
this.form.sex = item.sex == null ? '1' : item.sex; |
|
|
|
@@ -600,7 +615,7 @@ |
|
|
|
this.form.phone = item.phone; |
|
|
|
this.form.address = item.address; |
|
|
|
this.form.uniformCode = item.uniformCode; |
|
|
|
this.showPopover = false; |
|
|
|
this.showCompany = false; |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
|