From 43906d59efe6c43495ddd13d57df8c7c28cb4092 Mon Sep 17 00:00:00 2001
From: chenhao <852066789@qq.com>
Date: Wed, 11 Jun 2025 16:15:09 +0800
Subject: [PATCH] =?UTF-8?q?feat(project):=20=E4=BC=98=E5=8C=96=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E4=BF=A1=E6=81=AF=E6=B7=BB=E5=8A=A0=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=B8=83=E5=B1=80=E5=92=8C=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
-调整表格样式,优化字段布局
- 移除产品配置相关表格
- 增加 POC 测试日志表格
- 更新字段名称和样式
-调整日期格式输入框
---
.../main/resources/static/ruoyi/js/common.js | 19 +-
.../templates/layout/product-list.html | 347 +++++++++++++
.../templates/manage/delivery/import.html | 12 +
.../resources/templates/project/info/add.html | 376 ++++----------
.../templates/project/info/edit.html | 464 +++++++-----------
.../templates/project/info/project.html | 17 +-
.../templates/project/order/add.html | 313 ++----------
.../templates/project/order/edit.html | 301 +-----------
.../templates/project/order/order.html | 2 +-
.../java/com/ruoyi/sip/domain/OrderList.java | 4 +-
.../com/ruoyi/sip/domain/ProjectInfo.java | 4 +-
.../sip/domain/ProjectOrderConfigInfo.java | 8 +-
.../service/impl/ProjectInfoServiceImpl.java | 20 +-
.../impl/ProjectPocInfoServiceImpl.java | 4 +-
.../mapper/sip/ProjectInfoMapper.xml | 10 +-
15 files changed, 744 insertions(+), 1157 deletions(-)
create mode 100644 ruoyi-admin/src/main/resources/templates/layout/product-list.html
diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js
index d4d5e17b..f85a7020 100644
--- a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js
+++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js
@@ -405,16 +405,17 @@ function endOfTime(date) {
}
}
function formatAmountNumber(num) {
- let str = num.toString();
- let result = "";
- while (str.length > 3) {
- result = "," + str.slice(-3) + result;
- str = str.slice(0, str.length - 3);
+ if (typeof num == "number"){
+ return num.toLocaleString("en-US", {
+ minimumFractionDigits: 2,
+ maximumFractionDigits: 2
+ });
}
- if (str) {
- result = str + result;
- }
- return result;
+
+ return Number(num).toFixed(2).toLocaleString("en-US", {
+ minimumFractionDigits: 2,
+ maximumFractionDigits: 2
+ });
}
/** 重置日期/年月日 */
diff --git a/ruoyi-admin/src/main/resources/templates/layout/product-list.html b/ruoyi-admin/src/main/resources/templates/layout/product-list.html
new file mode 100644
index 00000000..d024fb3b
--- /dev/null
+++ b/ruoyi-admin/src/main/resources/templates/layout/product-list.html
@@ -0,0 +1,347 @@
+
+
+
+ 配置信息表格组件
+
+
+
+
+
+
+
配置信息
+
+
软件产品
+ 添加
+
+
+
+
+ 序号
+ 产品编码
+ 产品型号
+ 描述
+ 数量
+ 目录单价(¥)
+ 指导折扣
+ 折扣
+ 单价(¥)
+ 总价(¥)
+ 目录总价(¥)
+ 备注
+ 操作
+
+
+
+
+
+
+
终端产品
+ 添加
+
+
+
+
+
+ 序号
+ 产品编码
+ 产品型号
+ 描述
+ 数量
+ 目录单价(¥)
+ 指导折扣
+ 折扣
+ 单价(¥)
+ 总价(¥)
+ 目录总价(¥)
+ 备注
+ 操作
+
+
+
+
+
+
+
服务产品
+ 添加
+
+
+
+
+ 序号
+ 产品编码
+ 产品型号
+ 描述
+ 数量
+ 目录单价(¥)
+ 指导折扣
+ 折扣
+ 单价(¥)
+ 总价(¥)
+ 目录总价(¥)
+ 备注
+ 操作
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ruoyi-admin/src/main/resources/templates/manage/delivery/import.html b/ruoyi-admin/src/main/resources/templates/manage/delivery/import.html
index 15759c21..9e800bb2 100644
--- a/ruoyi-admin/src/main/resources/templates/manage/delivery/import.html
+++ b/ruoyi-admin/src/main/resources/templates/manage/delivery/import.html
@@ -39,13 +39,16 @@