| | |
| | | delete item.style.marginRight |
| | | } |
| | | |
| | | if (item.type === 'split' && item.splitctrl) { |
| | | if (data.hasOwnProperty(item.splitctrl.toLowerCase()) && data[item.splitctrl.toLowerCase()] === '') { |
| | | return false |
| | | } |
| | | } |
| | | |
| | | if (item.type === 'split' || item.type === 'formula') return true |
| | | if (item.type === 'hint') { |
| | | if (item.field && data[item.field.toLowerCase()]) { |
| | |
| | | }) |
| | | } |
| | | item.oriOptions = fromJS(item.options).toJS() |
| | | |
| | | if (item.empty === 'hidden' && item.oriOptions.length === 0) { |
| | | item.hidden = true |
| | | } |
| | | } |
| | | |
| | | let newval = '$empty' |
| | |
| | | }) |
| | | } |
| | | } |
| | | |
| | | if (item.empty === 'hidden' && item.oriOptions.length > 0) { |
| | | item.hidden = false |
| | | } |
| | | } |
| | | |
| | | return item |
| | |
| | | |
| | | formlist.forEach((item, index) => { |
| | | if (item.hidden) return |
| | | if (item.empty === 'hidden' && item.oriOptions.length === 0) return |
| | | |
| | | if (item.type === 'split') { |
| | | if (item.splitctrl) { |
| | | let cell = formlist.filter(m => m.field === item.splitctrl)[0] |
| | | |
| | | if (cell && (cell.hidden || (cell.empty === 'hidden' && !cell.oriOptions.length))) { |
| | | return null |
| | | } |
| | | } |
| | | |
| | | fields.push( |
| | | <Col span={24} key={index}> |
| | | <p className="mk-form-split-line" style={item.style}>{item.label}</p> |