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