#
whycq
2022-06-27 f783d8748f76a01f536a5f98c7625b187a46031d
pages/basics/pakin.vue
@@ -8,7 +8,7 @@
            </view>
            <view class="square-content">
               <view class="content-input">
                  <input v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="10"
                  <input v-model="barcode" type="text" placeholder="扫码 / 输入" placeholder-style="margin-top:10px" maxlength="10"
                  :focus="barcodeFocus" @input="barcodeInput">
                  <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
               </view>
@@ -24,7 +24,7 @@
            <view class="square-content">
               <view class="content-input-btn">
                  <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMat()"
                  :focus="focus">
                  :focus="focus" placeholder-style="margin-top:9px">
                  <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons>
               </view>
               <view class="content-btn">
@@ -52,11 +52,11 @@
                  <!-- <view>
                     <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" />
                  </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 class="matnr"><text style="width: 400rpx;">编码:{{item.matNo}}</text></view>
                  <view><text style="width: 400rpx;">品名:{{item.matName}}</text></view>
                  <view><text style="width: 400rpx;">规格:{{item.str2}}</text></view>
                  <view>
                     <text style="width: 400rpx;">数量:{{item.anfme}}</text>
                     <text style="width: 400rpx;">数量:{{item.count}}</text>
                  </view>
               </view>
               <view class="data-list-right">
@@ -94,7 +94,7 @@
               <text class="title">组托数量</text>
            </view>
            <view class="text-box">
               <text>可组数量:{{enableQty}}</text>
               <text>确认组托数量</text>
            </view>
            <view class="changeBox">
               <view class="num-box">
@@ -204,13 +204,14 @@
               this.focus = true;
            });
         },
         remove() {
            // this.matList.splice(index,1)
            for (var i = 0; i < this.matList.length; i++) {
               if (this.matList[i].checked == true) {
                  this.matList.splice(i,1)
               }
            }
         remove(item,index) {
            this.matList.splice(index,1)
            // for (var i = 0; i < this.matList.length; i++) {
            //    if (this.matList[i].checked == true) {
            //       this.matList.splice(i,1)
            //    }
            // }
            this.checkList();
            uni.vibrateShort();
         },
@@ -237,6 +238,7 @@
                  'token':uni.getStorageSync('token')
                },
               success(result) {
                  console.log(result)
                  uni.hideLoading();
                  var res = result.data
                  if (res.code === 200) {
@@ -282,14 +284,15 @@
         findMat() {
            let that = this
            uni.request({
                url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth',
                url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/matCode/auth',
                data: {
                  matnr:that.matnr
                  id:that.matnr
                },
                header: {
                  'token':uni.getStorageSync('token')
                },
               success(result) {
                  console.log(result)
                  uni.vibrateShort();
                  let res = result.data
                  if (res.code === 200 && res.data) {
@@ -526,6 +529,7 @@
      height: 180rpx;
      margin: 15rpx;
      border-radius: 20rpx;
      font-size: 12px;
   }
   .data-list:first-child {
      margin-top: 20rpx;
@@ -568,4 +572,50 @@
      width: 80rpx;
      height: 180rpx;
   }
   .revise-box {
      width: 500rpx;
      height: 500rpx;
   }
   .revise-box-top {
      width: 100%;
      height: 100rpx;
      background-color: #fff;
      padding: 10rpx;
   }
   .changeBox {
      width: 100%;
      height: 100rpx;
      line-height: 120rpx;
      text-align: center;
      background-color: #FFF;
      margin-top: 20rpx;
      border-bottom: 1px solid #e3e3e3;
   }
   .text-box {
      width: 100%;
      height: 100rpx;
      line-height: 120rpx;
      text-align: center;
      /* padding-left: 120rpx; */
      background-color: #FFF;
      margin-top: 20rpx;
      border-bottom: 1px solid #e3e3e3;
   }
   .changeBox .num-box {
      display:  inline-block;
      /* float: left; */
   }
   .changeBox button {
      float: left;
   }
   .revise-box-buttom {
      position: absolute;
      width: 100%;
      height: 100rpx;
      line-height: 100rpx;
      background-color: #FFFFFF;
      bottom: 0;
      text-align: center;
   }
</style>