图片预览

滚轮缩放 · 拖动移动 · Esc 关闭

Skip to content

标准化工作管理 — 前端对接文档 ​

文档中心同步副本 · 源文件:muotai-backend/muotai-standard/标准化工作管理-前端对接文档.md。修改实现时请先更新源文件,再运行 npm run docs:sync-source。

网关前缀按环境拼接,示例:/standard/ + 下文路径。
统一返回:R<T>(code / msg / data)。
分页参数:current、size(默认 1 / 10)。
删除统一:POST .../remove?ids=1,2,3。
submit = 新增或修改(有 id 则更新)。


一、通用约定 ​

项说明
鉴权走网关 Token;工作流回调接口除外
Content-TypeJSON:application/json;导入:multipart/form-data
日期多数字段 yyyy-MM-dd;自我声明公开时间可为 yyyy-MM-dd HH:mm:ss
附件先走文件上传拿到路径,再写入 filePath / 各附件字段
流程发起先 save/submit 拿到 id,再 POST /start,Body:{ "businessKey": "<id>" }
导入数据默认 status=审批通过,不走工作流
流程字段各业务表均有:processInstanceId、processDefKey、currentNode

标准 CRUD + 审批 + 导入导出(各业务模块统一) ​

MethodPath说明
GET/detail详情(Query 传 id 等)
GET/list分页列表
GET/page自定义分页(部分模块有)
POST/save新增
POST/update修改
POST/submit新增或修改
POST/remove删除 ?ids=
POST/start发起审批 { "businessKey": "id" }
POST/update-status工作流回调(前端勿调)
GET/detailByProcess/{processInstanceId}待办打开业务表单
GET/export导出台账
GET/export-template下载导入模板
POST/import批量导入(file,导入即通过)
GET/statistics按企业统计(部分模块有)

各模块流程编码(wflow 需逐个发布) ​

模块Base流程编码
外部标准制修订standardInfo/enterpriseJoinInfoexternal_standard_revise
试点示范standardInfo/enterprisePilotProjectstandard_pilot_review
技术组织standardInfo/enterpriseOrganizestandard_organize_review
自我声明standardInfo/standardStatementstandard_statement_review
企业标准体系standardInfo/systemBuildstandard_system_build_review
良好行为认定standardInfo/standardizationWorkApplicationstandard_good_behavior_review
内审员standardInfo/auditorstandard_auditor_review
第三方评价standardInfo/thirdPartyEvalstandard_third_party_eval_review
自评报告standardInfo/assessmentReportstandard_assessment_report_review
培训standardInfo/standardTrainingstandard_training_review
培训证书standardInfo/trainingCertificatestandard_training_cert_review
人员聘用standardInfo/trainingHirestandard_training_hire_review
研究项目standardInfo/StandardStudystandard_study_review
经费standardInfo/fundsstandard_funds_review
奖励standardInfo/rewardstandard_reward_review
宣传推广standardInfo/propagandastandard_propaganda_review
通知公告standardInfo/noticestandard_notice_review
专家standardInfo/standardExpertstandard_expert_review

外部标准制修订待办详情路径为 GET .../infos/process/{processInstanceId},其余模块为 GET .../detailByProcess/{processInstanceId}。
重要: wflow 流程「流程编码」必须与上表完全一致,且需重启 muotai-wflow 服务加载状态监听器;审批通过后由监听器 Feign 回调各模块 /update-status 更新业务状态。


二、模块接口一览 ​

1. 外部标准制修订管理 ​

Base: standardInfo/enterpriseJoinInfo
流程编码: external_standard_revise

MethodPath说明
GET/detail支持 ?id= 或 ?processInstanceId=
GET/infos/process/{processInstanceId}待办/已办打开业务表单
GET/list /page列表 / 台账总览
POST/save /update /submit /removeCRUD
POST/start发起审批 { "businessKey": "id" }
POST/progress手动改进度 ?id=&progressStatus=(0立项~5发布)
GET/statistics统计
GET/export导出
GET/export-template导入模板
POST/import批量导入
GET/standard-types标准类别
GET/progress-types进度字典

