|
@@ -444,6 +444,7 @@ export default {
|
|
|
})
|
|
|
this.getNoSpellingArray()
|
|
|
this.getSpellingArray()
|
|
|
+ this.getSpellingArrayTwo()
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: '撤销失败',
|
|
@@ -471,12 +472,15 @@ export default {
|
|
|
refresh() {
|
|
|
this.getSpellingArray()
|
|
|
this.getNoSpellingArray()
|
|
|
+ this.getSpellingArrayTwo()
|
|
|
this.getSteelOrderNum()
|
|
|
this.getStoreArray()
|
|
|
this.redDotNum = null
|
|
|
this.totalQueueNum = null
|
|
|
this.totalQueueNumFirst = null
|
|
|
this.isQueryCapacity = null
|
|
|
+ this.maplist = []
|
|
|
+ this.filterArr1 = []
|
|
|
this.i = 0
|
|
|
clearInterval(this.timer)
|
|
|
this.start()
|
|
@@ -499,7 +503,11 @@ export default {
|
|
|
} else {
|
|
|
if (
|
|
|
this.maplist.some(e => {
|
|
|
- return e.ROW_ID == row.ROW_ID || e.ROW_ID + 1 == row.ROW_ID
|
|
|
+ return (
|
|
|
+ e.ROW_ID == row.ROW_ID ||
|
|
|
+ e.ROW_ID + 1 == row.ROW_ID ||
|
|
|
+ typeof row.ROW_ID == 'undefined'
|
|
|
+ )
|
|
|
})
|
|
|
) {
|
|
|
return true
|
|
@@ -832,9 +840,20 @@ export default {
|
|
|
},
|
|
|
filterArr(resultId) {
|
|
|
console.log('fdhjsaj')
|
|
|
- this.filterArr1 = this.filterArr1.concat(
|
|
|
- this.tableData.filter(ele => ele.resultId == resultId)
|
|
|
- )
|
|
|
+ this.filterArr1 = []
|
|
|
+ if (this.activeName == 'first') {
|
|
|
+ this.filterArr1 = this.filterArr1.concat(
|
|
|
+ this.tableData1.filter(ele => ele.resultId == resultId)
|
|
|
+ )
|
|
|
+ } else if (this.activeName == 'second') {
|
|
|
+ this.filterArr1 = this.filterArr1.concat(
|
|
|
+ this.tableData.filter(ele => ele.resultId == resultId)
|
|
|
+ )
|
|
|
+ } else if (this.activeName == 'fourth') {
|
|
|
+ this.filterArr1 = this.filterArr1.concat(
|
|
|
+ this.tableData2.filter(ele => ele.resultId == resultId)
|
|
|
+ )
|
|
|
+ }
|
|
|
},
|
|
|
allow() {
|
|
|
if (this.maplist.length == 0) {
|
|
@@ -879,6 +898,7 @@ export default {
|
|
|
}
|
|
|
this.filterArr(this.maplist[i].resultId)
|
|
|
}
|
|
|
+ console.log(this.filterArr1, 'this.fil')
|
|
|
var filterArr2 = []
|
|
|
this.filterArr1.forEach(e => {
|
|
|
if (filterArr2.indexOf(e) === -1) {
|
|
@@ -895,36 +915,57 @@ export default {
|
|
|
}
|
|
|
console.log('勾选的数据')
|
|
|
console.log(map)
|
|
|
- this.axios.post('/api/v1/qms/allowEnFactory', map).then(res => {
|
|
|
- if (res.data.code == '200') {
|
|
|
- this.$message({
|
|
|
- message: '放行成功,等待进厂',
|
|
|
- type: 'success',
|
|
|
- duration: 2000,
|
|
|
- center: true,
|
|
|
- offset: 100
|
|
|
- })
|
|
|
- this.maplist = []
|
|
|
- this.$refs.mutiData.clearSelection()
|
|
|
- this.$refs.spellData.clearSelection()
|
|
|
- this.$refs.twoSpellData.clearSelection()
|
|
|
- this.getNoSpellingArray()
|
|
|
- this.getSpellingArray()
|
|
|
- this.getStoreArray()
|
|
|
- this.redDotNum = null
|
|
|
- this.totalQueueNum = null
|
|
|
- this.totalQueueNumFirst = null
|
|
|
- this.i = 0
|
|
|
- clearInterval(this.timer)
|
|
|
- this.start()
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- message: '请按顺序勾选',
|
|
|
- type: 'error',
|
|
|
- duration: 2000,
|
|
|
- center: true,
|
|
|
- offset: 100
|
|
|
- })
|
|
|
+ this.axios
|
|
|
+ .post('/api/v1/qms/allowEnFactory', map)
|
|
|
+ .then(res => {
|
|
|
+ if (res.data.code == '200') {
|
|
|
+ this.$message({
|
|
|
+ message: '放行成功,等待进厂',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000,
|
|
|
+ center: true,
|
|
|
+ offset: 100
|
|
|
+ })
|
|
|
+ this.maplist = []
|
|
|
+ this.$refs.mutiData.clearSelection()
|
|
|
+ this.$refs.spellData.clearSelection()
|
|
|
+ this.$refs.twoSpellData.clearSelection()
|
|
|
+ this.getNoSpellingArray()
|
|
|
+ this.getSpellingArray()
|
|
|
+ this.getSpellingArrayTwo()
|
|
|
+ this.getStoreArray()
|
|
|
+ this.redDotNum = null
|
|
|
+ this.totalQueueNum = null
|
|
|
+ this.totalQueueNumFirst = null
|
|
|
+ this.i = 0
|
|
|
+ clearInterval(this.timer)
|
|
|
+ this.start()
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: '请按顺序勾选',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000,
|
|
|
+ center: true,
|
|
|
+ offset: 100
|
|
|
+ })
|
|
|
+ this.maplist = []
|
|
|
+ this.$refs.mutiData.clearSelection()
|
|
|
+ this.$refs.spellData.clearSelection()
|
|
|
+ this.$refs.twoSpellData.clearSelection()
|
|
|
+ this.getNoSpellingArray()
|
|
|
+ this.getSpellingArray()
|
|
|
+ this.getStoreArray()
|
|
|
+ this.getSpellingArrayTwo()
|
|
|
+ this.redDotNum = null
|
|
|
+ this.totalQueueNum = null
|
|
|
+ this.totalQueueNumFirst = null
|
|
|
+ this.i = 0
|
|
|
+ clearInterval(this.timer)
|
|
|
+ this.start()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ console.log(e)
|
|
|
this.maplist = []
|
|
|
this.$refs.mutiData.clearSelection()
|
|
|
this.$refs.spellData.clearSelection()
|
|
@@ -932,14 +973,14 @@ export default {
|
|
|
this.getNoSpellingArray()
|
|
|
this.getSpellingArray()
|
|
|
this.getStoreArray()
|
|
|
+ this.getSpellingArrayTwo()
|
|
|
this.redDotNum = null
|
|
|
this.totalQueueNum = null
|
|
|
this.totalQueueNumFirst = null
|
|
|
this.i = 0
|
|
|
clearInterval(this.timer)
|
|
|
this.start()
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
},
|
|
|
changePriority(row) {
|
|
|
console.log('装货点:' + row.id)
|