刷卡器bug

20240205
luoJunYong.123 3 years ago
parent 7126c6b276
commit f7b9800666
  1. 4
      src/api/api.js
  2. 761
      src/pages/counter/list/index.vue
  3. 42
      src/store/modules/system.js

@ -3,8 +3,8 @@ import router from '../router';
// 创建axios实例 // 创建axios实例
const service = axios.create({ const service = axios.create({
// baseURL: "http://www.huorantech.cn:9000",//线上 // baseURL: "http://www.huorantech.cn:9000",//线上
// baseURL: "http://39.108.250.202:9000/", // 中台测试服 baseURL: "http://39.108.250.202:9000/", // 中台测试服
baseURL: "http://192.168.31.137:9000/", // 赓 // baseURL: "http://192.168.31.137:9000/", // 赓
// baseURL: "http://192.168.31.151:9000/", // 榕 // baseURL: "http://192.168.31.151:9000/", // 榕
// baseURL: "http://192.168.31.125:9000/", // 坤 // baseURL: "http://192.168.31.125:9000/", // 坤
// baseURL: 'http://39.108.250.202:9000', // baseURL: 'http://39.108.250.202:9000',

@ -104,7 +104,7 @@
<!-- 物品栏 --> <!-- 物品栏 -->
<div ref="goods" class="goods-dia" :class="{ active: showGoods }"> <div ref="goods" class="goods-dia" :class="{ active: showGoods }">
<!-- goodsShelfTotalData goods2 --> <!-- goodsShelfTotalData goods2 -->
<div :id="item.name" v-for="(item, index) in goods2" :key="index" class=" justify-center" :class="{ checked: checkList.includes(item.id),file:true }" @click="dblClickFn(item,'goods')"> <div :id="item.name" v-for="(item, index) in goodsShelfTotalData" :key="index" class=" justify-center" :class="{ checked: checkList.includes(item.id),file:true }" @click="dblClickFn(item,'goods')">
<img :style="item.name==='开户申请书'?'margin-top:10px;':''" :src="item.src" alt="" /> <img :style="item.name==='开户申请书'?'margin-top:10px;':''" :src="item.src" alt="" />
<p>{{item.name}}</p> <p>{{item.name}}</p>
</div> </div>
@ -1297,7 +1297,7 @@ export default {
this.$message.error('请输入密码和确认密码'); this.$message.error('请输入密码和确认密码');
} }
}else{ }else{
console.log('...') console.log('-刷卡确认')
this.goodsShelfTotalData = this.auditGoodsShelf this.goodsShelfTotalData = this.auditGoodsShelf
if (this.$store.state.system.id == '33'){ if (this.$store.state.system.id == '33'){
this.nbm = 33 this.nbm = 33
@ -1366,313 +1366,63 @@ export default {
sessionStorage.setItem('nomCurrentCancellCard2', JSON.stringify(this.receptionList)) sessionStorage.setItem('nomCurrentCancellCard2', JSON.stringify(this.receptionList))
} }
}else if (myConfig[this.$store.state.system.id]){ // myConfig[this.$store.state.system.id] }else if (this.$store.state.system.id == '33'){
const { nbm, name, isPassword } = myConfig[this.$store.state.system.id]
this.nbm = nbm
if(!isPassword) {
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem(name, JSON.stringify(this.receptionList))
}
}else {
if (this.passwordForm.passwordAgain){
let formList = []
this.toggleGoods()
this.$message.success(`${this.popText}操作成功!`)
this.$store.commit('system/changePop',{show:false,text:''}) //
console.log('---关闭弹窗')
if (this.nbm == 0){ //
}else if (this.nbm == 1){ //
let projectId = sessionStorage.getItem('projectId')
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": ""})}
let params= {
parentId:'285,287,4',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 2){ //
let projectId = sessionStorage.getItem('projectId')
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,3,"+this.receptionList[i].id, "type": "" })}
let params= {
parentId:'285,287,3',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 3){ //
let projectId = sessionStorage.getItem('projectId')
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,2,"+this.receptionList[i].id, "type": "" })}
let params= {
parentId:'285,287,2',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 4){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
let formList = [];
for (var i=0;i<this.receptionList.length;i++){formList.push({
"answerId":this.receptionList[i].id,
"emptyOne": "",
"emptyTwo": "",
"operationIds": "285,287,1,"+this.receptionList[i].id,
"type": "" })}
let params= {
parentId:'285,287,1',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 5){ //
let projectId = sessionStorage.getItem('projectId')
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,8,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'285,287,8',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 6){ //
let projectId = sessionStorage.getItem('projectId')
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,9,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'285,287,9',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 7){ //
let projectId = sessionStorage.getItem('projectId')
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,10,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,10',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 9){//
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,11,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,11',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 10){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,6,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,6',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 11){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,7,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,7',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else{
this.goodsShelfTotalData = this.auditGoodsShelf
if (this.$store.state.system.id == '33'){
this.nbm = 33 this.nbm = 33
// this.goodsShelfTotalData = this.auditGoodsShelf // this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){ if (this.receptionList.length >0){
sessionStorage.setItem('nomClientIdentity', JSON.stringify(this.receptionList)) sessionStorage.setItem('nomClientIdentity', JSON.stringify(this.receptionList))
} }
} }else if (this.$store.state.system.id == '34'){
if (this.$store.state.system.id == '34'){ this.nbm = 34
this.nbm = 34 // this.goodsShelfTotalData = this.auditGoodsShelf
// this.goodsShelfTotalData = this.auditGoodsShelf if (this.receptionList.length >0){
if (this.receptionList.length >0){ sessionStorage.setItem('firmClientIdentity', JSON.stringify(this.receptionList))
sessionStorage.setItem('firmClientIdentity', JSON.stringify(this.receptionList)) }
} }else if (this.$store.state.system.id == '63'){
} this.nbm = 63
if (this.$store.state.system.id == '63'){ // this.goodsShelfTotalData = this.auditGoodsShelf
this.nbm = 63 if (this.receptionList.length >0){
// this.goodsShelfTotalData = this.auditGoodsShelf sessionStorage.setItem('nomBusinessDepositCard', JSON.stringify(this.receptionList))
if (this.receptionList.length >0){ }
sessionStorage.setItem('nomBusinessDepositCard', JSON.stringify(this.receptionList)) }else if (this.$store.state.system.id == '64'){
} this.nbm = 64
} // this.goodsShelfTotalData = this.auditGoodsShelf
if (this.$store.state.system.id == '64'){ if (this.receptionList.length >0){
this.nbm = 64 sessionStorage.setItem('nomCurrentWithdrawalCard', JSON.stringify(this.receptionList))
// this.goodsShelfTotalData = this.auditGoodsShelf }
if (this.receptionList.length >0){ if (this.passwordForm.passwordAgain){
sessionStorage.setItem('nomCurrentWithdrawalCard', JSON.stringify(this.receptionList)) let accountPassword = '';
} accountPassword = this.passwordForm.passwordAgain
if (this.passwordForm.passwordAgain){ sessionStorage.setItem('nomCurrentWithdrawalPassword', accountPassword)
let accountPassword = ''; }
accountPassword = this.passwordForm.passwordAgain }else if (myConfig[this.$store.state.system.id]){ // myConfig[this.$store.state.system.id]
sessionStorage.setItem('nomCurrentWithdrawalPassword', accountPassword)
} const { nbm, name, isPassword } = myConfig[this.$store.state.system.id]
}else if (this.$store.state.system.id == '65'){ this.nbm = nbm
this.nbm = 65 if(!isPassword) {
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentTransferCard', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentTransferPassword', accountPassword)
}
}else if (this.$store.state.system.id == '66'){
this.nbm = 66
// this.goodsShelfTotalData = this.auditGoodsShelf // this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){ if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentSettleCard', JSON.stringify(this.receptionList)) sessionStorage.setItem(name, JSON.stringify(this.receptionList))
} }
}else {
if (this.passwordForm.passwordAgain){ if (this.passwordForm.passwordAgain){
let accountPassword = ''; let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentSettlePassword', accountPassword) sessionStorage.setItem(name, accountPassword)
}
}else if (this.$store.state.system.id == '67,1'){
this.nbm = 67
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentCancellCard1', JSON.stringify(this.receptionList))
}
}else if (this.$store.state.system.id == '67,2'){
this.nbm = 67
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentCancellCard2', JSON.stringify(this.receptionList))
}
}else if (myConfig[this.$store.state.system.id]){ // myConfig[this.$store.state.system.id]
const { nbm, name, isPassword } = myConfig[this.$store.state.system.id]
this.nbm = nbm
if(!isPassword) {
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem(name, JSON.stringify(this.receptionList))
} }
}else { }
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem(name, accountPassword)
}
}
}else if (this.$store.state.system.id == '67,3'){
this.nbm = 67
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentCancellPassword', accountPassword)
}
}else if (this.$store.state.system.id == '62,1'){
this.nbm = 62
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('accountVoucher', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem(name, accountPassword)
}
}else if (this.$store.state.system.id == '67,3'){ }else if (this.$store.state.system.id == '67,3'){
this.nbm = 67 this.nbm = 67
if (this.passwordForm.passwordAgain){ if (this.passwordForm.passwordAgain){
let accountPassword = ''; let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentCancellPassword', accountPassword) sessionStorage.setItem('nomCurrentCancellPassword', accountPassword)
} }
}else if (this.$store.state.system.id == '62,1'){ }else if (this.$store.state.system.id == '62,1'){
this.nbm = 62 this.nbm = 62
console.log('62,11111111111111111111')
// this.goodsShelfTotalData = this.auditGoodsShelf // this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){ if (this.receptionList.length >0){
sessionStorage.setItem('accountVoucher', JSON.stringify(this.receptionList)) sessionStorage.setItem('accountVoucher', JSON.stringify(this.receptionList))
@ -1682,224 +1432,223 @@ export default {
accountPassword = this.passwordForm.passwordAgain accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('accountPassword', accountPassword) sessionStorage.setItem('accountPassword', accountPassword)
} }
}else if (this.$store.state.system.id == '62,2'){ }else if (this.$store.state.system.id == '62,2'){
this.nbm = 62 this.nbm = 62
// this.goodsShelfTotalData = this.auditGoodsShelf // this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('accountVoucherTwo', JSON.stringify(this.receptionList)) if (this.receptionList.length >0){
} sessionStorage.setItem('accountVoucherTwo', JSON.stringify(this.receptionList))
if (this.passwordForm.passwordAgain){ }
let accountPasswordTwo = '' if (this.passwordForm.passwordAgain){
accountPasswordTwo = this.passwordForm.passwordAgain let accountPasswordTwo = ''
sessionStorage.setItem('accountPasswordTwo', accountPasswordTwo) accountPasswordTwo = this.passwordForm.passwordAgain
} sessionStorage.setItem('accountPasswordTwo', accountPasswordTwo)
}else if (this.$store.state.system.id == '62,3'){ }
this.nbm = 62 }else if (this.$store.state.system.id == '62,3'){
// this.goodsShelfTotalData = this.auditGoodsShelf this.nbm = 62
if (this.receptionList.length >0){ // this.goodsShelfTotalData = this.auditGoodsShelf
sessionStorage.setItem('accountVoucherThree', JSON.stringify(this.receptionList)) if (this.receptionList.length >0){
} sessionStorage.setItem('accountVoucherThree', JSON.stringify(this.receptionList))
if (this.passwordForm.passwordAgain){ }
let accountPasswordThree = '' if (this.passwordForm.passwordAgain){
accountPasswordThree = this.passwordForm.passwordAgain let accountPasswordThree = ''
sessionStorage.setItem('accountPasswordThree', accountPasswordThree) accountPasswordThree = this.passwordForm.passwordAgain
} sessionStorage.setItem('accountPasswordThree', accountPasswordThree)
} }
}
} }
if (this.receptionList.length >0){
let formList = [] let formList = []
this.toggleGoods() this.toggleGoods()
this.$message.success(`${this.popText}操作成功!`) this.$message.success(`${this.popText}操作成功!`)
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": "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": ""})}
let params= { let params= {
parentId:'287,4', parentId:'285,287,4',
lcJudgmentRuleReq:formList, lcJudgmentRuleReq:formList,
projectId:+projectId, projectId:+projectId,
startTime:startTime, startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 2){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,3,"+this.receptionList[i].id, "type": "" })}
let params= {
parentId:'287,3',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 3){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,2,"+this.receptionList[i].id, "type": "" })}
let params= {
parentId:'287,2',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 4){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
let formList = [];
for (var i=0;i<this.receptionList.length;i++){formList.push({
"answerId":this.receptionList[i].id,
"emptyOne": "",
"emptyTwo": "",
"operationIds": "287,1,"+this.receptionList[i].id,
"type": "" })}
let params= {
parentId:'287,1',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 5){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,8,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'287,8',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 6){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,9,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'287,9',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 7){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,10,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,10',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 9){//
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,11,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,11',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 10){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,6,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,6',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 11){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,7,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,7',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
} }
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 2){ //
let projectId = sessionStorage.getItem('projectId')
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,3,"+this.receptionList[i].id, "type": "" })}
let params= {
parentId:'285,287,3',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 3){ //
let projectId = sessionStorage.getItem('projectId')
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,2,"+this.receptionList[i].id, "type": "" })}
let params= {
parentId:'285,287,2',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 4){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
let formList = [];
for (var i=0;i<this.receptionList.length;i++){formList.push({
"answerId":this.receptionList[i].id,
"emptyOne": "",
"emptyTwo": "",
"operationIds": "285,287,1,"+this.receptionList[i].id,
"type": "" })}
let params= {
parentId:'285,287,1',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 5){ //
let projectId = sessionStorage.getItem('projectId')
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,8,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'285,287,8',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 6){ //
let projectId = sessionStorage.getItem('projectId')
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,9,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'285,287,9',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 7){ //
let projectId = sessionStorage.getItem('projectId')
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,10,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,10',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 9){//
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,11,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,11',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 10){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,6,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,6',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 11){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,7,"+this.receptionList[i].id,"type": ""})}
let params= {
parentId:'0,7',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else{
this.goodsShelfTotalData = this.auditGoodsShelf
} }
// this.toggleGoods()
}
}}
this.$store.commit('system/changePop', {show: false, text: ''}) this.$store.commit('system/changePop', {show: false, text: ''})
}
}, },
toPart(){ toPart(){
this.$router.push('/index') this.$router.push('/index')

@ -1,4 +1,25 @@
/* 银行系统 */ /* 银行系统 */
/* 所有物品名字 */
const allGoods = {
16: {name:'银行卡',src:require('@/assets/img/goods/bankCard.png'),id:16},
19: {name:'定期存单',src:require('@/assets/img/seal/paid.png'),id:19},
'预留印签卡': {name:'预留印签卡',src:require('@/assets/img/seal/paid.png'),id:'预留印签卡'},
'转账支票': {name:'转账支票',src:require('@/assets/img/goods/xd-zzzp.png'),id:'转账支票'},
30: {name:'银行承兑汇票',src:require('@/assets/img/seal/paid.png'),id:30},
'现金支票': {name:'现金支票',src:require('@/assets/img/goods/xjzp.png'),id:'现金支票'},
'取款凭条': {name:'取款凭条',src:require('@/assets/img/goods/qkpt.png'),id:'取款凭条'},
'转账凭条': {name:'转账凭条',src:require('@/assets/img/goods/zzpt.png'),id:'转账凭条'},
'业务收费凭证': {name:'业务收费凭证',src:require('@/assets/img/goods/ywsfpz.png'),id:'业务收费凭证'},
'利息清单': {name:'利息清单',src:require('@/assets/img/goods/lxqd.png'),id:'利息清单'},
'普通空白凭证': {name:'普通空白凭证',src:require('@/assets/img/goods/ptkbpz.png'),id:'普通空白凭证'},
13: {name:'身份证',src:require('@/assets/img/goods/idcard.png'),id:13},
23: {name:'身份证复印件',src:require('@/assets/img/idCard-copy-sm.png'),id:23},
14: {name:'开户申请书',src:require('@/assets/img/goods/khsqs.png'),id:14},
15: {name:'现金',src:require('@/assets/img/goods/cash-sm.png'),id:15},
17: {name:'存款凭条',src:require('@/assets/img/goods/ckpt.png'),id:17},
}
export default { export default {
namespaced: true, namespaced: true,
state: {/* 管理柜台状态 */ state: {/* 管理柜台状态 */
@ -8,24 +29,7 @@ export default {
showGoods: false, // 物品栏的展开和关闭 showGoods: false, // 物品栏的展开和关闭
// 业务选择表: // 业务选择表:
businessKey: '', businessKey: '',
allGoods:{/* 所有物品名字 */
16: {name:'银行卡',src:require('@/assets/img/goods/bankCard.png'),id:16},
19: {name:'定期存单',src:require('@/assets/img/seal/paid.png'),id:19},
'预留印签卡': {name:'预留印签卡',src:require('@/assets/img/seal/paid.png'),id:'预留印签卡'},
'转账支票': {name:'转账支票',src:require('@/assets/img/goods/xd-zzzp.png'),id:'转账支票'},
30: {name:'银行承兑汇票',src:require('@/assets/img/seal/paid.png'),id:30},
'现金支票': {name:'现金支票',src:require('@/assets/img/goods/xjzp.png'),id:'现金支票'},
'取款凭条': {name:'取款凭条',src:require('@/assets/img/goods/qkpt.png'),id:'取款凭条'},
'转账凭条': {name:'转账凭条',src:require('@/assets/img/goods/zzpt.png'),id:'转账凭条'},
'业务收费凭证': {name:'业务收费凭证',src:require('@/assets/img/goods/ywsfpz.png'),id:'业务收费凭证'},
'利息清单': {name:'利息清单',src:require('@/assets/img/goods/lxqd.png'),id:'利息清单'},
'普通空白凭证': {name:'普通空白凭证',src:require('@/assets/img/goods/ptkbpz.png'),id:'普通空白凭证'},
13: {name:'身份证',src:require('@/assets/img/goods/idcard.png'),id:13},
23: {name:'身份证复印件',src:require('@/assets/img/idCard-copy-sm.png'),id:23},
14: {name:'开户申请书',src:require('@/assets/img/goods/khsqs.png'),id:14},
15: {name:'现金',src:require('@/assets/img/goods/cash-sm.png'),id:15},
17: {name:'存款凭条',src:require('@/assets/img/goods/ckpt.png'),id:17},
},
businessSelect: { businessSelect: {
'': { '': {
data: [], data: [],
@ -167,7 +171,7 @@ export default {
// 调试容错采用if-else // 调试容错采用if-else
const arr = [] const arr = []
for(const item of state.businessSelect[state.businessKey].data) { for(const item of state.businessSelect[state.businessKey].data) {
arr.push(state.allGoods[item]) arr.push(allGoods[item])
} }
return arr return arr
} }

Loading…
Cancel
Save