| | |
| | | components.forEach(item => { |
| | | if (item.type === 'tabs') { |
| | | item.subtabs.forEach(tab => { |
| | | if (tab.hide === 'true') return |
| | | |
| | | let _mainSearch = mainSearch || [] |
| | | |
| | | if (appType !== 'mob') { |
| | |
| | | }) |
| | | } |
| | | } |
| | | |
| | | if (formdata && formdata.findIndex(item => item.type === 'vercode') > -1) { |
| | | formdata.push({ |
| | | type: 'text', |
| | | fieldlen: 50, |
| | | writein: false, |
| | | key: 'mk_timestamp' |
| | | }, { |
| | | type: 'text', |
| | | fieldlen: 50, |
| | | writein: false, |
| | | key: 'mk_send_type' |
| | | }, { |
| | | type: 'text', |
| | | fieldlen: 50, |
| | | writein: false, |
| | | key: 'mk_n_id' |
| | | }) |
| | | } |
| | | // 获取字段键值对 |
| | | formdata && formdata.forEach(form => { |
| | | let _key = form.key.toLowerCase() |
| | |
| | | } else if (form.type === 'rate') { |
| | | _type = `decimal(18,2)` |
| | | } |
| | | |
| | | if (['appkey'].includes(_key)) return |
| | | |
| | | _declarefields.push(`@${_key} ${_type}`) |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | if (!_vars.includes(_key)) { |
| | | if (!_vars.includes(_key) && !['appkey'].includes(_key)) { |
| | | _vars.push(_key) |
| | | _declarefields.push(`@${_key} ${col.datatype || 'nvarchar(50)'}`) |
| | | } |