From 52927f9300cb9bd296949ab3ab9c4f22b58626c1 Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Thu, 6 Jan 2022 09:36:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E4=B8=80=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/counter/list/index.vue | 18 +++++++++++++++--- src/store/modules/system.js | 14 +++++++++++++- 2 files changed, 28 insertions(+), 4 deletions(-) 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])