LSH
2022-09-23 1e7de5b9103999800062f1e6b18d94fd93f3ef06
pages/basics/pakStore.vue
@@ -16,34 +16,37 @@
            </view>
         </view>
      </view>
      <!-- <view class="square-2">
         <view class="square-title">
            <view class="title-sign"><view class="sign"></view></view>
            <view class="title-text"><text>库位号码</text></view>
         </view>
         <view class="square-content">
            <view class="content-input">
               <input type="text" v-model="locNo" placeholder="扫码 / 输入" @input="searchLocNo" placeholder-style="line-height:  85rpx;">
               <uni-icons type="closeempty" size="20" color="#dadada" @click="removeLocNo"></uni-icons>
            </view>
         </view>
      </view> -->
      <view class="square-2">
         <view class="square-title">
            <view class="title-sign"><view class="sign"></view></view>
            <view class="title-text"><text>入库口</text></view>
         </view>
            <view class="content-combox">
               <uni-combox  emptyTips="暂无数据" 
                  :candidates="sites" v-model="siteId"  @click="getInBound()" placeholder="请选择入库站点">
                  :candidates="sites" v-model="siteId"  @click="staNoSelect()" placeholder="请选择出库站点">
               </uni-combox>
            </view>
      </view>
      <view class="square-2">
         <view class="square-title">
            <view class="title-sign"><view class="sign"></view></view>
            <view class="title-text"><text>桶类型</text></view>
         </view>
         <view class="content-combox">
            <uni-combox  emptyTips="暂无数据"
               :candidates="bucket" v-model="bucketId"  placeholder="请选择桶类型">
            </uni-combox>
         </view>
      </view>
      <view class="square-1">
         <view class="square-title">
            <view class="title-sign"><view class="sign"></view></view>
            <view class="title-text"><text>商品列表</text></view>
         </view>
      </view>
      
      <view class="square-none" v-show="matList.length === 0">
@@ -59,7 +62,7 @@
            <view><text style="width: 400rpx;">品名:{{item.maktx}}</text></view>
            <view><text style="width: 400rpx;">批号:{{item.batch}}</text></view>
            <view>
               <text style="width: 400rpx;">重量:{{item.anfme}}kg</text>
               <text style="width: 400rpx;">数量:{{item.anfme}}</text>
            </view>
         </view>
         <view class="data-list-right">
@@ -109,9 +112,7 @@
                matList: [],
                sites: [],
                siteId: '',
            count:0,
            bucket:['油桶','净桶'],
            bucketId:'',
            count:0
            }
        },
        mounted(){
@@ -178,6 +179,7 @@
                  } else {
                     uni.showToast({title: res.msg, icon: "none",position: 'top'})
                  }
               }
            });
         },
@@ -251,28 +253,13 @@
               return;
                } 
            if (that.siteId == '') {
                uni.showToast({title: "请选择入库口", icon: "none",position: 'top'})
                uni.showToast({title: "请选择出库口", icon: "none",position: 'top'})
                return;
            }
            let buchid=0;
            if (that.bucketId == '') {
                uni.showToast({title: "请选择桶类型", icon: "none",position: 'top'})
                return;
            }else{
               if(that.bucketId == '油桶'){
                  buchid=1;
               }else if(that.bucketId == '净桶'){
                  buchid=2;
               }else{
                  uni.showToast({title: "请选择正确桶类型", icon: "none",position: 'top'})
                  return;
               }
            }
                var list = [];
                let param = {
                    devpNo: that.siteId,
                    list: that.matList,
               bucket:buchid
                    list: that.matList
                }
                uni.request({
                    url: that.commonUrl + "/full/store/put/start",
@@ -295,7 +282,6 @@
                this.matnr = '';
                this.siteId = '';
            this.matList = [];
            this.bucketId='';
            },
         // 修改数量
         revise(item,index) {