diff --git a/src/views/home/index.vue b/src/views/home/index.vue index c0f9a77..d8f81c9 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -423,7 +423,7 @@ export default { .then((response) => { this.subInvList = response.data || []; if (this.subInvList != null && this.subInvList.length == 1) { - this.userInfo.locSubInvCode = this.subInvList[0]; + this.userInfo.locSubInvCode = this.subInvList[0].code; } }) .catch(() => { diff --git a/src/views/warehouse/addHosOrder.vue b/src/views/warehouse/addHosOrder.vue index e20bfc9..63c960a 100644 --- a/src/views/warehouse/addHosOrder.vue +++ b/src/views/warehouse/addHosOrder.vue @@ -966,7 +966,7 @@ export default { .then((response) => { this.subInvList = response.data || []; if (this.subInvList != null && this.subInvList.length == 1) { - this.formData.invWarehouseCode = this.subInvList[0]; + this.formData.invWarehouseCode = this.subInvList[0].code; } }) .catch(() => { diff --git a/src/views/warehouse/addOrder.vue b/src/views/warehouse/addOrder.vue index a40dc26..7385b34 100644 --- a/src/views/warehouse/addOrder.vue +++ b/src/views/warehouse/addOrder.vue @@ -773,7 +773,7 @@ export default { .then((response) => { this.subInvList = response.data || []; if (this.subInvList != null && this.subInvList.length == 1) { - this.formData.invWarehouseCode = this.subInvList[0]; + this.formData.invWarehouseCode = this.subInvList[0].code; } }) .catch(() => { diff --git a/src/views/warehouse/stockHospOrderNew.vue b/src/views/warehouse/stockHospOrderNew.vue index 23569ec..c815e48 100644 --- a/src/views/warehouse/stockHospOrderNew.vue +++ b/src/views/warehouse/stockHospOrderNew.vue @@ -1194,7 +1194,7 @@ export default { .then((response) => { this.subInvList = response.data || []; if(this.subInvList!=null && this.subInvList.length==1){ - this.formData.invWarehouseCode = this.subInvList[0]; + this.formData.invWarehouseCode = this.subInvList[0].code; } }) .catch(() => { diff --git a/src/views/warehouse/stockOrderNewDistribution.vue b/src/views/warehouse/stockOrderNewDistribution.vue index b54f85a..cacf2e0 100644 --- a/src/views/warehouse/stockOrderNewDistribution.vue +++ b/src/views/warehouse/stockOrderNewDistribution.vue @@ -1132,7 +1132,7 @@ export default { .then((response) => { this.subInvList = response.data || []; if(this.subInvList!=null && this.subInvList.length==1){ - this.formData.invWarehouseCode = this.subInvList[0]; + this.formData.invWarehouseCode = this.subInvList[0].code; } }) .catch(() => {