表单关键字段:
enterpriseName、standardName、standardNumber、standardType、projectPlanNo、startTime、endTime、progressStatus、remark、filePath、processInstanceId、currentNode

进度枚举: 0立项 1起草 2征求意见 3审查 4批准 5发布


2. 标准化试点示范管理 ​

Base: standardInfo/enterprisePilotProject
标准 CRUD(含 /page)

新增/关注字段:
enterpriseName、projectStage(立项/建设/验收)、remark、acceptConclusion、acceptTime
另有:projectName、projectNumber、startTime、endTime、projectLevel、projectType、newProjectFile、constructionFile、filePath


3. 标准化技术组织参与管理 ​

子模块Base
组织standardInfo/enterpriseOrganize
委员/人员standardInfo/enterpriseOrganizePerson

均为标准 CRUD(含 /page)

组织字段:
enterpriseName、undertakeRole(秘书处/委员)、committeeName、organizeLevel、contacts、phone、remark、name、scope、filePath

人员字段:
enterpriseOrganizeId、name、phone、hireTime、hireCertificate、remark、filePath

组织级别建议字典:
国际标准化组织、全国 TC/SC、行业标委会、地方标委会、团体标委会、专项工作组、临时专家组


4. 标准自我声明公开管理 ​

Base: standardInfo/standardStatement
标准 CRUD(含 /page)

字段:
enterpriseName、productName、modelNo、category、standardName、standardCode、principalName、principalPhone、publicStatement、publicDate、standardType、publicMode(全文/指标)、publicChannel、projectStage、remark、filePath/standardFile


5. 企业标准体系管理(新建) ​

Base: standardInfo/systemBuild
CRUD + /statistics(无 /page)

字段说明
enterpriseName企业名称
buildStatus已建立 / 未建立 / 建设中
systemStructure体系构成情况
deptInfo标准归口部门情况
standardCategory标准类别
standardCount标准数量
remark / filePath备注 / 附件

6. 标准化良好行为创建和评价 ​

6.1 主台账 ​

Base: standardInfo/standardizationWorkApplication
CRUD(含 /page,save/update/submit 含子表)

MethodPath说明
POST/bindSelfAssessmentPlan?id=&selfAssessmentPlanId= 关联自评计划

台账字段:
createType(首次创建/等级提升/到期复评)
targetLevel / currentLevel(A~AAAAA)
createStartTime、planFinishTime、declareTime、evaluateTime、publicityTime
certificateTime、certificateNo、certificateValidStart、certificateValidEnd
warningTime、reEvaluateTime、projectStage(创建中/评价/取证)
evidenceFile、remark、selfAssessmentPlanId
子表:adoptionList、productList

6.2 内审员(新建) ​

Base: standardInfo/auditor
CRUD + /statistics + /import

字段:enterpriseName、personName、gender、phone、deptName、auditorType、certificateNo、certificateFile、hireTime、validEnd、remark、filePath

6.3 自评(复用已有 + 补齐) ​

模块Base
自评计划standardInfo/standardSelfAssessmentPlan
自评记录standardInfo/selfAssessmentRecord
自评报告standardInfo/assessmentReport

自评报告字段:workApplicationId、selfAssessmentPlanId、reportName、reportType、totalScore、levelResult、reportTime、reportFile、enterpriseName

6.4 第三方评价(新建) ​

Base: standardInfo/thirdPartyEval
CRUD + /statistics

字段:enterpriseName、workApplicationId、evalOrg、evalType(首次/监督/复评)、evalLevel、certificateNo、certificateTime、validStart、validEnd、superviseTime、nextSuperviseTime、superviseResult、projectStage、evidenceFile、remark

6.5 提醒 ​

Base: standardInfo/remind

