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

增加事项

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