Commit 713a778a by 张恒

feat(gxgl): 添加编码字段

parent b5c09c01
......@@ -4,13 +4,13 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
* @description: RokeProcess分页参数 模型
*/
export interface RokeProcessPageParams extends BasicPageParams {
code: string;
name: string;
categoryId: string;
collectionSchemeId: string;
note: string;
}
/**
......@@ -19,15 +19,13 @@ export interface RokeProcessPageParams extends BasicPageParams {
export interface RokeProcessPageModel {
id: string;
code: string;
name: string;
categoryId: string;
collectionSchemeId: string;
note: string;
ratedWorkingHours: string;
}
/**
......
......@@ -4,6 +4,12 @@ import { uploadApi } from '/@/api/sys/upload';
export const searchFormSchema: FormSchema[] = [
{
field: 'code',
label: '编码',
defaultValue: undefined,
component: 'Input',
},
{
field: 'name',
label: '名称',
defaultValue: undefined,
......@@ -50,33 +56,14 @@ export const searchFormSchema: FormSchema[] = [
getPopupContainer: () => document.body,
},
},
{
field: 'note',
label: '备注',
defaultValue: undefined,
component: 'Input',
},
];
export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'name',
title: '名称',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'categoryId',
title: '工序类别',
componentType: 'select',
dataIndex: 'code',
title: '编码',
componentType: 'auto-code',
fixed: false,
sorter: true,
......@@ -87,22 +74,22 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'collectionSchemeId',
title: '采集方案',
componentType: 'associate-select',
dataIndex: 'name',
title: '名称',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'note',
title: '备注',
componentType: 'textarea',
dataIndex: 'categoryId',
title: '工序类别',
componentType: 'select',
fixed: false,
sorter: true,
......@@ -113,9 +100,9 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'ratedWorkingHours',
title: '额定工时',
componentType: 'number',
dataIndex: 'collectionSchemeId',
title: '采集方案',
componentType: 'associate-select',
fixed: false,
sorter: true,
......@@ -207,6 +194,29 @@ export const formProps: FormProps = {
span: 8,
list: [
{
key: 'e0f5ab09b1e541d3bff26b82ad0ccf53',
field: 'code',
label: '编码',
type: 'auto-code',
component: 'AutoCodeRule',
colProps: { span: 24 },
componentProps: {
width: '100%',
span: 7,
placeholder: '请输入编码组件组件',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
showLabel: true,
autoCodeRule: 'GX',
required: false,
isShow: false,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: '60af544637c442bcb20cdbf2cd71a2c2',
field: 'name',
label: '名称',
......
export const permissionList = [
{
required: false,
view: true,
edit: false,
disabled: true,
isSaveTable: false,
tableName: '',
fieldName: '编码',
fieldId: 'code',
isSubTable: false,
showChildren: true,
type: 'auto-code',
key: 'e0f5ab09b1e541d3bff26b82ad0ccf53',
children: [],
options: {},
},
{
required: true,
view: true,
edit: true,
......
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