diff --git a/src/pages/counter/list/index.vue b/src/pages/counter/list/index.vue index fa2322c..52062ac 100644 --- a/src/pages/counter/list/index.vue +++ b/src/pages/counter/list/index.vue @@ -19,7 +19,7 @@
- + @@ -261,6 +261,7 @@ export default { } }; return { + cultureArr: [], // 传票栏 peopleSign: [], moneyBox: [], takeCheck: '', // 选择业务逻辑 myKey用来确定选择哪个项目 @@ -924,6 +925,9 @@ export default { if(this.$store.state.system.popText == '客户签字') { this.receptionList.splice(0, this.receptionList.length, ...this.peopleSign) } + if(this.$store.state.system.popText == '传票栏') { + this.receptionList.splice(0, this.receptionList.length, ...this.cultureArr) + } if(!this.showGoods) this.checkList = [] return this.$store.state.system.showPop; }, @@ -1072,6 +1076,9 @@ export default { if(that.popText == '客户签字') { that.peopleSign = that.receptionList } + if(that.popText == '传票栏') { + that.cultureArr = that.receptionList + } } // 印章的拖拽 else if(that.$refs.popUpSeal) { @@ -1144,7 +1151,8 @@ export default { deleteGoods: 'system/deleteGoods', stampJudge: 'system/stampJudge', payMoney: 'system/payMoney', - backPeople: 'system/backPeople' + backPeople: 'system/backPeople', + backCulture: 'system/backCulture' }), checkTake(myKey){ if(this.takeCheck === myKey) { @@ -1402,6 +1410,10 @@ export default { const idArr = this.receptionList.map(item => item.id) this.backPeople(idArr) // this.stampJudge() + }else if(this.popText == '传票栏') { + const idArr = this.receptionList.map(item => item.id) + this.backCulture(idArr) + // this.stampJudge() }else{ console.log('-刷卡确认') // this.goodsShelfTotalData = this.auditGoodsShelf @@ -1567,7 +1579,7 @@ export default { this.$store.commit('system/changePop',{show:false,text:''}) // 关闭弹窗 console.log('---关闭弹窗') if (this.nbm == 0){ //用户 - }else if (this.nbm == 1){ //传票箱 + }else if (this.nbm == 1){ //传票栏 let projectId = sessionStorage.getItem('projectId') let startTime = sessionStorage.getItem('startTime') for (var i=0;i item === idArr[i]) + if(index !== -1) { + const index2 = state.businessSelect[state.businessKey].data.findIndex(item => item === idArr[i]) + console.log(index2) + state.businessSelect[state.businessKey].cultureArr.splice(index, 1) + state.businessSelect[state.businessKey].data.splice(index2, 1) + } + } + }, backPeople(state, idArr) { for(let i=0; i item === idArr[i])