@ -385,7 +385,7 @@ export default {
findInvByUser()
.then((response) => {
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.getBusTypeByInv()
}
@ -131,7 +131,7 @@
<el-col :span="12" class="el-col">
<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"
style="width: 80%"
placeholder="选择上级仓库"/>