| | |
| | | <uni-combox :candidates="orderNoList" placeholder="请选择来源地" v-model="origin"></uni-combox> |
| | | </view> --> |
| | | <view class="item"> |
| | | <view class="code-decs">货主:</view> |
| | | <uni-combox :candidates="ownerList" placeholder="请选择货主" v-model="owner"></uni-combox> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">库位码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="locNo" > |
| | | </view> |
| | |
| | | <view class="left-item">{{item.batch}}</view> |
| | | </view> |
| | | <view class="list-left-item"> |
| | | <view class="desc">公斤:</view> |
| | | <view class="desc">公斤(数量):</view> |
| | | <view class="left-item">{{item.anfme}}</view> |
| | | </view> |
| | | </view> |
| | |
| | | locNo:'', |
| | | orderNoList: [], |
| | | code:'', |
| | | origin:'' |
| | | origin:'', |
| | | ownerList: [], |
| | | owner: '' |
| | | |
| | | } |
| | | }, |
| | |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.getOrderNoList() |
| | | this.getOwnerList() |
| | | }, |
| | | methods: { |
| | | findCode(){ |
| | |
| | | } |
| | | }) |
| | | }, |
| | | getOwnerList(){ |
| | | let that = this |
| | | uni.request({ |
| | | url: this.baseUrl + '/locOwnerQuery/auth', |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | res.data.forEach((item,index) => { |
| | | that.ownerList.push(item.value) |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | // 根据托盘码搜索 |
| | | search() { |
| | | let that = this |
| | |
| | | data: {orderNo: that.orderNo}, |
| | | method:'GET', |
| | | success(res) { |
| | | console.log(res); |
| | | res = res.data |
| | | if(res.code === 200){ |
| | | for(var i = 0; i < res.data.length;i++){ |
| | |
| | | const day = now.getDate(); |
| | | data.data.batch = (""+year+month+day) |
| | | } |
| | | that.checkMat(data.data) |
| | | for(let i = 0; i < data.data.count; i++) { |
| | | // that.checkMat(data.data) |
| | | that.dataList.unshift(data.data.mat) |
| | | } |
| | | }, |
| | | }, |
| | | }); |
| | |
| | | } |
| | | } |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/manDetl/in/origin', |
| | | url: that.baseUrl + '/mobile/manDetl/in/no/origin', |
| | | data: JSON.stringify({ |
| | | locNo:that.locNo, |
| | | // code:that.code, |
| | | // origin:that.origin, |
| | | combMats: that.dataList |
| | | combMats: that.dataList, |
| | | owner: that.owner |
| | | }), |
| | | method: 'POST', |
| | | header: { |