${text(company.isNewRecord ? '新增公司' : '编辑公司')}
${text('基本信息')}
<#form:treeselect id="parent" title="${text('上级公司')}"
path="parent.id" labelPath="parent.companyName"
url="${ctx}/sys/company/treeData?excludeCode=${company.id}&ctrlPermi=${@Global.getConfig('user.adminCtrlPermi', '2')}"
class="" allowClear="true" canSelectRoot="true" canSelectParent="true"/>
<#form:input path="companyName" maxlength="200" class="form-control required "/>
<#form:hidden path="isNewRecord"/>
<#form:hidden path="companyCode"/>
<#form:input path="viewCode" maxlength="64" readonly="${!company.isNewRecord}" class="form-control required abc"/>
<#form:input path="fullName" maxlength="200" class="form-control required "/>
<#form:input path="treeSort" maxlength="10" class="form-control required digits"/>
<#form:treeselect id="area" title="${text('区域选择')}"
path="area.areaCode" labelName="area.areaName" labelValue="${company.area.treeNames!}"
url="${ctx}/sys/area/treeData" returnFullName="true"
class=" " allowClear="true"/>
<#form:treeselect id="companyOfficeList" title="${text('机构选择')}"
value="${@ListUtils.extractToString(officeList!, 'officeCode', ',')}"
labelValue="${@ListUtils.extractToString(officeList!, 'officeName', ',')}"
url="${ctx}/sys/office/treeData" checkbox="true"
class="" allowClear="true"/>
<#form:hidden name="companyOfficeListJson"/>
<#form:textarea path="remarks" rows="4" maxlength="500" class="form-control "/>