业务一模板

20240205
luoJunYong.123 3 years ago
parent 4c657e23ba
commit 52927f9300
  1. 18
      src/pages/counter/list/index.vue
  2. 14
      src/store/modules/system.js

@ -19,7 +19,7 @@
<div slot="content"> <div slot="content">
<img v-lazy="lazyImg[5]" alt="" /> <img v-lazy="lazyImg[5]" alt="" />
</div> </div>
<img class="sth summons cp" v-lazy="lazyImg[6]" alt="" @click="showData('传票',1)" /> <img class="sth summons cp" v-lazy="lazyImg[6]" alt="" @click="showData('传票',1)" />
</el-tooltip> </el-tooltip>
<el-tooltip placement="top-start" popper-class="sth-popper" offset="250"> <el-tooltip placement="top-start" popper-class="sth-popper" offset="250">
@ -261,6 +261,7 @@ export default {
} }
}; };
return { return {
cultureArr: [], //
peopleSign: [], peopleSign: [],
moneyBox: [], moneyBox: [],
takeCheck: '', // myKey takeCheck: '', // myKey
@ -924,6 +925,9 @@ export default {
if(this.$store.state.system.popText == '客户签字') { if(this.$store.state.system.popText == '客户签字') {
this.receptionList.splice(0, this.receptionList.length, ...this.peopleSign) 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 = [] if(!this.showGoods) this.checkList = []
return this.$store.state.system.showPop; return this.$store.state.system.showPop;
}, },
@ -1072,6 +1076,9 @@ export default {
if(that.popText == '客户签字') { if(that.popText == '客户签字') {
that.peopleSign = that.receptionList that.peopleSign = that.receptionList
} }
if(that.popText == '传票栏') {
that.cultureArr = that.receptionList
}
} }
// //
else if(that.$refs.popUpSeal) { else if(that.$refs.popUpSeal) {
@ -1144,7 +1151,8 @@ export default {
deleteGoods: 'system/deleteGoods', deleteGoods: 'system/deleteGoods',
stampJudge: 'system/stampJudge', stampJudge: 'system/stampJudge',
payMoney: 'system/payMoney', payMoney: 'system/payMoney',
backPeople: 'system/backPeople' backPeople: 'system/backPeople',
backCulture: 'system/backCulture'
}), }),
checkTake(myKey){ checkTake(myKey){
if(this.takeCheck === myKey) { if(this.takeCheck === myKey) {
@ -1402,6 +1410,10 @@ export default {
const idArr = this.receptionList.map(item => item.id) const idArr = this.receptionList.map(item => item.id)
this.backPeople(idArr) this.backPeople(idArr)
// this.stampJudge() // this.stampJudge()
}else if(this.popText == '传票栏') {
const idArr = this.receptionList.map(item => item.id)
this.backCulture(idArr)
// this.stampJudge()
}else{ }else{
console.log('-刷卡确认') console.log('-刷卡确认')
// this.goodsShelfTotalData = this.auditGoodsShelf // this.goodsShelfTotalData = this.auditGoodsShelf
@ -1567,7 +1579,7 @@ export default {
this.$store.commit('system/changePop',{show:false,text:''}) // this.$store.commit('system/changePop',{show:false,text:''}) //
console.log('---关闭弹窗') console.log('---关闭弹窗')
if (this.nbm == 0){ // if (this.nbm == 0){ //
}else if (this.nbm == 1){ // }else if (this.nbm == 1){ //
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime') let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id,"emptyOne": "", "emptyTwo": "", "operationIds": "285,287,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": "285,287,4,"+this.receptionList[i].id,"type": ""})}

@ -50,7 +50,8 @@ export default {
'业务专用章': [14, 17], '业务专用章': [14, 17],
'附件章': [23] '附件章': [23]
}, },
backPeople: [142, 13, 172, 16] backPeople: [142, 13, 172, 16],
cultureArr: [23, 141, 171]
}, },
}, },
goods:[// 物品栏的物品 goods:[// 物品栏的物品
@ -93,6 +94,17 @@ export default {
], ],
}, },
mutations: { mutations: {
backCulture(state, idArr) {
for(let i=0; i<idArr.length; i++) {
const index = state.businessSelect[state.businessKey].cultureArr.findIndex(item => 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) { backPeople(state, idArr) {
for(let i=0; i<idArr.length; i++) { for(let i=0; i<idArr.length; i++) {
const index = state.businessSelect[state.businessKey].backPeople.findIndex(item => item === idArr[i]) const index = state.businessSelect[state.businessKey].backPeople.findIndex(item => item === idArr[i])

Loading…
Cancel
Save