| | |
| | | }, |
| | | method:'GET', |
| | | success(result) { |
| | | console.log(result) |
| | | let res = result.data |
| | | if (res.data) { |
| | | that.title = '' |
| | |
| | | that.newspaper = res.data |
| | | that.move = false |
| | | } else { |
| | | that.newspaper = '' |
| | | that.errorShow = false |
| | | } |
| | | } |
| | |
| | | var newsData = '' |
| | | var str = '' |
| | | let res = result.data |
| | | if (res.data[0].matDtos) { |
| | | if (res.data[0].matDtos.length <= 8) { |
| | | that.pakinShow = true |
| | | } |
| | | if (res.data[0].ioType === 101) { |
| | | that.title = '全板出库' |
| | | } else if(res.data[0].ioType === 103) { |
| | | that.title = '检料出库' |
| | | } |
| | | that.staNo = '目标站' + res.data[0].staNo |
| | | for (var i = 0; i < res.data[0].matDtos.length; i++) { |
| | | str = res.data[0].matDtos[i].matnr + ' - ' + res.data[0].matDtos[i].batch + '\n' |
| | | newsData = newsData + str |
| | | } |
| | | if (that.errorShow) { |
| | | return; |
| | | if(res.data) { |
| | | if (res.data[0].matDtos) { |
| | | if (res.data[0].matDtos.length <= 8) { |
| | | that.pakinShow = true |
| | | } |
| | | if (res.data[0].ioType === 101) { |
| | | that.title = '全板出库' |
| | | } else if(res.data[0].ioType === 103) { |
| | | that.title = '检料出库' |
| | | } |
| | | that.staNo = '目标站' + res.data[0].staNo |
| | | for (var i = 0; i < res.data[0].matDtos.length; i++) { |
| | | str = res.data[0].matDtos[i].matnr + ' - ' + res.data[0].matDtos[i].batch + '\n' |
| | | newsData = newsData + str |
| | | } |
| | | if (that.errorShow) { |
| | | return; |
| | | } else { |
| | | that.newspaper = newsData |
| | | that.move = false |
| | | } |
| | | } else { |
| | | that.newspaper = newsData |
| | | that.move = false |
| | | that.move = true |
| | | } |
| | | } else { |
| | | that.move = true |
| | | } |
| | | |
| | | } |
| | | }) |
| | | }, |