| | |
| | | <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> |
| | | |
| | | <view class="list-left-item"> |
| | | <view class="desc">数量:</view> |
| | | <view class="desc">公斤:</view> |
| | | <view class="left-item">{{item.anfme}}</view> |
| | | </view> |
| | | </view> |
| | |
| | | style="background-color: #f7f7f7;padding: 0;color: #d5d5d5;"> |
| | | </view> |
| | | </view> |
| | | <view class="popup-item"> |
| | | <!-- <view class="popup-item"> |
| | | <view class="popup-item-left">库位:</view> |
| | | <view class="popup-item-right"><input type="text" v-model="locNo"></view> |
| | | </view> |
| | | <view class="popup-item"> |
| | | </view> --> |
| | | <!-- <view class="popup-item"> |
| | | <view class="popup-item-left">批号:</view> |
| | | <view class="popup-item-right"><input type="text" v-model="batch"></view> |
| | | </view> |
| | | </view> --> |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">数量:</view> |
| | | <view class="popup-item-left">公斤:</view> |
| | | <view class="popup-item-right" style="border: none;justify-content: center;"> |
| | | <uni-number-box :value="count" :max="9999999" color="#747474" @change="changeValue" /> |
| | | </view> |
| | |
| | | locNo:'', |
| | | orderNoList: [], |
| | | code:'', |
| | | origin:'' |
| | | |
| | | origin:'', |
| | | ownerList: [], |
| | | owner: '' |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.getOrderNoList() |
| | | this.getOwnerList() |
| | | }, |
| | | methods: { |
| | | findCode(){ |
| | |
| | | for (var i = 0; i < res.data.length; i++) { |
| | | that.orderNoList.push(res.data[i]) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | 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) |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | adjust() { |
| | | uni.vibrateShort(); |
| | | let that = this; |
| | | if (that.code === '') { |
| | | this.messageText = "请输入条码" |
| | | this.messageToggle('error') |
| | | return; |
| | | } |
| | | if (that.origin === '') { |
| | | this.messageText = "请选择来源地" |
| | | this.messageToggle('error') |
| | | return; |
| | | } |
| | | // if (that.code === '') { |
| | | // this.messageText = "请输入条码" |
| | | // this.messageToggle('error') |
| | | // return; |
| | | // } |
| | | // if (that.origin === '') { |
| | | // this.messageText = "请选择来源地" |
| | | // this.messageToggle('error') |
| | | // return; |
| | | // } |
| | | if (that.locNo === '') { |
| | | this.messageText = "请输入库位码" |
| | | this.messageToggle('error') |
| | |
| | | .list:last-child { |
| | | margin-bottom: 120rpx; |
| | | } |
| | | .list-left-item{ |
| | | margin-bottom: 2px; |
| | | } |
| | | </style> |