huangxiaoqiang
2025-11-29 f9e8a2d52fe52fb2389892a46c12d4d262ee9aaf
ÏîÄ¿´úÂë/PDA/pages/task/Inbound.vue
@@ -13,17 +13,12 @@
                  <uni-easyinput type="text" :focus="addressFocus" v-model="SourceAddress" placeholder="请输入入库起点"
                     ref='midInput' />
               </uni-forms-item>
               <!-- <uni-forms-item label="入库终点">
                  <uni-easyinput type="text" :focus="istrue" v-model="TargetAddress" placeholder="请输入入库终点"
                     ref='midInput' />
               </uni-forms-item> -->
               <uni-forms-item label="终点区域">
                  <uni-data-select :focus="!istrue" v-model="AreaId" :localdata="range"
                     placeholder="请输选择入库终点区域"></uni-data-select>
               </uni-forms-item>
            </uni-forms>
            <button @click="InboundTask" type="primary" size="default" style="margin-top: 2%;">入库</button>
         </view>
      </view>
      <view v-show="current === 1">
@@ -75,6 +70,25 @@
            <button @click="SolvePlate" type="primary" size="default" style="margin-top: 2%;">解盘</button>
         </view>
      </view>
      <view v-show="current === 3">
         <view style="padding: 5%;">
            <uni-forms label-width="120">
               <uni-forms-item label="托盘编码">
                  <uni-easyinput type="text" :focus="barcodeFocus" v-model="PalletCode3" placeholder="请输入托盘编码"
                     ref='midInput' @input="Changebarcode()"/>
               </uni-forms-item>
               <uni-forms-item label="入库起点">
                  <uni-easyinput type="text" :focus="addressFocus" v-model="SourceAddress3" placeholder="请输入入库起点"
                     ref='midInput' />
               </uni-forms-item>
               <uni-forms-item label="终点区域">
                  <uni-data-select :focus="!istrue" v-model="acrossFloor" :localdata="rangethree"
                     placeholder="请输选择入库终点区域"></uni-data-select>
               </uni-forms-item>
            </uni-forms>
            <button @click="SendTask" type="primary" size="default" style="margin-top: 2%;">发送任务</button>
         </view>
      </view>
      <u-toast ref="luToast" />
   </view>
</template>
@@ -93,8 +107,10 @@
            addressFocus:false,
            barcodefocus: false,
            range: [],
            rangethree:[],
            group: [],
            AreaId: 0,
            acrossFloor:0,
            quantity: "",
            SourceAddress: "",
            TargetAddress: "",
@@ -102,12 +118,13 @@
            PalletCode2: "",
            PalletCode3: "",
            materSn: "",
            items: ['入库', '组盘', '解盘'],
            items: ['入库', '组盘', '解盘','双托跨楼层'],
            current: 0
         }
      },
      onLoad(res) {
         this.range = config.AreaId;
         this.rangethree = config.AcrossFloor;
      },
      methods: {
         onClickItem(e) {
@@ -152,6 +169,38 @@
               }
            })
         },
         SendTask() {
            if (this.PalletCode3.length <= 0 && this.SourceAddress3.length) {
               this.$refs.luToast.show({
                  title: "托盘编码跟绑定货位不能为空",
                  type: "error"
               })
               return;
            }
            var param = {
               "PalletCode": this.PalletCode3,
               "Position": this.SourceAddress3,
               "AreaId": this.acrossFloor,
               "DoubleTray":1,
            }
            this.$u.post('/api/Task/RequestInboundTaskAsync', param).then(res => {
               if (res.status) {
                  this.$refs.luToast.show({
                     title: res.message,
                     type: "success"
                  })
                  this.PalletCode3 = "";
                  this.SourceAddress3 = "";
                  this.acrossFloor = "";
                  this.istrue = false;
               } else {
                  this.$refs.luToast.show({
                     title: res.message,
                     type: "error"
                  })
               }
            })
         },
         GroupPlate() {
            if (this.PalletCode2.length <= 0 && this.InBoundOrder.length) {
               this.$refs.luToast.show({