From cd040e57ea2151e51efa0192d83419e8841de1ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Fri, 31 Oct 2025 11:52:45 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=B8=A6?= =?UTF-8?q?=E9=BB=98=E8=AE=A4BOM=E7=9A=84=E4=BA=A7=E5=93=81=E5=92=8C?= =?UTF-8?q?=E5=8E=9F=E6=9D=90=E6=96=99=E6=8E=A5=E5=8F=A3=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refactor(HomeModules): 重构统计面板组件并添加骨架屏 feat(coil): 添加物料类型和更新时间查询条件 style(ProductInfo/RawMaterialInfo): 阻止事件冒泡 chore: 添加钢卷图标资源 --- klp-ui/src/api/wms/product.js | 9 + klp-ui/src/api/wms/rawMaterial.js | 9 + klp-ui/src/assets/icons/svg/coil.svg | 1 + .../components/HomeModules/DetailTable.vue | 0 .../components/HomeModules/StatisticGroup.vue | 291 ++++++++++++++++++ .../KLPService/Renderer/ProductInfo.vue | 2 +- .../KLPService/Renderer/RawMaterialInfo.vue | 2 +- klp-ui/src/views/dashboard/PanelGroup.vue | 2 +- klp-ui/src/views/index.vue | 105 +++++-- klp-ui/src/views/wms/coil/box.vue | 5 +- klp-ui/src/views/wms/coil/history.vue | 3 +- klp-ui/src/views/wms/coil/index.vue | 3 +- klp-ui/src/views/wms/coil/panels/base.vue | 36 ++- klp-ui/src/views/wms/coil/product.vue | 3 +- klp-ui/src/views/wms/product/index.vue | 28 +- klp-ui/src/views/wms/rawMaterial/index.vue | 8 +- 16 files changed, 449 insertions(+), 58 deletions(-) create mode 100644 klp-ui/src/assets/icons/svg/coil.svg create mode 100644 klp-ui/src/components/HomeModules/DetailTable.vue create mode 100644 klp-ui/src/components/HomeModules/StatisticGroup.vue diff --git a/klp-ui/src/api/wms/product.js b/klp-ui/src/api/wms/product.js index da91a7c5..b68be1f2 100644 --- a/klp-ui/src/api/wms/product.js +++ b/klp-ui/src/api/wms/product.js @@ -26,6 +26,15 @@ export function addProduct(data) { }) } +// 新增产品带默认BOM +export function addProductWithBom(data) { + return request({ + url: '/wms/product/addWithBom', + method: 'post', + data: data + }) +} + // 修改产品 export function updateProduct(data) { return request({ diff --git a/klp-ui/src/api/wms/rawMaterial.js b/klp-ui/src/api/wms/rawMaterial.js index b8f5cad1..da8c80c7 100644 --- a/klp-ui/src/api/wms/rawMaterial.js +++ b/klp-ui/src/api/wms/rawMaterial.js @@ -26,6 +26,15 @@ export function addRawMaterial(data) { }) } +// 新增原材料带默认BOM +export function addRawMaterialWithBom(data) { + return request({ + url: '/wms/rawMaterial/addWithBom', + method: 'post', + data: data + }) +} + // 修改原材料 export function updateRawMaterial(data) { return request({ diff --git a/klp-ui/src/assets/icons/svg/coil.svg b/klp-ui/src/assets/icons/svg/coil.svg new file mode 100644 index 00000000..88bea929 --- /dev/null +++ b/klp-ui/src/assets/icons/svg/coil.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/klp-ui/src/components/HomeModules/DetailTable.vue b/klp-ui/src/components/HomeModules/DetailTable.vue new file mode 100644 index 00000000..e69de29b diff --git a/klp-ui/src/components/HomeModules/StatisticGroup.vue b/klp-ui/src/components/HomeModules/StatisticGroup.vue new file mode 100644 index 00000000..2ca56f93 --- /dev/null +++ b/klp-ui/src/components/HomeModules/StatisticGroup.vue @@ -0,0 +1,291 @@ + + + + + + \ No newline at end of file diff --git a/klp-ui/src/components/KLPService/Renderer/ProductInfo.vue b/klp-ui/src/components/KLPService/Renderer/ProductInfo.vue index beac18ec..5928b3ce 100644 --- a/klp-ui/src/components/KLPService/Renderer/ProductInfo.vue +++ b/klp-ui/src/components/KLPService/Renderer/ProductInfo.vue @@ -1,6 +1,6 @@