1
dengjunjie
2025-01-15 68a2cc40b6d7f438267f9dc74bb2f6045cf4f01d
´úÂë¹ÜÀí/»´°²PDA/pages/stash/boxing.vue
@@ -64,13 +64,40 @@
                        placeholder="请扫描托盘条码" ref='midInput' @input="inputChangebarcode" />
                  </uni-forms-item>
                  <uni-forms-item label="地址条码">
                     <uni-easyinput type="text" v-model="address" placeholder="请扫描地址条码" ref='midInput'
                     <uni-easyinput type="text" v-model="address" :disabled="addressdisabled" placeholder="请扫描地址条码" ref='midInput'
                        :focus="addressFocus" />
                  </uni-forms-item>
                  <uni-forms-item>
                     <button @click="inbound" type="primary" size="default" style="margin-top: 2%;">入库确认</button>
                  </uni-forms-item>
               </uni-forms>
            </view>
            <view>
               <uni-list>
                  <uni-list-item direction="column" v-if="inboundBarcode">
                     <template v-slot:body>
                        <view class="uni-list-box">
                           <view class="uni-content">
                              <view class="uni-title-sub uni-ellipsis-2">组盘总数量:{{Summmary}}</view>
                           </view>
                        </view>
                     </template>
                  </uni-list-item>
                  <uni-list-item direction="column" v-for="(item,index) in stockInfoDetail" :key="index">
                     <template v-slot:body>
                        <view class="uni-list-box">
                           <view class="uni-content">
                              <view class="uni-title-sub uni-ellipsis-2">物料编号:{{item.materielCode}}</view>
                              <view class="uni-note">物料名称:{{item.materielName}}</view>
                              <view class="uni-note">物料批次:{{item.batchNo}}</view>
                              <view class="uni-note">组盘数量:{{item.stockQuantity}}</view>
                              <view class="uni-note">生产日期:{{item.productionDate}}</view>
                              <view class="uni-note">有 æ•ˆ æœŸï¼š{{item.effectiveDate}}</view>
                           </view>
                        </view>
                     </template>
                  </uni-list-item>
               </uni-list>
            </view>
         </view>
         <view v-if="current === 2" class="headerstyle">
@@ -181,6 +208,9 @@
            Testlabel: "",
            Testplaceholder: "",
            Testcheck: false,
            Summmary:0,
            stockInfoDetail:[],
            addressdisabled: false
         }
      },
      onShow() {},
@@ -200,6 +230,9 @@
            this.Initiallife = 16;
         } else if (this.warehouseId == 5) { //辅料仓库区ID
            this.address = "8005";
         }else if (this.warehouseId == 3) { //辅料仓库区ID
            this.address = "1011";
            this.addressdisabled = true;
         }
         this.label = "单据编号:" + this.orderNo;
         this.getData();
@@ -371,7 +404,7 @@
                           }
                        }
                        this.matInfos.push(res.data);
                        if (res.message) {
                        if (!res.status) {
                           this.$refs.uToast.show({
                              title: res.message,
                              type: "error"
@@ -450,6 +483,34 @@
                  this.addressFocus = true;
               }
            })
            this.$nextTick(function(x) {
               if (this.inboundBarcode != '') {
                  var postData = {
                     MainData: {
                        "barcode": this.inboundBarcode,
                        "warehouseId": this.warehouseId,
                     }
                  };
                  this.$u.post('/api/StockInfo/StockQueryData', postData).then(res => {
                     // this.stockInfo = [];
                     this.stockInfoDetail = [];
                     if (res.status) {
                           // this.stockInfo = res.data,
                           this.stockInfoDetail = res.data.details
                           //获取总数量
                           this.stockInfoDetail.forEach(item => {
                              this.Summmary+= item.stockQuantity;
                           });
                     } else {
                        this.$refs.uToast.show({
                           // title: "未找到托盘信息",
                           title: res.message,
                           type: "error"
                        })
                     }
                  })
               }
            })
         },
         deleteList(res) {
            this.matInfos.splice(res, 1);