20240205
luoJunYong.123 3 years ago
parent c4252c66c7
commit 34e7045cce
  1. 239
      src/pages/counter/list/index.vue
  2. 5
      src/pages/manage/list/personal/timeDeposit/withdrawal.vue
  3. 6
      src/store/modules/system.js

@ -900,19 +900,114 @@ export default {
// 西
// if(!sessionStorage.getItem('systemData'))
//
// let params= {
// parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,4',
// }
// getOperation(params).then((data)=>{
// if(data.status == 200) {
// var list = data.data.judgmentRuleReqs.map(item => item.answerId)
// console.log(list)
// this.outThingsGoods([...list])
// this.pushThings({ idArr: [...list], name: 'cultureIn'})
// }
// })
getOperation({
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,4'
}).then((data)=>{
if(data.status == 200 && data.data.judgmentRuleReqs) {
const list = data.data.judgmentRuleReqs.map(item => item.answerId)
if(list.length) {
this.outThingsGoods([...list])
this.pushThings({ idArr: [...list], name: 'cultureIn'})
}
}
})
//
getOperation({
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,2'
}).then((data)=>{
if(data.status == 200 && data.data.judgmentRuleReqs) {
const list = data.data.judgmentRuleReqs.map(item => item.answerId)
if(list.length) {
// this.pushThings({ idArr: [...list], name: 'cultureIn'})
this.pushThingsGoods([...list])
}
}
})
//
getOperation({
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,3'
}).then((data)=>{
if(data.status == 200 && data.data.judgmentRuleReqs) {
const list = data.data.judgmentRuleReqs.map(item => item.answerId)
if(list.length) {
this.pushThingsGoods([...list])
}
}
})
// Obj
getOperation({
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,8'
}).then((data)=>{
const stampJudge = {
18: {add:[24, 21], delete: [14]},
452:{ add: [432, 433] },
458:{ add: [419, 418], delete: [426]},
459:{ add: [478, 477], delete: [407]},
460:{ add: [466,468,467], delete: [406]},
463:{ add: [480, 488], delete: [413]},
464:{ add: [482, 481], delete: [479]},
444:{ add: [420, 421], delete: [425]},
445:{ add: [422, 424], delete: [427]},
446:{ add: [419, 418], delete: [426]},
447:{ add: [269, 22], delete: [17]},
455:{ add: [487, 441], delete: [409]},
456:{ add: [473, 472], delete: [411]},
457:{ add: [476, 474], delete: [412]}
}
if(data.status == 200 && data.data.judgmentRuleReqs) {
const list = data.data.judgmentRuleReqs.map(item => item.answerId)
if(list.length) {
for(let i=0; i<list.length; i++) {
this.outThingsGoods([...stampJudge[list[i]].delete])
this.pushThingsGoods([...stampJudge[list[i]].add])
}
}
}
})
//
getOperation({
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,1'
}).then((data)=>{
if(data.status == 200 && data.data.judgmentRuleReqs) {
const list = data.data.judgmentRuleReqs.map(item => item.answerId)
if(list.length) {
if(this.needBackMoney) {
this.pushThingsGoods([...list])
this.outThings2({ name: 'moneyBox', index: 0 })
}else {
this.outThingsGoods([...list])
this.pushThings({ idArr: [...list], name: 'moneyBox'})
}
}
}
})
//
getOperation({
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,556'
}).then((data)=>{
if(data.status == 200 && data.data.judgmentRuleReqs) {
const list = data.data.judgmentRuleReqs.map(item => item.answerId)
if(list.length) {
this.outThingsGoods([...list])
this.pushThings({ idArr: [...list], name: 'backPeople'})
}
}
})
},
mounted(){
@ -1090,66 +1185,66 @@ export default {
this.nbm = nbm
// 西
// this.goodsShelfTotalData = [...this.goods2]
if(type == '普通凭证箱' || type == '系统'){
// this.goodsShelfTotalData = this.systemInputGoodsShelf
let parentId = ''
if(type == '普通凭证箱'){
parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,3'
}
if(type == '系统'){
parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5'
}
}else if(type == '身份证扫描仪' || type == '验钞机' || type == '资料' || type == '重要空白凭证箱' || type == '身份证扫描器'){
// this.goodsShelfTotalData = this.auditGoodsShelf
let parentId = ''
if(type == '重要空白凭证箱'){
parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,2'
}
if(type == '资料'){
parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,11'
}
if(type == '验钞机'){
parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,9'
}
if(type == '身份证扫描仪'){
parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,7'
}
let param= {
parentId: parentId
}
}else if(type == '打印机' || type == '客户签字' || type == '印章盒'){
// this.goodsShelfTotalData = this.printoutGoodsShelf
let parentId = ''
if(type == '打印机'){
parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,10'
}else if(type == '客户签字'){
parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,12'
}else if(type == '返还资料'){
parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,12'
}else if(type == '印章盒'){
parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,8'
}
}else if(type == '钱箱'){
// this.goodsShelfTotalData = this.cashboxGoodsShelf;
let param= {
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,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)=>{
})
}
// if(type == '' || type == ''){
// // this.goodsShelfTotalData = this.systemInputGoodsShelf
// let parentId = ''
// if(type == ''){
// parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,3'
// }
// if(type == ''){
// parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5'
// }
// }else if(type == '' || type == '' || type == '' || type == '' || type == ''){
// // this.goodsShelfTotalData = this.auditGoodsShelf
// let parentId = ''
// if(type == ''){
// parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,2'
// }
// if(type == ''){
// parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,11'
// }
// if(type == ''){
// parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,9'
// }
// if(type == ''){
// parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,7'
// }
// let param= {
// parentId: parentId
// }
// }else if(type == '' || type == '' || type == ''){
// // this.goodsShelfTotalData = this.printoutGoodsShelf
// let parentId = ''
// if(type == ''){
// parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,10'
// }else if(type == ''){
// parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,12'
// }else if(type == ''){
// parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,12'
// }else if(type == ''){
// parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,8'
// }
// }else if(type == ''){
// // this.goodsShelfTotalData = this.cashboxGoodsShelf;
// let param= {
// parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,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.changeShowGoods(true)
if(type !== '系统') {
this.$store.commit('system/changePop',{show:true,text:type, id: this.id})

@ -313,6 +313,7 @@ export default{
this.form.depositNumber = depositNumber
this.form.capital = capital
this.form.withdrawType = withdrawType
this.form.withdrawAmount = Number(this.form.interest) + Number(this.form.capital)
},
getFormData(){
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,58,120'
@ -482,13 +483,15 @@ export default{
// withdrawWay
// const { withdrawWay } = this.dataFlow
if(newVal === 126) {
this.form.withdrawAmount = Number(this.form.interest) + Number(this.form.capital)
this.capitalDisabled = true
this.form.interest = '15.00'
this.rules.newVoucherNumber = []
sessionStorage.setItem('newVoucherNumber', this.form.newVoucherNumber)
this.form.newVoucherNumber = ''
//this.rules.withdrawAmount[0].required = false
//
this.form.withdrawAmount = Number(this.form.interest) + Number(this.form.capital)
}else {
if(sessionStorage.getItem('newVoucherNumber')) {
this.form.newVoucherNumber = sessionStorage.getItem('newVoucherNumber')

@ -2500,7 +2500,9 @@ export default {
},
outThings2(state, { name, index}) {
// 神奇地解决了bug
state.businessSelect[state.businessKey][name].splice(index, 1)
if(state.businessSelect[state.businessKey][name].length > index) {
state.businessSelect[state.businessKey][name].splice(index, 1)
}
},
outThingsGoods(state, idArr) {
for(let i=0; i<idArr.length; i++) {
@ -2658,8 +2660,6 @@ export default {
}
}
if(stampSuccess) {
console.log('---stampSuccess')
console.log(stampSuccess)
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
if(!sessionStorage.getItem('stampList')) {

Loading…
Cancel
Save