|
|
|
@ -193,6 +193,7 @@ |
|
|
|
|
import { mapState } from 'vuex'; |
|
|
|
|
import Sortable from 'sortablejs' |
|
|
|
|
import manage from '../../manage/index'; |
|
|
|
|
import { addOperation, getOperation } from '@/api/http'; |
|
|
|
|
export default { |
|
|
|
|
name: 'index', |
|
|
|
|
components: { |
|
|
|
@ -228,39 +229,39 @@ export default { |
|
|
|
|
//身份证扫描仪//审核资料//验钞机//选择重要空白凭证 |
|
|
|
|
auditGoodsShelf:[ |
|
|
|
|
{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/goods/khsqs.png'), id:14}, |
|
|
|
|
{name:'现金', src:require('@/assets/img/goods/cash-sm.png'), id:15}, |
|
|
|
|
{name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23}, |
|
|
|
|
], |
|
|
|
|
//系统录入 //选择普通空白凭证 |
|
|
|
|
systemInputGoodsShelf:[ |
|
|
|
|
{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/goods/khsqs.png'), id:14}, |
|
|
|
|
{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/idCard-copy-sm.png'), id:23}, |
|
|
|
|
], |
|
|
|
|
//打印资料 //客户签字 //印章盒 |
|
|
|
|
printoutGoodsShelf:[ |
|
|
|
|
{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/goods/khsqs.png'), id:14}, |
|
|
|
|
{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/ckpt.png'), id:17}, |
|
|
|
|
{name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23}, |
|
|
|
|
], |
|
|
|
|
//钱箱 |
|
|
|
|
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/goods/cash-sm.png'), id:15}, |
|
|
|
|
{name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23}, |
|
|
|
|
], |
|
|
|
|
// 总盒子里面的东西 |
|
|
|
|
goodsShelfTotalData:[ |
|
|
|
|
{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/goods/khsqs.png'), id:14}, |
|
|
|
|
{name:'现金', src:require('@/assets/img/goods/cash-sm.png'), id:15}, |
|
|
|
|
{name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23}, |
|
|
|
|
], |
|
|
|
|
// goods:[/* 物品栏物品 */ |
|
|
|
|
// ], |
|
|
|
@ -336,6 +337,24 @@ export default { |
|
|
|
|
return this.$store.state.system.fullScreen; |
|
|
|
|
}, |
|
|
|
|
showPop:function(){/* 展示弹框 */ |
|
|
|
|
if(this.$store.state.system.popText == '刷卡器'){ |
|
|
|
|
let dataList = JSON.parse(sessionStorage.getItem('dataList')); |
|
|
|
|
if (dataList){ |
|
|
|
|
this.receptionList = [] |
|
|
|
|
for(var j=0;j<dataList.length;j++){ |
|
|
|
|
for(var i=0;i<this.goodsShelfTotalData.length;i++){ |
|
|
|
|
if(dataList[j].answerId == this.goodsShelfTotalData[i].id){ |
|
|
|
|
this.receptionList.push(this.goodsShelfTotalData[i]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(this.$store.state.system.popText == '密码器'){ |
|
|
|
|
let accountPasswordAll = sessionStorage.getItem('accountPasswordAll'); |
|
|
|
|
this.passwordForm.password = accountPasswordAll |
|
|
|
|
this.passwordForm.passwordAgain = accountPasswordAll |
|
|
|
|
} |
|
|
|
|
if(!this.showGoods) this.showGoods = this.$store.state.system.showPop |
|
|
|
|
if(!this.showGoods) this.checkList = [] |
|
|
|
|
return this.$store.state.system.showPop; |
|
|
|
@ -370,27 +389,6 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted(){ |
|
|
|
|
// Promise.resolve(2).then(value=>{ |
|
|
|
|
// console.log(111,value) |
|
|
|
|
// return value |
|
|
|
|
// }) |
|
|
|
|
// .then(value=>{ |
|
|
|
|
// console.log(222,value) |
|
|
|
|
// return Promise.resolve(value) |
|
|
|
|
|
|
|
|
|
// }) |
|
|
|
|
// .then(value=>{ |
|
|
|
|
// console.log(333,value) |
|
|
|
|
// }) |
|
|
|
|
// .then(value=>{ |
|
|
|
|
// console.log(444,value) |
|
|
|
|
// return Promise.reject(value) |
|
|
|
|
// }) |
|
|
|
|
// .then(value=>{ |
|
|
|
|
// console.log(555,value) |
|
|
|
|
// }).catch(err=>{ |
|
|
|
|
// console.log(666,err) |
|
|
|
|
// }) |
|
|
|
|
let that = this |
|
|
|
|
// 拖拽-物品栏 |
|
|
|
|
new Sortable(this.$refs.goods, { |
|
|
|
@ -456,17 +454,6 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
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 |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// }, |
|
|
|
|
toggleGoods() { |
|
|
|
|
this.showGoods = !this.showGoods; |
|
|
|
|
}, |
|
|
|
@ -474,12 +461,114 @@ export default { |
|
|
|
|
this.nbm = nbm |
|
|
|
|
if(type == '普通凭证箱' || type == '系统'){ |
|
|
|
|
this.goodsShelfTotalData = this.systemInputGoodsShelf |
|
|
|
|
let parentId = '' |
|
|
|
|
if(type == '普通凭证箱'){ |
|
|
|
|
parentId = '0,3' |
|
|
|
|
} |
|
|
|
|
if(type == '系统'){ |
|
|
|
|
parentId = '0,5' |
|
|
|
|
} |
|
|
|
|
let param= { |
|
|
|
|
parentId: parentId |
|
|
|
|
} |
|
|
|
|
getOperation(param).then((data)=> { |
|
|
|
|
if (data.data.status == 200) { |
|
|
|
|
var list = data.data.judgmentRuleReqs |
|
|
|
|
for(var j=0;j<list.length;j++){ |
|
|
|
|
for(var i=0;i<this.goodsShelfTotalData.length;i++){ |
|
|
|
|
if(list[j].answerId == this.goodsShelfTotalData[i].id){ |
|
|
|
|
this.receptionList.push(this.goodsShelfTotalData[i]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.receptionList = [] |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if(type == '身份证扫描仪' || type == '验钞机' || type == '资料' || type == '重要空白凭证箱'){ |
|
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
|
let parentId = '' |
|
|
|
|
if(type == '重要空白凭证箱'){ |
|
|
|
|
parentId = '0,2' |
|
|
|
|
} |
|
|
|
|
if(type == '资料'){ |
|
|
|
|
parentId = '0,11' |
|
|
|
|
} |
|
|
|
|
if(type == '验钞机'){ |
|
|
|
|
parentId = '0,9' |
|
|
|
|
} |
|
|
|
|
if(type == '身份证扫描仪'){ |
|
|
|
|
parentId = '0,7' |
|
|
|
|
} |
|
|
|
|
let param= { |
|
|
|
|
parentId: parentId |
|
|
|
|
} |
|
|
|
|
getOperation(param).then((data)=> { |
|
|
|
|
if (data.data.status == 200) { |
|
|
|
|
var list = data.data.judgmentRuleReqs |
|
|
|
|
for(var j=0;j<list.length;j++){ |
|
|
|
|
for(var i=0;i<this.goodsShelfTotalData.length;i++){ |
|
|
|
|
if(list[j].answerId == this.goodsShelfTotalData[i].id){ |
|
|
|
|
this.receptionList.push(this.goodsShelfTotalData[i]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.receptionList = [] |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if(type == '打印机' || type == '客户签字' || type == '印章盒'){ |
|
|
|
|
this.goodsShelfTotalData = this.printoutGoodsShelf |
|
|
|
|
let parentId = '' |
|
|
|
|
if(type == '打印机'){ |
|
|
|
|
parentId = '0,10' |
|
|
|
|
} |
|
|
|
|
if(type == '客户签字'){ |
|
|
|
|
parentId = '0,12' |
|
|
|
|
} |
|
|
|
|
if(type == '印章盒'){ |
|
|
|
|
parentId = '0,8' |
|
|
|
|
} |
|
|
|
|
let param= { |
|
|
|
|
parentId: parentId |
|
|
|
|
} |
|
|
|
|
getOperation(param).then((data)=> { |
|
|
|
|
if (data.data.status == 200) { |
|
|
|
|
var list = data.data.judgmentRuleReqs |
|
|
|
|
for(var j=0;j<list.length;j++){ |
|
|
|
|
for(var i=0;i<this.goodsShelfTotalData.length;i++){ |
|
|
|
|
if(list[j].answerId == this.goodsShelfTotalData[i].id){ |
|
|
|
|
this.receptionList.push(this.goodsShelfTotalData[i]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.receptionList = [] |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if(type == '钱箱'){ |
|
|
|
|
this.goodsShelfTotalData = this.cashboxGoodsShelf |
|
|
|
|
this.goodsShelfTotalData = this.cashboxGoodsShelf; |
|
|
|
|
let param= { |
|
|
|
|
parentId: '0,1' |
|
|
|
|
} |
|
|
|
|
getOperation(param).then((data)=> { |
|
|
|
|
if (data.data.status == 200) { |
|
|
|
|
var list = data.data.judgmentRuleReqs |
|
|
|
|
for(var j=0;j<list.length;j++){ |
|
|
|
|
for(var i=0;i<this.goodsShelfTotalData.length;i++){ |
|
|
|
|
if(list[j].answerId == this.goodsShelfTotalData[i].id){ |
|
|
|
|
this.receptionList.push(this.goodsShelfTotalData[i]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.receptionList = [] |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
this.$store.commit('system/changePop',{show:true,text:type}) |
|
|
|
|
}, |
|
|
|
@ -579,17 +668,43 @@ export default { |
|
|
|
|
this.$store.commit('system/changeGoods',{push:arr}) |
|
|
|
|
clickList.length = 0 |
|
|
|
|
}else{ |
|
|
|
|
if (this.id == '62'){ |
|
|
|
|
if (this.id == '62,1'){ |
|
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
|
let accountVoucher = []; |
|
|
|
|
let accountPassword = ''; |
|
|
|
|
if (this.receptionList.length){ |
|
|
|
|
accountVoucher = this.receptionList |
|
|
|
|
sessionStorage.setItem('accountVoucher', JSON.stringify(accountVoucher)) |
|
|
|
|
} |
|
|
|
|
if (this.passwordForm.passwordAgain){ |
|
|
|
|
accountPassword = this.passwordForm.passwordAgain |
|
|
|
|
sessionStorage.setItem('accountPassword', accountPassword) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (this.id == '62,2'){ |
|
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
|
let accountVoucherTwo = [] |
|
|
|
|
let accountPasswordTwo = '' |
|
|
|
|
if (this.receptionList.length){ |
|
|
|
|
accountVoucherTwo = this.receptionList |
|
|
|
|
sessionStorage.setItem('accountVoucherTwo', JSON.stringify(accountVoucherTwo)) |
|
|
|
|
} |
|
|
|
|
if (this.passwordForm.passwordAgain){ |
|
|
|
|
accountPasswordTwo = this.passwordForm.passwordAgain |
|
|
|
|
sessionStorage.setItem('accountPasswordTwo', accountPasswordTwo) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (this.id == '62,3'){ |
|
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
|
let formDataAccountVoucher = [] |
|
|
|
|
let formDataAccountPassword = '' |
|
|
|
|
let accountVoucherThree = [] |
|
|
|
|
let accountPasswordThree = '' |
|
|
|
|
if (this.receptionList.length){ |
|
|
|
|
formDataAccountVoucher = this.receptionList |
|
|
|
|
sessionStorage.setItem('formDataAccountVoucher', JSON.stringify(formDataAccountVoucher)) |
|
|
|
|
accountVoucherThree = this.receptionList |
|
|
|
|
sessionStorage.setItem('accountVoucherThree', JSON.stringify(accountVoucherThree)) |
|
|
|
|
} |
|
|
|
|
if (this.passwordForm.passwordAgain){ |
|
|
|
|
formDataAccountPassword = this.passwordForm.passwordAgain |
|
|
|
|
sessionStorage.setItem('formDataAccountPassword', formDataAccountPassword) |
|
|
|
|
accountPasswordThree = this.passwordForm.passwordAgain |
|
|
|
|
sessionStorage.setItem('accountPasswordThree', accountPasswordThree) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -615,72 +730,178 @@ export default { |
|
|
|
|
}else{ |
|
|
|
|
if (this.receptionList.length >0){ |
|
|
|
|
this.$message.success(`${this.popText}操作成功!`) |
|
|
|
|
if (this.nbm == 0){ |
|
|
|
|
// 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,4,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
// sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
}else if (this.nbm == 1){ |
|
|
|
|
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,4,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
}else if (this.nbm == 2){ |
|
|
|
|
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,3,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
}else if (this.nbm == 3){ |
|
|
|
|
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,2,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
}else if (this.nbm == 4){ |
|
|
|
|
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,1,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
}else if (this.nbm == 5){ |
|
|
|
|
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,8,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
}else if (this.nbm == 6){ |
|
|
|
|
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,9,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
}else if (this.nbm == 7){ |
|
|
|
|
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,10,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
}else if (this.nbm == 9){ |
|
|
|
|
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,11,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
}else if (this.nbm == 10){ |
|
|
|
|
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,6,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
}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)) |
|
|
|
|
if (this.nbm == 0){ //用户 |
|
|
|
|
}else if (this.nbm == 1){ //传票箱 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id,"emptyOne": "", "emptyTwo": "", "operationIds": "0,4,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,4', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 2){ //普通凭证箱 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,3,"+this.receptionList[i].id, "type": "" })} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,3', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 3){ //重要空白凭证箱 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,2,"+this.receptionList[i].id, "type": "" })} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,2', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 4){ //钱箱 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
let formList = []; |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,1,"+this.receptionList[i].id, "type": "" })} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,1', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 5){ //印章盒 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,8,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,8', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 6){ //验钞机 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,9,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,9', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 7){ //打印机 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,10,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,10', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 9){//资料 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,11,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,11', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 10){ //刷卡器 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,6,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,6', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 11){ //身份证扫描仪 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,7,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,7', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|