仓库相关bug修改

prod
anthonywj 2 years ago
parent 5d0d6e8f33
commit 13e9db24ed

@ -385,7 +385,7 @@ export default {
findInvByUser() findInvByUser()
.then((response) => { .then((response) => {
this.curInvOptions = response.data || []; this.curInvOptions = response.data || [];
if (this.curInvOptions != null && this.curInvOptions.length > 1) { if (this.curInvOptions != null && this.curInvOptions.length > 0) {
this.orderFormData.invWarehouseCode = this.curInvOptions[0].code; this.orderFormData.invWarehouseCode = this.curInvOptions[0].code;
this.getBusTypeByInv() this.getBusTypeByInv()
} }

@ -131,7 +131,7 @@
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<el-form-item label="上级仓库" prop="parentCode"> <el-form-item label="上级仓库" prop="parentCode">
<treeselect v-model="subData.parentInvName" :options="invOptions" :normalizer="normalizer" <treeselect v-model="subData.parentCode" :options="invOptions" :normalizer="normalizer"
:disabled="isShow" :disabled="isShow"
style="width: 80%" style="width: 80%"
placeholder="选择上级仓库"/> placeholder="选择上级仓库"/>

Loading…
Cancel
Save