Commit 5df0d420 by li.jian

修改bug

parent 3fa94ff2
...@@ -1614,24 +1614,24 @@ export const formButtons = [ ...@@ -1614,24 +1614,24 @@ export const formButtons = [
index: 2, index: 2,
type: 1, type: 1,
}, },
/* { // {
key: 'cancel', // key: 'cancel',
code: 'cancel', // code: 'cancel',
name: '取消', // name: '取消',
style: 'default', // style: 'default',
event: [], // event: [],
isShow: true, // isShow: true,
index: 1, // index: 1,
type: 1, // type: 1,
},*/ // },
{ // {
key: 'reset', // key: 'reset',
code: 'reset', // code: 'reset',
name: '重置', // name: '重置',
style: 'default', // style: 'default',
event: [], // event: [],
isShow: true, // isShow: true,
index: 0, // index: 0,
type: 1, // type: 1,
}, // },
]; ];
...@@ -277,7 +277,7 @@ export const formProps: FormProps = { ...@@ -277,7 +277,7 @@ export const formProps: FormProps = {
disabled: false, disabled: false,
allowClear: false, allowClear: false,
showLabel: true, showLabel: true,
required: false, required: true,
rules: [], rules: [],
events: {}, events: {},
listStyle: '', listStyle: '',
...@@ -310,7 +310,7 @@ export const formProps: FormProps = { ...@@ -310,7 +310,7 @@ export const formProps: FormProps = {
disabled: false, disabled: false,
allowClear: false, allowClear: false,
showLabel: true, showLabel: true,
required: false, required: true,
rules: [], rules: [],
events: {}, events: {},
listStyle: '', listStyle: '',
......
...@@ -755,7 +755,7 @@ export const formProps: FormProps = { ...@@ -755,7 +755,7 @@ export const formProps: FormProps = {
width: '100%', width: '100%',
min: 0, min: 0,
step: 1, step: 1,
disabled: false, disabled: true,
showLabel: true, showLabel: true,
controls: true, controls: true,
required: false, required: false,
...@@ -764,7 +764,7 @@ export const formProps: FormProps = { ...@@ -764,7 +764,7 @@ export const formProps: FormProps = {
rules: [], rules: [],
events: {}, events: {},
tooltipConfig: { visible: false, title: '提示文本' }, tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: '', prestrainField: 'kcl',
defaultValue: 0, defaultValue: 0,
listStyle: "return 'width:100%'", listStyle: "return 'width:100%'",
}, },
...@@ -927,12 +927,12 @@ export const formProps: FormProps = { ...@@ -927,12 +927,12 @@ export const formProps: FormProps = {
{ key: '3', title: 'Body' }, { key: '3', title: 'Body' },
], ],
script: script:
"if(keyword!=null && keyword!=''){\r\n var sql " + "if(keyword!=null && keyword!=''){\r\n var sql = \"select *,id as value,cpmc as label from mes_base_product_info where delete_mark=0 and cpmc like '%${keyword}%' \";\r\n return db.select(sql)\r\n}\r\nvar sql = 'select *,id as value,cpmc as label from mes_base_product_info where delete_mark=0';\r\nreturn db.select(sql)",
"= \"select *,id as value,cpmc as label from mes_base_product_info where delete_mark=0 and cpmc like '%${keyword}%' \";\r\n return db.select(sql)\r\n}\r\nvar sql = 'select *,id as value,cpmc as label from mes_base_product_info where delete_mark=0';\r\nreturn db.select(sql)",
outputParams: [ outputParams: [
{ name: 'cpbh', tableTitle: '编号' }, { name: 'cpbh', tableTitle: '编号' },
{ name: 'cpmc', tableTitle: '名称' }, { name: 'cpmc', tableTitle: '名称' },
{ name: 'id', tableTitle: 'ID' }, { name: 'id', tableTitle: 'ID' },
{ name: 'kcl', tableTitle: '库存数' },
], ],
}, },
itemId: '', itemId: '',
......
...@@ -942,7 +942,7 @@ export const formProps: FormProps = { ...@@ -942,7 +942,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,
......
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