Forráskód Böngészése

Merge commit 'a4a4638d562e0c61d13f2e06aaa3c8a626bdbd94'

lihao16 4 hónapja
szülő
commit
3504058453
16 módosított fájl, 1069 hozzáadás és 16 törlés
  1. 2 0
      smsb-admin/src/main/resources/application.yml
  2. 106 0
      smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/controller/SmsbDeviceChatScCaseController.java
  3. 72 0
      smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/domain/SmsbDeviceChatScCase.java
  4. 56 0
      smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/domain/bo/SmsbDeviceChatScCaseBo.java
  5. 77 0
      smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/domain/vo/SmsbDeviceChatScCaseVo.java
  6. 15 0
      smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/mapper/SmsbDeviceChatScCaseMapper.java
  7. 68 0
      smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/service/ISmsbDeviceChatScCaseService.java
  8. 97 9
      smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/service/impl/SmsbAppointmentInfoServiceImpl.java
  9. 133 0
      smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/service/impl/SmsbDeviceChatScCaseServiceImpl.java
  10. 1 0
      smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/service/impl/SmsbDeviceChatScReportServiceImpl.java
  11. 7 0
      smsb-modules/smsb-digital-promotion/src/main/resources/mapper/digital/SmsbDeviceChatScCaseMapper.xml
  12. 63 0
      smsb-plus-ui/src/api/smsb/digital/scCase/api.ts
  13. 121 0
      smsb-plus-ui/src/api/smsb/digital/scCase/types.ts
  14. 3 3
      smsb-plus-ui/src/views/smsb/appointmentInfo/index.vue
  15. 244 0
      smsb-plus-ui/src/views/smsb/scCase/index.vue
  16. 4 4
      smsb-plus-ui/src/views/smsb/scReport/index.vue

+ 2 - 0
smsb-admin/src/main/resources/application.yml

@@ -131,6 +131,8 @@ dify:
   sc_dataset:
     # 诊断评估知识库ID
     report: e9c7f861-d891-4bff-87d0-3c5bb5fe7a1d
+    # 有样学样知识库ID
+    case: 46003fb2-7d6a-45ca-ad73-65bfc751d90e
 
 # Sa-Token配置
 sa-token:

+ 106 - 0
smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/controller/SmsbDeviceChatScCaseController.java

