Commit 7a343406 authored by 周亚武's avatar 周亚武

增加事项

parent c75f20eb
...@@ -34,13 +34,13 @@ ...@@ -34,13 +34,13 @@
// //正式环境 // //正式环境
// api: "https://rapi.egovrobot.com/", // api: "https://rapi.egovrobot.com/",
// rocrUrl: "https://rocr.egovrobot.com/", // rocrUrl: "http://rocr.egovrobot.com/",
// webSocketUrl : "wss://rapi.egovrobot.com/websocket/", // webSocketUrl : "wss://rapi.egovrobot.com/websocket/",
// aiCaseUrl: "http://112.19.80.237:11044/" // aiCaseUrl: "http://112.19.80.237:11044/"
//测试环境 //测试环境
api: 'https://api.egovrobot.com/', api: 'https://api.egovrobot.com/',
rocrUrl: "https://rocr.egovrobot.com/", rocrUrl: "http://rocr.egovrobot.com/",
webSocketUrl : "wss://api.egovrobot.com/websocket/", webSocketUrl : "wss://api.egovrobot.com/websocket/",
aiCaseUrl: "http://192.168.0.173:8099/" aiCaseUrl: "http://192.168.0.173:8099/"
}; };
......
...@@ -76,7 +76,7 @@ export default{ ...@@ -76,7 +76,7 @@ export default{
data() { data() {
return { return {
formIndex:0,//表列表下标 formIndex:0,//表列表下标
isOpenHighCamera:true,//是否打开高拍仪 isOpenHighCamera:false,//是否打开高拍仪
scanType:'',//委托人身份代办类型 scanType:'',//委托人身份代办类型
curPage: 1,//当前页码 curPage: 1,//当前页码
num: 5,//每页展示数量 num: 5,//每页展示数量
...@@ -118,40 +118,42 @@ export default{ ...@@ -118,40 +118,42 @@ export default{
personName:'', personName:'',
sex:'', sex:'',
idcardNum:'', idcardNum:'',
address:'',
} }
}, },
created() { created() {
this.formIndex = this.$route.query.formIndex; this.formIndex = this.$route.query.formIndex;
// //初始化右区域图片框,材料名称,删除图标
//初始化右区域图片框,材料名称,删除图标 // if (this.formIndex == 1 || this.formIndex == 2 || this.formIndex == 3 || this.formIndex == 4) {
if (this.formIndex == 1||this.formIndex == 11) { // this.imgDel.push({'name': '', 'imgSrc': require('../../assets/images/ico/delete.png')});
this.materials.push({'name': '身份证', 'fileUrl': '', 'fileId': '', 'type': ''}); // this.imgFrames.push({'imgSrc': require('../../assets/images/filebox.png')});
this.materials.push({'name': '营业执照', 'fileUrl': '', 'fileId': '', 'type': ''}); // } else if (this.formIndex == 7) {
this.imgDel.push({'name': '', 'imgSrc': require('../../assets/images/ico/delete.png')}); // this.materials.push({'name': '身份证', 'fileUrl': '', 'fileId': '', 'type': ''});
this.imgDel.push({'name': '', 'imgSrc': require('../../assets/images/ico/delete.png')}); // this.imgDel.push({'name': '', 'imgSrc': require('../../assets/images/ico/delete.png')});
this.imgFrames.push({'imgSrc': require('../../assets/images/filebox.png')}); // this.imgFrames.push({'imgSrc': require('../../assets/images/filebox.png')});
this.imgFrames.push({'imgSrc': require('../../assets/images/filebox.png')}); // } else if (this.formIndex == 12) {
} else if (this.formIndex == 7) { // this.materials.push({'name': '营业执照', 'fileUrl': '', 'fileId': '', 'type': '11','jsonData':'11'});
this.materials.push({'name': '身份证', 'fileUrl': '', 'fileId': '', 'type': ''}); // this.imgDel.push({'name': '', 'imgSrc': require('../../assets/images/ico/delete.png')});
this.imgDel.push({'name': '', 'imgSrc': require('../../assets/images/ico/delete.png')}); // this.imgFrames.push({'imgSrc': require('../../assets/images/filebox.png')});
this.imgFrames.push({'imgSrc': require('../../assets/images/filebox.png')}); // this.imgFrames.push({'imgSrc':require('../../assets/images/filebox.png')});
} else if (this.formIndex == 12) { // this.imgFrames.push({'imgSrc':require('../../assets/images/filebox.png')});
this.materials.push({'name': '营业执照', 'fileUrl': '', 'fileId': '', 'type': '11','jsonData':'11'}); // this.imgFrames.push({'imgSrc':require('../../assets/images/filebox.png')});
this.imgDel.push({'name': '', 'imgSrc': require('../../assets/images/ico/delete.png')}); // this.imgFrames.push({'imgSrc':require('../../assets/images/filebox.png')});
this.imgFrames.push({'imgSrc': require('../../assets/images/filebox.png')}); // } else if(this.formIndex == 13 || this.formIndex == 14 || this.formIndex == 15){
this.imgFrames.push({'imgSrc':require('../../assets/images/filebox.png')}); // //只需要扫描身份证 关闭高拍仪
this.imgFrames.push({'imgSrc':require('../../assets/images/filebox.png')}); // this.isOpenHighCamera = false;
this.imgFrames.push({'imgSrc':require('../../assets/images/filebox.png')}); // } else {
this.imgFrames.push({'imgSrc':require('../../assets/images/filebox.png')}); // this.materials.push({'name': '营业执照', 'fileUrl': '', 'fileId': '', 'type': ''});
} else if(this.formIndex == 13 || this.formIndex == 14 || this.formIndex == 15){ // this.imgDel.push({'name': '', 'imgSrc': require('../../assets/images/ico/delete.png')});
// this.imgFrames.push({'imgSrc': require('../../assets/images/filebox.png')});
// }
if(this.formIndex == 13 || this.formIndex == 14 || this.formIndex == 15){
//只需要扫描身份证 关闭高拍仪 //只需要扫描身份证 关闭高拍仪
this.isOpenHighCamera = false; this.isOpenHighCamera = false;
} else {
this.materials.push({'name': '营业执照', 'fileUrl': '', 'fileId': '', 'type': ''});
this.imgDel.push({'name': '', 'imgSrc': require('../../assets/images/ico/delete.png')});
this.imgFrames.push({'imgSrc': require('../../assets/images/filebox.png')});
} }
this.pageInfo(this.curPage,this.num); this.pageInfo(this.curPage,this.num);
if(robotType){ if(robotType){
...@@ -187,7 +189,6 @@ export default{ ...@@ -187,7 +189,6 @@ export default{
if (robotType)robotsdk.closeHighCamera();//关闭高拍仪 if (robotType)robotsdk.closeHighCamera();//关闭高拍仪
if (this.formIndex==1){ if (this.formIndex==1){
// this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.rocrUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=apply/XCYJYXKZ",materials:JSON.stringify(this.materials)}}); // this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.rocrUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=apply/XCYJYXKZ",materials:JSON.stringify(this.materials)}});
this.materials.push({'personName': this.personName, 'sex': this.sex, 'idcardNum': this.idcardNum});
this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.aiCaseUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/XCYJYXKZ",materials:JSON.stringify(this.materials)}}); this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.aiCaseUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/XCYJYXKZ",materials:JSON.stringify(this.materials)}});
} }
if (this.formIndex==2){ if (this.formIndex==2){
...@@ -220,9 +221,11 @@ export default{ ...@@ -220,9 +221,11 @@ export default{
} }
this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.aiCaseUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/JKZSQB",materials:JSON.stringify(this.identityList)}}); this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.aiCaseUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/JKZSQB",materials:JSON.stringify(this.identityList)}});
} }
if (this.formIndex==13){
this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.aiCaseUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/YDJYBAGRCNS",materials:JSON.stringify(this.materials)}}); if (this.formIndex==16){
this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.aiCaseUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/HKZM",materials:JSON.stringify(this.materials)}});
} }
}, },
scanBtn(){//扫描 scanBtn(){//扫描
...@@ -264,9 +267,38 @@ export default{ ...@@ -264,9 +267,38 @@ export default{
}, },
IDCardCallback (success,code,info){//身份证识别回调 IDCardCallback (success,code,info){//身份证识别回调
// alert(success+"--"+code+"--"+info);
if (success){ if (success){
var infoJson = JSON.parse(info);
this.personName = infoJson.name;
this.sex = infoJson.sex;
this.idcardNum = infoJson.idcard;
this.address = infoJson.address;
this.materials.push({'personName': this.personName, 'sex': this.sex, 'idcardNum': this.idcardNum,'address':this.address});
if (this.formIndex==13){
this.isOpenHighCamera=false;
if (robotType)robotsdk.closeHighCamera();//关闭高拍仪
this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.aiCaseUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/YDJYBAGRCNS",materials:JSON.stringify(this.materials)}});
}
else if (this.formIndex==14){
this.isOpenHighCamera=false;
if (robotType)robotsdk.closeHighCamera();//关闭高拍仪
this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.aiCaseUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/YBGRCNS",materials:JSON.stringify(this.materials)}});
}
else if (this.formIndex==15){
this.isOpenHighCamera=false;
if (robotType)robotsdk.closeHighCamera();//关闭高拍仪
this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.aiCaseUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/SLZYNJGRZHYECNS",materials:JSON.stringify(this.materials)}});
}
else {
this.isOpenHighCamera = true;
this.PlayAudioCallback("cmdOK")
}
}else {
alert("身份证读取失败:code = "+ code);
} }
}, },
...@@ -278,36 +310,36 @@ export default{ ...@@ -278,36 +310,36 @@ export default{
base64 : res.file, base64 : res.file,
applyType:'2', applyType:'2',
}).then(item => { }).then(item => {
console.log(JSON.stringify(item))
if (item.success) { if (item.success) {
this.masks(false);//遮罩层 true 打开 false 关闭 this.masks(false);//遮罩层 true 打开 false 关闭
let fileName=item.obj.fileName; let fileName=item.obj.fileName;
if (this.formIndex==1 || this.formIndex==2 || this.formIndex==3 || this.formIndex==4){
if (this.formIndex==1||this.formIndex==11){ let twoFileUrl=this.materials[1];
let oneFileUrl=this.materials[0].fileUrl; if (twoFileUrl == null){
let twoFileUrl=this.materials[1].fileUrl; if (fileName.lastIndexOf("营业执照")!=-1){
if (fileName!=''){ this.materials.push(item.obj);
if (fileName.lastIndexOf("身份证")!=-1) { robotsdk.playAudio({"videocontent":"营业执照扫描成功,请点下一步继续填报表格"})
if (oneFileUrl==""){ }else{
this.upMaterials(0,item);//更新身份证材料信息 this.message("请勿提交其它文件!");//提示框
}else{ }
this.type=1; }else {
this.temporary=item; this.showConfirmMessage("检测到材料已上传过是否覆盖最新?");
this.showConfirmMessage("检测到材料已上传过是否覆盖最新?"); }
} }else if (this.formIndex==16 || this.formIndex==17 || this.formIndex==18 || this.formIndex==19){
}else if (fileName.lastIndexOf("营业执照")!=-1){ let twoFileUrl=this.materials[1];
if (twoFileUrl==""){ if (twoFileUrl == null){
this.upMaterials(1,item);//更新营业执照材料信息 if (fileName.lastIndexOf("不动产证")!=-1){
}else{ this.materials.push(item.obj);
this.type=2; robotsdk.playAudio({"videocontent":"不动产证扫描成功,请点下一步继续填报表格"})
this.temporary=item; }else{
this.message("请勿提交其它文件!");//提示框
}
}else {
this.showConfirmMessage("检测到材料已上传过是否覆盖最新?"); this.showConfirmMessage("检测到材料已上传过是否覆盖最新?");
}
}else{
this.message("请勿提交其它文件!");//提示框
} }
} }
else if (this.formIndex==7){
}else if (this.formIndex==7){
let oneFileUrl=this.materials[0].fileUrl; let oneFileUrl=this.materials[0].fileUrl;
if (fileName.lastIndexOf("身份证")!=-1){ if (fileName.lastIndexOf("身份证")!=-1){
if (oneFileUrl==""){ if (oneFileUrl==""){
...@@ -374,7 +406,7 @@ export default{ ...@@ -374,7 +406,7 @@ export default{
} }
}else{ }else{
this.masks(false);//遮罩层 true 打开 false 关闭 this.masks(false);//遮罩层 true 打开 false 关闭
this.message("服务器异常,扫描失败!");//提示框 this.message("服务器异常,扫描失败!item=");//提示框
} }
}).catch(err => { }).catch(err => {
this.masks(false);//遮罩层 true 打开 false 关闭 this.masks(false);//遮罩层 true 打开 false 关闭
......
...@@ -149,7 +149,7 @@ export default{ ...@@ -149,7 +149,7 @@ export default{
methods:{ methods:{
goFillScan(formIndex){//表列表事件 goFillScan(formIndex){//表列表事件
if (formIndex==5 || formIndex==6 || formIndex==16 || formIndex==17 || formIndex==18 || formIndex==19 || formIndex==20){ if (formIndex==5 || formIndex==6 ){
this.$router.push({ path: '/contractScan',query:{formIndex:formIndex}}); this.$router.push({ path: '/contractScan',query:{formIndex:formIndex}});
}else { }else {
this.$router.push({ path: '/fillScanMaterial',query:{formIndex:formIndex}}); this.$router.push({ path: '/fillScanMaterial',query:{formIndex:formIndex}});
......
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