回库问题修改

master
zhangdi 2 weeks ago
parent fcce433b02
commit 7fe1710596
  1. 34
      pages/logistics/intoStock.vue

@ -1,6 +1,24 @@
<template> <template>
<ifrm> <ifrm>
<uni-forms ref="wrForm" class="formBox" label-position="top"> <uni-forms ref="wrForm" class="formBox" label-position="top">
<uni-forms-item label="物料箱条码:" label-width="100px">
<view class="bottom-input-row">
<view class="weight-input-wrapper">
<view class="input-box">
<input
type="text"
v-model="boxCode"
@confirm="handleBoxConfirm"
placeholder="物料箱条码"
class="uni-input-border"
confirm-type="done"
:focus="boxInputFocus"
/>
</view>
</view>
</view>
</uni-forms-item>
<uni-forms-item label="起点站点:" label-width="100px"> <uni-forms-item label="起点站点:" label-width="100px">
<input <input
type="text" type="text"
@ -48,6 +66,8 @@ export default {
}, },
data() { data() {
return { return {
boxCode: "",
boxInputFocus:true,
startCode: "", // startCode: "", //
startInputFocus: true, // startInputFocus: true, //
startData: null, startData: null,
@ -60,6 +80,17 @@ export default {
this.getWorkCenterList(); this.getWorkCenterList();
}, },
methods: { methods: {
handleBoxConfirm() {
const code = this.boxCode.trim();
if (!code) return;
// this.$u.api
// .getQuantityLocation({ boxBarcode: this.boxCode })
// .then((res) => {
// this.boxData = res.data;
this.boxInputFocus = false;
this.startInputFocus = true;
// });
},
// //
getWorkCenterList() { getWorkCenterList() {
this.$u.api.getWorkCenter().then((res) => { this.$u.api.getWorkCenter().then((res) => {
@ -120,6 +151,7 @@ export default {
title: "提交中...", title: "提交中...",
}); });
let query = { let query = {
boxBarcode: this.boxCode || "", //
endWcId: this.endCenterIndex, endWcId: this.endCenterIndex,
startStationCode: this.startCode, startStationCode: this.startCode,
}; };
@ -133,12 +165,14 @@ export default {
uni.hideLoading(); uni.hideLoading();
this.startCode = ""; this.startCode = "";
this.boxCode = ""
this.startData = null; this.startData = null;
this.startInputFocus = true; this.startInputFocus = true;
}) })
.catch((err) => { .catch((err) => {
uni.hideLoading(); uni.hideLoading();
this.startCode = ""; this.startCode = "";
this.boxCode = ""
this.startData = null; this.startData = null;
this.startInputFocus = true; this.startInputFocus = true;
}); });

Loading…
Cancel
Save