@@ -0,0 +1,106 @@
+package com.inspur.digital.controller;
+
+import cn.dev33.satoken.annotation.SaCheckPermission;
+import com.inspur.digital.domain.bo.SmsbDeviceChatScCaseBo;
+import com.inspur.digital.domain.vo.SmsbDeviceChatScCaseVo;
+import com.inspur.digital.service.ISmsbDeviceChatScCaseService;
+import jakarta.servlet.http.HttpServletResponse;
+import jakarta.validation.constraints.NotEmpty;
+import jakarta.validation.constraints.NotNull;
+import lombok.RequiredArgsConstructor;
+import org.dromara.common.core.domain.R;
+import org.dromara.common.core.validate.AddGroup;
+import org.dromara.common.core.validate.EditGroup;
+import org.dromara.common.excel.utils.ExcelUtil;
+import org.dromara.common.idempotent.annotation.RepeatSubmit;
+import org.dromara.common.log.annotation.Log;
+import org.dromara.common.log.enums.BusinessType;
+import org.dromara.common.mybatis.core.page.PageQuery;
+import org.dromara.common.mybatis.core.page.TableDataInfo;
+import org.dromara.common.web.core.BaseController;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+/**
+ * 数促-看样学样
+ *
+ * @author Hao Li
+ * @date 2025-07-02
+ */
+@Validated
+@RequiredArgsConstructor
+@RestController
+@RequestMapping("/digital/chatScCase")
+public class SmsbDeviceChatScCaseController extends BaseController {
+
+    private final ISmsbDeviceChatScCaseService smsbDeviceChatScCaseService;
+
+    /**
+     * 查询数促-看样学样列表
+     */
+    @SaCheckPermission("digital:chatScCase:list")
+    @GetMapping("/list")
+    public TableDataInfo<SmsbDeviceChatScCaseVo> list(SmsbDeviceChatScCaseBo bo, PageQuery pageQuery) {
+        return smsbDeviceChatScCaseService.queryPageList(bo, pageQuery);
+    }
+
+    /**
+     * 导出数促-看样学样列表
+     */
+    @SaCheckPermission("digital:chatScCase:export")
+    @Log(title = "数促-看样学样", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(SmsbDeviceChatScCaseBo bo, HttpServletResponse response) {
+        List<SmsbDeviceChatScCaseVo> list = smsbDeviceChatScCaseService.queryList(bo);
+        ExcelUtil.exportExcel(list, "数促-看样学样", SmsbDeviceChatScCaseVo.class, response);
+    }
+
+    /**
+     * 获取数促-看样学样详细信息
+     *
+     * @param id 主键
+     */
+    @SaCheckPermission("digital:chatScCase:query")
+    @GetMapping("/{id}")
+    public R<SmsbDeviceChatScCaseVo> getInfo(@NotNull(message = "主键不能为空")
+                                             @PathVariable Long id) {
+        return R.ok(smsbDeviceChatScCaseService.queryById(id));
+    }
+
+    /**
+     * 新增数促-看样学样
+     */
+    @SaCheckPermission("digital:chatScCase:add")
+    @Log(title = "数促-看样学样", businessType = BusinessType.INSERT)
+    @RepeatSubmit()
+    @PostMapping()
+    public R<Void> add(@Validated(AddGroup.class) @RequestBody SmsbDeviceChatScCaseBo bo) {
+        return toAjax(smsbDeviceChatScCaseService.insertByBo(bo));
+    }
+
+    /**
+     * 修改数促-看样学样
+     */
+    @SaCheckPermission("digital:chatScCase:edit")
+    @Log(title = "数促-看样学样", businessType = BusinessType.UPDATE)
+    @RepeatSubmit()
+    @PutMapping()
+    public R<Void> edit(@Validated(EditGroup.class) @RequestBody SmsbDeviceChatScCaseBo bo) {
+        return toAjax(smsbDeviceChatScCaseService.updateByBo(bo));
+    }
+
+    /**
+     * 删除数促-看样学样
+     *
+     * @param ids 主键串
+     */
+    @SaCheckPermission("digital:chatScCase:remove")
+    @Log(title = "数促-看样学样", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public R<Void> remove(@NotEmpty(message = "主键不能为空")
+                          @PathVariable Long[] ids) {
+        return toAjax(smsbDeviceChatScCaseService.deleteWithValidByIds(List.of(ids), true));
+    }
+}

+ 72 - 0
smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/domain/SmsbDeviceChatScCase.java

@@ -0,0 +1,72 @@
+package com.inspur.digital.domain;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serial;
+import java.util.Date;
+
+/**
+ * 数促-看样学样对象 smsb_device_chat_sc_case
+ *
+ * @author Hao Li
+ * @date 2025-07-02
+ */
+@Data
+@TableName("smsb_device_chat_sc_case")
+public class SmsbDeviceChatScCase {
+
+    @Serial
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键ID
+     */
+    @TableId(value = "id")
+    private Long id;
+
+    /**
+     * 类型 1-总结 2-条目
+     */
+    private Integer type;
+
+    /**
+     * 名称
+     */
+    private String name;
+
+    /**
+     * 图片
+     */
+    private String photo;
+
+    /**
+     * 简介
+     */
+    private String introduction;
+
+    /**
+     * 预约ID
+     */
+    private Long appointmentId;
+
+    /**
+     * 预约企业
+     */
+    private String enterprise;
+
+    /**
+     * 租户编号
+     */
+    private String tenantId;
+
+    /**
+     * 创建时间
+     */
+    @TableField(fill = FieldFill.INSERT)
+    private Date createTime;
+
+}

+ 56 - 0
smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/domain/bo/SmsbDeviceChatScCaseBo.java

@@ -0,0 +1,56 @@
+package com.inspur.digital.domain.bo;
+
+import com.inspur.digital.domain.SmsbDeviceChatScCase;
+import io.github.linpeilie.annotations.AutoMapper;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.dromara.common.mybatis.core.domain.BaseEntity;
+
+/**
+ * 数促-看样学样业务对象 smsb_device_chat_sc_case
+ *
+ * @author Hao Li
+ * @date 2025-07-02
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@AutoMapper(target = SmsbDeviceChatScCase.class, reverseConvertGenerate = false)
+public class SmsbDeviceChatScCaseBo extends BaseEntity {
+
+    /**
+     * 主键ID
+     */
+    private Long id;
+
+    /**
+     * 类型 1-总结 2-条目
+     */
+    private Long type;
+
+    /**
+     * 名称
+     */
+    private String name;
+
+    /**
+     * 图片
+     */
+    private String photo;
+
+    /**
+     * 简介
+     */
+    private String introduction;
+
+    /**
+     * 预约ID
+     */
+    private Long appointmentId;
+
+    /**
+     * 预约企业
+     */
+    private String enterprise;
+
+
+}

+ 77 - 0
smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/domain/vo/SmsbDeviceChatScCaseVo.java

@@ -0,0 +1,77 @@
+package com.inspur.digital.domain.vo;
+
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.inspur.digital.domain.SmsbDeviceChatScCase;
+import io.github.linpeilie.annotations.AutoMapper;
+import lombok.Data;
+
+import java.io.Serial;
+import java.io.Serializable;
+import java.util.Date;
+
+
+/**
+ * 数促-看样学样视图对象 smsb_device_chat_sc_case
+ *
+ * @author Hao Li
+ * @date 2025-07-02
+ */
+@Data
+@ExcelIgnoreUnannotated
+@AutoMapper(target = SmsbDeviceChatScCase.class)
+public class SmsbDeviceChatScCaseVo implements Serializable {
+
+    @Serial
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键ID
+     */
+    @ExcelProperty(value = "主键ID")
+    private Long id;
+
+    /**
+     * 类型 1-总结 2-条目
+     */
+    @ExcelProperty(value = "类型 1-总结 2-条目")
+    private Long type;
+
+    /**
+     * 名称
+     */
+    @ExcelProperty(value = "名称")
+    private String name;
+
+    /**
+     * 图片
+     */
+    @ExcelProperty(value = "图片")
+    private String photo;
+
+    /**
+     * 简介
+     */
+    @ExcelProperty(value = "简介")
+    private String introduction;
+
+    /**
+     * 预约ID
+     */
+    @ExcelProperty(value = "预约ID")
+    private Long appointmentId;
+
+    /**
+     * 预约企业
+     */
+    @ExcelProperty(value = "预约企业")
+    private String enterprise;
+
+    /**
+     * 创建时间
+     */
+    @ExcelProperty(value = "创建时间")
+    private Date createTime;
+
+
+}

+ 15 - 0
smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/mapper/SmsbDeviceChatScCaseMapper.java

@@ -0,0 +1,15 @@
+package com.inspur.digital.mapper;
+
+import com.inspur.digital.domain.SmsbDeviceChatScCase;
+import com.inspur.digital.domain.vo.SmsbDeviceChatScCaseVo;
+import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
+
+/**
+ * 数促-看样学样Mapper接口
+ *
+ * @author Hao Li
+ * @date 2025-07-02
+ */
+public interface SmsbDeviceChatScCaseMapper extends BaseMapperPlus<SmsbDeviceChatScCase, SmsbDeviceChatScCaseVo> {
+
+}

+ 68 - 0
smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/service/ISmsbDeviceChatScCaseService.java

@@ -0,0 +1,68 @@
+package com.inspur.digital.service;
+
+import com.inspur.digital.domain.bo.SmsbDeviceChatScCaseBo;
+import com.inspur.digital.domain.vo.SmsbDeviceChatScCaseVo;
+import org.dromara.common.mybatis.core.page.PageQuery;
+import org.dromara.common.mybatis.core.page.TableDataInfo;
+
+import java.util.Collection;
+import java.util.List;
+
+/**
+ * 数促-看样学样Service接口
+ *
+ * @author Hao Li
+ * @date 2025-07-02
+ */
+public interface ISmsbDeviceChatScCaseService {
+
+    /**
+     * 查询数促-看样学样
+     *
+     * @param id 主键
+     * @return 数促-看样学样
+     */
+    SmsbDeviceChatScCaseVo queryById(Long id);
+
+    /**
+     * 分页查询数促-看样学样列表
+     *
+     * @param bo        查询条件
+     * @param pageQuery 分页参数
+     * @return 数促-看样学样分页列表
+     */
+    TableDataInfo<SmsbDeviceChatScCaseVo> queryPageList(SmsbDeviceChatScCaseBo bo, PageQuery pageQuery);
+
+    /**
+     * 查询符合条件的数促-看样学样列表
+     *
+     * @param bo 查询条件
+     * @return 数促-看样学样列表
+     */
+    List<SmsbDeviceChatScCaseVo> queryList(SmsbDeviceChatScCaseBo bo);
+
+    /**
+     * 新增数促-看样学样
+     *
+     * @param bo 数促-看样学样
+     * @return 是否新增成功
+     */
+    Boolean insertByBo(SmsbDeviceChatScCaseBo bo);
+
+    /**
+     * 修改数促-看样学样
+     *
+     * @param bo 数促-看样学样
+     * @return 是否修改成功
+     */
+    Boolean updateByBo(SmsbDeviceChatScCaseBo bo);
+
+    /**
+     * 校验并批量删除数促-看样学样信息
+     *
+     * @param ids     待删除的主键集合
+     * @param isValid 是否进行有效性校验
+     * @return 是否删除成功
+     */
+    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
+}

+ 97 - 9
smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/service/impl/SmsbAppointmentInfoServiceImpl.java

@@ -14,14 +14,13 @@ import com.inspur.device.domain.vo.DifyDatasetsFileRspData;
 import com.inspur.device.domain.vo.SmsbDeviceGroupRelVo;
 import com.inspur.device.mapper.SmsbDeviceGroupRelMapper;
 import com.inspur.digital.domain.SmsbAppointmentInfo;
+import com.inspur.digital.domain.SmsbDeviceChatScCase;
 import com.inspur.digital.domain.SmsbDeviceChatScReport;
 import com.inspur.digital.domain.bo.SmsbAppointmentInfoBo;
 import com.inspur.digital.domain.bo.SmsbStartInfoBo;
-import com.inspur.digital.domain.vo.SmsbAppointmentInfoVo;
-import com.inspur.digital.domain.vo.SmsbDeviceChatScReportVo;
-import com.inspur.digital.domain.vo.SmsbScDeviceStartInfoVo;
-import com.inspur.digital.domain.vo.SmsbScStartInfoVo;
+import com.inspur.digital.domain.vo.*;
 import com.inspur.digital.mapper.SmsbAppointmentInfoMapper;
+import com.inspur.digital.mapper.SmsbDeviceChatScCaseMapper;
 import com.inspur.digital.mapper.SmsbDeviceChatScReportMapper;
 import com.inspur.digital.service.ISmsbAppointmentInfoService;
 import com.inspur.digital.util.DifyStreamUtil;
@@ -65,6 +64,7 @@ public class SmsbAppointmentInfoServiceImpl implements ISmsbAppointmentInfoServi
     private final SmsbAppointmentInfoMapper baseMapper;
     private final SmsbDeviceGroupRelMapper smsbDeviceGroupRelMapper;
     private final SmsbDeviceChatScReportMapper smsbDeviceChatScReportMapper;
+    private final SmsbDeviceChatScCaseMapper smsbDeviceChatScCaseMapper;
     @Autowired
     private ThreadPoolTaskExecutor threadPoolTaskExecutor;
     @Value("${sc.api.url}")
@@ -83,6 +83,8 @@ public class SmsbAppointmentInfoServiceImpl implements ISmsbAppointmentInfoServi
     private String difyScAgentApiKey;
     @Value("${dify.sc_dataset.report}")
     private String difyScDatasetReportId;
+    @Value("${dify.sc_dataset.case}")
+    private String difyScDatasetCaseId;
     @Value("${server.tempDir}")
     private String tempDir;
     @Value("${dify.datasets.apiKey}")
@@ -158,6 +160,7 @@ public class SmsbAppointmentInfoServiceImpl implements ISmsbAppointmentInfoServi
         lqw.eq(bo.getPhone() != null, SmsbAppointmentInfo::getPhone, bo.getPhone());
         lqw.eq(bo.getAppointmentTime() != null, SmsbAppointmentInfo::getAppointmentTime, bo.getAppointmentTime());
         lqw.eq(bo.getPeopleNum() != null, SmsbAppointmentInfo::getPeopleNum, bo.getPeopleNum());
+        lqw.orderByDesc(SmsbAppointmentInfo::getId);
         return lqw;
     }
 
