|
@@ -784,26 +784,28 @@ export default {
|
|
|
this.materialList = this.materialList.concat(this.materialList1)
|
|
|
},
|
|
|
makeSureMaterial() {
|
|
|
- console.log(this.materialList)
|
|
|
- var materialIdList = []
|
|
|
- this.materialList.forEach(e => {
|
|
|
- if (materialIdList.indexOf(e.materialId) == -1) {
|
|
|
- materialIdList.push(e.materialId)
|
|
|
+ if (this.materialList.length > 0) {
|
|
|
+ console.log(this.materialList)
|
|
|
+ var materialIdList = []
|
|
|
+ this.materialList.forEach(e => {
|
|
|
+ if (materialIdList.indexOf(e.materialId) == -1) {
|
|
|
+ materialIdList.push(e.materialId)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ let map = {
|
|
|
+ materialList: materialIdList
|
|
|
}
|
|
|
- })
|
|
|
- let map = {
|
|
|
- materialList: materialIdList
|
|
|
- }
|
|
|
- // this.materialList = []
|
|
|
- // this.materialList1 = []
|
|
|
- if (this.activeName == 'first') {
|
|
|
- this.axios
|
|
|
- .post('/api/v1/qms/getQueueListByQueueUp?isSpelling=0', map)
|
|
|
- .then(res => {
|
|
|
- this.tableData1 = res.data.data
|
|
|
- })
|
|
|
+ // this.materialList = []
|
|
|
+ // this.materialList1 = []
|
|
|
+ if (this.activeName == 'first') {
|
|
|
+ this.axios
|
|
|
+ .post('/api/v1/qms/getQueueListByQueueUp?isSpelling=0', map)
|
|
|
+ .then(res => {
|
|
|
+ this.tableData1 = res.data.data
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.table1 = false
|
|
|
}
|
|
|
- this.table1 = false
|
|
|
},
|
|
|
infomation() {
|
|
|
this.axios.get('/api/v1/uc/getSteelWarehouse').then(res => {
|