From 6b0fa812245f83ab3c49b3738650bccdd93627db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 8 Apr 2026 13:50:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=BB=84=E4=BB=B6=E5=92=8C=E5=8E=9F=E6=9D=90?= =?UTF-8?q?=E6=96=99=E9=80=89=E6=8B=A9=E7=BB=84=E4=BB=B6=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=AA=8C=E8=AF=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复产品选择和原材料选择组件中当返回数据为空时仍尝试添加的问题,增加对res.data的验证 调整发货计划列表和运单页面的样式,优化高度计算和表单内边距 --- klp-ui/src/components/KLPService/ProductSelect/index.vue | 2 +- klp-ui/src/components/KLPService/RawMaterialSelect/index.vue | 2 +- klp-ui/src/views/wms/delivery/components/planList.vue | 2 +- klp-ui/src/views/wms/delivery/waybill/index.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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;" >