wankeda
2025-06-24 1caea0fdc7ed1788d854a2aba8853984b4494e01
´úÂë¹ÜÀí/AGVjiaoliaoPDA/pages/materielGroup/InboundTask.vue
@@ -55,23 +55,28 @@
            <view class="itemstyle">
               <uni-forms label-width="120">
                  <uni-forms-item label="缓存架编号">
                     <uni-easyinput type="text" v-model="stationcode" placeholder="请扫瞄缓存架编号" ref='midInput':focus="addressFocus"/>
                     <!-- <uni-easyinput type="text" v-model="stationcode" placeholder="请扫瞄缓存架编号" ref='midInput':focus="addressFocus"/> -->
                     <uni-easyinput type="text" :focus="!addressFocus" v-model="stationcode"
                        placeholder="请扫瞄缓存架编号" ref='midInput' @input="inputChangebarcode" />
                  </uni-forms-item>
<!--                   <uni-forms-item label="托盘条码">
                  <!--                   <uni-forms-item label="托盘条码">
                     <uni-easyinput type="text" :focus="!addressFocus" v-model="inboundBarcode"
                        placeholder="请扫描托盘条码" ref='midInput' @input="inputChangebarcode" />
                  </uni-forms-item> -->
                  <uni-forms-item label="托盘编号">
                     <uni-easyinput type="text" v-model="PalletCode" placeholder="请扫描托盘编号" ref='midInput'
                  <uni-forms-item label="物料类型">
                     <uni-easyinput type="text" v-model="PalletCode" placeholder="请扫描物料类型" ref='midInput'
                        :focus="addressFocus" />
                  </uni-forms-item>
            <!--       <uni-forms-item label="终点缓存位区域">
                     <uni-data-select v-model="value" :localdata="rangs"></uni-data-select>
                  </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>
       </view>
      </view>
      <u-toast ref="uToast" />
   </view>
</template>
@@ -94,14 +99,27 @@
            materSn: "",
            sns: [],
            addressFocus: false,
            PalletCode:"",
            PalletCode: "",
            stationcode: "",
            address: "",
            check: true,
            value: "",
            matInfo: [],
            value2: "",
            matTotals: []
            matTotals: [],
            rangs: [{
                  value: "PVC区",
                  text: "PVC区"
               },
               {
                  value: "无卤区",
                  text: "无卤区"
               },
               {
                  value: "硅烷区",
                  text: "硅烷区"
               },
            ],
         }
      },
      onShow() {},
@@ -117,7 +135,7 @@
            innerAudioContext.src = src; // '../../static/success.mp3';
            innerAudioContext.play();
         },
         updateFocus() {
            this.$nextTick(() => {
               this.materSn = '';
@@ -166,6 +184,7 @@
               MainData: {
                  "stationcode": this.stationcode,
                  "PalletCode": this.PalletCode,
                  // "PointName": this.value,
               }
            }
            this.$u.post('/api/Task/InboundTask', postData).then(res => {
@@ -173,6 +192,7 @@
                  uni.$showMsg("任务添加成功");
                  this.stationcode = "";
                  this.PalletCode = "";
                  // this.PointName = ";"
                  setTimeout(() => {
                     // this.materialtype = false;
                  }, 200);