#include "/common/utils.ftl">
<#assign form_popup = false>
<#assign form_cat_tree = false>
<#assign form_cat_back = "">
<#assign bpm_flag=false>
<#assign form_span = 24>
<#list columns as po>
<#if po.fieldDbName=='bpm_status'>
<#assign bpm_flag=true>
#if>
<#if po.isShow =='Y' && po.fieldName != 'id'>
<#assign form_field_dictCode="">
<#if po.dictTable?default("")?trim?length gt 1 && po.dictText?default("")?trim?length gt 1 && po.dictField?default("")?trim?length gt 1>
<#assign form_field_dictCode="${po.dictTable},${po.dictText},${po.dictField}">
<#elseif po.dictField?default("")?trim?length gt 1>
<#assign form_field_dictCode="${po.dictField}">
#if>
<#if po.classType =='textarea'>
<#else>
#if>
<#if po.classType =='date'>
disabled#if>/>
<#elseif po.classType =='datetime'>
disabled#if>/>
<#elseif po.classType =='time'>
disabled#if>/>
<#elseif po.classType =='popup'>
<#assign form_popup=true>
disabled#if>/>
<#elseif po.classType =='sel_depart'>
disabled#if>/>
<#elseif po.classType =='switch'>
:options="${po.dictField}"#if> <#if po.readonly=='Y'>disabled#if>>
<#elseif po.classType =='pca'>
disabled#if>/>
<#elseif po.classType =='markdown'>
<#elseif po.classType =='password'>
disabled#if>/>
<#elseif po.classType =='sel_user'>
disabled#if>/>
<#elseif po.classType =='textarea'>
disabled#if>/>
<#elseif po.classType=='list' || po.classType=='radio'>
disabled#if>/>
<#elseif po.classType=='list_multi' || po.classType=='checkbox'>
disabled#if>/>
<#elseif po.classType=='sel_search'>
disabled#if>/>
<#elseif po.classType=='cat_tree'>
<#assign form_cat_tree = true>
back="${dashedToCamel(po.dictText)}" @change="handleCategoryChange"#if> <#if po.readonly=='Y'>disabled#if>/>
<#if po.dictText?default("")?trim?length gt 1>
<#assign form_cat_back = "${po.dictText}">
#if>
<#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
disabled#if>/>
<#elseif po.classType=='file'>
disabled#if> <#if po.uploadnum??>:number=${po.uploadnum}#if>>
<#elseif po.classType=='image'>
:number=${po.uploadnum}#if> v-model="model.${po.fieldName}" <#if po.readonly=='Y'>disabled#if>>
<#elseif po.classType=='umeditor'>
disabled#if>/>
<#elseif po.classType == 'sel_tree'>
<#if po.dictText?split(',')[2]?? && po.dictText?split(',')[0]??>
dict="${po.dictTable},${po.dictText?split(',')[2]},${po.dictText?split(',')[0]}"
<#elseif po.dictText?split(',')[1]??>
pidField="${po.dictText?split(',')[1]}"
<#elseif po.dictText?split(',')[3]??>
hasChildField="${po.dictText?split(',')[3]}"
#if>
#if>
pidValue="${po.dictField}"
<#if po.readonly=='Y'>disabled#if>>
<#else>
disabled#if>>
#if>
#if>
#list>
<#list subTables as sub><#rt/>
<#if sub.foreignRelationType =='1'>
<${Format.humpToShortbar(sub.entityName)}-form ref="${sub.entityName?uncap_first}Form" @validateError="validateError" :disabled="formDisabled">${Format.humpToShortbar(sub.entityName)}-form>
<#else>
#if>
#list>
<#if bpm_flag>
提 交
#if>