| | |
| | | </uni-table> |
| | | |
| | | </view> |
| | | <view> |
| | | <button class="cu-btn bg-grey pda-btn" @click="reset">重置</button> |
| | | <view class="reset"> |
| | | <button class="cu-btn bg-grey pda-btn1" @click="reset">重 置</button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | matNo:'', |
| | | locDetlData:[], |
| | | } |
| | | }, |
| | | mounted(){ |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | this.baseIP = UIP |
| | | }, |
| | | methods: { |
| | | reset:function() { |
| | |
| | | find(){ |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseUrl + "/mobile/locDetl/stockQuery", |
| | | url: that.baseHttp + that.baseIP + that.baseUrl + "/mobile/locDetl/stockQuery", |
| | | header:{ |
| | | 'content-type':'application/x-www-form-urlencoded', |
| | | 'token':uni.getStorageSync('token') |
| | |
| | | if(res.data.data != null){ |
| | | that.locDetlData = res.data.data |
| | | } else if (res.data.code ===403){ |
| | | |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }) |
| | | } else { |
| | | |
| | | this.messageToggle('error') |
| | | this.messageText = res.data.msg |
| | | } |
| | | } |
| | | } |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | .reset { |
| | | |
| | | position: absolute; |
| | | width: 750upx; |
| | | bottom: 80upx; |
| | | } |
| | | .pda-btn1 { |
| | | display: flex; |
| | | flex-direction:row; |
| | | justify-content: center; |
| | | width: 150upx; |
| | | } |
| | | </style> |