dengjunjie
2025-07-09 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922
ÏîÄ¿´úÂë/ÎߺþÈýÒ»PDA/pages/stash/raworderboxing.vue
@@ -6,13 +6,18 @@
         <view v-if="current === 0" class="headerstyle">
            <view class="itemstyle">
               <uni-forms label-width="180">
                  <uni-forms-item :label="orderNolabel">
                  </uni-forms-item>
                  <uni-forms-item :label="batchNolabel">
                  </uni-forms-item>
                  <uni-forms-item :label="orderQuantitylabel">
                  </uni-forms-item>
                  <uni-forms-item :label="receiptQuantitylabel">
                  </uni-forms-item>
                  <uni-forms-item label="托盘条码:">
                     <uni-easyinput type="text" placeholder="请扫描托盘条码" ref='midInput' :focus="!focus"
                        v-model="barcode" @input="barcodeInput" />
                  </uni-forms-item>
                  <uni-forms-item label="袋数:">
                     <uni-easyinput type="int" placeholder="请输入袋数" ref='midInput' :focus="focus" v-model="qty" />
                  </uni-forms-item>
                  <!-- <uni-forms-item>
                     <checkbox checked="check">是否满盘</checkbox>
@@ -21,7 +26,8 @@
                     <button @click="submit" type="primary" size="default" style="margin-top: 2%;">组盘入库</button>
                  </uni-forms-item>
                  <uni-forms-item>
                     <button @click="ReleaseCompleted" type="primary" size="default" style="margin-top: 2%;">放货完成</button>
                     <button @click="ReleaseCompleted" type="primary" size="default"
                        style="margin-top: 2%;">放货完成</button>
                  </uni-forms-item>
               </uni-forms>
            </view>
@@ -38,10 +44,13 @@
         return {
            items: ['组盘'], //, '入库', '单据信息', '解盘'
            current: 0,
            orderNo: "",
            batchNo: "",
            orderNolabel: "",
            receiptQuantity: 0,
            orderQuantity: "",
            orderQuantitylabel: "",
            receiptQuantitylabel: "",
            batchNolabel: "",
            qty: 0,
            orderInfo: [],
            focus: false,
            barcode: "",
@@ -49,10 +58,12 @@
      },
      onShow() {},
      onLoad(res) {
         this.orderNo = res.orderNo;
         this.orderQuantity = res.orderQuantity;
         this.orderQuantitylabel = "单据数量:" + this.orderQuantity;
         this.receiptQuantity = res.receiptQuantity;
         this.receiptQuantitylabel = "组盘数量:" + this.receiptQuantity;
         this.batchNo = res.batchNo;
         this.orderNolabel = "批号:" + this.orderNo;
         this.batchNolabel = "柜号:" + this.batchNo;
         this.batchNolabel = "批号:" + this.batchNo;
         // this.getData();
      },
      methods: {
@@ -123,7 +134,6 @@
                        title: "放货完成成功",
                        type: "success"
                     })
                     this.qty = "";
                  } else {
                     this.$refs.uToast.show({
                        title: res.message,
@@ -140,22 +150,34 @@
               })
               return;
            }
            if (this.qty == 0) {
               this.$refs.uToast.show({
                  title: "请输入袋数",
                  type: 'error'
               })
               return;
            }
            this.$u.post('/api/PDA/InMateriel', {
               MainData: {
                  "palletCode": this.barcode,
                  "orderNo": this.orderNo,
                  "batchNo":this.batchNo
                  "qty": this.qty,
                  "batchNo": this.batchNo
               },
               DelKeys: this.sns
            }).then(res => {
               this.Testcheck = false;
               if (res.status) {
                  this.$refs.uToast.show({
                     title: "组盘成功",
                     type: "success"
                  })
                  // this.$refs.uToast.show({
                  //    title: "组盘成功",
                  //    type: "success"
                  // })
                  let sum = parseInt(this.receiptQuantity) + parseInt(this.qty);
                  this.receiptQuantity = sum;
                  this.focus = false;
                  this.barcode = "";
                  this.qty = 0;
                  this.receiptQuantitylabel = "组盘数量:" + this.receiptQuantity;
               } else {
                  this.$refs.uToast.show({
                     title: res.message,