Commit Graph

4 Commits (3cc7ac7f8b3e1bf260f753911e4106f655bdefec)

Author SHA1 Message Date
YunaiV 76f47a476b 🎨 style(mes): 统一代码格式,优化可读性 2026-03-30 23:23:23 +08:00
YunaiV 418de29138 refactor(mes): 优化检验结果表单,简化接口调用和字段处理
1. API:合并 getResult + getDetailTemplate 为 getDetail(qcId, qcType, id?),
   精简 VO 类型定义,移除后端不再返回的关联字段
2. Form:open 方法统一 formData.value = data 赋值(不再区分 create/update),
   合并 valueFloat/valueInteger 为 valueNumber,
   getDictOptions 改为 getStrDictOptions,补全 JSDoc 注释
3. 新增 IPQC 模块页面(index.vue/IpqcForm.vue/IpqcLineList.vue)及 API
2026-02-22 08:36:21 +08:00
YunaiV db33e04451 feat(mes): refactor inspection result types and add new result detail structure 2026-02-21 23:42:34 +08:00
YunaiV 47c84d3104 refactor(mes): 质检指标 resultType 改为 number 类型,resultSpec 重命名为 resultSpecification,result 目录重命名为 indicatorresult
1. indicator/index.ts:resultType 从 string 改为 number,resultSpec 重命名为 resultSpecification
2. IndicatorForm.vue:getStrDictOptions 改为 getIntDictOptions,条件判断改为数字比较(4=DICT, 5=FILE)
3. indicator/index.vue:结果值类型筛选下拉改用 getIntDictOptions
4. qc/result 目录整体重命名为 qc/indicatorresult(views + api),更新 IqcForm.vue 的引用路径
2026-02-21 22:40:41 +08:00