MethodPath说明
GET/certificate-warning?days=90良好行为证书到期预警
GET/supervise-warning?days=90年度监督提醒
GET/training-certificate-warning?days=90培训证书到期
GET/overview?days=90三类数量总览
GET/scope-hint通知范围说明(集团/下属公司)

7. 标准化培训管理 ​

子模块Base额外接口
培训主表standardInfo/standardTraining/page、/statistics
培训人员standardInfo/standardTrainingPersonCRUD
培训证书standardInfo/trainingCertificate/statistics
人员聘用standardInfo/trainingHire/statistics
培训计划edu/train-plan已有在线学习模块
在线考试edu/exam已有
试卷edu/paper已有

培训主表新增字段:
enterpriseName、trainingMode、hasExam、examScore、hasCertificate、trainingCertificate、hasHire、trainingFee、videoFile、remark
另有:trainingTitle、trainingType、trainingStartTime/EndTime、trainingAddress、trainingContent、courseware、datumFile、photograph、filePath

证书字段: trainingId、personName、certificateName、certificateNo、issueOrg、issueTime、validEnd、certificateFile
聘用字段: trainingId、personName、hirePost、hireTime、hireEnd、hireCertificate、phone


8. 标准化研究项目管理 ​

Base: standardInfo/StandardStudy(注意 S 大写)
CRUD + /page + /statistics + /import

字段:
enterpriseName、projectCategory、projectName、projectLevel、projectContent(概况)、chargePerson、participants、contactPhone、projectStage、projectResult、publicationNo、publishInfo、positionNum、startTime、endTime、remark、filePath


9. 标准化经费、奖励管理 ​

子模块Base
经费standardInfo/funds
奖励standardInfo/reward

经费 ​

标准 CRUD(含 /page)
字段:enterpriseName、feeCategory、budgetInfo、fundSource、fundExplain、payStatus、projectName、fundAmount、fundType、filePath

奖励(含审批) ​

流程编码: standard_reward_review

MethodPath说明
CRUD/detail /list /page /save /update /submit /remove台账
POST/start{ "businessKey": "id" }
GET/detailByProcess/{processInstanceId}待办打开表单
GET/statistics统计

字段:enterpriseName、rewardType、rewardMethod、rewardAmount、reviewMaterial、applyTime、remark、filePath、processInstanceId、currentNode

POST /update-status 为工作流回调,前端勿调。


10. 标准化宣传推广(新建) ​

Base: standardInfo/propaganda
CRUD + /statistics + /import

字段:enterpriseName、theme、publishChannel、publishLink、content、publishTime、remark、filePath

主题建议字典: 标准化成果、标准化科普、典型案例、评先树优
渠道建议字典: 主流媒体、官网、公众号


11. 通知公告管理(新建) ​

Base: standardInfo/notice
CRUD + /statistics

字段:title、noticeType、content、publishOrg、publishTime、publishStatus(草稿/已发布)、filePath、remark

类型建议字典: 标准发布情况、企业标准化新闻、行业标准化新闻、培训通知、立项通知、评审通知、标准化人员能力评审通知


12. 标准化专家管理(新建) ​

Base: standardInfo/standardExpert
CRUD + /statistics + /import

字段:enterpriseName、name、gender、age、idCard、phone、unitName、expertType(内部/外部)、skillField、joinProjects、reviewInfo、qualifyCertificate、photo、intro、continueEduCertificate、secretAgreement、hireAgreement、remark、filePath


13. 在线练习 / 考试 ​

模块Base主要接口
电子题库/edu/questionGET /page、GET /{id}、POST /、PUT /、DELETE /{ids}、GET /byPaper/{paperId}
试卷/edu/paper/save /update /page /list /get/{paperId} /del/{examPaperId}
考试/edu/examREST:POST/ GET/ GET/{id} PUT/ DELETE/{id} 等
培训计划/edu/train-plan/page GET/ POST/ PUT/ DELETE/{id} 等

