feat(production-master-data): 新增工艺流程管理完整模块
Some checks failed
Release pipeline / publish (push) Has been cancelled
Release pipeline / Always run job (push) Has been cancelled

- 添加工艺流程、流程卡工序的全套CRUD及复制接口
- 新增工艺流程列表页与流程卡详情页的路由和页面组件
- 补充产品、工序分类、工序子类的全量查询接口
- 优化弹窗表单组件,支持字段禁用与focus/blur/change事件回调
- 修复工序单元页面的国际化调用和权限配置问题
- 补充中英文多语言国际化文案
- 新增该模块的功能测试文档
This commit is contained in:
sheng
2026-06-04 17:07:15 +08:00
parent b6c362d906
commit 3f546564cc
15 changed files with 2071 additions and 36 deletions

View File

@@ -68,7 +68,10 @@
:type="col.inputType || 'text'"
:autosize="col.autosize"
:clearable="col.clearable !== false"
:disabled="!!col.disabled"
:style="col.style"
@focus="handleFieldEvent(col, 'focus', $event)"
@blur="handleFieldEvent(col, 'blur', $event)"
/>
<!-- ===== 下拉选择类型 ===== -->
<!--
@@ -83,6 +86,9 @@
:clearable="col.clearable !== false"
:style="col.style"
:filterable="col.filterable !== false"
:disabled="!!col.disabled"
@change="handleFieldEvent(col, 'change', $event)"
@focus="handleFieldEvent(col, 'focus', $event)"
>
<el-option
v-for="opt in col.options"
@@ -255,6 +261,14 @@ export default {
}
},
methods: {
handleFieldEvent (col, eventName, value) {
if (!col) return
const handlerKey = 'on' + eventName.charAt(0).toUpperCase() + eventName.slice(1)
const handler = col[handlerKey]
if (typeof handler === 'function') {
handler(value, col, this.formData)
}
},
/**
* 点击确定按钮
* 1. 调用 el-form 的 validate 方法验证所有字段