【v2.4.3】修复初始化仓库、库位问题

This commit is contained in:
tao
2025-11-17 10:05:58 +08:00
parent 77c123408d
commit 353a095ccc
3 changed files with 10 additions and 6 deletions

View File

@@ -8,15 +8,15 @@
<view class="login-form-content">
<view class="input-item flex align-center">
<view class="iconfont icon-user icon"></view>
<input v-model="loginForm.username" class="input" type="text" placeholder="请输入账号" maxlength="30" />
<input v-model="loginForm.username" @confirm="handleLogin" class="input" type="text" placeholder="请输入账号" maxlength="30" />
</view>
<view class="input-item flex align-center">
<view class="iconfont icon-password icon"></view>
<input v-model="loginForm.password" type="password" class="input" placeholder="请输入密码" maxlength="20" />
<input v-model="loginForm.password" @confirm="handleLogin" type="password" class="input" placeholder="请输入密码" maxlength="20" />
</view>
<view class="input-item flex align-center" style="margin: 20px auto 0;" v-if="captchaEnabled">
<view class="iconfont icon-code icon"></view>
<input v-model="loginForm.code" type="number" class="input" placeholder="请输入验证码" maxlength="4" />
<input v-model="loginForm.code" @confirm="handleLogin" type="number" class="input" placeholder="请输入验证码" maxlength="4" />
<image :src="codeUrl" @click="getCode" class="login-code-img"></image>
</view>
<!-- <u-cell-group :border="false">
@@ -252,6 +252,10 @@
uni.removeStorageSync('HBusername');
uni.removeStorageSync('HBpassword');
}
this.$store.dispatch("GetAreaOptions");
this.$store.dispatch("GetShelvesOptions");
this.$store.dispatch("GetLocationOptions");
this.$store.dispatch("GetWarehouseOptions");
this.$store.dispatch('GetInfo').then(res => {
// this.$tab.redirectTo('/pages/work/esop')
// if (this.typeTitle == '常用功能') {

View File

@@ -385,7 +385,7 @@
let warehouseObj = _this.$store.getters.warehouseOptions.find(item => item.warehouseCode == whCode);
if (!warehouseObj) {
_this.checkStorageLocationBarcode = false;
_this.$modal.msg("货架不存在!");
_this.$modal.msg("仓库不存在!");
return;
}
if (areaCode) {