Commit 5d28fcfc by 张恒

refactor(scgl): 重构生产任务配置表单和列表结构

- 将'是否内部订单'字段替换为'计划编号'和'合金标准'字段
- 添加任务编号列配置并移除旧的是否内部订单列
- 更新合金标准字段为API数据源,使用动态获取的合金标准选项
- 修改多个字段的占位符文本,统一设置为空字符串
- 移除生产产品和工艺路线的静态配置,重构为动态API获取
- 更新客户字段为下拉选择,使用API获取客户列表数据
- 调整表单布局结构,添加分割线和网格布局组件
- 优化字段事件处理逻辑,简化onChange事件配置
- 更新列表中的合金标准和客户字段为下拉选择组件
- 添加计划结束时间字段的完整配置
- 调整产线字段的API配置参数,优化数据获取逻辑
parent b86528fa
......@@ -6,7 +6,9 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
export interface MesProductionTaskPageParams extends BasicPageParams {
rwbh: string;
sfnbdd: string;
jhbh: string;
hjzt: string;
}
/**
......@@ -17,14 +19,14 @@ export interface MesProductionTaskPageModel {
jhbh: string;
rwbh: string;
cpid: string;
rch: string;
zch: string;
sfnbdd: string;
jhksrq: string;
jhjsrq: string;
......@@ -115,6 +117,8 @@ export interface MesProductionTaskModel {
modifyUserId: string;
mesProductionGongdanList?: MesProductionGongdanModel;
mesWarehouseMaterialList?: MesWarehouseMaterialModel;
}
/**
......@@ -123,6 +127,8 @@ export interface MesProductionTaskModel {
export interface MesProductionGongdanModel {
id: string;
roductionTaskId: string;
deleteMark: string;
rwbh: string;
......@@ -141,7 +147,9 @@ export interface MesProductionGongdanModel {
cplx: string;
gx: string;
gxId: string;
gxbh: string;
gxmc: string;
......@@ -203,6 +211,97 @@ export interface MesProductionGongdanModel {
}
/**
* @description: MesWarehouseMaterial表类型
*/
export interface MesWarehouseMaterialModel {
id: string;
wlId: string;
roductionTaskId: string;
deleteMark: string;
bz: string;
zt: string;
wlbh: string;
wlmc: string;
wlgg: string;
wlxh: string;
xjbom: string;
blsl: string;
kcl: string;
khbz: string;
nkbz: string;
sftl: string;
bldh: string;
lldh: string;
llr: string;
llbm: string;
llsl: string;
shren: string;
fllldh: string;
fllrq: string;
fllr: string;
fllbm: string;
fllsl: string;
flgg: string;
flbz: string;
p1: string;
p2: string;
p3: string;
p4: string;
p5: string;
p6: string;
p7: string;
p8: string;
p9: string;
p10: string;
createDate: string;
createUserId: string;
modifyDate: string;
modifyUserId: string;
}
/**
* @description: MesProductionTask分页返回值结构
*/
export type MesProductionTaskPageResult = BasicFetchResult<MesProductionTaskPageModel>;
......@@ -9,16 +9,30 @@ export const searchFormSchema: FormSchema[] = [
component: 'Input',
},
{
field: 'sfnbdd',
label: '是否内部订单',
field: 'jhbh',
label: '计划编号',
defaultValue: '',
component: 'Input',
},
{
field: 'hjzt',
label: '合金标准',
defaultValue: '',
component: 'XjrSelect',
componentProps: {
datasourceType: 'staticData',
staticOptions: [
{ key: 2, label: '是', value: '1' },
{ key: 3, label: '否', value: '2' },
],
datasourceType: 'api',
apiConfig: {
path: '/zlgl//zjjcsj/getHjbz',
method: 'GET',
apiId: '36768924878d48e5ac3b3b24fc25765e',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select id as value,name as label from mes_alloy_standard where delete_mark = 0";\r\nreturn db.select(sql);',
},
labelField: 'label',
valueField: 'value',
mode: 'multiple',
......@@ -44,9 +58,9 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'cpid',
title: '生产产品',
componentType: 'associate-popup',
dataIndex: 'rwbh',
title: '任务编号',
componentType: 'auto-code',
fixed: false,
sorter: true,
......@@ -57,21 +71,21 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'rch',
title: '熔次号',
componentType: 'input',
dataIndex: 'cpid',
title: '生产产品',
componentType: 'associate-popup',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'zch',
title: '次号',
dataIndex: 'rch',
title: '次号',
componentType: 'input',
fixed: false,
......@@ -83,24 +97,15 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'sfnbdd',
title: '是否内部订单',
componentType: 'radio',
customRender: ({ record }) => {
const staticOptions = [
{ key: 2, label: '是', value: '1' },
{ key: 3, label: '否', value: '2' },
];
return staticOptions.filter((x) => x.value == record.sfnbdd)[0]?.label;
},
dataIndex: 'zch',
title: '铸次号',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
listStyle: '',
},
{
......@@ -227,7 +232,7 @@ export const formProps: FormProps = {
componentProps: {
width: '100%',
span: 7,
placeholder: '请输入任务编号',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -252,7 +257,7 @@ export const formProps: FormProps = {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入铸次号',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -274,65 +279,6 @@ export const formProps: FormProps = {
},
},
{
key: 'c1164302d0e34bca96563db3f47700f6',
field: 'cpid',
label: '生产产品',
type: 'associate-popup',
component: 'MultiplePopup',
colProps: { span: 24 },
componentProps: {
popupType: 'associate',
width: '100%',
span: 7,
placeholder: '请选择生产产品',
showLabel: true,
disabled: false,
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '选择产品',
apiConfig: {
path: '/scgl/scjh/getAllProduct',
method: 'GET',
apiId: 'f4fbb57f2f18425e97918a031c8aa7d8',
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)",
outputParams: [
{ name: 'cpmc', tableTitle: '产品名称', show: true, width: 150 },
{
name: 'cplx',
tableTitle: '产品类别',
bindField: 'cplx',
show: true,
width: 150,
component: 'a954da9a8da9429895b9ca947b937c92',
},
{
name: 'gg',
tableTitle: '规格',
bindField: 'gg',
show: true,
width: 150,
component: '6baebd752fae4267aa0ce0a684aa3a1c',
},
],
},
dicOptions: [],
required: true,
rules: [],
events: { change: '' },
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: '25e30bcce47a437fb5674d9dbce3523a',
field: 'zl',
label: '重量/KG',
......@@ -359,52 +305,6 @@ export const formProps: FormProps = {
},
},
{
key: '90df3bd996a3469789d4557edf80aca7',
field: 'gylx',
label: '工艺路线',
type: 'select',
component: 'XjrSelect',
colProps: { span: 24 },
componentProps: {
width: '100%',
span: 7,
placeholder: '请选择下拉选择工艺路线工艺路线工艺路线工艺路线',
showLabel: true,
showSearch: false,
isMultiple: false,
clearable: false,
disabled: false,
staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: '',
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
apiConfig: {
path: '/scgl/scrw/getAllgylx',
method: 'GET',
apiId: '07d17a5272a746c5b8711e8820440c65',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
"var sql = 'select *,id as value,name as label from roke_routing where delete_mark=0';\r\nreturn db.select(sql)",
},
dicOptions: [],
required: true,
rules: [],
events: { change: '' },
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: 'd66e5ebfa5d64b829fde596c82155158',
field: 'sfnbdd',
label: '是否内部订单',
......@@ -455,7 +355,7 @@ export const formProps: FormProps = {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入计划编号计划编号计划编号',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -477,67 +377,33 @@ export const formProps: FormProps = {
},
},
{
key: 'd3addcbd077740439873f39f77b4f57f',
key: '207f6fc4afc94690a5e197c9cc3848bc',
field: 'hjzt',
label: '合金状态',
type: 'input',
component: 'Input',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入合金状态',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: { change: '' },
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: 'a954da9a8da9429895b9ca947b937c92',
field: 'cplx',
label: '产品类别',
type: 'select',
component: 'XjrSelect',
label: '合金标准',
type: 'associate-select',
component: 'AssociateSelect',
colProps: { span: 24 },
componentProps: {
width: '100%',
span: 7,
placeholder: '请选择下拉选择产品类别',
placeholder: '请选择',
showLabel: true,
showSearch: false,
isMultiple: false,
clearable: false,
disabled: true,
staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
datasourceType: 'dic',
params: { itemId: '2003761375221407745' },
labelField: 'name',
disabled: false,
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
apiConfig: {
path: 'CodeGeneration/selection',
path: '/zlgl//zjjcsj/getHjbz',
method: 'GET',
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
apiId: '36768924878d48e5ac3b3b24fc25765e',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select id as value,name as label from mes_alloy_standard where delete_mark = 0";\r\nreturn db.select(sql);',
},
dicOptions: [],
required: false,
......@@ -545,7 +411,6 @@ export const formProps: FormProps = {
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
itemId: '2003761375221407745',
style: { width: '100%' },
},
},
......@@ -561,7 +426,7 @@ export const formProps: FormProps = {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入执行标准',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -583,46 +448,51 @@ export const formProps: FormProps = {
},
},
{
key: '393152195470452c989d23033a75e13b',
field: 'bom',
label: 'BOM',
type: 'select',
component: 'XjrSelect',
key: '427fc55accd744d0a6359faf80e45a1b',
field: 'sccx',
label: '产线',
type: 'associate-select',
component: 'AssociateSelect',
colProps: { span: 24 },
componentProps: {
width: '100%',
span: 7,
placeholder: '请选择下拉选择BOMBOM',
placeholder: '请选择',
showLabel: true,
showSearch: false,
isMultiple: false,
clearable: false,
disabled: false,
staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: '',
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
apiConfig: {
path: '/scgl/wlqd/getAllBomItemList',
path: '/scgl/scrw/getCxByCjbh',
method: 'GET',
apiId: '1a6a0c6bab2a4aceaf761b0c2c8d17a0',
apiId: 'ecbc0291292c49fca50468561b9770e8',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{
key: '1',
title: 'Query Params',
tableInfo: [
{
name: 'cjid',
value:
'{"bindField":"sccj","fieldKey":"21610208f2b8428e84de66979709d296"}',
required: true,
defaultValue: '0',
bindType: 'data',
},
],
},
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
"var sql = 'select *,id as value,wlmc as label from mes_base_bom_item where delete_mark=0';\r\nreturn db.select(sql)",
"var sql='select cx.*,cx.id as value,cx.cxmc as label from mes_base_chanxian cx join mes_base_cj_cx rela on cx.id=rela.cxid where rela.delete_mark=0 and cx.delete_mark=0 and rela.cjid=#{cjid}'\r\nreturn db.select(sql)",
},
dicOptions: [],
required: true,
required: false,
rules: [],
events: { change: 'curRowData.mesProductionGongdanList={}' },
events: { change: '' },
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
......@@ -645,7 +515,7 @@ export const formProps: FormProps = {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入铸造量铸造量',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -667,67 +537,47 @@ export const formProps: FormProps = {
},
},
{
key: '4a0ed1a29c0348a1b84c6be48e9ef6dc',
key: '99da98d5a335454a9d613715e539c7bd',
field: 'kh',
label: '客户',
type: 'input',
component: 'Input',
type: 'select',
component: 'XjrSelect',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入客户',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: { change: '' },
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
{
key: '6baebd752fae4267aa0ce0a684aa3a1c',
field: 'gg',
label: '规格',
type: 'input',
component: 'Input',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入规格',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: true,
allowClear: false,
placeholder: '请选择',
showLabel: true,
showSearch: false,
isMultiple: false,
clearable: false,
disabled: false,
staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: '',
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
apiConfig: {
path: '/jcxx/getKhList',
method: 'GET',
apiId: '7bc8db3faba24b19a997856f6ef0b27e',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select id as value,name as label from roke_partner where delete_mark = 0 and customer = \'1\'";\r\nreturn db.select(sql);',
},
dicOptions: [],
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
......@@ -739,12 +589,10 @@ export const formProps: FormProps = {
type: 'date',
component: 'DatePicker',
colProps: { span: 24 },
defaultValue: '2026-01-07 17:00:09',
componentProps: {
span: 7,
defaultValue: '2026-01-07 17:00:09',
width: '100%',
placeholder: '请选择计划开始时间',
placeholder: '请选择',
format: 'YYYY-MM-DD HH:mm:ss',
showLabel: true,
allowClear: true,
......@@ -769,7 +617,7 @@ export const formProps: FormProps = {
componentProps: {
width: '100%',
span: 7,
placeholder: '请选择下拉选择车间',
placeholder: '请选择',
showLabel: true,
showSearch: false,
isMultiple: false,
......@@ -780,7 +628,7 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: '2006262512610115585',
defaultSelect: '',
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
......@@ -799,10 +647,7 @@ export const formProps: FormProps = {
dicOptions: [],
required: false,
rules: [],
events: {
change:
'for(let i=0;i<formModel.mesProductionGongdanList.length;i++){ formModel.mesProductionGongdanList[i].rwbh=formModel.rwbh;\nformModel.mesProductionGongdanList[i].jhbh=formModel.jhbh;\nformModel.mesProductionGongdanList[i].rch=formModel.rch;\nformModel.mesProductionGongdanList[i].zch=formModel.zch;\nformModel.mesProductionGongdanList[i].hjzt=formModel.hjzt;\nformModel.mesProductionGongdanList[i].cpid=formModel.cpid;\nformModel.mesProductionGongdanList[i].cplx=formModel.cplx;\nformModel.mesProductionGongdanList[i].kh=formModel.kh;\nformModel.mesProductionGongdanList[i].zzl=formModel.zzl;\nformModel.mesProductionGongdanList[i].sl=formModel.sl;\nformModel.mesProductionGongdanList[i].zl=formModel.zl;\nformModel.mesProductionGongdanList[i].gg=formModel.gg;\nformModel.mesProductionGongdanList[i].zxbz=formModel.zxbz;\nformModel.mesProductionGongdanList[i].sccj=formModel.sccj;\nformModel.mesProductionGongdanList[i].sccx=formModel.sccx;\nformModel.mesProductionGongdanList[i].jsyq=formModel.jsyq;\nformModel.mesProductionGongdanList[i].sfnbdd=formModel.sfnbdd;\nformModel.mesProductionGongdanList[i].jhksrq=formModel.jhksrq;\nformModel.mesProductionGongdanList[i].jhjsrq=formModel.jhjsrq;\nformModel.mesProductionGongdanList[i].zt="1";\n}',
},
events: { change: '' },
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
......@@ -825,7 +670,7 @@ export const formProps: FormProps = {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入熔次号',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -881,6 +726,33 @@ export const formProps: FormProps = {
},
},
{
key: 'dbff4c30b51e45a0abda869b986c2af2',
field: 'jhjsrq',
label: '计划结束时间',
type: 'date',
component: 'DatePicker',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
span: 7,
defaultValue: '',
width: '100%',
placeholder: '请选择',
format: 'YYYY-MM-DD HH:mm:ss',
showLabel: true,
allowClear: true,
disabled: false,
required: false,
isShow: true,
rules: [],
events: { change: '' },
isGetCurrent: false,
tooltipConfig: { visible: false, title: '提示文本' },
searchType: 'time',
style: { width: '100%' },
},
},
{
key: 'fd52ee27396a4a028c80e1f6b883efaf',
field: 'sl',
label: '数量',
......@@ -906,147 +778,665 @@ export const formProps: FormProps = {
style: { width: '100%' },
},
},
],
},
],
componentProps: {
gutter: 0,
justify: 'start',
align: 'top',
isShow: true,
showBorder: false,
bordercolor: '#d9d9d9',
bordershowtype: [true, true, true, true],
borderwidth: 1,
padding: '10px',
margin: '10px',
},
},
{
key: '0c86713315c948d69dde675c2b7dc8cf',
field: '',
label: '分割线',
colProps: { span: 24 },
type: 'divider',
component: 'Divider',
componentProps: {
dashed: false,
orientation: 'left',
text: '',
isShow: true,
style: { marginTop: '0px', marginBottom: '0px' },
},
},
{
key: 'fa2613d0ce99458ea793159a6548621d',
field: '',
label: '',
type: 'grid',
colProps: { span: 24 },
component: 'Grid',
children: [
{
span: 6,
list: [
{
key: 'dbff4c30b51e45a0abda869b986c2af2',
field: 'jhjsrq',
label: '计划结束时间',
type: 'date',
component: 'DatePicker',
key: 'c1164302d0e34bca96563db3f47700f6',
field: 'cpid',
label: '生产产品',
type: 'associate-popup',
component: 'MultiplePopup',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
span: 7,
defaultValue: '',
popupType: 'associate',
width: '100%',
placeholder: '请选择计划结束时间',
format: 'YYYY-MM-DD HH:mm:ss',
span: 7,
placeholder: '请选择',
showLabel: true,
allowClear: true,
disabled: false,
required: false,
isShow: true,
rules: [],
events: {
change:
"\nif(formModel.jhjsrq<formModel.jhksrq){\n formActionType.showMessage('计划结束时间不能比开始时间早!');\nformModel.jhjsrq=formModel.jhksrq;\n}\n\n",
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
pageSize: 10,
assoTitle: '选择产品',
apiConfig: {
path: '/scgl/scjh/getAllProduct',
method: 'GET',
apiId: 'f4fbb57f2f18425e97918a031c8aa7d8',
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)",
outputParams: [
{ name: 'cpmc', tableTitle: '产品名称', show: true, width: 150 },
{
name: 'cplx',
tableTitle: '产品类别',
bindField: 'cplx',
show: true,
width: 150,
component: 'a954da9a8da9429895b9ca947b937c92',
},
{
name: 'gg',
tableTitle: '规格',
bindField: 'gg',
show: true,
width: 150,
component: '6baebd752fae4267aa0ce0a684aa3a1c',
},
],
},
isGetCurrent: false,
dicOptions: [],
required: true,
rules: [],
events: { change: '' },
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
searchType: 'time',
style: { width: '100%' },
},
},
],
},
{
span: 6,
list: [
{
key: '427fc55accd744d0a6359faf80e45a1b',
field: 'sccx',
label: '产线',
type: 'associate-select',
component: 'AssociateSelect',
key: 'a954da9a8da9429895b9ca947b937c92',
field: 'cplx',
label: '产品类别',
type: 'select',
component: 'XjrSelect',
colProps: { span: 24 },
componentProps: {
width: '100%',
span: 7,
placeholder: '请选择产线',
placeholder: '自动带入',
showLabel: true,
showSearch: false,
disabled: false,
datasourceType: 'api',
labelField: 'label',
isMultiple: false,
clearable: false,
disabled: true,
staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
datasourceType: 'dic',
params: { itemId: '2003761375221407745' },
labelField: 'name',
valueField: 'value',
apiConfig: {
path: '/scgl/scrw/getCxByCjbh',
path: 'CodeGeneration/selection',
method: 'GET',
apiId: 'ecbc0291292c49fca50468561b9770e8',
apiParams: [
{
key: '1',
title: 'Query Params',
tableInfo: [
{
name: 'cjid',
value:
'{"bindField":"sccj","fieldKey":"21610208f2b8428e84de66979709d296"}',
required: true,
defaultValue: '0',
bindType: 'data',
},
],
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
itemId: '2003761375221407745',
style: { width: '100%' },
},
},
],
},
{
span: 6,
list: [
{
key: '6baebd752fae4267aa0ce0a684aa3a1c',
field: 'gg',
label: '规格',
type: 'input',
component: 'Input',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '自动带入',
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%' },
},
},
],
},
{ span: 6, list: [] },
],
componentProps: {
gutter: 16,
justify: 'start',
align: 'top',
isShow: true,
showBorder: false,
bordercolor: '#d9d9d9',
bordershowtype: [true, true, true, true],
borderwidth: 1,
padding: '10px',
margin: '10px',
},
},
{
key: '220d208f92b543189c73f3f1caeb660e',
field: '',
label: '分割线',
colProps: { span: 24 },
type: 'divider',
component: 'Divider',
componentProps: {
dashed: false,
orientation: 'left',
text: '',
isShow: true,
style: { marginTop: '0px', marginBottom: '0px' },
},
},
{
key: '4db1fb6401f7456b89ae8223d3acb883',
field: '',
label: '',
type: 'grid',
colProps: { span: 24 },
component: 'Grid',
children: [
{
span: 6,
list: [
{
key: '90df3bd996a3469789d4557edf80aca7',
field: 'gylx',
label: '工艺路线',
type: 'select',
component: 'XjrSelect',
colProps: { span: 24 },
componentProps: {
width: '100%',
span: 7,
placeholder: '请选择',
showLabel: true,
showSearch: false,
isMultiple: false,
clearable: false,
disabled: false,
staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: '',
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
apiConfig: {
path: '/scgl/scrw/getAllgylx',
method: 'GET',
apiId: '07d17a5272a746c5b8711e8820440c65',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
"var sql = 'select *,id as value,name as label from roke_routing where delete_mark=0';\r\nreturn db.select(sql)",
},
dicOptions: [],
required: true,
rules: [],
events: { change: '' },
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
],
},
{
span: 6,
list: [
{
key: '393152195470452c989d23033a75e13b',
field: 'bom',
label: 'BOM',
type: 'select',
component: 'XjrSelect',
colProps: { span: 24 },
componentProps: {
width: '100%',
span: 7,
placeholder: '请选择',
showLabel: true,
showSearch: false,
isMultiple: false,
clearable: false,
disabled: false,
staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: '',
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
apiConfig: {
path: '/scgl/wlqd/getAllBomItemZd',
method: 'GET',
apiId: 'copy1767851514693d23060',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
"var sql = 'select *,id as value,bommc as label from mes_base_bom where delete_mark=0';\r\nreturn db.select(sql)",
},
dicOptions: [],
required: true,
rules: [],
events: { change: 'curRowData.mesProductionGongdanList={}' },
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
],
},
{ span: 6, list: [] },
{ span: 6, list: [] },
],
componentProps: {
gutter: 16,
justify: 'start',
align: 'top',
isShow: true,
showBorder: false,
bordercolor: '#d9d9d9',
bordershowtype: [true, true, true, true],
borderwidth: 1,
padding: '10px',
margin: '10px',
},
},
{
key: 'be5dd9f33feb447c83f8313511feab47',
field: '',
label: '',
type: 'tab',
colProps: { span: 24 },
component: 'Tab',
children: [
{
span: 24,
name: '工单',
prefix: '',
suffix: '',
activeColor: '#1c8dff',
folderId: '',
imageUrl: '',
conFolderId: '',
conImageUrl: '',
list: [
{
key: '29977890304c441bae527eba5f019e46',
label: '',
field: 'mesProductionGongdanList',
type: 'form',
component: 'SubForm',
required: true,
colProps: { span: 24 },
componentProps: {
mainKey: 'mesProductionGongdanList',
columns: [
{
key: '2745856f030c4f4b8488732136060d78',
title: '任务编号',
dataIndex: 'rwbh',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入任务编号任务编号任务编号',
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: 'e2a2a9437363423b93f280617e27d8d2',
title: '计划编号',
dataIndex: 'jhbh',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入计划编号',
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: '589c359e5a7e498695fcf5c224a5e557',
title: '熔次号',
dataIndex: 'rch',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入熔次号',
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: '2957c762b0a3437f872fdab6f46544c2',
title: '铸次号',
dataIndex: 'zch',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入铸次号单行文本',
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: 'c1ed5718a38d45d298352ea8b22eb2b8',
title: '合金标准',
dataIndex: 'hjzt',
componentType: 'XjrSelect',
componentProps: {
width: '100%',
span: '',
placeholder: '请选择下拉选择',
showLabel: true,
showSearch: false,
isMultiple: false,
clearable: false,
disabled: false,
staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: '',
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
apiConfig: {
path: '/zlgl//zjjcsj/getHjbz',
method: 'GET',
apiId: '36768924878d48e5ac3b3b24fc25765e',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select id as value,name as label from mes_alloy_standard where delete_mark = 0";\r\nreturn db.select(sql);',
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
listStyle: "return 'border: 0'",
},
},
{
key: '69da890610284539b4ad26bed8e9c566',
title: '产品ID',
dataIndex: 'cpid',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入产品ID',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: false,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: 'dc242ae845f1489a8cc2f47c98b565b8',
title: '产品类型',
dataIndex: 'cplx',
componentType: 'XjrSelect',
componentProps: {
width: '100%',
span: '',
placeholder: '请选择下拉选择',
showLabel: true,
showSearch: false,
isMultiple: false,
clearable: false,
disabled: false,
staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
datasourceType: 'dic',
params: { itemId: '2003761375221407745' },
labelField: 'name',
valueField: 'value',
apiConfig: {
path: 'CodeGeneration/selection',
method: 'GET',
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
itemId: '2003761375221407745',
defaultSelect: '',
listStyle: "return 'border: 0'",
},
},
{
key: '7e31a788100b4eefba52c3a36443ba87',
title: '客户',
dataIndex: 'kh',
componentType: 'XjrSelect',
componentProps: {
width: '100%',
placeholder: '请选择客户',
showLabel: true,
showSearch: false,
isMultiple: false,
clearable: false,
disabled: false,
staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
defaultSelect: '',
datasourceType: 'api',
labelField: 'label',
valueField: 'value',
apiConfig: {
path: '/jcxx/getKhList',
method: 'GET',
apiId: '7bc8db3faba24b19a997856f6ef0b27e',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select id as value,name as label from roke_partner where delete_mark = 0 and customer = \'1\'";\r\nreturn db.select(sql);',
},
dicOptions: [],
required: false,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
listStyle: "return 'border: 0'",
},
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
"var sql='select cx.*,cx.id as value,cx.cxmc as label from mes_base_chanxian cx join mes_base_cj_cx rela on cx.id=rela.cxid where rela.delete_mark=0 and cx.delete_mark=0 and rela.cjid=#{cjid}'\r\nreturn db.select(sql)",
},
dicOptions: [],
required: false,
rules: [],
events: {
change:
'for(let i=0;i<formModel.mesProductionGongdanList.length;i++){ formModel.mesProductionGongdanList[i].rwbh=formModel.rwbh;\nformModel.mesProductionGongdanList[i].jhbh=formModel.jhbh;\nformModel.mesProductionGongdanList[i].rch=formModel.rch;\nformModel.mesProductionGongdanList[i].zch=formModel.zch;\nformModel.mesProductionGongdanList[i].hjzt=formModel.hjzt;\nformModel.mesProductionGongdanList[i].cpid=formModel.cpid;\nformModel.mesProductionGongdanList[i].cplx=formModel.cplx;\nformModel.mesProductionGongdanList[i].kh=formModel.kh;\nformModel.mesProductionGongdanList[i].zzl=formModel.zzl;\nformModel.mesProductionGongdanList[i].sl=formModel.sl;\nformModel.mesProductionGongdanList[i].zl=formModel.zl;\nformModel.mesProductionGongdanList[i].gg=formModel.gg;\nformModel.mesProductionGongdanList[i].zxbz=formModel.zxbz;\nformModel.mesProductionGongdanList[i].sccj=formModel.sccj;\nformModel.mesProductionGongdanList[i].sccx=formModel.sccx;\nformModel.mesProductionGongdanList[i].jsyq=formModel.jsyq;\nformModel.mesProductionGongdanList[i].sfnbdd=formModel.sfnbdd;\nformModel.mesProductionGongdanList[i].jhksrq=formModel.jhksrq;\nformModel.mesProductionGongdanList[i].jhjsrq=formModel.jhjsrq;\nformModel.mesProductionGongdanList[i].zt="1";\n}',
},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
],
},
],
componentProps: {
gutter: 0,
justify: 'start',
align: 'top',
isShow: true,
showBorder: false,
bordercolor: '#d9d9d9',
bordershowtype: [true, true, true, true],
borderwidth: 1,
padding: '10px',
margin: '10px',
},
},
{
key: 'be5dd9f33feb447c83f8313511feab47',
field: '',
label: '',
type: 'tab',
colProps: { span: 24 },
component: 'Tab',
children: [
{
span: 24,
name: '工单',
prefix: '',
suffix: '',
activeColor: '#1c8dff',
folderId: '',
imageUrl: '',
conFolderId: '',
conImageUrl: '',
list: [
{
key: '29977890304c441bae527eba5f019e46',
label: '',
field: 'mesProductionGongdanList',
type: 'form',
component: 'SubForm',
required: true,
colProps: { span: 24 },
componentProps: {
mainKey: 'mesProductionGongdanList',
columns: [
},
{
key: '2745856f030c4f4b8488732136060d78',
title: '任务编号',
dataIndex: 'rwbh',
key: '16fd1699db7744379edd01b6eb5653f9',
title: '工序编号',
dataIndex: 'gxbh',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入任务编号任务编号',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1064,19 +1454,20 @@ export const formProps: FormProps = {
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: '',
},
},
{
key: 'e2a2a9437363423b93f280617e27d8d2',
title: '计划编号',
dataIndex: 'jhbh',
key: '570d856e58c447a098efc1be72a545ea',
title: '工序名称',
dataIndex: 'gxmc',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入计划编号',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1094,19 +1485,20 @@ export const formProps: FormProps = {
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: '',
},
},
{
key: '589c359e5a7e498695fcf5c224a5e557',
title: '熔次号',
dataIndex: 'rch',
key: '2f069a67fe784742a2729fa09af94ec4',
title: '工序ID隐藏',
dataIndex: 'gxId',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入熔次号',
placeholder: '请输入工序ID隐藏单行文本',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1119,24 +1511,80 @@ export const formProps: FormProps = {
events: {},
listStyle: '',
isSave: false,
isShow: true,
isShow: false,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: '',
},
},
],
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: { load: '' },
showPagenation: true,
},
},
],
},
{
span: 24,
name: '物料清单',
prefix: '',
suffix: '',
activeColor: '#1c8dff',
folderId: '',
imageUrl: '',
conFolderId: '',
conImageUrl: '',
list: [
{
key: '4e386be4299d40a8a3d6ac92cb5f8225',
label: '',
field: 'mesWarehouseMaterialList',
type: 'form',
component: 'SubForm',
required: true,
colProps: { span: 24 },
componentProps: {
mainKey: 'mesWarehouseMaterialList',
columns: [
{
key: '2957c762b0a3437f872fdab6f46544c2',
title: '铸次号',
dataIndex: 'zch',
key: '0318bdc0f00a4dfc9d5a75230e9a07c4',
title: '物料编号',
dataIndex: 'wlbh',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入铸次号单行文本',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1157,16 +1605,16 @@ export const formProps: FormProps = {
},
},
{
key: '7551731ee33d4289b153e8ddc7e4c8dc',
title: '合金状态',
dataIndex: 'hjzt',
key: 'baa1ec42588e4bfa88c0e22cac084193',
title: '物料名称',
dataIndex: 'wlmc',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入合金状态',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1187,16 +1635,16 @@ export const formProps: FormProps = {
},
},
{
key: '69da890610284539b4ad26bed8e9c566',
title: '产品ID',
dataIndex: 'cpid',
key: '1da4e46715f0411e951807ff6179820e',
title: '下级BOM',
dataIndex: 'xjbom',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入产品ID',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1209,7 +1657,7 @@ export const formProps: FormProps = {
events: {},
listStyle: '',
isSave: false,
isShow: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
......@@ -1217,115 +1665,120 @@ export const formProps: FormProps = {
},
},
{
key: 'dc242ae845f1489a8cc2f47c98b565b8',
title: '产品类型',
dataIndex: 'cplx',
componentType: 'XjrSelect',
key: '599d78bdf5794a30a0637213c5e7d05d',
title: '数量',
dataIndex: 'blsl',
componentType: 'InputNumber',
componentProps: {
width: '100%',
span: '',
placeholder: '请选择下拉选择',
showLabel: true,
showSearch: false,
isMultiple: false,
clearable: false,
step: 1,
disabled: false,
staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' },
],
datasourceType: 'dic',
params: { itemId: '2003761375221407745' },
labelField: 'name',
valueField: 'value',
apiConfig: {
path: 'CodeGeneration/selection',
method: 'GET',
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
},
dicOptions: [],
showLabel: true,
controls: true,
required: false,
subTotal: false,
isShow: true,
rules: [],
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
itemId: '2003761375221407745',
listStyle: "return 'border: 0'",
listStyle: "return 'width:100%'",
},
},
{
key: 'f9b91195ee9840268e20bddeccdc365c',
title: '客户',
dataIndex: 'kh',
componentType: 'Input',
defaultValue: '',
key: '095881c6083d44f28854716c13386f8f',
title: '库存量',
dataIndex: 'kcl',
componentType: 'InputNumber',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入客户单行文本',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
step: 1,
disabled: false,
allowClear: false,
showLabel: true,
controls: true,
required: false,
subTotal: false,
isShow: true,
rules: [],
events: {},
listStyle: '',
isSave: false,
tooltipConfig: { visible: false, title: '提示文本' },
listStyle: "return 'width:100%'",
},
},
{
key: '2e2b5dec301f45d99ca29ab90590223b',
title: '客户标准(%)',
dataIndex: 'khbz',
componentType: 'InputNumber',
componentProps: {
width: '100%',
span: '',
step: 0.01,
disabled: false,
showLabel: true,
controls: true,
required: false,
subTotal: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
rules: [],
events: {},
tooltipConfig: { visible: false, title: '提示文本' },
listStyle: "return 'width:100%'",
},
},
{
key: '2f069a67fe784742a2729fa09af94ec4',
title: '工序',
dataIndex: 'gx',
componentType: 'Input',
defaultValue: '',
key: '5e1c4fee76c14596a870f161fefed804',
title: '内控标准(%)',
dataIndex: 'nkbz',
componentType: 'InputNumber',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入工序单行文本',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
step: 0.01,
disabled: false,
allowClear: false,
showLabel: true,
controls: true,
required: false,
subTotal: false,
isShow: true,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: false,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: '',
listStyle: "return 'width:100%'",
},
},
{
key: '16fd1699db7744379edd01b6eb5653f9',
title: '工序名称',
dataIndex: 'gxmc',
key: 'a1d690dc949645669e361c706807680b',
title: '是否投料',
dataIndex: 'sftl',
componentType: 'Switch',
defaultValue: 1,
componentProps: {
span: '',
defaultValue: 1,
checkedChildren: '',
unCheckedChildren: '',
checkedColor: '#1C8DFF',
unCheckedColor: '#bbbdbf',
showLabel: true,
disabled: false,
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: 'e7bb2cd58fb24bf487991d757dcae65b',
title: '物料ID隐藏',
dataIndex: 'wlId',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入工序名称名称',
placeholder: '',
prefix: '',
suffix: '',
addonBefore: '',
......@@ -1338,12 +1791,11 @@ export const formProps: FormProps = {
events: {},
listStyle: '',
isSave: false,
isShow: true,
isShow: false,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: '',
},
},
],
......@@ -1360,7 +1812,7 @@ export const formProps: FormProps = {
bordercolor: '#f0f0f0',
bordershowtype: [true, true, true, true],
borderwidth: 1,
showIndex: false,
showIndex: true,
isShow: true,
multipleHeads: [],
buttonList: [],
......@@ -1373,24 +1825,12 @@ export const formProps: FormProps = {
isShowAdd: false,
isShowDelete: false,
hasCheckedCol: false,
events: { load: '' },
events: {},
showPagenation: true,
},
},
],
},
{
span: 24,
name: '物料清单',
prefix: '',
suffix: '',
activeColor: '#1c8dff',
folderId: '',
imageUrl: '',
conFolderId: '',
conImageUrl: '',
list: [],
},
],
componentProps: { tabPosition: 'top', size: 'default', type: 'line', isShow: true },
},
......
......@@ -33,22 +33,6 @@ export const permissionList = [
defaultValue: '',
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '生产产品',
fieldId: 'cpid',
isSubTable: false,
showChildren: true,
type: 'associate-popup',
key: 'c1164302d0e34bca96563db3f47700f6',
children: [],
options: {},
},
{
required: false,
view: true,
edit: true,
......@@ -66,22 +50,6 @@ export const permissionList = [
defaultValue: 0,
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '工艺路线',
fieldId: 'gylx',
isSubTable: false,
showChildren: true,
type: 'select',
key: '90df3bd996a3469789d4557edf80aca7',
children: [],
options: {},
},
{
required: false,
view: true,
edit: true,
......@@ -122,29 +90,12 @@ export const permissionList = [
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '合金状态',
fieldName: '合金标准',
fieldId: 'hjzt',
isSubTable: false,
showChildren: true,
type: 'input',
key: 'd3addcbd077740439873f39f77b4f57f',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
view: true,
edit: false,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '产品类别',
fieldId: 'cplx',
isSubTable: false,
showChildren: true,
type: 'select',
key: 'a954da9a8da9429895b9ca947b937c92',
type: 'associate-select',
key: '207f6fc4afc94690a5e197c9cc3848bc',
children: [],
options: {},
},
......@@ -166,18 +117,18 @@ export const permissionList = [
defaultValue: '',
},
{
required: true,
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: 'BOM',
fieldId: 'bom',
fieldName: '产线',
fieldId: 'sccx',
isSubTable: false,
showChildren: true,
type: 'select',
key: '393152195470452c989d23033a75e13b',
type: 'associate-select',
key: '427fc55accd744d0a6359faf80e45a1b',
children: [],
options: {},
},
......@@ -209,28 +160,10 @@ export const permissionList = [
fieldId: 'kh',
isSubTable: false,
showChildren: true,
type: 'input',
key: '4a0ed1a29c0348a1b84c6be48e9ef6dc',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
view: true,
edit: false,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '规格',
fieldId: 'gg',
isSubTable: false,
showChildren: true,
type: 'input',
key: '6baebd752fae4267aa0ce0a684aa3a1c',
type: 'select',
key: '99da98d5a335454a9d613715e539c7bd',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
......@@ -247,7 +180,6 @@ export const permissionList = [
key: 'c522ec15933c4d448a448e4d67897aa0',
children: [],
options: {},
defaultValue: '2026-01-07 17:00:09',
},
{
required: false,
......@@ -264,7 +196,6 @@ export const permissionList = [
key: '21610208f2b8428e84de66979709d296',
children: [],
options: {},
defaultValue: '2006262512610115585',
},
{
required: false,
......@@ -307,6 +238,23 @@ export const permissionList = [
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '计划结束时间',
fieldId: 'jhjsrq',
isSubTable: false,
showChildren: true,
type: 'date',
key: 'dbff4c30b51e45a0abda869b986c2af2',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '数量',
fieldId: 'sl',
isSubTable: false,
......@@ -320,16 +268,64 @@ export const permissionList = [
{
required: false,
view: true,
edit: false,
disabled: true,
isSaveTable: false,
tableName: '',
fieldName: '分割线',
fieldId: '',
isSubTable: false,
showChildren: true,
type: 'divider',
key: '0c86713315c948d69dde675c2b7dc8cf',
children: [],
options: {},
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '计划结束时间',
fieldId: 'jhjsrq',
fieldName: '生产产品',
fieldId: 'cpid',
isSubTable: false,
showChildren: true,
type: 'date',
key: 'dbff4c30b51e45a0abda869b986c2af2',
type: 'associate-popup',
key: 'c1164302d0e34bca96563db3f47700f6',
children: [],
options: {},
},
{
required: false,
view: true,
edit: false,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '产品类别',
fieldId: 'cplx',
isSubTable: false,
showChildren: true,
type: 'select',
key: 'a954da9a8da9429895b9ca947b937c92',
children: [],
options: {},
},
{
required: false,
view: true,
edit: false,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '规格',
fieldId: 'gg',
isSubTable: false,
showChildren: true,
type: 'input',
key: '6baebd752fae4267aa0ce0a684aa3a1c',
children: [],
options: {},
defaultValue: '',
......@@ -337,16 +333,48 @@ export const permissionList = [
{
required: false,
view: true,
edit: false,
disabled: true,
isSaveTable: false,
tableName: '',
fieldName: '分割线',
fieldId: '',
isSubTable: false,
showChildren: true,
type: 'divider',
key: '220d208f92b543189c73f3f1caeb660e',
children: [],
options: {},
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '线',
fieldId: 'sccx',
fieldName: '工艺路线',
fieldId: 'gylx',
isSubTable: false,
showChildren: true,
type: 'associate-select',
key: '427fc55accd744d0a6359faf80e45a1b',
type: 'select',
key: '90df3bd996a3469789d4557edf80aca7',
children: [],
options: {},
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: 'BOM',
fieldId: 'bom',
isSubTable: false,
showChildren: true,
type: 'select',
key: '393152195470452c989d23033a75e13b',
children: [],
options: {},
},
......@@ -432,10 +460,10 @@ export const permissionList = [
isSaveTable: false,
showChildren: false,
tableName: 'mesProductionGongdanList',
fieldName: '合金状态',
fieldName: '合金标准',
fieldId: 'hjzt',
type: 'Input',
key: '7551731ee33d4289b153e8ddc7e4c8dc',
type: 'XjrSelect',
key: 'c1ed5718a38d45d298352ea8b22eb2b8',
children: [],
},
{
......@@ -479,8 +507,8 @@ export const permissionList = [
tableName: 'mesProductionGongdanList',
fieldName: '客户',
fieldId: 'kh',
type: 'Input',
key: 'f9b91195ee9840268e20bddeccdc365c',
type: 'XjrSelect',
key: '7e31a788100b4eefba52c3a36443ba87',
children: [],
},
{
......@@ -492,10 +520,10 @@ export const permissionList = [
isSaveTable: false,
showChildren: false,
tableName: 'mesProductionGongdanList',
fieldName: '工序',
fieldId: 'gx',
fieldName: '工序编号',
fieldId: 'gxbh',
type: 'Input',
key: '2f069a67fe784742a2729fa09af94ec4',
key: '16fd1699db7744379edd01b6eb5653f9',
children: [],
},
{
......@@ -510,7 +538,172 @@ export const permissionList = [
fieldName: '工序名称',
fieldId: 'gxmc',
type: 'Input',
key: '16fd1699db7744379edd01b6eb5653f9',
key: '570d856e58c447a098efc1be72a545ea',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesProductionGongdanList',
fieldName: '工序ID隐藏',
fieldId: 'gxId',
type: 'Input',
key: '2f069a67fe784742a2729fa09af94ec4',
children: [],
},
],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: true,
showChildren: false,
tableName: 'mesWarehouseMaterialList',
fieldName: '',
fieldId: 'mesWarehouseMaterialList',
type: 'form',
key: '4e386be4299d40a8a3d6ac92cb5f8225',
children: [
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseMaterialList',
fieldName: '物料编号',
fieldId: 'wlbh',
type: 'Input',
key: '0318bdc0f00a4dfc9d5a75230e9a07c4',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseMaterialList',
fieldName: '物料名称',
fieldId: 'wlmc',
type: 'Input',
key: 'baa1ec42588e4bfa88c0e22cac084193',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseMaterialList',
fieldName: '下级BOM',
fieldId: 'xjbom',
type: 'Input',
key: '1da4e46715f0411e951807ff6179820e',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseMaterialList',
fieldName: '数量',
fieldId: 'blsl',
type: 'InputNumber',
key: '599d78bdf5794a30a0637213c5e7d05d',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseMaterialList',
fieldName: '库存量',
fieldId: 'kcl',
type: 'InputNumber',
key: '095881c6083d44f28854716c13386f8f',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseMaterialList',
fieldName: '客户标准(%)',
fieldId: 'khbz',
type: 'InputNumber',
key: '2e2b5dec301f45d99ca29ab90590223b',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseMaterialList',
fieldName: '内控标准(%)',
fieldId: 'nkbz',
type: 'InputNumber',
key: '5e1c4fee76c14596a870f161fefed804',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseMaterialList',
fieldName: '是否投料',
fieldId: 'sftl',
type: 'Switch',
key: 'a1d690dc949645669e361c706807680b',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseMaterialList',
fieldName: '物料ID隐藏',
fieldId: 'wlId',
type: 'Input',
key: 'e7bb2cd58fb24bf487991d757dcae65b',
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