diff --git a/klp-ui/src/components/KLPService/ProductSelect/index.vue b/klp-ui/src/components/KLPService/ProductSelect/index.vue index 3b31a0de..69890d26 100644 --- a/klp-ui/src/components/KLPService/ProductSelect/index.vue +++ b/klp-ui/src/components/KLPService/ProductSelect/index.vue @@ -275,7 +275,7 @@ export default { // 选中项不在列表则追加,保证选中高亮 if (this.selectedId && !this.productList.some(item => item.productId === this.selectedId)) { const res = await getProduct(this.selectedId); - res.code === 200 && this.productList.push(res.data); + res.code === 200 && res.data && this.productList.push(res.data); } } } catch (error) { diff --git a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue index c6926c7b..89d9a7aa 100644 --- a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue +++ b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue @@ -360,7 +360,7 @@ export default { // 选中的项不在列表中则追加进去,保证选中高亮 if (this.selectedId && !this.rawMaterialList.some(item => item.rawMaterialId === this.selectedId)) { const res = await getRawMaterial(this.selectedId); - res.code === 200 && this.rawMaterialList.push(res.data); + res.code === 200 && res.data && this.rawMaterialList.push(res.data); } } } catch (error) { diff --git a/klp-ui/src/views/wms/delivery/components/planList.vue b/klp-ui/src/views/wms/delivery/components/planList.vue index 36cc3bd7..02dd9ad0 100644 --- a/klp-ui/src/views/wms/delivery/components/planList.vue +++ b/klp-ui/src/views/wms/delivery/components/planList.vue @@ -17,7 +17,7 @@ :props="planTreeProps" @node-click="handlePlanSelect" default-expand-all - style="margin-top: 10px; height: 800px; overflow: auto;" + style="margin-top: 10px; height: calc(100vh - 220px); overflow: auto;" >