From 54fe3496fa03aa708df27feb111abad359d33b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Fri, 28 Nov 2025 11:02:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8F=91=E8=B4=A7=E5=8D=95):=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=8F=91=E8=B4=A7=E5=8D=95=E6=89=93=E5=8D=B0=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=8F=8A=E6=98=8E=E7=BB=86=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refactor(组件): 重构发货单明细表格为独立组件 feat(组件): 添加发货单打印预览组件 fix(登录页): 移除默认用户名和密码 style(钢卷面板): 添加显示控制属性并优化布局 chore: 添加vitest测试配置和依赖 --- klp-ui/package.json | 6 +- .../KLPService/ProductSelect/index.vue | 15 +- .../KLPService/RawMaterialSelect/index.vue | 15 +- klp-ui/src/components/MemoInput/index.vue | 12 +- klp-ui/src/views/login.vue | 4 +- klp-ui/src/views/wms/coil/panels/base.vue | 20 +- klp-ui/src/views/wms/coil/ship.vue | 1 + klp-ui/src/views/wms/coil/typing.vue | 2 +- .../detailTable.vue | 0 .../views/wms/delivery/components/wayBill.vue | 579 ++++++++++++++++++ .../src/views/wms/delivery/waybill/index.vue | 186 ++++-- klp-ui/src/views/wms/warehouse/real.vue | 12 +- klp-ui/vitest.config.js | 19 + 13 files changed, 779 insertions(+), 92 deletions(-) rename klp-ui/src/views/wms/delivery/{componnets => components}/detailTable.vue (100%) create mode 100644 klp-ui/src/views/wms/delivery/components/wayBill.vue create mode 100644 klp-ui/vitest.config.js diff --git a/klp-ui/package.json b/klp-ui/package.json index 1e2ce6fc..1250f72d 100644 --- a/klp-ui/package.json +++ b/klp-ui/package.json @@ -9,7 +9,8 @@ "build:prod": "vue-cli-service build", "stage": "vue-cli-service serve --mode stage", "preview": "node build/index.js --preview", - "lint": "eslint --ext .js,.vue src" + "lint": "eslint --ext .js,.vue src", + "test": "vitest" }, "husky": { "hooks": { @@ -79,6 +80,7 @@ }, "devDependencies": { "@babel/plugin-proposal-optional-chaining": "^7.21.0", + "@vitest/browser": "^4.0.14", "@vue/cli-plugin-babel": "4.4.6", "@vue/cli-plugin-eslint": "4.4.6", "@vue/cli-service": "4.4.6", @@ -93,11 +95,13 @@ "eslint": "7.15.0", "eslint-plugin-vue": "7.2.0", "lint-staged": "10.5.3", + "playwright": "^1.57.0", "runjs": "4.4.2", "sass": "1.32.13", "sass-loader": "10.1.1", "script-ext-html-webpack-plugin": "2.1.5", "svg-sprite-loader": "5.1.1", + "vitest": "^4.0.14", "vue-template-compiler": "2.6.12" }, "engines": { diff --git a/klp-ui/src/components/KLPService/ProductSelect/index.vue b/klp-ui/src/components/KLPService/ProductSelect/index.vue index 48e24a4e..3a4707a5 100644 --- a/klp-ui/src/components/KLPService/ProductSelect/index.vue +++ b/klp-ui/src/components/KLPService/ProductSelect/index.vue @@ -27,7 +27,16 @@ @keyup.enter.native="handleQuery" /> - + + + + + + + + + + 搜索 @@ -78,9 +87,13 @@ + + \ No newline at end of file diff --git a/klp-ui/src/views/wms/delivery/waybill/index.vue b/klp-ui/src/views/wms/delivery/waybill/index.vue index 12411684..a3b89640 100644 --- a/klp-ui/src/views/wms/delivery/waybill/index.vue +++ b/klp-ui/src/views/wms/delivery/waybill/index.vue @@ -2,18 +2,12 @@
-
- - - + + + + -
+ :limit.sync="planQueryParams.pageSize" @pagination="getPlanList" style="margin-top: 10px;" + layout="total, prev, jumper, next" /> +
- - - - - - - - - 搜索 - 重置 - 新增 - 刷新 - 导出 - - + + + + + + + + + + 搜索 + 重置 + 新增 + 刷新 + 导出 + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + - + + + + -
@@ -126,20 +126,34 @@ 取 消
+ + + + +