|
|
|
@ -196,6 +196,7 @@ import Sortable from 'sortablejs' |
|
|
|
|
import manage from '../../manage/index'; |
|
|
|
|
import { addOperation, getOperation } from '@/api/http'; |
|
|
|
|
import backButton from '@/components/backButton' |
|
|
|
|
import { myConfig } from './myConfig.js' |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: 'index', |
|
|
|
@ -602,7 +603,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
let nomCurrentCancellCard2 = sessionStorage.getItem('nomCurrentCancellCard2') |
|
|
|
|
console.log(nomCurrentCancellCard2) |
|
|
|
|
|
|
|
|
|
this.receptionList = JSON.parse(nomCurrentCancellCard2); |
|
|
|
|
|
|
|
|
|
if(this.receptionList == null){ |
|
|
|
@ -611,32 +612,50 @@ export default { |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.$store.state.system.id == '118,1'){ |
|
|
|
|
this.nbm = 118 |
|
|
|
|
}else if (myConfig[this.$store.state.system.id]){ |
|
|
|
|
const { nbm, parentId, name } = myConfig[this.$store.state.system.id] |
|
|
|
|
console.log(nbm) |
|
|
|
|
console.log(sessionStorage.getItem(name)) |
|
|
|
|
this.nbm = nbm |
|
|
|
|
let param= { |
|
|
|
|
parentId: '0,5,26,58,118' |
|
|
|
|
parentId |
|
|
|
|
} |
|
|
|
|
getOperation(param).then((data)=> { |
|
|
|
|
console.log(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]) |
|
|
|
|
let tmpName = sessionStorage.getItem(name) |
|
|
|
|
console.log(tmpName) |
|
|
|
|
if(tmpName) { |
|
|
|
|
this.receptionList = JSON.parse(tmpName); |
|
|
|
|
}else { |
|
|
|
|
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{ |
|
|
|
|
let nomtimeOpenAccount1 = sessionStorage.getItem('nomtimeOpenAccount1') |
|
|
|
|
console.log(nomtimeOpenAccount1) |
|
|
|
|
this.receptionList = JSON.parse(nomtimeOpenAccount1); |
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
let tmpName = sessionStorage.getItem(name) |
|
|
|
|
this.receptionList = JSON.parse(tmpName); |
|
|
|
|
if(this.receptionList == null){ |
|
|
|
|
this.receptionList = [] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
// const { nbm, name } = myConfig[this.$store.state.system.id] |
|
|
|
|
// this.nbm = nbm |
|
|
|
|
// let tmpName = sessionStorage.getItem(name) |
|
|
|
|
// this.receptionList = JSON.parse(tmpName); |
|
|
|
|
|
|
|
|
|
// if(this.receptionList == null){ |
|
|
|
|
// this.receptionList = [] |
|
|
|
|
// } |
|
|
|
|
}else{ |
|
|
|
|
let dataList = JSON.parse(sessionStorage.getItem('dataList')); |
|
|
|
|
if (dataList){ |
|
|
|
@ -1002,11 +1021,15 @@ export default { |
|
|
|
|
sessionStorage.setItem('nomCurrentCancellCard2', JSON.stringify(this.receptionList)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}else if (this.$store.state.system.id == '118,1'){ |
|
|
|
|
this.nbm = 118 |
|
|
|
|
}else if (myConfig[this.$store.state.system.id]){ // myConfig[this.$store.state.system.id] |
|
|
|
|
|
|
|
|
|
const { nbm, name } = myConfig[this.$store.state.system.id] |
|
|
|
|
console.log(nbm) |
|
|
|
|
this.nbm = nbm |
|
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
|
if (this.receptionList.length >0){ |
|
|
|
|
sessionStorage.setItem('nomtimeOpenAccount1', JSON.stringify(this.receptionList)) |
|
|
|
|
sessionStorage.setItem(name, JSON.stringify(this.receptionList)) |
|
|
|
|
console.log(sessionStorage.getItem(name)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}else if (this.$store.state.system.id == '67,3'){ |
|
|
|
|