|  |  | 
 |  |  |    <view> | 
 |  |  |       <view class="code"> | 
 |  |  |          <view class="item"> | 
 |  |  |             <view class="code-decs">订单号:</view> | 
 |  |  |             <input type="text" placeholder=" 扫码 / 输入" v-model="orderNo" :focus="orderNoFocus" | 
 |  |  |                @input="orderNoInput()"> | 
 |  |  |          </view> | 
 |  |  |          <view class="item"> | 
 |  |  |             <view class="code-decs">托盘码:</view> | 
 |  |  |             <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus" | 
 |  |  |                @input="barcodeInput()"> | 
 |  |  | 
 |  |  |                   <view class="left-item">{{i + 1}}</view> | 
 |  |  |                </view> | 
 |  |  |                <view class="list-left-item"> | 
 |  |  |                   <view class="desc">编码:</view> | 
 |  |  |                   <view class="desc">料号:</view> | 
 |  |  |                   <view class="left-item"> | 
 |  |  |                      <uni-tag :text="item.matnr" type="primary"></uni-tag> | 
 |  |  |                   </view> | 
 |  |  | 
 |  |  |                      <uni-tag :text="item.batch" type="warning"></uni-tag> | 
 |  |  |                   </view> | 
 |  |  |                </view> | 
 |  |  |                <view class="list-left-item"> | 
 |  |  |                <!-- <view class="list-left-item"> | 
 |  |  |                   <view class="desc">重量:</view> | 
 |  |  |                   <view class="left-item"> | 
 |  |  |                      <uni-tag :text="item.weight" type="warning"></uni-tag> | 
 |  |  |                   </view> | 
 |  |  |                </view> | 
 |  |  |                </view> --> | 
 |  |  |                <view class="list-left-item"> | 
 |  |  |                   <view class="desc">数量:</view> | 
 |  |  |                   <view class="left-item">{{item.anfme}}</view> | 
 |  |  | 
 |  |  |                <!-- 标题 --> | 
 |  |  |                <view class="title">修改</view> | 
 |  |  |                <view class="popup-item"> | 
 |  |  |                   <view class="popup-item-left">编码:</view> | 
 |  |  |                   <view class="popup-item-left">料号:</view> | 
 |  |  |                   <view class="popup-item-right"> | 
 |  |  |                      <input type="text" v-model="matnr" disabled="true" | 
 |  |  |                         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="batch"></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="weight"></view> | 
 |  |  |                </view> | 
 |  |  |                </view> --> | 
 |  |  |                <view class="popup-item"> | 
 |  |  |                   <view class="popup-item-left">数量:</view> | 
 |  |  |                   <view class="popup-item-right" style="border: none;justify-content: center;"> | 
 |  |  | 
 |  |  |             baseUrl: '', | 
 |  |  |             token: '', | 
 |  |  |             barcode: '', | 
 |  |  |             orderNo: '', | 
 |  |  |             dataList: [], | 
 |  |  |             count: 0, | 
 |  |  |             rowNum: '', | 
 |  |  | 
 |  |  |             content: '', | 
 |  |  |             barcodeFocus: true, | 
 |  |  |             matFocus: false, | 
 |  |  |             orderNoFocus: false, | 
 |  |  |             matData: '', | 
 |  |  |             removeNum: 0, | 
 |  |  |          } | 
 |  |  | 
 |  |  |             this.$refs.message.open() | 
 |  |  |          }, | 
 |  |  |          // barcode input 事件 | 
 |  |  |          orderNoInput() { | 
 |  |  |             // 不设置定时器 会出现扫入的字符串不全 | 
 |  |  |             setTimeout(() => { | 
 |  |  |                var len = this.orderNo.length | 
 |  |  |                this.barcodeFocuss() | 
 |  |  |             }, 200) | 
 |  |  |          }, | 
 |  |  |          barcodeInput() { | 
 |  |  |             // 不设置定时器 会出现扫入的字符串不全 | 
 |  |  |             setTimeout(() => { | 
 |  |  |                var len = this.barcode.length | 
 |  |  |                if (len != 8) { | 
 |  |  |                if (len != 10) { | 
 |  |  |                   uni.showToast({ | 
 |  |  |                      title: '托盘码有误请重试', | 
 |  |  |                      icon: "none", | 
 |  |  | 
 |  |  |          // 搜索物料 | 
 |  |  |          findMat() { | 
 |  |  |             let that = this | 
 |  |  |             // 判断物料长度是否为1 | 
 |  |  |             if (that.dataList.length >= 1) { | 
 |  |  |                this.messageText = "只能添加一种物料" | 
 |  |  |                this.messageToggle('warn') | 
 |  |  |                that.matnr = '' | 
 |  |  |                return | 
 |  |  |             } | 
 |  |  |             uni.request({ | 
 |  |  |                url: that.baseUrl + '/mat/auth', | 
 |  |  |                data: { | 
 |  |  | 
 |  |  |             uni.request({ | 
 |  |  |                url: that.baseUrl + '/agvMobile/comb/auth', | 
 |  |  |                data: JSON.stringify({ | 
 |  |  |                   orderNo: that.orderNo, | 
 |  |  |                   barcode: that.barcode, | 
 |  |  |                   combMats: that.dataList | 
 |  |  |                }), | 
 |  |  | 
 |  |  |          // 确认重置 | 
 |  |  |          resetConfirm() { | 
 |  |  |             this.dataList = [] | 
 |  |  |             this.barcode = '' | 
 |  |  |             this.messageText = "重置完成" | 
 |  |  |             this.messageToggle('success') | 
 |  |  |          }, | 
 |  |  | 
 |  |  | <style> | 
 |  |  |    @import url('../../static/css/wms.css/wms.css'); | 
 |  |  |  | 
 |  |  |    .list:first-child { | 
 |  |  |       margin-top: 460rpx; | 
 |  |  |    } | 
 |  |  |    .code { | 
 |  |  |       width: 100%; | 
 |  |  |       position: fixed; | 
 |  |  | 
 |  |  |       width: 100%; | 
 |  |  |       background-color: white; | 
 |  |  |       position: fixed; | 
 |  |  |       margin-top: 200rpx; | 
 |  |  |       margin-top: 300rpx; | 
 |  |  |       z-index: 9; | 
 |  |  |       /* border-top: 1px solid #DCDFE6; */ | 
 |  |  |       text-align: center; |