Commit bd53d4b1 by sunhaiwei

生产工单页面设置字段只读

parent 12109e56
...@@ -279,6 +279,7 @@ export const formProps: FormProps = { ...@@ -279,6 +279,7 @@ export const formProps: FormProps = {
showLabel: true, showLabel: true,
autoCodeRule: 'GDBH', autoCodeRule: 'GDBH',
required: false, required: false,
disabled: true,
isShow: true, isShow: true,
tooltipConfig: { visible: false, title: '提示文本' }, tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' }, style: { width: '100%' },
...@@ -331,7 +332,7 @@ export const formProps: FormProps = { ...@@ -331,7 +332,7 @@ export const formProps: FormProps = {
defaultValue: 0, defaultValue: 0,
min: 0, min: 0,
step: 0.01, step: 0.01,
disabled: false, disabled: true,
showLabel: true, showLabel: true,
controls: true, controls: true,
required: false, required: false,
...@@ -386,7 +387,7 @@ export const formProps: FormProps = { ...@@ -386,7 +387,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,
...@@ -417,7 +418,7 @@ export const formProps: FormProps = { ...@@ -417,7 +418,7 @@ export const formProps: FormProps = {
showSearch: false, showSearch: false,
isMultiple: false, isMultiple: false,
clearable: false, clearable: false,
disabled: false, disabled: true,
staticOptions: [ staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' }, { key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' }, { key: 2, label: 'Option 2', value: 'Option 2' },
...@@ -463,7 +464,7 @@ export const formProps: FormProps = { ...@@ -463,7 +464,7 @@ export const formProps: FormProps = {
showSearch: false, showSearch: false,
isMultiple: false, isMultiple: false,
clearable: false, clearable: false,
disabled: false, disabled: true,
staticOptions: [ staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' }, { key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' }, { key: 2, label: 'Option 2', value: 'Option 2' },
...@@ -511,7 +512,7 @@ export const formProps: FormProps = { ...@@ -511,7 +512,7 @@ export const formProps: FormProps = {
maxSize: 5, maxSize: 5,
showLabel: true, showLabel: true,
multiple: false, multiple: false,
disabled: false, disabled: true,
required: false, required: false,
isShow: true, isShow: true,
events: {}, events: {},
...@@ -573,7 +574,7 @@ export const formProps: FormProps = { ...@@ -573,7 +574,7 @@ export const formProps: FormProps = {
showSearch: false, showSearch: false,
isMultiple: false, isMultiple: false,
clearable: false, clearable: false,
disabled: false, disabled: true,
staticOptions: [ staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' }, { key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' }, { key: 2, label: 'Option 2', value: 'Option 2' },
...@@ -618,7 +619,7 @@ export const formProps: FormProps = { ...@@ -618,7 +619,7 @@ export const formProps: FormProps = {
showSearch: false, showSearch: false,
isMultiple: false, isMultiple: false,
clearable: false, clearable: false,
disabled: false, disabled: true,
staticOptions: [ staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' }, { key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' }, { key: 2, label: 'Option 2', value: 'Option 2' },
...@@ -663,7 +664,7 @@ export const formProps: FormProps = { ...@@ -663,7 +664,7 @@ export const formProps: FormProps = {
showSearch: false, showSearch: false,
isMultiple: false, isMultiple: false,
clearable: false, clearable: false,
disabled: false, disabled: true,
staticOptions: [ staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' }, { key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' }, { key: 2, label: 'Option 2', value: 'Option 2' },
...@@ -707,7 +708,7 @@ export const formProps: FormProps = { ...@@ -707,7 +708,7 @@ export const formProps: FormProps = {
placeholder: '请选择', placeholder: '请选择',
showLabel: true, showLabel: true,
showSearch: false, showSearch: false,
disabled: false, disabled: true,
datasourceType: 'api', datasourceType: 'api',
labelField: 'label', labelField: 'label',
valueField: 'value', valueField: 'value',
...@@ -806,7 +807,7 @@ export const formProps: FormProps = { ...@@ -806,7 +807,7 @@ export const formProps: FormProps = {
showSearch: false, showSearch: false,
isMultiple: false, isMultiple: false,
clearable: false, clearable: false,
disabled: false, disabled: true,
staticOptions: [ staticOptions: [
{ key: 1, label: 'Option 1', value: 'Option 1' }, { key: 1, label: 'Option 1', value: 'Option 1' },
{ key: 2, label: 'Option 2', value: 'Option 2' }, { key: 2, label: 'Option 2', value: 'Option 2' },
...@@ -847,7 +848,7 @@ export const formProps: FormProps = { ...@@ -847,7 +848,7 @@ export const formProps: FormProps = {
componentProps: { componentProps: {
span: 7, span: 7,
showLabel: true, showLabel: true,
disabled: false, disabled: true,
optionType: 'default', optionType: 'default',
staticOptions: [ staticOptions: [
{ key: 1, label: '是', value: '1' }, { key: 1, label: '是', value: '1' },
...@@ -974,7 +975,7 @@ export const formProps: FormProps = { ...@@ -974,7 +975,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,
...@@ -1087,7 +1088,7 @@ export const formProps: FormProps = { ...@@ -1087,7 +1088,7 @@ export const formProps: FormProps = {
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD HH:mm:ss',
showLabel: true, showLabel: true,
allowClear: true, allowClear: true,
disabled: false, disabled: true,
required: false, required: false,
isShow: true, isShow: true,
rules: [], rules: [],
...@@ -1114,7 +1115,7 @@ export const formProps: FormProps = { ...@@ -1114,7 +1115,7 @@ export const formProps: FormProps = {
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD HH:mm:ss',
showLabel: true, showLabel: true,
allowClear: true, allowClear: true,
disabled: false, disabled: true,
required: false, required: false,
isShow: true, isShow: true,
rules: [], rules: [],
...@@ -1141,7 +1142,7 @@ export const formProps: FormProps = { ...@@ -1141,7 +1142,7 @@ export const formProps: FormProps = {
max: null, max: null,
step: 1, step: 1,
maxlength: null, maxlength: null,
disabled: false, disabled: true,
showLabel: true, showLabel: true,
controls: true, controls: true,
required: false, required: false,
......
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