| | |
| | | <template> |
| | | <view> |
| | | <!-- 搜索框 --> |
| | | <view class="search-bar"> |
| | | <uni-search-bar v-model="condition" placeholder=" 扫码 / 输入" bgColor="#EEEEEE" @input="search" /> |
| | | </view> |
| | | <view class="card" v-show="item.enableQty >0" v-for="item in menuList" @click="chose(item)"> |
| | | <view class="tag-item">单据号: {{item.orderNo}}</view> |
| | | <view class="tag-item">物料码: {{item.matnr}}</view> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | data:'', |
| | | data:'', |
| | | condition:'', |
| | | menuList: [], |
| | | order:'', |
| | | baseUrl: '', |
| | |
| | | }, |
| | | onShow() { |
| | | let that = this |
| | | |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | that.getOrderNoList(that.order) |
| | | }, |
| | | methods: { |
| | | search(){ |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseUrl + '/orderDetl/search/pda/auth', |
| | | data: { |
| | | condition: that.condition, |
| | | order: that.order.orderNo |
| | | }, |
| | | // method:"GET", |
| | | header: { |
| | | 'token':uni.getStorageSync('token'), |
| | | }, |
| | | success(result) { |
| | | console.log(result); |
| | | var res = result.data |
| | | if (res.code === 200 ) { |
| | | that.menuList = res.data |
| | | // that.save() |
| | | } else if (res.code == 403) { |
| | | uni.showToast({title: res.msg, icon: "none", position: 'top'}) |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: '../login/login' |
| | | }); |
| | | }, 1000); |
| | | } else { |
| | | uni.showToast({title: res.msg, icon: "none",position: 'top'}) |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | getOrderNoList(order) { |
| | | let that = this |
| | | uni.request({ |