题库新增字段: enterpriseName、standardCategory、remark
原有:questionType、questionItem、questionOptions、questionAnswers、score、paperId 等


三、菜单对接建议(按反馈单顺序) ​

菜单名前端路由建议接口 Base
外部标准制修订管理/external-standardenterpriseJoinInfo
标准化试点示范管理/pilotenterprisePilotProject
标准化技术组织参与管理/organizeenterpriseOrganize + Person
标准自我声明公开管理/statementstandardStatement
企业标准体系管理/system-buildsystemBuild
标准化良好行为创建和评价/good-behaviorstandardizationWorkApplication + 子页
├ 内审员队伍/good-behavior/auditorauditor
├ 自评计划/记录/报告/good-behavior/assessmentselfAssessment* / assessmentReport
├ 第三方评价/good-behavior/third-partythirdPartyEval
├ 提醒看板/good-behavior/remindremind
标准化培训管理/trainingstandardTraining + Certificate + Hire + edu
标准化研究项目管理/studyStandardStudy
标准化经费、奖励管理/funds-rewardfunds + reward
标准化宣传推广/propagandapropaganda
通知公告管理/noticenotice
标准化专家管理/expertstandardExpert
电子题库 / 在线考试/edu/*question / exam / paper

菜单改名:

  • 「企业标准化工作确认」→「标准化良好行为创建和评价」
  • 「标准化活动管理」→「标准化研究项目管理」
  • 去掉「自我声明评分项管理」「自我声明报告」(报告作良好行为附件)

四、流程对接要点 ​

业务流程编码发起待办打开详情
外部标准制修订external_standard_revisePOST .../enterpriseJoinInfo/startGET .../infos/process/{processInstanceId}
奖励评审standard_reward_reviewPOST .../reward/startGET .../reward/detailByProcess/{processInstanceId}

发起前先 save/submit 拿到业务 id,再调 /start。


五、导入模板字段(Excel 表头) ​

专家 POST .../standardExpert/import ​

企业名称、姓名、性别、联系方式、单位名称、专家类型、擅长领域、备注

内审员 POST .../auditor/import ​

企业名称、姓名、性别、联系方式、所属部门、类型、证书编号、备注

研究项目 POST .../StandardStudy/import ​

企业名称、项目类别、项目名称、项目级别、负责人、联系方式、项目实施阶段、备注

宣传推广 POST .../propaganda/import ​

企业名称、宣传主题、发布渠道、发布链接、信息内容、备注

外部标准 POST .../enterpriseJoinInfo/import ​

以 /export-template 下载为准


六、字典建议(前端/系统字典) ​

字典值示例
标准类别国际/国家/行业/地方/团体/集团企业标准
项目阶段(制修订)立项、起草、征求意见、审查、批准、发布
项目阶段(试点/研究)立项、建设、验收
创建类型首次创建、等级提升、到期复评
良好行为等级A、AA、AAA、AAAA、AAAAA
良好行为阶段创建中、评价、取证
组织级别见第三节
培训类型/方式内部/外部;授课/实践/研讨
是否类是/否(测试、取证、聘用)
宣传主题/渠道见第十节
通知类型见第十一节
专家类型内部专家、外部专家
建立情况已建立、未建立、建设中

七、前端待办 Checklist ​

  1. 执行库脚本后联调(V20260329、V20260330)
  2. 按第三节配置菜单与权限按钮
  3. 各台账页补齐新字段表单与列表列
  4. 对接流程:制修订、奖励评审(含待办跳转)
  5. 良好行为:主台账 + 内审员 + 自评 + 第三方 + 提醒页
  6. 培训:主表 + 证书 + 聘用;考试/计划跳转 edu 模块
  7. 新建页:体系概况、宣传、公告、专家、题库
  8. 导入按钮对接有 /import 的模块
  9. (可选)定时/进入首页拉 remind/overview 做红点提醒