| | |
| | | } |
| | | |
| | | if (['exec', 'prompt', 'pop', 'form', 'formSubmit'].includes(cell.OpenType)) { |
| | | if (cell.Ot !== 'requiredOnce' && ['pop', 'form'].includes(cell.OpenType) && cell.verify && cell.verify.uniques && cell.verify.uniques.length > 0) { |
| | | let forms = ['BID'] |
| | | |
| | | if (cell.OpenType === 'form') { |
| | | forms.push(cell.field) |
| | | } else if (cell.modal && cell.modal.fields.length > 0) { |
| | | cell.modal.fields.forEach(n => { |
| | | if (!n.field) return |
| | | forms.push(n.field) |
| | | }) |
| | | } |
| | | let emptys = [] |
| | | cell.verify.uniques.forEach(m => { |
| | | if (m.status === 'false') return |
| | | |
| | | m.field.split(',').forEach(n => { |
| | | if (!forms.includes(n)) { |
| | | emptys.push(n) |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | if (emptys.length) { |
| | | errors.push({ level: 0, detail: `按钮“${cell.label}”唯一性验证字段${emptys.join('、')},在表单中不存在!`}) |
| | | } |
| | | } |
| | | |
| | | if (cell.OpenType === 'form' && cell.formType === 'count_line') return |
| | | |
| | | if (cell.intertype === 'system') { |