Commit 3a7f3f00 authored by 黄奎's avatar 黄奎

页面修改

parent 53992f2f
...@@ -447,15 +447,14 @@ ...@@ -447,15 +447,14 @@
护照 护照
<div v-show="templateType==2"></div> <div v-show="templateType==2"></div>
</li> </li>
<li v-show="templateType==2"> <!-- <li v-show="templateType==2">
<el-select class='w200' v-model='templateSign'> <el-select class='w200' v-model='templateSign'>
<el-option label='中国护照' value='2625f80ec957a0c837ca14f8ce608a51'></el-option> <el-option label='中国护照' value='2625f80ec957a0c837ca14f8ce608a51'></el-option>
<!-- <el-option label='台湾护照' value='7224a048d0fcc94413c3a729e481a775'></el-option> <el-option label='台湾护照' value='7224a048d0fcc94413c3a729e481a775'></el-option>
<el-option label='中国护照旧版' value='2dc78a37e516f18ebe56aeacc6d49203'></el-option> <el-option label='中国护照旧版' value='2dc78a37e516f18ebe56aeacc6d49203'></el-option>
<el-option label='台湾通行证' value='2cd1d05f5efc5eec23ffad6358bdb70f'></el-option> --> <el-option label='台湾通行证' value='2cd1d05f5efc5eec23ffad6358bdb70f'></el-option>
</el-select> </el-select>
</li> </li> -->
</div> </div>
<p> <p>
</p> </p>
...@@ -468,6 +467,8 @@ ...@@ -468,6 +467,8 @@
</label> </label>
</div> </div>
<input type="button" value="开始识别" class="normalBtn" @click="commonTextDiscern" /> <input type="button" value="开始识别" class="normalBtn" @click="commonTextDiscern" />
<br/>
<span style="color:red;font-weight:bold">请认真核对识别结果,如有不正确的请手动调整。</span>
</div> </div>
</div> </div>
<p class="btmTitle">日本签证补录资料</p> <p class="btmTitle">日本签证补录资料</p>
...@@ -982,10 +983,31 @@ ...@@ -982,10 +983,31 @@
this.loading = false; this.loading = false;
if (res.data.StatusCode == 1) { if (res.data.StatusCode == 1) {
var tempObj = res.data; var tempObj = res.data;
console.log("tempObj", tempObj); if (tempObj) {
//大陆护照 //中文姓
if (params.Type == 1) { if (tempObj.SurName && tempObj.SurName != '') {
if (tempObj) { this.addMsg.SurName = tempObj.SurName;
this.Transformation(this.addMsg.SurName, 'SurName');
}
//中文名
if (tempObj.Name && tempObj.Name != '') {
this.addMsg.Name = tempObj.Name;
this.Transformation(this.addMsg.Name, 'Name');
}
//性别
if (tempObj.Gender && tempObj.Gender != '') {
if (tempObj.Gender == '男') {
this.addMsg.Sex = "1";
} else {
this.addMsg.Sex = "2";
}
}
//出生日期
if (tempObj.BirthDate && tempObj.BirthDate != '') {
this.addMsg.Birthday = tempObj.BirthDate;
}
//大陆护照
if (params.Type == 1) {
//护照号 //护照号
if (tempObj.PassportNumber && tempObj.PassportNumber != '') { if (tempObj.PassportNumber && tempObj.PassportNumber != '') {
this.addMsg.PassportNo = tempObj.PassportNumber; this.addMsg.PassportNo = tempObj.PassportNumber;
...@@ -994,14 +1016,6 @@ ...@@ -994,14 +1016,6 @@
if (tempObj.BirthAddress && tempObj.BirthAddress != '') { if (tempObj.BirthAddress && tempObj.BirthAddress != '') {
this.addMsg.BirthdayAddress = tempObj.BirthAddress; this.addMsg.BirthdayAddress = tempObj.BirthAddress;
} }
//性别
if (tempObj.Gender && tempObj.Gender != '') {
if (tempObj.Gender == '男') {
this.addMsg.Sex = "1";
} else {
this.addMsg.Sex = "2";
}
}
//护照签发日期 //护照签发日期
if (tempObj.IssueDate && tempObj.IssueDate != '') { if (tempObj.IssueDate && tempObj.IssueDate != '') {
this.addMsg.PassportIssued = tempObj.IssueDate; this.addMsg.PassportIssued = tempObj.IssueDate;
...@@ -1014,26 +1028,20 @@ ...@@ -1014,26 +1028,20 @@
if (tempObj.Placoofissue && tempObj.Placoofissue != '') { if (tempObj.Placoofissue && tempObj.Placoofissue != '') {
this.addMsg.PassportAddress = tempObj.Placoofissue; this.addMsg.PassportAddress = tempObj.Placoofissue;
} }
//出生日期 }
if (tempObj.BirthDate && tempObj.BirthDate != '') { //大陆身份证
this.addMsg.Birthday = tempObj.BirthDate; else if (params.Type == 2) {
} //家庭居住地、家庭详细地址
if (tempObj.BirthAddress && tempObj.BirthAddress != '') {
//英文姓 this.addMsg.Address = tempObj.BirthAddress;
if (tempObj.ESName && tempObj.ESName != '') { this.addMsg.AddressDetail = tempObj.BirthAddress;
this.addMsg.ESurName = tempObj.ESName;
} }
//身份证号
//英文名 if (tempObj.PassportNumber && tempObj.PassportNumber != '') {
if (tempObj.EName && tempObj.EName != '') { this.addMsg.IdCard = tempObj.PassportNumber;
this.addMsg.EName = tempObj.EName;
} }
} }
} }
//大陆身份证
else if (params.Type == 2) {
}
} }
}); });
}, },
......
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