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