Commit f893bed0 by sunhaiwei

合金标准页面动态生成客户标准和内控标准

parent 4df3fc1e
...@@ -538,7 +538,7 @@ export const formProps: FormProps = { ...@@ -538,7 +538,7 @@ export const formProps: FormProps = {
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
addonAfter: '', addonAfter: '',
disabled: false, disabled: true,
allowClear: false, allowClear: false,
showLabel: true, showLabel: true,
required: false, required: false,
...@@ -556,7 +556,7 @@ export const formProps: FormProps = { ...@@ -556,7 +556,7 @@ export const formProps: FormProps = {
}, },
{ {
key: '98af38feed0f417f9c9a1a899720ec06', key: '98af38feed0f417f9c9a1a899720ec06',
title: '客户标准上限', title: '客户标准上限(%)',
dataIndex: 'customerUpperLimit', dataIndex: 'customerUpperLimit',
componentType: 'Input', componentType: 'Input',
defaultValue: '', defaultValue: '',
...@@ -572,9 +572,12 @@ export const formProps: FormProps = { ...@@ -572,9 +572,12 @@ export const formProps: FormProps = {
disabled: false, disabled: false,
allowClear: false, allowClear: false,
showLabel: true, showLabel: true,
required: false, required: true,
rules: [], rules: [],
events: {}, events: {
change:
'const list = formModel[\'mesAlloyStandardDetailsList\'];\nif (list && list.length > 0) {\n for (let i=0; i < list.length; i++) {\n if (list[i].customerUpperLimit && \t\t\tlist[i].customerLowerLimit) { \t\t\t list[i].customerStandard=list[i].customerLowerLimit+"~"+list[i].customerUpperLimit\n}\n }\n}\n\n \n',
},
listStyle: '', listStyle: '',
isSave: false, isSave: false,
isShow: true, isShow: true,
...@@ -586,7 +589,7 @@ export const formProps: FormProps = { ...@@ -586,7 +589,7 @@ export const formProps: FormProps = {
}, },
{ {
key: 'acb300ec5c0f4ca9b7b91b250f668800', key: 'acb300ec5c0f4ca9b7b91b250f668800',
title: '客户标准下限', title: '客户标准下限(%)',
dataIndex: 'customerLowerLimit', dataIndex: 'customerLowerLimit',
componentType: 'Input', componentType: 'Input',
defaultValue: '', defaultValue: '',
...@@ -602,9 +605,12 @@ export const formProps: FormProps = { ...@@ -602,9 +605,12 @@ export const formProps: FormProps = {
disabled: false, disabled: false,
allowClear: false, allowClear: false,
showLabel: true, showLabel: true,
required: false, required: true,
rules: [], rules: [],
events: {}, events: {
change:
'const list = formModel[\'mesAlloyStandardDetailsList\'];\nif (list && list.length > 0) {\n for (let i=0; i < list.length; i++) {\n if (list[i].customerUpperLimit && \t\t\tlist[i].customerLowerLimit) { \t\t\t list[i].customerStandard=list[i].customerLowerLimit+"~"+list[i].customerUpperLimit\n}\n }\n}\n\n \n',
},
listStyle: '', listStyle: '',
isSave: false, isSave: false,
isShow: true, isShow: true,
...@@ -629,7 +635,7 @@ export const formProps: FormProps = { ...@@ -629,7 +635,7 @@ export const formProps: FormProps = {
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
addonAfter: '', addonAfter: '',
disabled: false, disabled: true,
allowClear: false, allowClear: false,
showLabel: true, showLabel: true,
required: false, required: false,
...@@ -646,7 +652,7 @@ export const formProps: FormProps = { ...@@ -646,7 +652,7 @@ export const formProps: FormProps = {
}, },
{ {
key: 'eadf6efef4094aa080eead40c9eaa177', key: 'eadf6efef4094aa080eead40c9eaa177',
title: '内控标准上限', title: '内控标准上限(%)',
dataIndex: 'internalUpperLimit', dataIndex: 'internalUpperLimit',
componentType: 'Input', componentType: 'Input',
defaultValue: '', defaultValue: '',
...@@ -662,9 +668,12 @@ export const formProps: FormProps = { ...@@ -662,9 +668,12 @@ export const formProps: FormProps = {
disabled: false, disabled: false,
allowClear: false, allowClear: false,
showLabel: true, showLabel: true,
required: false, required: true,
rules: [], rules: [],
events: {}, events: {
change:
'const list = formModel[\'mesAlloyStandardDetailsList\'];\nif (list && list.length > 0) {\n for (let i=0; i < list.length; i++) {\n if (list[i].internalUpperLimit && \t\t\tlist[i].internalLowerLimit) { \t\t\t list[i].internalStandard=list[i].internalLowerLimit+"~"+list[i].internalUpperLimit\n}\n }\n}\n',
},
listStyle: '', listStyle: '',
isSave: false, isSave: false,
isShow: true, isShow: true,
...@@ -676,7 +685,7 @@ export const formProps: FormProps = { ...@@ -676,7 +685,7 @@ export const formProps: FormProps = {
}, },
{ {
key: '53085afd908a493f859852a6b02d517c', key: '53085afd908a493f859852a6b02d517c',
title: '内控标准下限', title: '内控标准下限(%)',
dataIndex: 'internalLowerLimit', dataIndex: 'internalLowerLimit',
componentType: 'Input', componentType: 'Input',
defaultValue: '', defaultValue: '',
...@@ -692,9 +701,12 @@ export const formProps: FormProps = { ...@@ -692,9 +701,12 @@ export const formProps: FormProps = {
disabled: false, disabled: false,
allowClear: false, allowClear: false,
showLabel: true, showLabel: true,
required: false, required: true,
rules: [], rules: [],
events: {}, events: {
change:
'const list = formModel[\'mesAlloyStandardDetailsList\'];\nif (list && list.length > 0) {\n for (let i=0; i < list.length; i++) {\n if (list[i].internalUpperLimit && \t\t\tlist[i].internalLowerLimit) { \t\t\t list[i].internalStandard=list[i].internalLowerLimit+"~"+list[i].internalUpperLimit\n}\n }\n}\n',
},
listStyle: '', listStyle: '',
isSave: false, isSave: false,
isShow: true, isShow: true,
......
...@@ -150,7 +150,7 @@ export const permissionList = [ ...@@ -150,7 +150,7 @@ export const permissionList = [
isSaveTable: false, isSaveTable: false,
showChildren: false, showChildren: false,
tableName: 'mesAlloyStandardDetailsList', tableName: 'mesAlloyStandardDetailsList',
fieldName: '客户标准上限', fieldName: '客户标准上限(%)',
fieldId: 'customerUpperLimit', fieldId: 'customerUpperLimit',
type: 'Input', type: 'Input',
key: '98af38feed0f417f9c9a1a899720ec06', key: '98af38feed0f417f9c9a1a899720ec06',
...@@ -165,7 +165,7 @@ export const permissionList = [ ...@@ -165,7 +165,7 @@ export const permissionList = [
isSaveTable: false, isSaveTable: false,
showChildren: false, showChildren: false,
tableName: 'mesAlloyStandardDetailsList', tableName: 'mesAlloyStandardDetailsList',
fieldName: '客户标准下限', fieldName: '客户标准下限(%)',
fieldId: 'customerLowerLimit', fieldId: 'customerLowerLimit',
type: 'Input', type: 'Input',
key: 'acb300ec5c0f4ca9b7b91b250f668800', key: 'acb300ec5c0f4ca9b7b91b250f668800',
...@@ -195,7 +195,7 @@ export const permissionList = [ ...@@ -195,7 +195,7 @@ export const permissionList = [
isSaveTable: false, isSaveTable: false,
showChildren: false, showChildren: false,
tableName: 'mesAlloyStandardDetailsList', tableName: 'mesAlloyStandardDetailsList',
fieldName: '内控标准上限', fieldName: '内控标准上限(%)',
fieldId: 'internalUpperLimit', fieldId: 'internalUpperLimit',
type: 'Input', type: 'Input',
key: 'eadf6efef4094aa080eead40c9eaa177', key: 'eadf6efef4094aa080eead40c9eaa177',
...@@ -210,7 +210,7 @@ export const permissionList = [ ...@@ -210,7 +210,7 @@ export const permissionList = [
isSaveTable: false, isSaveTable: false,
showChildren: false, showChildren: false,
tableName: 'mesAlloyStandardDetailsList', tableName: 'mesAlloyStandardDetailsList',
fieldName: '内控标准下限', fieldName: '内控标准下限(%)',
fieldId: 'internalLowerLimit', fieldId: 'internalLowerLimit',
type: 'Input', type: 'Input',
key: '53085afd908a493f859852a6b02d517c', key: '53085afd908a493f859852a6b02d517c',
......
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