Commit 0c7e68dc by 张恒

feat(gdgl): 更新工单管理配置和数据模型

- 添加工单编号字段到搜索表单和表格列配置
- 移除产品名称下拉选择组件,简化搜索条件
- 删除熔次号字段,调整表格列结构
- 添加上传组件用于技术要求文件上传
- 移除字段的最大长度限制配置
- 新增子表单配置包括报工信息、数据采集、质量检验、投料信息等模块
- 添加工单相关关联数据模型定义
- 扩展MesProductionGongdanPageParams接口包含工单编号参数
- 定义多个新的数据收集相关模型接口
parent 529a1a43
......@@ -4,11 +4,9 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
* @description: MesProductionGongdan分页参数 模型
*/
export interface MesProductionGongdanPageParams extends BasicPageParams {
rwbh: string;
jhbh: string;
bh: string;
cpid: string;
rwbh: string;
}
/**
......@@ -17,6 +15,8 @@ export interface MesProductionGongdanPageParams extends BasicPageParams {
export interface MesProductionGongdanPageModel {
id: string;
bh: string;
jhbh: string;
rwbh: string;
......@@ -27,8 +27,6 @@ export interface MesProductionGongdanPageModel {
zch: string;
rch: string;
jhksrq: string;
jhjsrq: string;
......@@ -44,6 +42,8 @@ export interface MesProductionGongdanModel {
deleteMark: string;
bh: string;
rwbh: string;
jhbh: string;
......@@ -123,6 +123,381 @@ export interface MesProductionGongdanModel {
modifyDate: string;
modifyUserId: string;
mesGongdanDataCollectionList?: MesGongdanDataCollectionModel;
mesGongdanMaterialFeedingList?: MesGongdanMaterialFeedingModel;
mesGongdanReportList?: MesGongdanReportModel;
mesGongdanScCollectionList?: MesGongdanScCollectionModel;
mesGongdanQualityInspectionList?: MesGongdanQualityInspectionModel;
}
/**
* @description: MesGongdanDataCollection表类型
*/
export interface MesGongdanDataCollectionModel {
id: string;
deleteMark: string;
gdId: string;
cjx: string;
cjz: string;
bzz: string;
bz: string;
p1: string;
p2: string;
p3: string;
p4: string;
p5: string;
p6: string;
p7: string;
p8: string;
p9: string;
p10: string;
p11: string;
p12: string;
p13: string;
p14: string;
p15: string;
p16: string;
p17: string;
p18: string;
p19: string;
p20: string;
createDate: string;
createUserId: string;
modifyDate: string;
modifyUserId: string;
}
/**
* @description: MesGongdanMaterialFeeding表类型
*/
export interface MesGongdanMaterialFeedingModel {
id: string;
deleteMark: string;
gdId: string;
wlbh: string;
wlmc: string;
tlsl: string;
tlr: string;
bz: string;
p1: string;
p2: string;
p3: string;
p4: string;
p5: string;
p6: string;
p7: string;
p8: string;
p9: string;
p10: string;
p11: string;
p12: string;
p13: string;
p14: string;
p15: string;
p16: string;
p17: string;
p18: string;
p19: string;
p20: string;
createDate: string;
createUserId: string;
modifyDate: string;
modifyUserId: string;
}
/**
* @description: MesGongdanReport表类型
*/
export interface MesGongdanReportModel {
id: string;
gdId: string;
deleteMark: string;
bh: string;
bgbh: string;
gdbh: string;
rch: string;
zch: string;
hj: string;
cplb: string;
rzl: string;
zxbz: string;
gx: string;
wgs: string;
gs: string;
bgsj: string;
bgr: string;
bgzz: string;
zyr: string;
bz: string;
p1: string;
p2: string;
p3: string;
p4: string;
p5: string;
p6: string;
p7: string;
p8: string;
p9: string;
p10: string;
p11: string;
p12: string;
p13: string;
p14: string;
p15: string;
p16: string;
p17: string;
p18: string;
p19: string;
p20: string;
createDate: string;
createUserId: string;
modifyDate: string;
modifyUserId: string;
}
/**
* @description: MesGongdanScCollection表类型
*/
export interface MesGongdanScCollectionModel {
id: string;
deleteMark: string;
gdId: string;
cjx: string;
cjz: string;
bzz: string;
bz: string;
p1: string;
p2: string;
p3: string;
p4: string;
p5: string;
p6: string;
p7: string;
p8: string;
p9: string;
p10: string;
p11: string;
p12: string;
p13: string;
p14: string;
p15: string;
p16: string;
p17: string;
p18: string;
p19: string;
p20: string;
createDate: string;
createUserId: string;
modifyDate: string;
modifyUserId: string;
}
/**
* @description: MesGongdanQualityInspection表类型
*/
export interface MesGongdanQualityInspectionModel {
id: string;
deleteMark: string;
gdId: string;
zjdh: string;
zjjg: string;
jyy: string;
zjsj: string;
bz: string;
p1: string;
p2: string;
p3: string;
p4: string;
p5: string;
p6: string;
p7: string;
p8: string;
p9: string;
p10: string;
p11: string;
p12: string;
p13: string;
p14: string;
p15: string;
p16: string;
p17: string;
p18: string;
p19: string;
p20: string;
createDate: string;
createUserId: string;
modifyDate: string;
modifyUserId: string;
}
/**
......
import { FormProps, FormSchema } from '/@/components/Form';
import { BasicColumn } from '/@/components/Table';
import { uploadApi } from '/@/api/sys/upload';
export const searchFormSchema: FormSchema[] = [
{
field: 'rwbh',
label: '任务编号',
defaultValue: '',
field: 'bh',
label: '工单编号',
defaultValue: undefined,
component: 'Input',
},
{
field: 'jhbh',
label: '计划编号',
defaultValue: '',
field: 'rwbh',
label: '任务编号',
defaultValue: undefined,
component: 'Input',
},
{
field: 'cpid',
label: '产品名称',
defaultValue: '',
component: 'XjrSelect',
componentProps: {
datasourceType: 'api',
apiConfig: {
path: '/jcxx/getProduct',
method: 'GET',
apiId: 'copy1767517099244d66500',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select *,id as value,cpmc as label from mes_base_product_info where delete_mark = 0";\r\nreturn db.select(sql);',
},
labelField: 'label',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
},
},
];
export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'bh',
title: '工单编号',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'jhbh',
title: '计划编号',
componentType: 'input',
......@@ -110,19 +98,6 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'rch',
title: '熔次号',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'jhksrq',
title: '计划开始时间',
componentType: 'date',
......@@ -230,6 +205,40 @@ export const formProps: FormProps = {
span: 8,
list: [
{
key: 'e439465000834adeb3e48c8cacb93715',
field: 'bh',
label: '工单编号',
type: 'input',
component: 'Input',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: true,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: '44642f34e3ef4aaba849bcb20904bfe2',
field: 'rwbh',
label: '任务编号',
......@@ -242,7 +251,6 @@ export const formProps: FormProps = {
span: 7,
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -276,9 +284,7 @@ export const formProps: FormProps = {
span: 7,
defaultValue: 0,
min: 0,
max: null,
step: 0.01,
maxlength: null,
disabled: false,
showLabel: true,
controls: true,
......@@ -304,9 +310,7 @@ export const formProps: FormProps = {
span: 7,
defaultValue: 0,
min: 0,
max: null,
step: 1,
maxlength: null,
disabled: false,
showLabel: true,
controls: true,
......@@ -332,7 +336,6 @@ export const formProps: FormProps = {
span: 7,
defaultValue: '',
placeholder: '请输入执行标准',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -374,9 +377,7 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: null,
datasourceType: 'api',
params: null,
labelField: 'label',
valueField: 'value',
apiConfig: {
......@@ -422,7 +423,6 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: null,
datasourceType: 'dic',
params: { itemId: '2003761375221407745' },
labelField: 'name',
......@@ -470,9 +470,7 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: null,
datasourceType: 'api',
params: null,
labelField: 'label',
valueField: 'value',
apiConfig: {
......@@ -497,6 +495,31 @@ export const formProps: FormProps = {
style: { width: '100%' },
},
},
{
key: '7a484b03fd52412f8698284631cfefc4',
field: 'jsyq',
label: '技术要求',
type: 'upload',
component: 'Upload',
colProps: { span: 24 },
componentProps: {
api: uploadApi,
span: 7,
defaultValue: '',
accept: '',
maxNumber: 5,
maxSize: 5,
showLabel: true,
multiple: false,
disabled: false,
required: false,
isShow: true,
events: {},
listType: 'text',
sourceType: 'album,camera',
tooltipConfig: { visible: false, title: '提示文本' },
},
},
],
},
{
......@@ -515,7 +538,6 @@ export const formProps: FormProps = {
span: 7,
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -557,9 +579,7 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: null,
datasourceType: 'api',
params: null,
labelField: 'label',
valueField: 'value',
apiConfig: {
......@@ -604,9 +624,7 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: null,
datasourceType: 'api',
params: null,
labelField: 'label',
valueField: 'value',
apiConfig: {
......@@ -653,7 +671,6 @@ export const formProps: FormProps = {
],
defaultSelect: '',
datasourceType: 'api',
params: null,
labelField: 'label',
valueField: 'value',
apiConfig: {
......@@ -707,15 +724,9 @@ export const formProps: FormProps = {
name: 'cjid',
value:
'{"bindField":"sccj","fieldKey":"129f257640b143578df327739109cd98"}',
description: null,
required: true,
dataType: 'String',
type: null,
defaultValue: '0',
validateType: null,
error: null,
expression: null,
children: null,
bindType: 'data',
},
],
......@@ -756,9 +767,7 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: null,
datasourceType: 'api',
params: null,
labelField: 'label',
valueField: 'value',
apiConfig: {
......@@ -813,7 +822,6 @@ export const formProps: FormProps = {
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
params: null,
style: {},
},
},
......@@ -835,7 +843,6 @@ export const formProps: FormProps = {
span: 7,
defaultValue: '',
placeholder: '请输入铸次号',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -869,7 +876,6 @@ export const formProps: FormProps = {
span: 7,
defaultValue: '',
placeholder: '请输入铸造量',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -903,7 +909,6 @@ export const formProps: FormProps = {
span: 7,
defaultValue: '',
placeholder: '请输入熔次号',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
......@@ -991,7 +996,6 @@ export const formProps: FormProps = {
span: 7,
defaultValue: '',
placeholder: '请输入备注',
maxlength: null,
rows: 4,
autoSize: false,
showCount: false,
......@@ -1024,7 +1028,7 @@ export const formProps: FormProps = {
},
},
{
key: 'c311f9365e42443f9407bf77f261bee3',
key: '5ddb609cd16c4f06a850181c1174b0d5',
field: '',
label: '',
type: 'tab',
......@@ -1041,34 +1045,1034 @@ export const formProps: FormProps = {
imageUrl: '',
conFolderId: '',
conImageUrl: '',
list: [],
list: [
{
key: 'f6d19f4efe76492a92b01559e0161b67',
label: '',
field: 'mesGongdanReportList',
type: 'form',
component: 'SubForm',
required: true,
colProps: { span: 24 },
componentProps: {
mainKey: 'mesGongdanReportList',
columns: [
{
key: '52c0cefc838d49559f893c5f0df5c415',
title: '编号',
dataIndex: 'bh',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
span: 24,
name: '数据采集详情',
key: '8b197117182e456184210b4de17e6c55',
title: '合金',
dataIndex: 'hj',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
activeColor: '#1c8dff',
folderId: '',
imageUrl: '',
conFolderId: '',
conImageUrl: '',
list: [],
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
span: 24,
name: '质检信息',
key: 'ecc71641608a45338b75896b3d74d281',
title: '完工数',
dataIndex: 'wgs',
componentType: 'InputNumber',
defaultValue: null,
componentProps: {
width: '100%',
span: '',
defaultValue: null,
min: 0,
max: null,
step: 0.01,
maxlength: null,
disabled: false,
showLabel: true,
controls: true,
required: false,
subTotal: false,
isShow: true,
rules: [],
events: {},
tooltipConfig: { visible: false, title: '提示文本' },
listStyle: "return 'width:100%'",
},
},
{
key: '02a6289d315f4dfba0bd9c2b221a6c13',
title: '工时',
dataIndex: 'gs',
componentType: 'InputNumber',
defaultValue: null,
componentProps: {
width: '100%',
span: '',
defaultValue: null,
min: 0,
max: null,
step: 0.01,
maxlength: null,
disabled: false,
showLabel: true,
controls: true,
required: false,
subTotal: false,
isShow: true,
rules: [],
events: {},
tooltipConfig: { visible: false, title: '提示文本' },
listStyle: "return 'width:100%'",
},
},
{
key: '2b194358608446fa8bbfa70277355b0e',
title: '报工时间',
dataIndex: 'bgsj',
componentType: 'DatePicker',
defaultValue: '',
componentProps: {
span: '',
defaultValue: '',
width: '100%',
placeholder: '',
format: 'YYYY-MM-DD HH:mm:ss',
showLabel: true,
allowClear: true,
disabled: false,
required: false,
isShow: true,
rules: [],
events: {},
isGetCurrent: false,
tooltipConfig: { visible: false, title: '提示文本' },
searchType: 'time',
},
},
{
key: 'd1be2664bb724b73a86b84338206a6cf',
title: '报工人',
dataIndex: 'bgr',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
activeColor: '#1c8dff',
folderId: '',
imageUrl: '',
conFolderId: '',
conImageUrl: '',
list: [],
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: '18931140853340a59e8ab5315752d452',
title: '报工班组',
dataIndex: 'bgzz',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: '6564108f49f548a799a4f0e6d8b209c3',
title: '作业人',
dataIndex: 'zyr',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: 'c99c48913605403db427666e6b90fc9b',
title: '备注',
dataIndex: 'bz',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
],
span: '24',
preloadType: 'api',
apiConfig: {},
itemId: '',
dicOptions: [],
useSelectButton: false,
buttonName: '选择数据',
showLabel: true,
showComponentBorder: true,
showBorder: false,
bordercolor: '#f0f0f0',
bordershowtype: [true, true, true, true],
borderwidth: 1,
showIndex: true,
isShow: true,
multipleHeads: [],
buttonList: [],
topButtonList: [],
isExport: false,
isImport: false,
isDeleteSelected: false,
isListView: false,
viewList: [],
isShowAdd: false,
isShowDelete: false,
hasCheckedCol: false,
events: {},
showPagenation: true,
},
},
],
},
{
span: 24,
name: '数据采集详情',
prefix: '',
suffix: '',
activeColor: '#1c8dff',
folderId: '',
imageUrl: '',
conFolderId: '',
conImageUrl: '',
list: [
{
key: '6858fe13441243c790a63bf5b974435b',
label: '',
field: 'mesGongdanDataCollectionList',
type: 'form',
component: 'SubForm',
required: true,
colProps: { span: 24 },
componentProps: {
mainKey: 'mesGongdanDataCollectionList',
columns: [
{
key: '89af383317a948508759eadd9d48adb6',
title: '采集项',
dataIndex: 'cjx',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: 'b17eaa6f85024c26b22c9551354e3c5a',
title: '采集值',
dataIndex: 'cjz',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: '63ab9a80ee1945399e73dd9310e91aa8',
title: '标准值',
dataIndex: 'bzz',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: '553e79c992b74ecb91c3bf3ccd2af87c',
title: '备注',
dataIndex: 'bz',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
],
span: '24',
preloadType: 'api',
apiConfig: {},
itemId: '',
dicOptions: [],
useSelectButton: false,
buttonName: '选择数据',
showLabel: true,
showComponentBorder: true,
showBorder: false,
bordercolor: '#f0f0f0',
bordershowtype: [true, true, true, true],
borderwidth: 1,
showIndex: true,
isShow: true,
multipleHeads: [],
buttonList: [],
topButtonList: [],
isExport: false,
isImport: false,
isDeleteSelected: false,
isListView: false,
viewList: [],
isShowAdd: false,
isShowDelete: false,
hasCheckedCol: false,
events: {},
showPagenation: true,
},
},
],
},
{
span: 24,
name: '质检信息',
prefix: '',
suffix: '',
activeColor: '#1c8dff',
folderId: '',
imageUrl: '',
conFolderId: '',
conImageUrl: '',
list: [
{
key: '24408a8dcca1423789dcdeff031e4d9f',
label: '',
field: 'mesGongdanQualityInspectionList',
type: 'form',
component: 'SubForm',
required: true,
colProps: { span: 24 },
componentProps: {
mainKey: 'mesGongdanQualityInspectionList',
columns: [
{
key: '62f5f554a68244f5b721f73d4c68988e',
title: '质检单号',
dataIndex: 'zjdh',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: '19ec9fc3d6394fcab8b472d857a4f31b',
title: '质检结果',
dataIndex: 'zjjg',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: 'e6d92e00e9da4bb59ca4e664119ae183',
title: '质检员',
dataIndex: 'jyy',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: 'c6d641ee7dfc4336ae157553c1a4e4e9',
title: '质检信息',
dataIndex: 'zjsj',
componentType: 'DatePicker',
defaultValue: '',
componentProps: {
span: '',
defaultValue: '',
width: '100%',
placeholder: '',
format: 'YYYY-MM-DD HH:mm:ss',
showLabel: true,
allowClear: true,
disabled: false,
required: false,
isShow: true,
rules: [],
events: {},
isGetCurrent: false,
tooltipConfig: { visible: false, title: '提示文本' },
searchType: 'time',
},
},
{
key: '3b9215b704c74d9bad707adf6c04f50f',
title: '备注',
dataIndex: 'bz',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
],
span: '24',
preloadType: 'api',
apiConfig: {},
itemId: '',
dicOptions: [],
useSelectButton: false,
buttonName: '选择数据',
showLabel: true,
showComponentBorder: true,
showBorder: false,
bordercolor: '#f0f0f0',
bordershowtype: [true, true, true, true],
borderwidth: 1,
showIndex: true,
isShow: true,
multipleHeads: [],
buttonList: [],
topButtonList: [],
isExport: false,
isImport: false,
isDeleteSelected: false,
isListView: false,
viewList: [],
isShowAdd: false,
isShowDelete: false,
hasCheckedCol: false,
events: {},
showPagenation: true,
},
},
],
},
{
span: 0,
name: '投料信息',
list: [
{
key: '3de87256379c41d18252370cb451630f',
label: '',
field: 'mesGongdanMaterialFeedingList',
type: 'form',
component: 'SubForm',
required: true,
colProps: { span: 24 },
componentProps: {
mainKey: 'mesGongdanMaterialFeedingList',
columns: [
{
key: 'd9196faf398347cd958ec21de698e780',
title: '物料编号',
dataIndex: 'wlbh',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: 'f255a9b82d6646d6ac6750c9fbf87329',
title: '物料名称',
dataIndex: 'wlmc',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: '43490105227045229f2f1816f6ff8474',
title: '数量',
dataIndex: 'tlsl',
componentType: 'InputNumber',
defaultValue: 0,
componentProps: {
width: '100%',
span: '',
defaultValue: 0,
min: 0,
max: null,
step: 0.01,
maxlength: null,
disabled: false,
showLabel: true,
controls: true,
required: false,
subTotal: false,
isShow: true,
rules: [],
events: {},
tooltipConfig: { visible: false, title: '提示文本' },
listStyle: "return 'width:100%'",
},
},
{
key: 'c9f4ec8bb7a944d19f1e6ce4582c3509',
title: '投料人',
dataIndex: 'tlr',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: '57d915aeb50f490cbe2970a29921989b',
title: '备注',
dataIndex: 'bz',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
],
span: '24',
preloadType: 'api',
apiConfig: {},
itemId: '',
dicOptions: [],
useSelectButton: false,
buttonName: '选择数据',
showLabel: true,
showComponentBorder: true,
showBorder: false,
bordercolor: '#f0f0f0',
bordershowtype: [true, true, true, true],
borderwidth: 1,
showIndex: true,
isShow: true,
multipleHeads: [],
buttonList: [],
topButtonList: [],
isExport: false,
isImport: false,
isDeleteSelected: false,
isListView: false,
viewList: [],
isShowAdd: false,
isShowDelete: false,
hasCheckedCol: false,
events: {},
showPagenation: true,
},
},
],
},
{
span: 0,
name: '生产采集信息',
list: [
{
key: 'c9e3e41674b841a285aca529b7ef8a64',
label: '',
field: 'mesGongdanScCollectionList',
type: 'form',
component: 'SubForm',
required: true,
colProps: { span: 24 },
componentProps: {
mainKey: 'mesGongdanScCollectionList',
columns: [
{
key: '5e21bdbe50864ceba2f6e4a54f497427',
title: '采集项',
dataIndex: 'cjx',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: 'ee243d18029947e19f527e1b38417d3b',
title: '采集值',
dataIndex: 'cjz',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: '4d07e4bfe0224ba2ac17464973bc42dc',
title: '备注',
dataIndex: 'bz',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
],
span: '24',
preloadType: 'api',
apiConfig: {},
itemId: '',
dicOptions: [],
useSelectButton: false,
buttonName: '选择数据',
showLabel: true,
showComponentBorder: true,
showBorder: false,
bordercolor: '#f0f0f0',
bordershowtype: [true, true, true, true],
borderwidth: 1,
showIndex: true,
isShow: true,
multipleHeads: [],
buttonList: [],
topButtonList: [],
isExport: false,
isImport: false,
isDeleteSelected: false,
isListView: false,
viewList: [],
isShowAdd: false,
isShowDelete: false,
hasCheckedCol: false,
events: {},
showPagenation: true,
},
},
],
},
{ span: 0, name: '投料信息', list: [] },
{ span: 0, name: '生产采集信息', list: [] },
],
componentProps: { tabPosition: 'top', size: 'default', type: 'line', isShow: true },
},
......
......@@ -6,6 +6,23 @@ export const permissionList = [
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '工单编号',
fieldId: 'bh',
isSubTable: false,
showChildren: true,
type: 'input',
key: 'e439465000834adeb3e48c8cacb93715',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
view: true,
edit: false,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '任务编号',
fieldId: 'rwbh',
isSubTable: false,
......@@ -118,6 +135,23 @@ export const permissionList = [
{
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '技术要求',
fieldId: 'jsyq',
isSubTable: false,
showChildren: true,
type: 'upload',
key: '7a484b03fd52412f8698284631cfefc4',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
view: true,
edit: false,
disabled: false,
isSaveTable: false,
......@@ -331,4 +365,469 @@ export const permissionList = [
options: {},
defaultValue: '',
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: true,
showChildren: false,
tableName: 'mesGongdanReportList',
fieldName: '',
fieldId: 'mesGongdanReportList',
type: 'form',
key: 'f6d19f4efe76492a92b01559e0161b67',
children: [
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanReportList',
fieldName: '编号',
fieldId: 'bh',
type: 'Input',
key: '52c0cefc838d49559f893c5f0df5c415',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanReportList',
fieldName: '合金',
fieldId: 'hj',
type: 'Input',
key: '8b197117182e456184210b4de17e6c55',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanReportList',
fieldName: '完工数',
fieldId: 'wgs',
type: 'InputNumber',
key: 'ecc71641608a45338b75896b3d74d281',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanReportList',
fieldName: '工时',
fieldId: 'gs',
type: 'InputNumber',
key: '02a6289d315f4dfba0bd9c2b221a6c13',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanReportList',
fieldName: '报工时间',
fieldId: 'bgsj',
type: 'DatePicker',
key: '2b194358608446fa8bbfa70277355b0e',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanReportList',
fieldName: '报工人',
fieldId: 'bgr',
type: 'Input',
key: 'd1be2664bb724b73a86b84338206a6cf',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanReportList',
fieldName: '报工班组',
fieldId: 'bgzz',
type: 'Input',
key: '18931140853340a59e8ab5315752d452',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanReportList',
fieldName: '作业人',
fieldId: 'zyr',
type: 'Input',
key: '6564108f49f548a799a4f0e6d8b209c3',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanReportList',
fieldName: '备注',
fieldId: 'bz',
type: 'Input',
key: 'c99c48913605403db427666e6b90fc9b',
children: [],
},
],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: true,
showChildren: false,
tableName: 'mesGongdanDataCollectionList',
fieldName: '',
fieldId: 'mesGongdanDataCollectionList',
type: 'form',
key: '6858fe13441243c790a63bf5b974435b',
children: [
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanDataCollectionList',
fieldName: '采集项',
fieldId: 'cjx',
type: 'Input',
key: '89af383317a948508759eadd9d48adb6',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanDataCollectionList',
fieldName: '采集值',
fieldId: 'cjz',
type: 'Input',
key: 'b17eaa6f85024c26b22c9551354e3c5a',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanDataCollectionList',
fieldName: '标准值',
fieldId: 'bzz',
type: 'Input',
key: '63ab9a80ee1945399e73dd9310e91aa8',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanDataCollectionList',
fieldName: '备注',
fieldId: 'bz',
type: 'Input',
key: '553e79c992b74ecb91c3bf3ccd2af87c',
children: [],
},
],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: true,
showChildren: false,
tableName: 'mesGongdanQualityInspectionList',
fieldName: '',
fieldId: 'mesGongdanQualityInspectionList',
type: 'form',
key: '24408a8dcca1423789dcdeff031e4d9f',
children: [
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanQualityInspectionList',
fieldName: '质检单号',
fieldId: 'zjdh',
type: 'Input',
key: '62f5f554a68244f5b721f73d4c68988e',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanQualityInspectionList',
fieldName: '质检结果',
fieldId: 'zjjg',
type: 'Input',
key: '19ec9fc3d6394fcab8b472d857a4f31b',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanQualityInspectionList',
fieldName: '质检员',
fieldId: 'jyy',
type: 'Input',
key: 'e6d92e00e9da4bb59ca4e664119ae183',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanQualityInspectionList',
fieldName: '质检信息',
fieldId: 'zjsj',
type: 'DatePicker',
key: 'c6d641ee7dfc4336ae157553c1a4e4e9',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanQualityInspectionList',
fieldName: '备注',
fieldId: 'bz',
type: 'Input',
key: '3b9215b704c74d9bad707adf6c04f50f',
children: [],
},
],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: true,
showChildren: false,
tableName: 'mesGongdanMaterialFeedingList',
fieldName: '',
fieldId: 'mesGongdanMaterialFeedingList',
type: 'form',
key: '3de87256379c41d18252370cb451630f',
children: [
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanMaterialFeedingList',
fieldName: '物料编号',
fieldId: 'wlbh',
type: 'Input',
key: 'd9196faf398347cd958ec21de698e780',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanMaterialFeedingList',
fieldName: '物料名称',
fieldId: 'wlmc',
type: 'Input',
key: 'f255a9b82d6646d6ac6750c9fbf87329',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanMaterialFeedingList',
fieldName: '数量',
fieldId: 'tlsl',
type: 'InputNumber',
key: '43490105227045229f2f1816f6ff8474',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanMaterialFeedingList',
fieldName: '投料人',
fieldId: 'tlr',
type: 'Input',
key: 'c9f4ec8bb7a944d19f1e6ce4582c3509',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanMaterialFeedingList',
fieldName: '备注',
fieldId: 'bz',
type: 'Input',
key: '57d915aeb50f490cbe2970a29921989b',
children: [],
},
],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: true,
showChildren: false,
tableName: 'mesGongdanScCollectionList',
fieldName: '',
fieldId: 'mesGongdanScCollectionList',
type: 'form',
key: 'c9e3e41674b841a285aca529b7ef8a64',
children: [
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanScCollectionList',
fieldName: '采集项',
fieldId: 'cjx',
type: 'Input',
key: '5e21bdbe50864ceba2f6e4a54f497427',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanScCollectionList',
fieldName: '采集值',
fieldId: 'cjz',
type: 'Input',
key: 'ee243d18029947e19f527e1b38417d3b',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesGongdanScCollectionList',
fieldName: '备注',
fieldId: 'bz',
type: 'Input',
key: '4d07e4bfe0224ba2ac17464973bc42dc',
children: [],
},
],
},
];
......@@ -133,7 +133,7 @@
//展示在列表内的按钮
const actionButtons = ref<string[]>(["view","edit","delete"]);
const buttonConfigs = computed(()=>{
const list = [{"isUse":true,"name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true},{"isUse":true,"name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true},{"isUse":true,"name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true,"isEnableLock":true},{"isUse":true,"name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true}]
const list = [{"buttonId":"2009529581437476864","name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true,"isUse":true},{"buttonId":"2009529581437476865","name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"isUse":true},{"buttonId":"2009529581437476866","name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true,"isUse":true,"isEnableLock":true},{"buttonId":"2009529581437476867","name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true,"isUse":true}]
return filterButtonAuth(list);
})
......
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