| | |
| | | tabData: [], |
| | | searchData: {}, |
| | | orderNo: '', |
| | | needData:{}, |
| | | } |
| | | }, |
| | | mounted(){ |
| | |
| | | this.baseIP = UIP; |
| | | const UPORT = uni.getStorageSync('UPORT'); |
| | | this.basePORT = UPORT; |
| | | this.render("AT-20220322180534") |
| | | this.render() |
| | | }, |
| | | onLoad() { |
| | | |
| | |
| | | // 搜索 |
| | | search() { |
| | | let that = this; |
| | | that.tabData.forEach(function(e){ |
| | | that.searchData = e.orderNo |
| | | }) |
| | | |
| | | // that.tabData.forEach(function(e){ |
| | | // that.searchData = e.orderNo |
| | | // }) |
| | | this.render(that.orderNo) |
| | | }, |
| | | // 重置 |
| | | reset() { |
| | | let that = this; |
| | | that.orderNo = '' |
| | | that.orderNo = ''; |
| | | that.needData['order_no'] = ''; |
| | | that.getData(); |
| | | }, |
| | | // 表格加载 |
| | | render(param) { |
| | | let that = this; |
| | | let data = new Object(); |
| | | if(param) { |
| | | data['order_no'] = param; |
| | | |
| | | // 获取表格数据 |
| | | getData() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/receiveDetl/list/auth", |
| | | header:{'token':uni.getStorageSync('token')}, |
| | | data: data, |
| | | data: that.needData, |
| | | success(res) { |
| | | var res = res.data |
| | | if (res.code === 200) { |
| | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 表格加载 |
| | | render(param) { |
| | | let that = this; |
| | | if(param) { |
| | | that.needData['order_no'] = param; |
| | | that.getData(); |
| | | } else { |
| | | that.getData(); |
| | | } |
| | | |
| | | } |