| | |
| | | </view> |
| | | <view class="cu-form-group margin-top"> |
| | | <view class="title">产品</view> |
| | | <input v-model="matNo" placeholder="产品信息" name="input" @input="findByMatNo()"></input> |
| | | <input v-model="matNo" placeholder="产品ID" name="input" @input="findByMatNo()"></input> |
| | | </view> |
| | | <view class="margin-top"> |
| | | <uni-table border stripe emptyText="暂无更多数据"> |
| | |
| | | </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> |
| | |
| | | locDetlData:[], |
| | | } |
| | | }, |
| | | mounted(){ |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | this.baseIP = UIP |
| | | }, |
| | | methods: { |
| | | reset:function() { |
| | | let that = this; |
| | | that.locNo = ''; |
| | | that.matNo = ''; |
| | | that.locDetlData = []; |
| | | }, |
| | | // 根据库位号查找库存明细 |
| | | findByLocNo(){ |
| | |
| | | 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': localStorage.getItem('token') |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | data:{ |
| | | locNo: that.locNo, |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | /* .reset { |
| | | |
| | | position: absolute; |
| | | width: 750upx; |
| | | bottom: 280upx; |
| | | } */ |
| | | .pda-btn1 { |
| | | margin-left:260rpx; |
| | | margin-right: auto; |
| | | margin-top: 150rpx; |
| | | width: 200rpx; |
| | | height: 80rpx; |
| | | font-size: 30upx; |
| | | font-weight: bold; |
| | | } |
| | | </style> |