From 227eff61120aaca63e068035d745d86452e6499a Mon Sep 17 00:00:00 2001
From: hsy <1029150275@qq.com>
Date: 星期一, 17 八月 2026 09:35:12 +0800
Subject: [PATCH] feat(mes): 优化生产订单与排产任务列表显示,新增启停工及校验逻辑 1. 生产订单列表展示优化 (WorkOrder) - 新增「生产状态」列,全局注册 `ORDER_PRODUCTION_STATUS` 常量并绑定系统动态字典。 - 彻底重构「工序生产进度」单元格显示:弃用臃肿的 Steps 组件,改为极简横向布局(彩色状态圆点 + 进度百分比),解决表格行高被强行撑开及内容截断问题,支持横向滚动。 - 优化「完成进度」列宽及展示样式,将百分比数值外置同行显示,更加直观。 2. 排产任务列表改造 (Task) - 顶部表头重构,由单一标题重构为「全部 / 未完成 / 已完成」的 Tabs 标签页切换结构。 - 重写数据过滤逻辑,剥离写死的 status 查询,改为使用 `scheduleStatus` 字段动态响应 Tabs 切换 (0: 未完成, 1: 已完成)。 3. 工单业务逻辑增强与状态流转 - 落实「工单查询逻辑设计方案」,优化底层的工单条件检索逻辑。 - 实现「添加工单启停功能」与「停工状态」,支持工单在执行过程中的暂停与恢复业务流转。 - 强化容错与防呆设计:操作「完成订单」时增加前置校验 `handleCheckFinish`,若生产状态为未完成,强制弹出二次确认 Modal,避免误操作。 # 相关讨论/参考方案 # - 添加工单启停功能 # - 停工状态功能设计方案 # - 工单查询逻辑设计方案 # - 工单完成进度显示优化
---
yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/config/YudaoAiProperties.java | 270 +++++------------------------------------------------
1 files changed, 26 insertions(+), 244 deletions(-)
diff --git a/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/config/YudaoAiProperties.java b/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/config/YudaoAiProperties.java
index 234fa2c..dbef978 100644
--- a/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/config/YudaoAiProperties.java
+++ b/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/config/YudaoAiProperties.java
@@ -4,263 +4,45 @@
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
- * 鑺嬮亾 AI 閰嶇疆绫�
- *
- * @author fansili
- * @since 1.0
+ * 瓒呯骇绠$悊鍛� AI 閰嶇疆绫�
*/
@ConfigurationProperties(prefix = "yudao.ai")
@Data
public class YudaoAiProperties {
- /**
- * 瀛楄妭璞嗗寘
- */
- private DouBao doubao;
-
- /**
- * 鑵捐娣峰厓
- */
- private HunYuan hunyuan;
-
- /**
- * 纭呭熀娴佸姩
- */
- private SiliconFlow siliconflow;
-
- /**
- * 璁鏄熺伀
- */
- private XingHuo xinghuo;
-
- /**
- * 鐧惧窛
- */
- private BaiChuan baichuan;
-
- /**
- * 鏂囧績涓�瑷�
- */
- private YiYan yiyan;
-
- /**
- * 鏅鸿氨
- */
- private ZhiPu zhipu;
-
- /**
- * MiniMax
- */
- private MiniMax minimax;
-
- /**
- * 鏈堜箣鏆楅潰
- */
- private Moonshot moonshot;
-
- /**
- * 闃惰穬鏄熻景
- */
- private StepFun stepfun;
-
- /**
- * Grok
- */
- private Grok grok;
-
- /**
- * Midjourney 缁樺浘
- */
- private Midjourney midjourney;
-
- /**
- * Suno 闊充箰
- */
- @SuppressWarnings("SpellCheckingInspection")
- private Suno suno;
-
- /**
- * 缃戠粶鎼滅储
- */
private WebSearch webSearch;
- @Data
- public static class DouBao {
-
- private String enable;
- private String apiKey;
-
- private String model;
- private Double temperature;
- private Integer maxTokens;
- private Double topP;
-
- }
-
- @Data
- public static class HunYuan {
-
- private String enable;
- private String baseUrl;
- private String apiKey;
-
- private String model;
- private Double temperature;
- private Integer maxTokens;
- private Double topP;
-
- }
-
- @Data
- public static class SiliconFlow {
-
- private String enable;
- private String apiKey;
-
- private String model;
- private Double temperature;
- private Integer maxTokens;
- private Double topP;
-
- }
-
- @Data
- public static class XingHuo {
-
- private String enable;
- private String apiKey;
-
- private String model;
- private Double temperature;
- private Integer maxTokens;
- private Double topP;
-
- }
-
- @Data
- public static class BaiChuan {
-
- private String enable;
- private String apiKey;
-
- private String model;
- private Double temperature;
- private Integer maxTokens;
- private Double topP;
-
- }
-
- @Data
- public static class YiYan {
-
- private String enable;
- private String baseUrl;
- private String apiKey;
-
- private String model;
- private Double temperature;
- private Integer maxTokens;
- private Double topP;
-
- }
-
- @Data
- public static class ZhiPu {
-
- private String enable;
- private String baseUrl;
- private String apiKey;
-
- private String model;
- private Double temperature;
- private Integer maxTokens;
- private Double topP;
-
- }
-
- @Data
- public static class MiniMax {
-
- private String enable;
- private String baseUrl;
- private String apiKey;
-
- private String model;
- private Double temperature;
- private Integer maxTokens;
- private Double topP;
-
- }
-
- @Data
- public static class Moonshot {
-
- private String enable;
- private String baseUrl;
- private String apiKey;
-
- private String model;
- private Double temperature;
- private Integer maxTokens;
- private Double topP;
-
- }
-
- @Data
- public static class Midjourney {
-
- private String enable;
- private String baseUrl;
-
- private String apiKey;
- private String notifyUrl;
-
- }
-
- @Data
- public static class Suno {
-
- private boolean enable;
-
- private String baseUrl;
-
- }
-
- @Data
- public static class Grok {
-
- private String enable;
- private String apiKey;
- private String baseUrl;
-
- private String model;
- private Double temperature;
- private Integer maxTokens;
- private Double topP;
-
- }
-
- @Data
- public static class StepFun {
-
- private String enable;
- private String apiKey;
- private String baseUrl;
-
- private String model;
- private Double temperature;
- private Integer maxTokens;
- private Double topP;
-
- }
+ /** 鍚戦噺搴撻厤缃� */
+ private VectorStore vectorStore = new VectorStore();
@Data
public static class WebSearch {
-
private boolean enable;
-
private String apiKey;
+ }
+ @Data
+ public static class VectorStore {
+
+ /** 鍚戦噺搴撶被鍨嬶細milvus */
+ private String type = "milvus";
+
+ /** Milvus 閰嶇疆 */
+ private Milvus milvus = new Milvus();
+
+ @Data
+ public static class Milvus {
+ /** 鏄惁鍒濆鍖� Schema */
+ private boolean initializeSchema = true;
+ /** 鏁版嵁搴撳悕绉� */
+ private String databaseName = "default";
+ /** 闆嗗悎鍚嶇О */
+ private String collectionName = "knowledge_segment";
+ /** 涓绘満鍦板潃 */
+ private String host = "127.0.0.1";
+ /** 绔彛 */
+ private int port = 19530;
+ }
}
}
--
Gitblit v1.9.3