feat(production-master-data): 新增工艺流程管理完整模块
- 添加工艺流程、流程卡工序的全套CRUD及复制接口 - 新增工艺流程列表页与流程卡详情页的路由和页面组件 - 补充产品、工序分类、工序子类的全量查询接口 - 优化弹窗表单组件,支持字段禁用与focus/blur/change事件回调 - 修复工序单元页面的国际化调用和权限配置问题 - 补充中英文多语言国际化文案 - 新增该模块的功能测试文档
This commit is contained in:
@@ -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 方法验证所有字段
|
||||
|
||||
Reference in New Issue
Block a user