修改切换项目跳回首页

20240205
e 3 years ago
parent d4510a995c
commit 19f98e4f6c
  1. BIN
      dist.zip
  2. 93
      src/components/case/index.vue
  3. 184
      src/pages/counter/list/index.vue

Binary file not shown.

@ -232,17 +232,39 @@ export default {
} }
}, },
mounted() { mounted() {
this.projectPermissions = this.projectId ? 1 : 0 let token = this.getQueryVariable('token')
if(this.projectId){ let cid = this.getQueryVariable('cid')
this.getQueryProject(); let systemId = this.getQueryVariable('systemId')
}else{ if (token != null){
this.getProjects(); sessionStorage.setItem('token', token)
} sessionStorage.setItem('cid', cid)
this.assessmentId && this.projectId && this.checkVer() sessionStorage.setItem('systemId', systemId)
this.codeId && this.codeIds.push(this.codeId) }
this.getData() let tokens = sessionStorage.getItem('token')
if(tokens){
this.projectPermissions = this.projectId ? 1 : 0
if(this.projectId){
this.getQueryProject();
}else{
this.getProjects();
}
this.assessmentId && this.projectId && this.checkVer()
this.codeId && this.codeIds.push(this.codeId)
this.getData()
}
}, },
methods: { methods: {
getQueryVariable(name) {
var reg = new RegExp('(^|&)'+name+'=([^&]*)(&|$)')
if( window.location.href.split('?')[1]){
var r = window.location.href.split('?')[1].match(reg)
if (r != null){
return (r[2])
}else{
return null
}
}
},
// //
getData(){ getData(){
let params = { let params = {
@ -250,14 +272,15 @@ export default {
} }
getProjectBySystemId(params).then((data)=>{ getProjectBySystemId(params).then((data)=>{
if(data.status == 200){ if(data.status == 200){
this.topicList = data.data.projects this.topicList = data.data.projects;
this.projectId = this.topicList[0].projectId;
this.selectProject()
} }
}).catch((error)=>{ }).catch((error)=>{
}) })
}, },
// //
selectProject(){ selectProject(){
// for ()
let params = { let params = {
projectId:this.projectId, projectId:this.projectId,
} }
@ -267,6 +290,7 @@ export default {
this.projectName = data.data.projectName this.projectName = data.data.projectName
this.projectManage = data.data.projectManage; this.projectManage = data.data.projectManage;
this.requires = data.data.projectJudgmentVos; this.requires = data.data.projectJudgmentVos;
location.href = 'http://39.108.250.202/banksystem/#/index/list'
} }
}).catch((error)=>{ }).catch((error)=>{
}) })
@ -317,11 +341,13 @@ export default {
} }
submit(params).then((data)=>{ submit(params).then((data)=>{
if(data.status == 200){ if(data.status == 200){
let datas= data.data.retMap.scoreInfo let datas= data.data.retMap.scoreInfo;
console.log() let formList = []
let formList = [] sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) sessionStorage.setItem('formDataAccountVoucher', JSON.stringify(formList))
sessionStorage.setItem('formDataAccountPassword', '')
let list = this.requires let list = this.requires
this.grade = data.data.totalScore
for (var j=0;j<list.length;j++){ for (var j=0;j<list.length;j++){
for (var i=0;i<datas.length;i++){ for (var i=0;i<datas.length;i++){
if (datas[i].lcId== list[j].judgmentId){ if (datas[i].lcId== list[j].judgmentId){
@ -337,41 +363,6 @@ export default {
}).catch((error)=>{ }).catch((error)=>{
}) })
this.getClearTime(); this.getClearTime();
//
// this.$post(this.api.Submit, {
// // projectPermissions: 0,
// createTime: this.startTime,
// endTime: this.stopTime,
// projectId: this.projectId,
// projectPermissions: this.projectPermissions,
// // assessmentId: 1,
// assessmentId: this.assessmentId ? this.assessmentId : '',
// codeIds: this.codeIds,
// judgmentPointsIds: this.judgmentPointsIds,
// // studentId: 54,
// studentId: this.studentId,
// record: {
// courseId: 1,
// // courseId: this.courseId,
// projectId: this.projectId,
// createTime: this.startTime,
// endTime: this.stopTime,
// startTime: this.entryTime
// }
// }).then(res => {
// this.isSubmit = true
// // newmain.$emit("isSubmit", this.isSubmit);
// this.tableData = res.message
// //
// var s = 0;
// this.tableData.forEach(element => {
// this.test = element.score;
// s += this.test;
// this.grade = s;
// });
// })
// .catch(err => {});
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: "info", type: "info",
@ -433,8 +424,6 @@ export default {
} }
}); });
}, },
// //
timeFormat(param) { timeFormat(param) {
return param < 10 ? "0" + param : param; return param < 10 ? "0" + param : param;

@ -2,7 +2,7 @@
<div class="wrap"> <div class="wrap">
<!-- <img class="sth bg" src="" alt="" />--> <!-- <img class="sth bg" src="" alt="" />-->
<!-- <img class="sth guide" src="@/assets/img/guide.png" alt="" /> --> <!-- <img class="sth guide" src="@/assets/img/guide.png" alt="" /> -->
<img class="sth man" src="@/assets/img/man.png" alt="" /> <img class="sth man cp" src="@/assets/img/man.png" alt="" @click="showData('客户签字',0)"/>
<img class="sth counter" src="@/assets/img/counter.png" alt="" /> <img class="sth counter" src="@/assets/img/counter.png" alt="" />
<img class="sth glass" src="@/assets/img/glass.png" alt="" /> <img class="sth glass" src="@/assets/img/glass.png" alt="" />
@ -225,14 +225,14 @@ export default {
manageVisible: false, // manageVisible: false, //
checkList: [],// checkList: [],//
elseBoxCheck:[],/* 所有其他可从物品栏拖拽物品进入的弹框 */ elseBoxCheck:[],/* 所有其他可从物品栏拖拽物品进入的弹框 */
////// ////////
auditGoodsShelf:[ auditGoodsShelf:[
{name:'身份证', src:require('@/assets/img/goods/idcard.png'), id:13}, {name:'身份证', src:require('@/assets/img/goods/idcard.png'), id:13},
{name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23}, {name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23},
{name:'开户申请书', src:require('@/assets/img/goods/khsqs.png'), id:14}, {name:'开户申请书', src:require('@/assets/img/goods/khsqs.png'), id:14},
{name:'现金', src:require('@/assets/img/goods/cash-sm.png'), id:15}, {name:'现金', src:require('@/assets/img/goods/cash-sm.png'), id:15},
], ],
//// // //
systemInputGoodsShelf:[ systemInputGoodsShelf:[
{name:'身份证', src:require('@/assets/img/goods/idcard.png'), id:13}, {name:'身份证', src:require('@/assets/img/goods/idcard.png'), id:13},
{name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23}, {name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23},
@ -240,7 +240,7 @@ export default {
{name:'现金', src:require('@/assets/img/goods/cash-sm.png'), id:15}, {name:'现金', src:require('@/assets/img/goods/cash-sm.png'), id:15},
{name:'银行卡', src:require('@/assets/img/goods/bankCard.png'), id:16}, {name:'银行卡', src:require('@/assets/img/goods/bankCard.png'), id:16},
], ],
// // // // // //
printoutGoodsShelf:[ printoutGoodsShelf:[
{name:'身份证', src:require('@/assets/img/goods/idcard.png'), id:13}, {name:'身份证', src:require('@/assets/img/goods/idcard.png'), id:13},
{name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23}, {name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23},
@ -249,6 +249,12 @@ export default {
{name:'银行卡', src:require('@/assets/img/goods/bankCard.png'), id:16}, {name:'银行卡', src:require('@/assets/img/goods/bankCard.png'), id:16},
{name:'存款凭条', src:require('@/assets/img/goods/ckpt.png'), id:17}, {name:'存款凭条', src:require('@/assets/img/goods/ckpt.png'), id:17},
], ],
//
cashboxGoodsShelf:[
{name:'现金', src:require('@/assets/img/goods/cash-sm.png'), id:15},
{name:'身份证', src:require('@/assets/img/goods/idcard.png'), id:13},
{name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23},
],
// 西 // 西
goodsShelfTotalData:[], goodsShelfTotalData:[],
// goods:[/* */ // goods:[/* */
@ -445,30 +451,30 @@ export default {
}); });
}, },
methods: { methods: {
getQueryVariable(name) { // getQueryVariable(name) {
var reg = new RegExp('(^|&)'+name+'=([^&]*)(&|$)') // var reg = new RegExp('(^|&)'+name+'=([^&]*)(&|$)')
if( window.location.href.split('?')[1]){ // if( window.location.href.split('?')[1]){
var r = window.location.href.split('?')[1].match(reg) // var r = window.location.href.split('?')[1].match(reg)
if (r != null){ // if (r != null){
return (r[2]) // return (r[2])
}else{ // }else{
return null // return null
} // }
} // }
}, // },
toggleGoods() { toggleGoods() {
this.showGoods = !this.showGoods; this.showGoods = !this.showGoods;
}, },
showData(type,nbm) {/* 展示弹窗-type为弹窗标题文字 */ showData(type,nbm) {/* 展示弹窗-type为弹窗标题文字 */
this.nbm = nbm this.nbm = nbm
if(type == '重要空白凭证箱'){ if(type == '普通凭证箱' || type == '系统'){
this.goodsShelfTotalData = this.systemInputGoodsShelf this.goodsShelfTotalData = this.systemInputGoodsShelf
}else if(type == '身份证扫描仪' || type == '验钞机' || type == '资料'){ }else if(type == '身份证扫描仪' || type == '验钞机' || type == '资料' || type == '重要空白凭证箱'){
this.goodsShelfTotalData = this.auditGoodsShelf this.goodsShelfTotalData = this.auditGoodsShelf
}else if(type == '普通凭证箱' || type == '打印机'){ }else if(type == '打印机' || type == '客户签字' || type == '印章盒'){
this.goodsShelfTotalData = this.printoutGoodsShelf
}else if(type == '普通凭证箱'){
this.goodsShelfTotalData = this.printoutGoodsShelf this.goodsShelfTotalData = this.printoutGoodsShelf
}else if(type == '钱箱'){
this.goodsShelfTotalData = this.cashboxGoodsShelf
} }
this.$store.commit('system/changePop',{show:true,text:type}) this.$store.commit('system/changePop',{show:true,text:type})
}, },
@ -580,8 +586,6 @@ export default {
formDataAccountPassword = this.passwordForm.passwordAgain formDataAccountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('formDataAccountPassword', formDataAccountPassword) sessionStorage.setItem('formDataAccountPassword', formDataAccountPassword)
} }
} }
} }
this.toggleGoods() this.toggleGoods()
@ -606,71 +610,77 @@ export default {
}else{ }else{
if (this.receptionList.length >0){ if (this.receptionList.length >0){
this.$message.success(`${this.popText}操作成功!`) this.$message.success(`${this.popText}操作成功!`)
if (this.nbm == 1){ if (this.nbm == 0){
let formList = [] // let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs') // let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} // if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,4,"+this.receptionList[i].id,"type": ""})} // for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,4,"+this.receptionList[i].id,"type": ""})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) // sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else if (this.nbm == 2){ }else if (this.nbm == 1){
let formList = [] let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs') let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,3,"+this.receptionList[i].id,"type": ""})} for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,4,"+this.receptionList[i].id,"type": ""})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else if (this.nbm == 3){ }else if (this.nbm == 2){
let formList = [] let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs') let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,2,"+this.receptionList[i].id,"type": ""})} for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,3,"+this.receptionList[i].id,"type": ""})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else if (this.nbm == 4){ }else if (this.nbm == 3){
let formList = [] let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs') let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,1,"+this.receptionList[i].id,"type": ""})} for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,2,"+this.receptionList[i].id,"type": ""})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else if (this.nbm == 5){ }else if (this.nbm == 4){
let formList = [] let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs') let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,8,"+this.receptionList[i].id,"type": ""})} for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,1,"+this.receptionList[i].id,"type": ""})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else if (this.nbm == 6){ }else if (this.nbm == 5){
let formList = [] let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs') let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,9,"+this.receptionList[i].id,"type": ""})} for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,8,"+this.receptionList[i].id,"type": ""})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else if (this.nbm == 7){ }else if (this.nbm == 6){
let formList = [] let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs') let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,10,"+this.receptionList[i].id,"type": ""})} for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,9,"+this.receptionList[i].id,"type": ""})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else if (this.nbm == 9){ }else if (this.nbm == 7){
let formList = [] let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs') let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,11,"+this.receptionList[i].id,"type": ""})} for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,10,"+this.receptionList[i].id,"type": ""})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else if (this.nbm == 10){ }else if (this.nbm == 9){
let formList = [] let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs') let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,6,"+this.receptionList[i].id,"type": ""})} for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,11,"+this.receptionList[i].id,"type": ""})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else if (this.nbm == 11){ }else if (this.nbm == 10){
let formList = [] let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs') let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,7,"+this.receptionList[i].id,"type": ""})} for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,6,"+this.receptionList[i].id,"type": ""})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else{ }else if (this.nbm == 11){
let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,7,"+this.receptionList[i].id,"type": ""})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else{
} }
this.$store.commit('system/changePop',{show:false,text:''}) this.$store.commit('system/changePop',{show:false,text:''})
this.receptionList = []; this.receptionList = [];
}else{ }else{
this.$message.error('请从物品栏中拖拽所需资料'); this.$message.error('请从物品栏中拖拽所需资料');
} }

Loading…
Cancel
Save