zjj
2025-03-21 f3fd6931f2f1c68b9f51a51de2eeb32f07135a53
pages/basics/pakin.vue
@@ -9,7 +9,7 @@
            <view class="square-content">
               <view class="content-input">
                  <input v-model="barcode" type="text" placeholder="扫码 / 输入" 
                  :focus="barcodeFocus" @input="barcodeInput()" placeholder-style="line-height:  85rpx;">
                  :focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height:  85rpx;">
                  <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
               </view>
            </view>
@@ -29,6 +29,19 @@
               </view>
               <view class="content-btn">
                  <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+提取</button>
               </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 v-model="locNo" type="text" placeholder="扫码 / 输入"
                    placeholder-style="line-height:  85rpx;">
                  <uni-icons type="closeempty" size="20" color="#dadada" @click="removeLocNo()"></uni-icons>
               </view>
            </view>
         </view>
@@ -54,7 +67,7 @@
                  </view> -->
                  <view class="matnr"><text style="width: 400rpx;">编码:{{item.matnr}}</text></view>
                  <view><text style="width: 400rpx;">品名:{{item.maktx}}</text></view>
                  <view><text style="width: 400rpx;">批号:{{item.batch}}</text></view>
                  <view><text style="width: 400rpx;">合同号:{{item.batch}}</text></view>
                  <view>
                     <text style="width: 400rpx;">数量:{{item.anfme}}</text>
                  </view>
@@ -87,15 +100,20 @@
      
      <!-- 弹窗 -->
      <!-- 修改数量 -->
      <uni-popup ref="revise" background-color="#fff" @change="change">
         <view class="revise-box">
      <uni-popup ref="revise" background-color="#fff">
         <view class="revise-box ">
            <view class="revise-box-top">
               <view class="color-block-blue"></view>
               <text class="title">修改数量</text>
               <text class="title">修改批号/数量</text>
            </view>
            <view class="" style="position: relative;left: 50px;margin-bottom: 20px;">
               <text style="display: inline-block;float: left;width: 60px;">合同号:</text>
               <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="batch">
            </view>
            <view class="changeBox">
               <view class="num-box">
                  <uni-number-box :value="count" :max="9999" color="#747474"  @change="changeValue"/>
                  <text style="display: inline-block;float: left;width: 60px;">数量:</text>
                  <uni-number-box :value="count" :max="99999999" color="#747474"  @change="changeValue"/>
               </view> 
            </view>
            <view class="revise-box-buttom">
@@ -131,6 +149,8 @@
            check:false,
            checkText:'全选',
            checkedData:[],
            batch:'',
            locNo:''
         }
      },
      onShow() {
@@ -163,10 +183,8 @@
                  this.barcodeFocuss()
                  return;
               }
               if (len == 8) {
                  this.focuss()
               }
            },100)
               this.focuss()
            },200)
         },
         // 托盘码有误重置
         barcodeFocuss() {
@@ -191,6 +209,7 @@
         resst() {
            this.matList = []
            this.barcode = ''
            this.locNo = ''
            this.barcodeFocuss()
            uni.vibrateShort();
         },
@@ -201,6 +220,10 @@
            this.$nextTick(function() {
               this.barcodeFocus = true;
            });
         },
         removeLocNo() {
            this.locNo = ''
            uni.vibrateShort();
         },
         removeMatnr() {
            this.matnr = ''
@@ -222,6 +245,10 @@
               uni.showToast({title: '请扫描托盘条码', icon: "none", position: 'top'});
               return;
            }
            if (that.locNo === '') {
               uni.showToast({title: '请输入库位码', icon: "none", position: 'top'});
               return;
            }
            if (that.matList.length === 0) {
               uni.showToast({title: '请添加商品列表', icon: "none", position: 'top'});
               return;
@@ -237,6 +264,7 @@
                url: that.commonUrl + '/mobile/comb/auth',
                data: JSON.stringify({
                  barcode: that.barcode,
                  locno: that.locNo,
                  combMats: that.matList
               }),
               method: 'POST',
@@ -401,6 +429,7 @@
         },
         confirm() {
            this.matList[this.rowNum].anfme = this.count
            this.matList[this.rowNum].batch = this.batch
            this.$refs.revise.close()
            this.$forceUpdate() // 强制刷新
         },
@@ -455,8 +484,9 @@
   /* @import "../../colorui/main.css";
   @import "../../colorui/icon.css"; */
   .revise-box {
      width: 400rpx;
      height: 300rpx;
      position: relative;
      width: 500rpx;
      height: 400rpx;
      border-radius: 25px;
   }
   .revise-box-top {
@@ -472,7 +502,7 @@
      margin-left: 100rpx;
   }
   .revise-box-buttom{
      margin-left: 130rpx;
      margin-left: 190rpx;
   }
   .pak-seach-box {
      background-color: #FFFFFF;