@@ -183,11 +186,73 @@ public class SmsbAppointmentInfoServiceImpl implements ISmsbAppointmentInfoServi
             // 4 启动线程,保存至数据库,生成总结
             createReport(reportList, add, smsbDeviceChatScReportMapper);
         }
-
+        // 5、看样学样:应用案例列表
+        List<SmsbDeviceChatScCase> caseList = getCaseList(reportMap,add);
+        if (!CollectionUtils.isEmpty(reportList)) {
+            // 6 启动线程,保存至数据库,生成总结
+            createCaseList(caseList, add, smsbDeviceChatScCaseMapper);
+        }
 
         return flag;
     }
 
+    private void createCaseList(List<SmsbDeviceChatScCase> caseList, SmsbAppointmentInfo add, SmsbDeviceChatScCaseMapper smsbDeviceChatScCaseMapper) {
+        Runnable transTask = () -> {
+            log.info("createCaseList thread begin caseList.size(): " + caseList.size());
+            smsbDeviceChatScCaseMapper.insertBatch(caseList);
+            StringBuilder caseContentStr = new StringBuilder();
+            caseContentStr.append("帮我对一下内容进行汇总总结,返回100字的纯文本内容:").append("\n");
+            for (SmsbDeviceChatScCase caseItem : caseList) {
+                caseContentStr.append(caseItem.getName()).append(":").append(caseItem.getIntroduction()).append("\n");
+            }
+            // 调用公共Dify接口 进行内容总结 并保存
+            String reportSummary = DifyStreamUtil.callDifyStreamApi(difyBaseUrl + "/v1/chat-messages", difyScAgentApiKey, caseContentStr.toString());
+            SmsbDeviceChatScCase scCase = new SmsbDeviceChatScCase();
+            scCase.setType(1);
+            String content = "你好," + add.getEnterprise() + "企业,我是小数智能分析助手。您企业的诊断评估简单介绍为:" + reportSummary + "您可以继续向我提问。";
+            scCase.setIntroduction(content);
+            scCase.setName("欢迎词");
+            scCase.setAppointmentId(add.getId());
+            scCase.setEnterprise(add.getEnterprise());
+            scCase.setTenantId(add.getTenantId());
+            smsbDeviceChatScCaseMapper.insert(scCase);
+            log.info("createCaseList thread end !");
+        };
+        // 提交Runnable任务到线程池
+        threadPoolTaskExecutor.submit(transTask);
+    }
+
+    private List<SmsbDeviceChatScCase> getCaseList(String reportMap,SmsbAppointmentInfo add) {
+        try {
+            JSONObject reportMapJson = JSONUtil.parseObj(reportMap);
+            if (!"true".equalsIgnoreCase(reportMapJson.getStr("result"))) {
+                return null;
+            }
+            // 读取报告具体内容
+            JSONObject reportContent = reportMapJson.getJSONObject("reportContent");
+            JSONObject recommend = reportContent.getJSONObject("recommend");
+            // 应用案例列表:
+            JSONArray caseList = recommend.getJSONArray("caseList");
+            List<SmsbDeviceChatScCase> addCaseList = new ArrayList<>();
+            for (int i = 0; i < caseList.size(); i++) {
+                JSONObject caseItem = caseList.getJSONObject(i);
+                SmsbDeviceChatScCase addCase = new SmsbDeviceChatScCase();
+                addCase.setName(caseItem.getStr("name"));
+                addCase.setPhoto(caseItem.getStr("photo"));
+                addCase.setIntroduction(caseItem.getStr("introduction"));
+                addCase.setAppointmentId(add.getId());
+                addCase.setEnterprise(add.getEnterprise());
+                addCase.setTenantId(add.getTenantId());
+                addCase.setType(2);
+                addCaseList.add(addCase);
+            }
+            return addCaseList;
+        } catch (Exception e) {
+            log.error("获取应用案例列表内容失败", e);
+            return null;
+        }
+    }
+
     private void createReport(List<String> reportContentList, SmsbAppointmentInfo add, SmsbDeviceChatScReportMapper smsbDeviceChatScReportMapper) {
         Runnable transTask = () -> {
             log.info("createReport thread begin reportContentList.size(): " + reportContentList.size());
@@ -220,7 +285,6 @@ public class SmsbAppointmentInfoServiceImpl implements ISmsbAppointmentInfoServi
         };
         // 提交Runnable任务到线程池
         threadPoolTaskExecutor.submit(transTask);
-
     }
 
     private List<String> getAssessmentReportV2(String reportMap) {
@@ -422,6 +486,8 @@ public class SmsbAppointmentInfoServiceImpl implements ISmsbAppointmentInfoServi
         List<SmsbScDeviceStartInfoVo> deviceStartInfoList = new ArrayList<>();
         // 针对评估所有内容集合
         List<String> reportContentList = new ArrayList<>();
+        // 针对有样学样的内容集合
+        List<String> caseContentList = new ArrayList<>();
         for (SmsbDeviceGroupRelVo deviceGroupRel : deviceGroupRelList) {
             SmsbScDeviceStartInfoVo deviceStartInfo = new SmsbScDeviceStartInfoVo();
             deviceStartInfo.setIdentifier(deviceGroupRel.getDeviceIdentifier());
@@ -440,7 +506,17 @@ public class SmsbAppointmentInfoServiceImpl implements ISmsbAppointmentInfoServi
                     reportContentList = reportVoList.stream().map(SmsbDeviceChatScReportVo::getContent).collect(Collectors.toList());
                 }
             } else if (deviceGroupRel.getSceneSort().equals(DEFAULT_SCENE_SORT_2)) {
-
+                SmsbDeviceChatScCaseVo caseVo = smsbDeviceChatScCaseMapper.selectVoOne(new LambdaQueryWrapper<SmsbDeviceChatScCase>()
+                    .eq(SmsbDeviceChatScCase::getAppointmentId, appointmentInfo.getId())
+                    .eq(SmsbDeviceChatScCase::getType, 1)
+                    .orderByDesc(SmsbDeviceChatScCase::getAppointmentId).last("limit 1"));
+                deviceStartInfo.setHelloWorld(caseVo.getIntroduction());
+                List<SmsbDeviceChatScCaseVo> caseVoList = smsbDeviceChatScCaseMapper.selectVoList(new LambdaQueryWrapper<SmsbDeviceChatScCase>()
+                    .eq(SmsbDeviceChatScCase::getAppointmentId, appointmentInfo.getId())
+                    .eq(SmsbDeviceChatScCase::getType, 2));
+                if (CollectionUtils.isNotEmpty(caseVoList)) {
+                    caseContentList = createCaseContentList(caseVoList);
+                }
             } else if (deviceGroupRel.getSceneSort().equals(DEFAULT_SCENE_SORT_3)) {
 
             } else if (deviceGroupRel.getSceneSort().equals(DEFAULT_SCENE_SORT_4)) {
@@ -452,11 +528,23 @@ public class SmsbAppointmentInfoServiceImpl implements ISmsbAppointmentInfoServi
         // TODO 异步现场启动 更新知识库
         // 线程1 更新评估报告知识库
         syncDatasets(reportContentList, difyScDatasetReportId);
-
+        // 线程2 更新有样学样的知识库
+        syncDatasets(caseContentList, difyScDatasetCaseId);
         return R.ok(result);
     }
 
