|
|
@ -339,10 +339,32 @@ export default { |
|
|
|
return this.$store.state.system.fullScreen; |
|
|
|
return this.$store.state.system.fullScreen; |
|
|
|
}, |
|
|
|
}, |
|
|
|
showPop:function(){/* 展示弹框 */ |
|
|
|
showPop:function(){/* 展示弹框 */ |
|
|
|
|
|
|
|
this.receptionList = [] |
|
|
|
if(this.$store.state.system.popText == '刷卡器'){ |
|
|
|
if(this.$store.state.system.popText == '刷卡器'){ |
|
|
|
if (this.$store.state.system.id == '62,1'){ |
|
|
|
if (this.$store.state.system.id == '62,1'){ |
|
|
|
let receptionList = sessionStorage.getItem('accountVoucher') |
|
|
|
this.nbm = 62 |
|
|
|
this.receptionList = JSON.parse(receptionList) |
|
|
|
let param= { |
|
|
|
|
|
|
|
parentId: '0,5,26,57,62,75' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
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{ |
|
|
|
|
|
|
|
let accountVoucher = sessionStorage.getItem('accountVoucher') |
|
|
|
|
|
|
|
this.receptionList = JSON.parse(accountVoucher); |
|
|
|
|
|
|
|
if(this.receptionList == null){ |
|
|
|
|
|
|
|
this.receptionList = [] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
|
|
|
}) |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
let dataList = JSON.parse(sessionStorage.getItem('dataList')); |
|
|
|
let dataList = JSON.parse(sessionStorage.getItem('dataList')); |
|
|
|
if (dataList){ |
|
|
|
if (dataList){ |
|
|
@ -363,7 +385,6 @@ export default { |
|
|
|
this.passwordForm.password = accountPasswordAll |
|
|
|
this.passwordForm.password = accountPasswordAll |
|
|
|
this.passwordForm.passwordAgain = accountPasswordAll |
|
|
|
this.passwordForm.passwordAgain = 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 = [] |
|
|
@ -421,6 +442,9 @@ export default { |
|
|
|
let ifElse = 0; |
|
|
|
let ifElse = 0; |
|
|
|
for(var i=0;i<that.popArr.length;i++){ |
|
|
|
for(var i=0;i<that.popArr.length;i++){ |
|
|
|
if (that.goodsShelfTotalData[evt.oldIndex].name == that.popArr[i].name){ |
|
|
|
if (that.goodsShelfTotalData[evt.oldIndex].name == that.popArr[i].name){ |
|
|
|
|
|
|
|
if (that.receptionList == null){ |
|
|
|
|
|
|
|
that.receptionList = [] |
|
|
|
|
|
|
|
} |
|
|
|
if (that.receptionList.length){ |
|
|
|
if (that.receptionList.length){ |
|
|
|
for(var j=0;j< that.receptionList.length;j++){ |
|
|
|
for(var j=0;j< that.receptionList.length;j++){ |
|
|
|
if (that.receptionList[j].name == that.goodsShelfTotalData[evt.oldIndex].name){ |
|
|
|
if (that.receptionList[j].name == that.goodsShelfTotalData[evt.oldIndex].name){ |
|
|
@ -484,24 +508,6 @@ export default { |
|
|
|
if(type == '系统'){ |
|
|
|
if(type == '系统'){ |
|
|
|
parentId = '0,5' |
|
|
|
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 = '' |
|
|
|
let parentId = '' |
|
|
@ -520,21 +526,6 @@ export default { |
|
|
|
let param= { |
|
|
|
let param= { |
|
|
|
parentId: parentId |
|
|
|
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 = '' |
|
|
|
let parentId = '' |
|
|
@ -547,24 +538,6 @@ export default { |
|
|
|
if(type == '印章盒'){ |
|
|
|
if(type == '印章盒'){ |
|
|
|
parentId = '0,8' |
|
|
|
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= { |
|
|
|
let param= { |
|
|
@ -684,41 +657,38 @@ 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,1'){ |
|
|
|
if (this.$store.state.system.id == '62,1'){ |
|
|
|
|
|
|
|
this.nbm = 62 |
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
let accountVoucher = []; |
|
|
|
if (this.receptionList.length >0){ |
|
|
|
let accountPassword = ''; |
|
|
|
sessionStorage.setItem('accountVoucher', JSON.stringify(this.receptionList)) |
|
|
|
if (this.receptionList.length){ |
|
|
|
|
|
|
|
accountVoucher = this.receptionList |
|
|
|
|
|
|
|
sessionStorage.setItem('accountVoucher', JSON.stringify(accountVoucher)) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (this.passwordForm.passwordAgain){ |
|
|
|
if (this.passwordForm.passwordAgain){ |
|
|
|
|
|
|
|
let accountPassword = ''; |
|
|
|
accountPassword = this.passwordForm.passwordAgain |
|
|
|
accountPassword = this.passwordForm.passwordAgain |
|
|
|
sessionStorage.setItem('accountPassword', accountPassword) |
|
|
|
sessionStorage.setItem('accountPassword', accountPassword) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.id == '62,2'){ |
|
|
|
if (this.$store.state.system.id == '62,2'){ |
|
|
|
|
|
|
|
this.nbm = 62 |
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
let accountVoucherTwo = [] |
|
|
|
if (this.receptionList.length >0){ |
|
|
|
let accountPasswordTwo = '' |
|
|
|
sessionStorage.setItem('accountVoucherTwo', JSON.stringify(this.receptionList)) |
|
|
|
if (this.receptionList.length){ |
|
|
|
|
|
|
|
accountVoucherTwo = this.receptionList |
|
|
|
|
|
|
|
sessionStorage.setItem('accountVoucherTwo', JSON.stringify(accountVoucherTwo)) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (this.passwordForm.passwordAgain){ |
|
|
|
if (this.passwordForm.passwordAgain){ |
|
|
|
|
|
|
|
let accountPasswordTwo = '' |
|
|
|
accountPasswordTwo = this.passwordForm.passwordAgain |
|
|
|
accountPasswordTwo = this.passwordForm.passwordAgain |
|
|
|
sessionStorage.setItem('accountPasswordTwo', accountPasswordTwo) |
|
|
|
sessionStorage.setItem('accountPasswordTwo', accountPasswordTwo) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.id == '62,3'){ |
|
|
|
if (this.$store.state.system.id == '62,3'){ |
|
|
|
|
|
|
|
this.nbm = 62 |
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
let accountVoucherThree = [] |
|
|
|
if (this.receptionList.length >0){ |
|
|
|
let accountPasswordThree = '' |
|
|
|
sessionStorage.setItem('accountVoucherThree', JSON.stringify(this.receptionList)) |
|
|
|
if (this.receptionList.length){ |
|
|
|
|
|
|
|
accountVoucherThree = this.receptionList |
|
|
|
|
|
|
|
sessionStorage.setItem('accountVoucherThree', JSON.stringify(accountVoucherThree)) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (this.passwordForm.passwordAgain){ |
|
|
|
if (this.passwordForm.passwordAgain){ |
|
|
|
|
|
|
|
let accountPasswordThree = '' |
|
|
|
accountPasswordThree = this.passwordForm.passwordAgain |
|
|
|
accountPasswordThree = this.passwordForm.passwordAgain |
|
|
|
sessionStorage.setItem('accountPasswordThree', accountPasswordThree) |
|
|
|
sessionStorage.setItem('accountPasswordThree', accountPasswordThree) |
|
|
|
} |
|
|
|
} |
|
|
|