#
LSH
2023-12-16 3911b985cc7cd41fdb2c9061d8c83f4bf7a4880e
pages/pakin/goodsUp2.vue
@@ -10,6 +10,10 @@
            <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>
@@ -49,7 +53,7 @@
               </view>
               
               <view class="list-left-item">
                  <view class="desc">数量:</view>
                  <view class="desc">公斤:</view>
                  <view class="left-item">{{item.anfme}}</view>
               </view>
            </view>
@@ -78,16 +82,16 @@
                        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>
@@ -154,8 +158,9 @@
            locNo:'',
            orderNoList: [],
            code:'',
            origin:''
            origin:'',
            ownerList: [],
            owner: ''
         }
      },
      onLoad() {
@@ -165,6 +170,7 @@
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         this.getOrderNoList()
         this.getOwnerList()
      },
      methods: {
         findCode(){
@@ -188,6 +194,22 @@
                  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)
                  })
               }
            })
         },
@@ -431,16 +453,16 @@
         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')
@@ -564,4 +586,7 @@
   .list:last-child {
      margin-bottom: 120rpx;
   }
   .list-left-item{
      margin-bottom: 2px;
   }
</style>