-    private void syncDatasets(List<String> contentList, String datasetsId) {
+    private List<String> createCaseContentList(List<SmsbDeviceChatScCaseVo> caseVoList) {
+        List<String> contentList = new ArrayList<>();
+        for (SmsbDeviceChatScCaseVo caseVo : caseVoList) {
+            StringBuilder allContentStr = new StringBuilder();
+            allContentStr.append("案例名称:").append(caseVo.getName()).append("\n");
+            allContentStr.append("案例简介:").append(caseVo.getIntroduction()).append("\n");
+            contentList.add(allContentStr.toString());
+        }
+        return contentList;
+    }
+
+    private synchronized void syncDatasets(List<String> contentList, String datasetsId) {
         Runnable transTask = () -> {
             try {
                 log.info("syncDatasets thread begin contentList.size(): " + contentList.size() + ",datasetsId : " + datasetsId);

+ 133 - 0
smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/service/impl/SmsbDeviceChatScCaseServiceImpl.java

@@ -0,0 +1,133 @@
+package com.inspur.digital.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.inspur.digital.domain.SmsbDeviceChatScCase;
+import com.inspur.digital.domain.bo.SmsbDeviceChatScCaseBo;
+import com.inspur.digital.domain.vo.SmsbDeviceChatScCaseVo;
+import com.inspur.digital.mapper.SmsbDeviceChatScCaseMapper;
+import com.inspur.digital.service.ISmsbDeviceChatScCaseService;
+import lombok.RequiredArgsConstructor;
+import org.dromara.common.core.utils.MapstructUtils;
+import org.dromara.common.core.utils.StringUtils;
+import org.dromara.common.mybatis.core.page.PageQuery;
+import org.dromara.common.mybatis.core.page.TableDataInfo;
+import org.springframework.stereotype.Service;
+
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 数促-看样学样Service业务层处理
+ *
+ * @author Hao Li
+ * @date 2025-07-02
+ */
+@RequiredArgsConstructor
+@Service
+public class SmsbDeviceChatScCaseServiceImpl implements ISmsbDeviceChatScCaseService {
+
+    private final SmsbDeviceChatScCaseMapper baseMapper;
+
+    /**
+     * 查询数促-看样学样
+     *
+     * @param id 主键
+     * @return 数促-看样学样
+     */
+    @Override
+    public SmsbDeviceChatScCaseVo queryById(Long id) {
+        return baseMapper.selectVoById(id);
+    }
+
+    /**
+     * 分页查询数促-看样学样列表
+     *
+     * @param bo        查询条件
+     * @param pageQuery 分页参数
+     * @return 数促-看样学样分页列表
+     */
+    @Override
+    public TableDataInfo<SmsbDeviceChatScCaseVo> queryPageList(SmsbDeviceChatScCaseBo bo, PageQuery pageQuery) {
+        LambdaQueryWrapper<SmsbDeviceChatScCase> lqw = buildQueryWrapper(bo);
+        Page<SmsbDeviceChatScCaseVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
+        return TableDataInfo.build(result);
+    }
+
+    /**
+     * 查询符合条件的数促-看样学样列表
+     *
+     * @param bo 查询条件
+     * @return 数促-看样学样列表
+     */
+    @Override
+    public List<SmsbDeviceChatScCaseVo> queryList(SmsbDeviceChatScCaseBo bo) {
+        LambdaQueryWrapper<SmsbDeviceChatScCase> lqw = buildQueryWrapper(bo);
+        return baseMapper.selectVoList(lqw);
+    }
+
+    private LambdaQueryWrapper<SmsbDeviceChatScCase> buildQueryWrapper(SmsbDeviceChatScCaseBo bo) {
+        Map<String, Object> params = bo.getParams();
+        LambdaQueryWrapper<SmsbDeviceChatScCase> lqw = Wrappers.lambdaQuery();
+        lqw.eq(bo.getType() != null, SmsbDeviceChatScCase::getType, bo.getType());
+        lqw.like(StringUtils.isNotBlank(bo.getName()), SmsbDeviceChatScCase::getName, bo.getName());
+        lqw.eq(bo.getAppointmentId() != null, SmsbDeviceChatScCase::getAppointmentId, bo.getAppointmentId());
+        lqw.like(StringUtils.isNotBlank(bo.getEnterprise()), SmsbDeviceChatScCase::getEnterprise, bo.getEnterprise());
+        lqw.orderByDesc(SmsbDeviceChatScCase::getId);
+        return lqw;
+    }
+
+    /**
+     * 新增数促-看样学样
+     *
+     * @param bo 数促-看样学样
+     * @return 是否新增成功
+     */
+    @Override
+    public Boolean insertByBo(SmsbDeviceChatScCaseBo bo) {
+        SmsbDeviceChatScCase add = MapstructUtils.convert(bo, SmsbDeviceChatScCase.class);
+        validEntityBeforeSave(add);
+        boolean flag = baseMapper.insert(add) > 0;
+        if (flag) {
+            bo.setId(add.getId());
+        }
+        return flag;
+    }
+
+    /**
+     * 修改数促-看样学样
+     *
+     * @param bo 数促-看样学样
+     * @return 是否修改成功
+     */
+    @Override
+    public Boolean updateByBo(SmsbDeviceChatScCaseBo bo) {
+        SmsbDeviceChatScCase update = MapstructUtils.convert(bo, SmsbDeviceChatScCase.class);
+        validEntityBeforeSave(update);
+        return baseMapper.updateById(update) > 0;
+    }
+
+    /**
+     * 保存前的数据校验
+     */
+    private void validEntityBeforeSave(SmsbDeviceChatScCase entity) {
+        //TODO 做一些数据校验,如唯一约束
+    }
+
+    /**
+     * 校验并批量删除数促-看样学样信息
+     *
+     * @param ids     待删除的主键集合
+     * @param isValid 是否进行有效性校验
+     * @return 是否删除成功
+     */
+    @Override
+    public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
+        if (isValid) {
+            //TODO 做一些业务上的校验,判断是否需要校验
+        }
+        return baseMapper.deleteByIds(ids) > 0;
+    }
+}

+ 1 - 0
smsb-modules/smsb-digital-promotion/src/main/java/com/inspur/digital/service/impl/SmsbDeviceChatScReportServiceImpl.java

@@ -74,6 +74,7 @@ public class SmsbDeviceChatScReportServiceImpl implements ISmsbDeviceChatScRepor
         lqw.eq(bo.getType() != null, SmsbDeviceChatScReport::getType, bo.getType());
         lqw.eq(bo.getAppointmentId() != null, SmsbDeviceChatScReport::getAppointmentId, bo.getAppointmentId());
         lqw.like(StringUtils.isNotBlank(bo.getEnterprise()), SmsbDeviceChatScReport::getEnterprise, bo.getEnterprise());
+        lqw.orderByDesc(SmsbDeviceChatScReport::getId);
         return lqw;
     }
 

+ 7 - 0
smsb-modules/smsb-digital-promotion/src/main/resources/mapper/digital/SmsbDeviceChatScCaseMapper.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+    PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+    "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.inspur.digital.mapper.SmsbDeviceChatScCaseMapper">
+
+</mapper>

+ 63 - 0
smsb-plus-ui/src/api/smsb/digital/scCase/api.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ChatScCaseVO, ChatScCaseForm, ChatScCaseQuery } from '@/api/smsb/digital/scCase/types';
+
+/**
+ * 查询数促-看样学样列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listChatScCase = (query?: ChatScCaseQuery): AxiosPromise<ChatScCaseVO[]> => {
+  return request({
+    url: '/digital/chatScCase/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询数促-看样学样详细
+ * @param id
+ */
+export const getChatScCase = (id: string | number): AxiosPromise<ChatScCaseVO> => {
+  return request({
+    url: '/digital/chatScCase/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增数促-看样学样
+ * @param data
+ */
+export const addChatScCase = (data: ChatScCaseForm) => {
+  return request({
+    url: '/digital/chatScCase',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改数促-看样学样
+ * @param data
+ */
+export const updateChatScCase = (data: ChatScCaseForm) => {
+  return request({
+    url: '/digital/chatScCase',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除数促-看样学样
+ * @param id
+ */
+export const delChatScCase = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/digital/chatScCase/' + id,
+    method: 'delete'
+  });
+};

+ 121 - 0
smsb-plus-ui/src/api/smsb/digital/scCase/types.ts

@@ -0,0 +1,121 @@
+export interface ChatScCaseVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 类型 1-总结 2-条目
+   */
+  type: number;
+
+  /**
+   * 名称
+   */
+  name: string;
+
+  /**
+   * 图片
+   */
+  photo: string;
+
+  /**
+   * 简介
+   */
+  introduction: string;
+
+  /**
+   * 预约ID
+   */
+  appointmentId: string | number;
+
+  /**
+   * 预约企业
+   */
+  enterprise: string;
+
+  /**
+   * 创建时间
+   */
+  createTime: string;
+
+}
+
+export interface ChatScCaseForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 类型 1-总结 2-条目
+   */
+  type?: number;
+
+  /**
+   * 名称
+   */
+  name?: string;
+
+  /**
+   * 图片
+   */
+  photo?: string;
+
+  /**
+   * 简介
+   */
+  introduction?: string;
+
+  /**
+   * 预约ID
+   */
+  appointmentId?: string | number;
+
+  /**
+   * 预约企业
+   */
+  enterprise?: string;
+
+  /**
+   * 创建时间
+   */
+  createTime?: string;
+
+  /**
+   * 租户标识
+   */
+  tenantId?: string | number;
+
+}
+
+export interface ChatScCaseQuery extends PageQuery {
+
+  /**
+   * 类型 1-总结 2-条目
+   */
+  type?: number;
+
+  /**
+   * 名称
+   */
+  name?: string;
+
+  /**
+   * 预约ID
+   */
+  appointmentId?: string | number;
+
+  /**
+   * 预约企业
+   */
+  enterprise?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}
+
+
+

+ 3 - 3
smsb-plus-ui/src/views/smsb/appointmentInfo/index.vue

@@ -41,16 +41,16 @@
         <el-table v-loading="loading" :data="appointmentInfoList" @selection-change="handleSelectionChange">
           <el-table-column label="" align="left" prop="" width="10"/>
           <el-table-column label="ID" align="left" prop="id" v-if="true" width="175"/>
-          <el-table-column label="企业" align="left" prop="enterprise"/>
+          <el-table-column label="企业" align="left" prop="enterprise" :show-overflow-tooltip="true"/>
           <el-table-column label="电话" align="left" prop="phone" width="120"/>
           <el-table-column label="预约时间" align="left" prop="appointmentTime" width="160"/>
           <el-table-column label="人数" align="center" prop="peopleNum" width="80"/>
           <el-table-column label="地区" align="left" prop="region" width="120" :show-overflow-tooltip="true"/>
           <el-table-column label="行业" align="left" prop="industry" width="120" :show-overflow-tooltip="true"/>
-          <el-table-column label="大小" align="left" prop="size" width="80" :show-overflow-tooltip="true"/>
+<!--          <el-table-column label="大小" align="left" prop="size" width="80" :show-overflow-tooltip="true"/>
           <el-table-column label="金额" align="left" prop="money" width="80" :show-overflow-tooltip="true"/>
           <el-table-column label="类型" align="left" prop="type" width="80" :show-overflow-tooltip="true"/>
-          <el-table-column label="层次" align="left" prop="gradation" width="80" :show-overflow-tooltip="true"/>
+          <el-table-column label="层次" align="left" prop="gradation" width="80" :show-overflow-tooltip="true"/>-->
           <el-table-column label="到访" align="left" prop="isArrived" width="60" :show-overflow-tooltip="true">
             <template #default="scope">
               <dict-tag :options="smsb_yes_no" :value="scope.row.isArrived"/>

+ 244 - 0
smsb-plus-ui/src/views/smsb/scCase/index.vue

@@ -0,0 +1,244 @@
+<template>
+  <div class="p-2">
+    <transition :enter-active-class="proxy?.animate.searchAnimate.enter"
+                :leave-active-class="proxy?.animate.searchAnimate.leave">
+      <div v-show="showSearch" class="mb-[10px]">
+        <el-card shadow="hover" :style="{ marginTop: '10px', height: '60px' }">
+          <el-form ref="queryFormRef" :model="queryParams" :inline="true">
+            <el-form-item label="案例名称" prop="name">
+              <el-input v-model="queryParams.name" placeholder="请输入名称" clearable @keyup.enter="handleQuery"/>
+            </el-form-item>
+            <el-form-item label="预约企业" prop="enterprise">
+              <el-input v-model="queryParams.enterprise" placeholder="请输入预约企业" clearable @keyup.enter="handleQuery"/>
+            </el-form-item>
+            <el-form-item>
+              <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
+              <el-button icon="Refresh" @click="resetQuery">重置</el-button>
+            </el-form-item>
+          </el-form>
+        </el-card>
+      </div>
+    </transition>
+
+    <el-card shadow="never">
+      <!--      <template #header>
+              <el-row :gutter="10" class="mb8">
+                <el-col :span="1.5">
+                  <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['digital:chatScCase:add']">新增</el-button>
+                </el-col>
+                <el-col :span="1.5">
+                  <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['digital:chatScCase:edit']">修改</el-button>
+                </el-col>
+                <el-col :span="1.5">
+                  <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['digital:chatScCase:remove']">删除</el-button>
+                </el-col>
+                <el-col :span="1.5">
+                  <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['digital:chatScCase:export']">导出</el-button>
+                </el-col>
+                <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
+              </el-row>
+            </template>-->
+      <div class="table-content">
+        <el-table v-loading="loading" :data="chatScCaseList" @selection-change="handleSelectionChange">
+          <el-table-column label="" align="left" prop=""  width="10"/>
+          <el-table-column label="ID" align="left" prop="id" v-if="true" width="175"/>
+          <el-table-column label="案例名称" align="left" prop="name" width="280" :show-overflow-tooltip="true"/>
+          <el-table-column label="案例图片" align="center" prop="photo" width="100">
+            <template #default="scope">
+              <image-preview :src="scope.row.photo" style="width: 40px; height: 40px; cursor: pointer"/>
+            </template>
+          </el-table-column>
+<!--
+          <el-table-column label="预约ID" align="left" prop="appointmentId" width="175"/>
+-->
+          <el-table-column label="预约企业" align="left" prop="enterprise" width="250" :show-overflow-tooltip="true"/>
+          <el-table-column label="简介" align="left" prop="introduction" :show-overflow-tooltip="true"/>
+          <el-table-column label="创建时间" align="center" prop="createTime" width="180"/>
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120">
+            <template #default="scope">
+              <el-tooltip content="修改" placement="top">
+                <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
+                           v-hasPermi="['digital:chatScCase:edit']"></el-button>
+              </el-tooltip>
+              <el-tooltip content="删除" placement="top">
+                <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
+                           v-hasPermi="['digital:chatScCase:remove']"></el-button>
+              </el-tooltip>
+            </template>
+          </el-table-column>
+        </el-table>
+      </div>
+
+      <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
+                  v-model:limit="queryParams.pageSize" @pagination="getList"/>
+    </el-card>
+    <!-- 添加或修改数促-看样学样对话框 -->
+    <el-dialog :title="dialog.title" v-model="dialog.visible" width="1000px" append-to-body>
+      <el-form ref="chatScCaseFormRef" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="案例名称" prop="name">
+          <el-input v-model="form.name" placeholder="请输入名称"/>
+        </el-form-item>
+        <el-form-item label="简介" prop="introduction">
+          <el-input v-model="form.introduction" type="textarea" :rows="5" placeholder="请输入内容"/>
+        </el-form-item>
+      </el-form>
+      <template #footer>
+        <div class="dialog-footer">
+          <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
+          <el-button @click="cancel">取 消</el-button>
+        </div>
+      </template>
+    </el-dialog>
+  </div>
+</template>
+
+<script setup name="ChatScCase" lang="ts">
+import {
+  addChatScCase,
+  delChatScCase,
+  getChatScCase,
+  listChatScCase,
+  updateChatScCase
+} from '@/api/smsb/digital/scCase/api';
+import {ChatScCaseForm, ChatScCaseQuery, ChatScCaseVO} from '@/api/smsb/digital/scCase/types';
+
+const {proxy} = getCurrentInstance() as ComponentInternalInstance;
+
+const chatScCaseList = ref<ChatScCaseVO[]>([]);
+const buttonLoading = ref(false);
+const loading = ref(true);
+const showSearch = ref(true);
+const ids = ref<Array<string | number>>([]);
+const single = ref(true);
+const multiple = ref(true);
+const total = ref(0);
+
+const queryFormRef = ref<ElFormInstance>();
+const chatScCaseFormRef = ref<ElFormInstance>();
+
+const dialog = reactive<DialogOption>({
+  visible: false,
+  title: ''
+});
+
+const initFormData: ChatScCaseForm = {
+  id: undefined,
+  type: undefined,
+  name: undefined,
+  photo: undefined,
+  introduction: undefined,
+  appointmentId: undefined,
+  enterprise: undefined,
+  createTime: undefined,
+  tenantId: undefined
+}
+const data = reactive<PageData<ChatScCaseForm, ChatScCaseQuery>>({
+  form: {...initFormData},
+  queryParams: {
+    pageNum: 1,
+    pageSize: 10,
+    type: 2,
+    name: undefined,
+    appointmentId: undefined,
+    enterprise: undefined,
+    params: {}
+  },
+  rules: {}
+});
+
+const {queryParams, form, rules} = toRefs(data);
+
+/** 查询数促-看样学样列表 */
+const getList = async () => {
+  loading.value = true;
+  const res = await listChatScCase(queryParams.value);
+  chatScCaseList.value = res.rows;
+  total.value = res.total;
+  loading.value = false;
+}
+
+/** 取消按钮 */
+const cancel = () => {
+  reset();
+  dialog.visible = false;
+}
+
+/** 表单重置 */
+const reset = () => {
+  form.value = {...initFormData};
+  chatScCaseFormRef.value?.resetFields();
+}
+
+/** 搜索按钮操作 */
+const handleQuery = () => {
+  queryParams.value.pageNum = 1;
+  getList();
+}
+
+/** 重置按钮操作 */
+const resetQuery = () => {
+  queryFormRef.value?.resetFields();
+  handleQuery();
+}
+
+/** 多选框选中数据 */
+const handleSelectionChange = (selection: ChatScCaseVO[]) => {
+  ids.value = selection.map(item => item.id);
+  single.value = selection.length != 1;
+  multiple.value = !selection.length;
+}
+
+/** 新增按钮操作 */
+const handleAdd = () => {
+  reset();
+  dialog.visible = true;
+  dialog.title = "看样学样";
+}
+
+/** 修改按钮操作 */
+const handleUpdate = async (row?: ChatScCaseVO) => {
+  reset();
+  const _id = row?.id || ids.value[0]
+  const res = await getChatScCase(_id);
+  Object.assign(form.value, res.data);
+  dialog.visible = true;
+  dialog.title = "看样学样";
+}
+
+/** 提交按钮 */
+const submitForm = () => {
+  chatScCaseFormRef.value?.validate(async (valid: boolean) => {
+    if (valid) {
+      buttonLoading.value = true;
+      if (form.value.id) {
+        await updateChatScCase(form.value).finally(() => buttonLoading.value = false);
+      } else {
+        await addChatScCase(form.value).finally(() => buttonLoading.value = false);
+      }
+      proxy?.$modal.msgSuccess("操作成功");
+      dialog.visible = false;
+      await getList();
+    }
+  });
+}
+
+/** 删除按钮操作 */
+const handleDelete = async (row?: ChatScCaseVO) => {
+  const _ids = row?.id || ids.value;
+  await proxy?.$modal.confirm('是否确认删除看样学样的数据项?').finally(() => loading.value = false);
+  await delChatScCase(_ids);
+  proxy?.$modal.msgSuccess("删除成功");
+  await getList();
+}
+
+/** 导出按钮操作 */
+const handleExport = () => {
+  proxy?.download('digital/chatScCase/export', {
+    ...queryParams.value
+  }, `chatScCase_${new Date().getTime()}.xlsx`)
+}
+
+onMounted(() => {
+  getList();
+});
+</script>

+ 4 - 4
smsb-plus-ui/src/views/smsb/scReport/index.vue

@@ -40,7 +40,7 @@
           <el-table-column label="ID" align="left" prop="id" v-if="true" width="175"/>
           <el-table-column label="内容" align="left" prop="content" :show-overflow-tooltip="true"/>
           <el-table-column label="预约ID" align="left" prop="appointmentId" width="175"/>
-          <el-table-column label="预约企业" align="left" prop="enterprise" width="150" :show-overflow-tooltip="true"/>
+          <el-table-column label="预约企业" align="left" prop="enterprise" width="250" :show-overflow-tooltip="true"/>
           <el-table-column label="创建时间" align="center" prop="createTime" width="180" />
         <el-table-column label="操作" align="center" width="120" class-name="small-padding fixed-width">
           <template #default="scope">
@@ -176,7 +176,7 @@ const handleSelectionChange = (selection: DeviceChatScReportVO[]) => {
 const handleAdd = () => {
   reset();
   dialog.visible = true;
-  dialog.title = "添加数促-诊断报告";
+  dialog.title = "诊断报告";
 }
 
 /** 修改按钮操作 */
@@ -186,7 +186,7 @@ const handleUpdate = async (row?: DeviceChatScReportVO) => {
   const res = await getDeviceChatScReport(_id);
   Object.assign(form.value, res.data);
   dialog.visible = true;
-  dialog.title = "修改数促-诊断报告";
+  dialog.title = "诊断报告";
 }
 
 /** 提交按钮 */
@@ -209,7 +209,7 @@ const submitForm = () => {
 /** 删除按钮操作 */
 const handleDelete = async (row?: DeviceChatScReportVO) => {
   const _ids = row?.id || ids.value;
-  await proxy?.$modal.confirm('是否确认删除数促-诊断报告编号为"' + _ids + '"的数据项?').finally(() => loading.value = false);
+  await proxy?.$modal.confirm('是否确认删除诊断报告的数据项?').finally(() => loading.value = false);
   await delDeviceChatScReport(_ids);
   proxy?.$modal.msgSuccess("删除成功");
   await getList();