Commit 0a7be219 by 张恒

refactor(gxgl): 重构工艺管理组件配置和数据模型

- 添加备注字段到表单配置中
- 移除额定工时字段配置
- 修复编码组件占位符文本错误
- 更新多个字段的key值以确保唯一性
- 修正默认选择值和占位符文本
- 调整子表单产品列表的数据映射关系
- 重构数据模型接口定义,更新字段名称和结构
- 移除采集方案相关的监听和处理逻辑
- 更新工作流程权限配置中的字段映射
- 优化产品列表数据加载和处理方式
parent 216523fe
...@@ -11,6 +11,8 @@ export interface RokeProcessPageParams extends BasicPageParams { ...@@ -11,6 +11,8 @@ export interface RokeProcessPageParams extends BasicPageParams {
categoryId: string; categoryId: string;
collectionSchemeId: string; collectionSchemeId: string;
note: string;
} }
/** /**
...@@ -26,8 +28,6 @@ export interface RokeProcessPageModel { ...@@ -26,8 +28,6 @@ export interface RokeProcessPageModel {
categoryId: string; categoryId: string;
collectionSchemeId: string; collectionSchemeId: string;
ratedWorkingHours: string;
} }
/** /**
...@@ -122,7 +122,7 @@ export interface RokeProcessModel { ...@@ -122,7 +122,7 @@ export interface RokeProcessModel {
mesProcessProductList?: MesProcessProductModel; mesProcessProductList?: MesProcessProductModel;
mesProcessSchemeList?: MesProcessSchemeModel; mesCollectionItemList?: MesCollectionItemModel;
} }
/** /**
...@@ -152,22 +152,58 @@ export interface MesProcessProductModel { ...@@ -152,22 +152,58 @@ export interface MesProcessProductModel {
isFeeding: string; isFeeding: string;
number: string; number: string;
name: string;
code: string;
} }
/** /**
* @description: MesProcessScheme表类型 * @description: MesCollectionItem表类型
*/ */
export interface MesProcessSchemeModel { export interface MesCollectionItemModel {
id: string; id: string;
processId: string; code: string;
collectionSchemeId: string; name: string;
required: string; required: string;
categoryId: string;
contentType: string;
dataType: string;
dictId: string;
relatedModelId: string;
relatedModelName: string;
relatedModelDomain: string;
standardValue: string;
upperValue: string;
lowerValue: string;
note: string; note: string;
companyId: string;
qualityCategoryId: string;
analysisMethod: string;
qualityMethodId: string;
destructive: string;
keyItem: string;
deleteMark: string; deleteMark: string;
createDate: string; createDate: string;
......
...@@ -148,8 +148,9 @@ ...@@ -148,8 +148,9 @@
function customClick(item) { function customClick(item) {
if (item.key == 'confirm') { if (item.key == 'confirm') {
handleSubmit(); handleSubmit();
} else if (item.key == 'cancel') { } else if (item.key == 'cancel' && props.formType !== 'normal') {
handleClose(); handleClose();
closeModal();
} else if (item.key == 'reset') { } else if (item.key == 'reset') {
formRef.value.resetFields(); formRef.value.resetFields();
} else { } else {
...@@ -158,7 +159,6 @@ ...@@ -158,7 +159,6 @@
} }
function handleClose() { function handleClose() {
formRef.value.resetFields(); formRef.value.resetFields();
closeModal();
} }
</script> </script>
......
...@@ -77,7 +77,7 @@ export const permissionList = [ ...@@ -77,7 +77,7 @@ export const permissionList = [
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'number', type: 'number',
key: 'ca8257a46070472e9639110b11f7f3bd', key: '4a92294f40b2406a9ce865678f3b74e4',
children: [], children: [],
options: {}, options: {},
defaultValue: 0, defaultValue: 0,
...@@ -97,7 +97,6 @@ export const permissionList = [ ...@@ -97,7 +97,6 @@ export const permissionList = [
key: '6a8f658eb0e046e48c3dac472c0e51ae', key: '6a8f658eb0e046e48c3dac472c0e51ae',
children: [], children: [],
options: {}, options: {},
defaultValue: '2005534898818441218',
}, },
{ {
required: false, required: false,
...@@ -155,23 +154,8 @@ export const permissionList = [ ...@@ -155,23 +154,8 @@ export const permissionList = [
isSaveTable: false, isSaveTable: false,
showChildren: false, showChildren: false,
tableName: 'mesProcessProductList', tableName: 'mesProcessProductList',
fieldName: '产品物料id',
fieldId: 'productId',
type: 'Input',
key: '6e053d43971d4157b0f9118f9cbbb4bb',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesProcessProductList',
fieldName: '编号', fieldName: '编号',
fieldId: 'bianHao3907', fieldId: 'code',
type: 'Input', type: 'Input',
key: '00c0e93b675841f48265b896515a5241', key: '00c0e93b675841f48265b896515a5241',
children: [], children: [],
...@@ -186,7 +170,7 @@ export const permissionList = [ ...@@ -186,7 +170,7 @@ export const permissionList = [
showChildren: false, showChildren: false,
tableName: 'mesProcessProductList', tableName: 'mesProcessProductList',
fieldName: '名称', fieldName: '名称',
fieldId: 'mingChen2461', fieldId: 'name',
type: 'Input', type: 'Input',
key: '91863c5a0ec24d76ade8735cd401059b', key: '91863c5a0ec24d76ade8735cd401059b',
children: [], children: [],
...@@ -231,84 +215,9 @@ export const permissionList = [ ...@@ -231,84 +215,9 @@ export const permissionList = [
showChildren: false, showChildren: false,
tableName: 'mesProcessProductList', tableName: 'mesProcessProductList',
fieldName: '备注', fieldName: '备注',
fieldId: 'beiZhu7713', fieldId: 'bz',
type: 'Input',
key: '86ad9fb6998c4d0ea8e11ed0ef6585cb',
children: [],
},
],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: true,
showChildren: false,
tableName: 'mesProcessSchemeList',
fieldName: '',
fieldId: 'mesProcessSchemeList',
type: 'form',
key: '3fd474ce5f8c4bf78bd86dc701cbdc4f',
children: [
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesProcessSchemeList',
fieldName: '编码',
fieldId: 'bianMa8881',
type: 'Input',
key: '3999831fde0a4e879f64f33eb2a1edd1',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesProcessSchemeList',
fieldName: '名称',
fieldId: 'mingChen4867',
type: 'Input',
key: 'ab6576e960ee44b4af09975e64088f05',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesProcessSchemeList',
fieldName: '数据类型',
fieldId: 'mingChen3506',
type: 'Input',
key: 'f086101bc78b4471b3cb95b3970c368e',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesProcessSchemeList',
fieldName: '是否必填',
fieldId: 'mingChen6235',
type: 'Input', type: 'Input',
key: '5d40e3c7f274461aba1f041c5f33c13d', key: '607b81d8885746409998c64f0a55a56e',
children: [], children: [],
}, },
{ {
...@@ -319,11 +228,11 @@ export const permissionList = [ ...@@ -319,11 +228,11 @@ export const permissionList = [
isSubTable: false, isSubTable: false,
isSaveTable: false, isSaveTable: false,
showChildren: false, showChildren: false,
tableName: 'mesProcessSchemeList', tableName: 'mesProcessProductList',
fieldName: '备注', fieldName: '产品物料id',
fieldId: 'beiZhu2454', fieldId: 'productId',
type: 'Input', type: 'Input',
key: '7674096c8feb431a8689c584a93c5b8a', key: '6e053d43971d4157b0f9118f9cbbb4bb',
children: [], children: [],
}, },
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment