|
@@ -544,6 +544,7 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.i = 0
|
|
this.i = 0
|
|
|
|
+
|
|
this.infomation()
|
|
this.infomation()
|
|
this.getReleaseFlag()
|
|
this.getReleaseFlag()
|
|
this.getSpellingArray()
|
|
this.getSpellingArray()
|
|
@@ -931,10 +932,14 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getNoSpellingArray() {
|
|
getNoSpellingArray() {
|
|
|
|
+ let inboundWarehouse = null
|
|
|
|
+ if (getCookie('orgCode') == 'ouyechangwaiku') {
|
|
|
|
+ inboundWarehouse = getCookie('loginName')
|
|
|
|
+ }
|
|
this.axios
|
|
this.axios
|
|
.post(
|
|
.post(
|
|
'/api/v1/qms/getQueueListByQueueUp?isSpelling=0&i=' + new Date(),
|
|
'/api/v1/qms/getQueueListByQueueUp?isSpelling=0&i=' + new Date(),
|
|
- { oYeFlag: 1 }
|
|
|
|
|
|
+ { oYeFlag: 1, inboundWarehouse: inboundWarehouse }
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData1 = res.data.data
|
|
this.tableData1 = res.data.data
|
|
@@ -943,11 +948,15 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getSpellingArray() {
|
|
getSpellingArray() {
|
|
|
|
+ let inboundWarehouse = null
|
|
|
|
+ if (getCookie('orgCode') == 'ouyechangwaiku') {
|
|
|
|
+ inboundWarehouse = getCookie('loginName')
|
|
|
|
+ }
|
|
this.axios
|
|
this.axios
|
|
.post(
|
|
.post(
|
|
'/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=1&i=' +
|
|
'/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=1&i=' +
|
|
new Date(),
|
|
new Date(),
|
|
- { oYeFlag: 1 }
|
|
|
|
|
|
+ { oYeFlag: 1, inboundWarehouse: inboundWarehouse }
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
@@ -957,11 +966,15 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getSpellingArrayTwo() {
|
|
getSpellingArrayTwo() {
|
|
|
|
+ let inboundWarehouse = null
|
|
|
|
+ if (getCookie('orgCode') == 'ouyechangwaiku') {
|
|
|
|
+ inboundWarehouse = getCookie('loginName')
|
|
|
|
+ }
|
|
this.axios
|
|
this.axios
|
|
.post(
|
|
.post(
|
|
'/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=2&i=' +
|
|
'/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=2&i=' +
|
|
new Date(),
|
|
new Date(),
|
|
- { oYeFlag: 1 }
|
|
|
|
|
|
+ { oYeFlag: 1, inboundWarehouse: inboundWarehouse }
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData2 = res.data.data
|
|
this.tableData2 = res.data.data
|
|
@@ -977,6 +990,10 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onclick() {
|
|
onclick() {
|
|
|
|
+ let inboundWarehouse = null
|
|
|
|
+ if (getCookie('orgCode') == 'ouyechangwaiku') {
|
|
|
|
+ inboundWarehouse = getCookie('loginName')
|
|
|
|
+ }
|
|
if (this.activeName == 'first') {
|
|
if (this.activeName == 'first') {
|
|
this.axios
|
|
this.axios
|
|
.post(
|
|
.post(
|
|
@@ -984,7 +1001,7 @@ export default {
|
|
new Date() +
|
|
new Date() +
|
|
'&capacityNumber=' +
|
|
'&capacityNumber=' +
|
|
this.capacityNo,
|
|
this.capacityNo,
|
|
- { oYeFlag: 1 }
|
|
|
|
|
|
+ { oYeFlag: 1, inboundWarehouse: inboundWarehouse }
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.isQueryCapacity = 1
|
|
this.isQueryCapacity = 1
|
|
@@ -998,7 +1015,7 @@ export default {
|
|
new Date() +
|
|
new Date() +
|
|
'&capacityNumber=' +
|
|
'&capacityNumber=' +
|
|
this.capacityNo,
|
|
this.capacityNo,
|
|
- { oYeFlag: 1 }
|
|
|
|
|
|
+ { oYeFlag: 1, inboundWarehouse: inboundWarehouse }
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.isQueryCapacity = 1
|
|
this.isQueryCapacity = 1
|
|
@@ -1012,7 +1029,7 @@ export default {
|
|
new Date() +
|
|
new Date() +
|
|
'&capacityNumber=' +
|
|
'&capacityNumber=' +
|
|
this.capacityNo,
|
|
this.capacityNo,
|
|
- { oYeFlag: 1 }
|
|
|
|
|
|
+ { oYeFlag: 1, inboundWarehouse: inboundWarehouse }
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.isQueryCapacity = 1
|
|
this.isQueryCapacity = 1
|
|
@@ -1101,16 +1118,6 @@ export default {
|
|
value => value.materialPriority === this.maplist[i].id
|
|
value => value.materialPriority === this.maplist[i].id
|
|
)
|
|
)
|
|
console.log('warehouse', warehouse)
|
|
console.log('warehouse', warehouse)
|
|
- if (warehouse && warehouse.carQueue >= this.allowMaxNum) {
|
|
|
|
- this.$message({
|
|
|
|
- message: `该仓库已经有${this.allowMaxNum}辆车在排队,不允许放行!或重新调整限制`,
|
|
|
|
- type: 'error',
|
|
|
|
- duration: 2000,
|
|
|
|
- center: true,
|
|
|
|
- offset: 100
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
this.filterArr(this.maplist[i].resultId)
|
|
this.filterArr(this.maplist[i].resultId)
|
|
}
|
|
}
|
|
console.log(this.filterArr1, 'this.fil')
|
|
console.log(this.filterArr1, 'this.fil')
|