<rt-form id="{{vm.form.name}}" name="{{vm.form.name}}" style="margin-bottom: 45px;" novalidate>
    <div class="row rt-margin-bottom-before-box">
        <div class="col-sm-2">
            <button class="btn btn-link" type="button" id="btnClose" ng-click="vm.form.hide()">
                        <i class="fa fa-sign-out"></i> 关闭
                    </button>
        </div>
        <div class="col-sm-10">
            <div class="pull-right" ng-if="vm.form.isFlowApprover">
                <rt-button id="btnApprove" rt-style="link" rt-title="同意" rt-icon="floppy-o" ng-click="vm.form.flowApprove()">
                </rt-button>
                <rt-button id="btnReject" rt-style="link" rt-title="拒绝" rt-icon="floppy-o" ng-click="vm.form.flowReject()">
                </rt-button>
                <rt-button id="btnTransmit" rt-style="link" rt-title="转发" rt-icon="floppy-o" ng-click="vm.form.flowTransmit()">
                </rt-button>
            </div>

            <div class="pull-right" ng-if="vm.form.isFlowSubmitter">
                <rt-button id="btnRecall" rt-style="link" rt-title="撤销" rt-icon="floppy-o" ng-click="vm.form.flowRecall()">
                </rt-button>
            </div>

            <div class="pull-right" ng-if="vm.form.data.approval_result=='5'">
                <rt-button id="btnResubmit" rt-style="link" rt-title="重新提交" rt-icon="floppy-o" ng-click="vm.form.reSubmit()">
                </rt-button>
            </div>
        </div>
    </div>
    <div class="nav-tabs-custom">
        <div class="tab-content">
            <div>
                <p>
                    <span class="rt-text-important-02">{{vm.form.data.accountId.Name==null?vm.form.data.account_info.name:vm.form.data.accountId.Name}}</span>
                    <span class="rt-text-weak-02 rt-text-box-right-01" ng-style="{color:(vm.form.data.approval_result==='1'||vm.form.data.approval_result==='4')?'#0099ff':((vm.form.data.approval_result==='2')?'#33bc98':'red')}">{{vm.form.data.approval_resultName}}</span>
                </p>
                <p>
                    <span class="rt-text-weak-02">单号：{{vm.form.data.code}}</span>
                </p>
                <p>
                    <span class="rt-text-weak-02">申请类型：{{vm.form.data.app_type.Name}}</span>
                </p>
            </div>
        </div>
    </div>

    <!-- 新增客户-->
    <ul class="nav nav-tabs" ng-if="vm.form.data.app_type.Value==='10'">
        <li class="active">
            <a ng-click="chooseTab(1)" data-toggle="tab">基本信息</a>
        </li>
        <li>
            <a ng-click="chooseTab(3)" data-toggle="tab">权限信息</a>
        </li>
        <li>
            <a ng-click="chooseTab(4)" data-toggle="tab">审批流程</a>
        </li>
    </ul>

    <!-- 变更客户信息-->
    <ul class="nav nav-tabs" ng-if="vm.form.data.app_type.Value==='20'">
        <li class="active">
            <a ng-click="chooseTab(2)" data-toggle="tab">差异信息</a>
        </li>
        <li>
            <a ng-click="chooseTab(1)" data-toggle="tab">基本信息</a>
        </li>
        <li>
            <a ng-click="chooseTab(4)" data-toggle="tab">审批流程</a>
        </li>
    </ul>

    <!-- 申请权限-->
    <ul class="nav nav-tabs" ng-if="vm.form.data.app_type.Value==='30'">
        <li class="active">
            <a ng-click="chooseTab(3)" data-toggle="tab">权限信息</a>
        </li>
        <li>
            <a ng-click="chooseTab(4)" data-toggle="tab">审批流程</a>
        </li>
    </ul>

    <!-- 商业-->
    <div class="nav-tabs-custom" ng-if="vm.tabIndex==1&&vm.form.data.accountclassificationcode.Value=='1'">
        <div class="viewlist">
            <table class="table table-hover">
                <tbody>
                    <tr>
                        <td>客户名称</td>
                        <td>
                            {{vm.form.data.account_info.name}}
                        </td>
                    </tr>
                    <tr>
                        <td>客户编码</td>
                        <td>
                            {{vm.form.data.account_info.accountnumber}}
                        </td>
                    </tr>
                    <tr>
                        <td>商业级别</td>
                        <td>
                            {{vm.form.data.account_info.acc_level.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>商业分级</td>
                        <td>
                            {{vm.form.data.account_info.account_grade_level.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>上级客户</td>
                        <td>
                            {{vm.form.data.account_info.parentaccountid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>电话</td>
                        <td>
                            {{vm.form.data.account_info.telephone}}
                        </td>
                    </tr>
                    <tr>
                        <td>传真</td>
                        <td>
                            {{vm.form.data.account_info.fax}}
                        </td>
                    </tr>
                    <tr>
                        <td>省市县</td>
                        <td>
                            {{vm.form.data.account_info.provinceid.Name}}{{vm.form.data.account_info.cityid.Name}}{{vm.form.data.account_info.countyid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>地址</td>
                        <td>
                            {{vm.form.data.account_info.address}}
                        </td>
                    </tr>
                    <tr>
                        <td>GSP系统编号</td>
                        <td>
                            {{vm.form.data.account_info.acc_erpno}}
                        </td>
                    </tr>
                    <tr>
                        <td>注册资金（万元）</td>
                        <td>
                            {{vm.form.data.account_info.acc_registrar_amount}}
                        </td>
                    </tr>
                    <tr>
                        <td>资信等级</td>
                        <td>
                            {{vm.form.data.account_info.credit.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>合作产品</td>
                        <td>
                            {{vm.form.data.account_info.main_variety}}
                        </td>
                    </tr>
                    <tr>
                        <td>是否是基药配送商</td>
                        <td>
                            {{vm.form.data.account_info.is_bmdistributor?'是':'否'}}
                        </td>
                    </tr>
                    <tr>
                        <td>药品性质</td>
                        <td>
                            {{vm.form.data.account_info.acc_type.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>法定代表人</td>
                        <td>
                            {{vm.form.data.account_info.acc_person}}
                        </td>
                    </tr>
                    <tr>
                        <td>经营模式</td>
                        <td>
                            {{vm.form.data.account_info.businessmodel}}
                        </td>
                    </tr>
                    <tr>
                        <td>合作关系</td>
                        <td>
                            {{vm.form.data.account_info.partnership.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>经济性质</td>
                        <td>
                            {{vm.form.data.account_info.economicnature}}
                        </td>
                    </tr>
                    <tr>
                        <td>所属医药集团</td>
                        <td>
                            {{vm.form.data.account_info.acc_group}}
                        </td>
                    </tr>
                    <tr>
                        <td>当地排名</td>
                        <td>
                            {{vm.form.data.account_info.acc_business_count}}
                        </td>
                    </tr>
                    <tr>
                        <td>经销商年营业额</td>
                        <td>
                            {{vm.form.data.account_info.sales}}
                        </td>
                    </tr>
                    <tr>
                        <td>配送能力</td>
                        <td>
                            {{vm.form.data.account_info.accountlevel.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>回款信誉程度</td>
                        <td>
                            {{vm.form.data.account_info.creditdegree.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>贷款周转天数</td>
                        <td>
                            {{vm.form.data.account_info.turnover}}
                        </td>
                    </tr>
                    <tr>
                        <td>商业覆盖范围</td>
                        <td>
                            {{vm.form.data.account_info.scope}}
                        </td>
                    </tr>
                    <tr>
                        <td>标签</td>
                        <td style="white-space:normal">
                            {{vm.form.data.account_info.account_tag|toTagString}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <!-- 医院-->
    <div class="nav-tabs-custom" ng-if="vm.tabIndex==1&&vm.form.data.accountclassificationcode.Value=='2'">
        <div class="viewlist">
            <table class="table table-hover">
                <tbody>
                    <tr>
                        <td>医院名称</td>
                        <td>
                            {{vm.form.data.account_info.name}}
                        </td>
                    </tr>
                    <tr>
                        <td>医院编码</td>
                        <td>
                            {{vm.form.data.account_info.accountnumber}}
                        </td>
                    </tr>
                    <tr>
                        <td>医院级别</td>
                        <td>
                            {{vm.form.data.account_info.account_grade.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>医院分级</td>
                        <td>
                            {{vm.form.data.account_info.account_grade_level.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>上级医院</td>
                        <td>
                            {{vm.form.data.account_info.parentaccountid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>医院类型</td>
                        <td>
                            {{vm.form.data.account_info.accounttype.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>省市县</td>
                        <td>
                            {{vm.form.data.account_info.provinceid.Name}}{{vm.form.data.account_info.cityid.Name}}{{vm.form.data.account_info.countyid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>地址</td>
                        <td>
                            {{vm.form.data.account_info.address}}
                        </td>
                    </tr>
                    <tr>
                        <td>备注</td>
                        <td>
                            {{vm.form.data.account_info.remarks}}
                        </td>
                    </tr>
                    <tr>
                        <td>医生人数</td>
                        <td>
                            {{vm.form.data.account_info.hos_docqty}}
                        </td>
                    </tr>
                    <tr>
                        <td>日门诊量</td>
                        <td>
                            {{vm.form.data.account_info.cl_qty}}
                        </td>
                    </tr>
                    <tr>
                        <td>床位数</td>
                        <td>
                            {{vm.form.data.account_info.hs_qty}}
                        </td>
                    </tr>
                    <tr>
                        <td>主要联系人</td>
                        <td>
                            {{vm.form.data.account_info.primarycontactid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>传真</td>
                        <td>
                            {{vm.form.data.account_info.fax}}
                        </td>
                    </tr>
                    <tr>
                        <td>电话</td>
                        <td>
                            {{vm.form.data.account_info.telephone}}
                        </td>
                    </tr>
                    <tr>
                        <td>特色专科</td>
                        <td>
                            {{vm.form.data.account_info.hs_doctor}}
                        </td>
                    </tr>
                    <tr>
                        <td>年度进药总额</td>
                        <td>
                            {{vm.form.data.account_info.hos_year_amount2}}
                        </td>
                    </tr>
                    <tr>
                        <td>组织机构代码证</td>
                        <td>
                            {{vm.form.data.account_info.acc_org_number}}
                        </td>
                    </tr>
                    <tr>
                        <td>代码证到期日期</td>
                        <td>
                            {{vm.form.data.account_info.acc_org_validdate | date:'yyyy-MM-dd'}}
                        </td>
                    </tr>
                    <tr>
                        <td>营业执照号码</td>
                        <td>
                            {{vm.form.data.account_info.acc_passport_number}}
                        </td>
                    </tr>
                    <tr>
                        <td>执照号到期日期</td>
                        <td>
                            {{vm.form.data.account_info.acc_passport_validdate| date:'yyyy-MM-dd'}}
                        </td>
                    </tr>
                    <tr>
                        <td>是否二次议价</td>
                        <td>
                            {{vm.form.data.account_info.is_secondrebate?'是':'否'}}
                        </td>
                    </tr>
                    <tr>
                        <td>是否被托管</td>
                        <td>
                            {{vm.form.data.account_info.is_trusteeship?'是':'否'}}
                        </td>
                    </tr>
                    <tr>
                        <td>标签</td>
                        <td style="white-space:normal">
                            {{vm.form.data.account_info.account_tag|toTagString}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <!-- 门店-->
    <div class="nav-tabs-custom" ng-if="vm.tabIndex==1&&vm.form.data.accountclassificationcode.Value=='3'">
        <div class="viewlist">
            <table class="table table-hover">
                <tbody>
                    <tr>
                        <td>终端名称</td>
                        <td>
                            {{vm.form.data.account_info.name}}
                        </td>
                    </tr>
                    <tr>
                        <td>终端编码</td>
                        <td>
                            {{vm.form.data.account_info.accountnumber}}
                        </td>
                    </tr>
                    <tr>
                        <td>上级客户</td>
                        <td>
                            {{vm.form.data.account_info.parentaccountid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>电话</td>
                        <td>
                            {{vm.form.data.account_info.telephone}}
                        </td>
                    </tr>
                    <tr>
                        <td>传真</td>
                        <td>
                            {{vm.form.data.account_info.fax}}
                        </td>
                    </tr>
                    <tr>
                        <td>省市县</td>
                        <td>
                            {{vm.form.data.account_info.provinceid.Name}}{{vm.form.data.account_info.cityid.Name}}{{vm.form.data.account_info.countyid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>地址</td>
                        <td>
                            {{vm.form.data.account_info.address}}
                        </td>
                    </tr>
                    <tr>
                        <td>终端类型</td>
                        <td>
                            {{vm.form.data.account_info.yaotype.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>终端性质</td>
                        <td>
                            {{vm.form.data.account_info.st_type.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>终端分级</td>
                        <td>
                            {{vm.form.data.account_info.account_grade_level.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>月均销售额(万元)</td>
                        <td>
                            {{vm.form.data.account_info.st_amount}}
                        </td>
                    </tr>
                    <tr>
                        <td>客单价</td>
                        <td>
                            {{vm.form.data.account_info.everyaccount_amt}}
                        </td>
                    </tr>
                    <tr>
                        <td>店面面积(平方米)</td>
                        <td>
                            {{vm.form.data.account_info.st_acreage}}
                        </td>
                    </tr>
                    <tr>
                        <td>月均客户数</td>
                        <td>
                            {{vm.form.data.account_info.ave_accounts}}
                        </td>
                    </tr>
                    <tr>
                        <td>是否目标终端</td>
                        <td>
                            {{vm.form.data.account_info.st_isclinet?'是':'否'}}
                        </td>
                    </tr>
                    <tr>
                        <td>年度进药总额</td>
                        <td>
                            {{vm.form.data.account_info.hos_year_amount2}}
                        </td>
                    </tr>
                    <tr>
                        <td>组织机构代码证</td>
                        <td>
                            {{vm.form.data.account_info.acc_org_number}}
                        </td>
                    </tr>
                    <tr>
                        <td>代码证到期日期</td>
                        <td>
                            {{vm.form.data.account_info.acc_org_validdate | date:'yyyy-MM-dd'}}
                        </td>
                    </tr>
                    <tr>
                        <td>营业执照号码</td>
                        <td>
                            {{vm.form.data.account_info.acc_passport_number}}
                        </td>
                    </tr>
                    <tr>
                        <td>执照号到期日期</td>
                        <td>
                            {{vm.form.data.account_info.acc_passport_validdate| date:'yyyy-MM-dd'}}
                        </td>
                    </tr>
                    <tr>
                        <td>是否二次议价</td>
                        <td>
                            {{vm.form.data.account_info.is_secondrebate?'是':'否'}}
                        </td>
                    </tr>
                    <tr>
                        <td>是否被托管</td>
                        <td>
                            {{vm.form.data.account_info.is_trusteeship?'是':'否'}}
                        </td>
                    </tr>
                    <tr>
                        <td>标签</td>
                        <td style="white-space:normal">
                            {{vm.form.data.account_info.account_tag|toTagString}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <!-- 基层医疗-->
    <div class="nav-tabs-custom" ng-if="vm.tabIndex==1&&vm.form.data.accountclassificationcode.Value=='4'">
        <div class="viewlist">
            <table class="table table-hover">
                <tbody>
                    <tr>
                        <td>机构名称</td>
                        <td>
                            {{vm.form.data.account_info.name}}
                        </td>
                    </tr>
                    <tr>
                        <td>机构编码</td>
                        <td>
                            {{vm.form.data.account_info.accountnumber}}
                        </td>
                    </tr>
                    <tr>
                        <td>机构类型</td>
                        <td>
                            {{vm.form.data.account_info.orgtype.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>机构分级</td>
                        <td>
                            {{vm.form.data.account_info.account_grade_level.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>省市县</td>
                        <td>
                            {{vm.form.data.account_info.provinceid.Name}}{{vm.form.data.account_info.cityid.Name}}{{vm.form.data.account_info.countyid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>医生人数</td>
                        <td>
                            {{vm.form.data.account_info.hos_docqty}}
                        </td>
                    </tr>
                    <tr>
                        <td>日门诊量</td>
                        <td>
                            {{vm.form.data.account_info.cl_qty}}
                        </td>
                    </tr>
                    <tr>
                        <td>床位数</td>
                        <td>
                            {{vm.form.data.account_info.hs_qty}}
                        </td>
                    </tr>
                    <tr>
                        <td>上级单位</td>
                        <td>
                            {{vm.form.data.account_info.parentaccountid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>传真</td>
                        <td>
                            {{vm.form.data.account_info.fax}}
                        </td>
                    </tr>
                    <tr>
                        <td>电话</td>
                        <td>
                            {{vm.form.data.account_info.telephone}}
                        </td>
                    </tr>
                    <tr>
                        <td>特色专科</td>
                        <td>
                            {{vm.form.data.account_info.hs_doctor}}
                        </td>
                    </tr>
                    <tr>
                        <td>年度进药总额</td>
                        <td>
                            {{vm.form.data.account_info.hos_year_amount2}}
                        </td>
                    </tr>
                    <tr>
                        <td>组织机构代码证</td>
                        <td>
                            {{vm.form.data.account_info.acc_org_number}}
                        </td>
                    </tr>
                    <tr>
                        <td>代码证到期日期</td>
                        <td>
                            {{vm.form.data.account_info.acc_org_validdate | date:'yyyy-MM-dd'}}
                        </td>
                    </tr>
                    <tr>
                        <td>营业执照号码</td>
                        <td>
                            {{vm.form.data.account_info.acc_passport_number}}
                        </td>
                    </tr>
                    <tr>
                        <td>执照号到期日期</td>
                        <td>
                            {{vm.form.data.account_info.acc_passport_validdate| date:'yyyy-MM-dd'}}
                        </td>
                    </tr>
                    <tr>
                        <td>是否执行基药目录</td>
                        <td>
                            {{vm.form.data.account_info.iscontents?'是':'否'}}
                        </td>
                    </tr>
                    <tr>
                        <td>是否政府办</td>
                        <td>
                            {{vm.form.data.account_info.isgov?'是':'否'}}
                        </td>
                    </tr>
                    <tr>
                        <td>标签</td>
                        <td style="white-space:normal">
                            {{vm.form.data.account_info.account_tag|toTagString}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <!-- 代理商-->
    <div class="nav-tabs-custom" ng-if="vm.tabIndex==1&&vm.form.data.accountclassificationcode.Value=='5'">
        <div class="viewlist">
            <table class="table table-hover">
                <tbody>
                    <tr>
                        <td>代理商名称</td>
                        <td>
                            {{vm.form.data.account_info.name}}
                        </td>
                    </tr>
                    <tr>
                        <td>代理商编码</td>
                        <td>
                            {{vm.form.data.account_info.accountnumber}}
                        </td>
                    </tr>
                    <tr>
                        <td>电话</td>
                        <td>
                            {{vm.form.data.account_info.telephone}}
                        </td>
                    </tr>
                    <tr>
                        <td>传真</td>
                        <td>
                            {{vm.form.data.account_info.fax}}
                        </td>
                    </tr>
                    <tr>
                        <td>省市县</td>
                        <td>
                            {{vm.form.data.account_info.provinceid.Name}}{{vm.form.data.account_info.cityid.Name}}{{vm.form.data.account_info.countyid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>地址</td>
                        <td>
                            {{vm.form.data.account_info.address}}
                        </td>
                    </tr>
                    <tr>
                        <td>机构代码</td>
                        <td>
                            {{vm.form.data.account_info.acc_org_number}}
                        </td>
                    </tr>
                    <tr>
                        <td>上级客户</td>
                        <td>
                            {{vm.form.data.account_info.parentaccountid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>主营品种</td>
                        <td>
                            {{vm.form.data.account_info.main_variety}}
                        </td>
                    </tr>
                    <tr>
                        <td>主营科室</td>
                        <td>
                            {{vm.form.data.account_info.main_section}}
                        </td>
                    </tr>
                    <tr>
                        <td>覆盖范围</td>
                        <td>
                            {{vm.form.data.account_info.scope}}
                        </td>
                    </tr>
                    <tr>
                        <td>描述</td>
                        <td>
                            {{vm.form.data.account_info.description}}
                        </td>
                    </tr>
                    <tr>
                        <td>标签</td>
                        <td style="white-space:normal">
                            {{vm.form.data.account_info.account_tag|toTagString}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <!-- 连锁总部-->
    <div class="nav-tabs-custom" ng-if="vm.tabIndex==1&&vm.form.data.accountclassificationcode.Value=='6'">
        <div class="viewlist">
            <table class="table table-hover">
                <tbody>
                    <tr>
                        <td>连锁名称</td>
                        <td>
                            {{vm.form.data.account_info.name}}
                        </td>
                    </tr>
                    <tr>
                        <td>连锁编码</td>
                        <td>
                            {{vm.form.data.account_info.accountnumber}}
                        </td>
                    </tr>
                    <tr>
                        <td>上级客户</td>
                        <td>
                            {{vm.form.data.account_info.parentaccountid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>电话</td>
                        <td>
                            {{vm.form.data.account_info.telephone}}
                        </td>
                    </tr>
                    <tr>
                        <td>传真</td>
                        <td>
                            {{vm.form.data.account_info.fax}}
                        </td>
                    </tr>
                    <tr>
                        <td>省市县</td>
                        <td>
                            {{vm.form.data.account_info.provinceid.Name}}{{vm.form.data.account_info.cityid.Name}}{{vm.form.data.account_info.countyid.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>地址</td>
                        <td>
                            {{vm.form.data.account_info.address}}
                        </td>
                    </tr>
                    <tr>
                        <td>连锁类型</td>
                        <td>
                            {{vm.form.data.account_info.chain_type.Name}}
                        </td>
                    </tr>
                    <tr>
                        <td>终端数量</td>
                        <td>
                            {{vm.form.data.account_info.terminal_count}}
                        </td>
                    </tr>
                    <tr>
                        <td>直营店数量</td>
                        <td>
                            {{vm.form.data.account_info.terminal_count_direct}}
                        </td>
                    </tr>
                    <tr>
                        <td>加盟店数量</td>
                        <td>
                            {{vm.form.data.account_info.terminal_count_franchise}}
                        </td>
                    </tr>
                    <tr>
                        <td>年营业额(万元)</td>
                        <td>
                            {{vm.form.data.account_info.sales}}
                        </td>
                    </tr>
                    <tr>
                        <td>标签</td>
                        <td style="white-space:normal">
                            {{vm.form.data.account_info.account_tag|toTagString}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="nav-tabs-custom" ng-if="vm.tabIndex==2">
        <div class="viewlist">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>字段名</th>
                        <th>变更前</th>
                        <th>变更后</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.form.data.account_info_diff">
                        <td>
                            {{row.diffParam.Name}}
                        </td>
                        <td ng-if="row.diffParam.Value!='account_tag'">
                            {{row.oldValue}}
                        </td>
                        <td ng-if="row.diffParam.Value!='account_tag'">
                            {{row.newValue}}
                        </td>
                        <td ng-if="row.diffParam.Value=='account_tag'" style="white-space:normal">
                            {{row.oldValue|toTagString}}
                        </td>
                        <td ng-if="row.diffParam.Value=='account_tag'" style="white-space:normal">
                            {{row.newValue|toTagString}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="nav-tabs-custom" ng-if="vm.tabIndex==3">
        <div class="viewlist">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>小区</th>
                        <th>代表</th>
                        <th>部门</th>
                        <th>品种</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.form.data.account_region_diff">
                        <td>
                            {{row.sales_regionidname}}
                        </td>
                        <td>
                            {{row.owneridname}}
                        </td>
                        <td>
                            {{row.buidname}}{{row.bigdepartidname}}{{row.businessunitidname}}
                        </td>
                        <td>
                            {{row.product_categoryidname}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="tab-content" ng-if="vm.tabIndex==4">
        <section id="cd-timeline" class="cd-container">
            <div ng-if="vm.form.approverList.length > 0">
                <div class="cd-timeline-block rt-flow-item">
                    <div class="cd-timeline-icon text-center" style="color:white;" ng-style="{{vm.form.getAvatarColor(3)}};">
                        {{vm.form.getAvatarName2(vm.form.approverList[0].SubmittedBy.Name)}}
                    </div>
                    <div class="cd-timeline-content" style="padding:10px;">
                        <p class="username-01">
                            {{vm.form.approverList[0].SubmittedBy.Name}}
                        </p>
                        <p class="status-02">
                            发起申请
                        </p>
                        <p class="datetime">
                            {{vm.form.approverList[0].CreatedOn | date:'yyyy-MM-dd HH:mm'}}
                        </p>
                    </div>
                </div>
            </div>
            <div ng-repeat="user in vm.form.approverList">
                <div class="cd-timeline-block rt-flow-item">
                    <div class="cd-timeline-icon text-center" style="color:white;" ng-style="{{vm.form.getAvatarColor($index)}};">
                        {{vm.form.getAvatarName2(user.OwnerId.Name)}}
                    </div>
                    <div class="cd-timeline-content" style="padding:10px;">
                        <p class="username-01" ng-show="user.approval_status.Value != 1">
                            {{user.OwnerId.Name}}
                        </p>
                        <p class="username-02" ng-show="user.approval_status.Value == 1">
                            {{user.OwnerId.Name}}
                        </p>
                        <p class="status-01" ng-show="user.approval_status.Value == 2">
                            审批中
                        </p>
                        <p class="status-02" ng-show="user.approval_status.Value == 3 && user.approval_result.Value == 2">
                            {{user.approval_result.Name}}{{user.remark!=null && user.remark!=''?"(":""}}{{user.remark}}{{user.remark!=null && user.remark!=''?")":""}}
                        </p>

                        <p class="status-03" ng-show="user.approval_status.Value == 3 && user.approval_result.Value == 3">
                            {{user.approval_result.Name}}{{user.remark!=null && user.remark!=''?"(":""}}{{user.remark}}{{user.remark!=null && user.remark!=''?")":""}}
                        </p>

                        <p class="status-02" ng-show="user.approval_status.Value == 3 && user.approval_result.Value == 4">
                            {{user.approval_result.Name}}{{user.remark!=null && user.remark!=''?"(":""}}{{user.remark}}{{user.remark!=null && user.remark!=''?")":""}}
                        </p>

                        <p class="datetime" ng-show="user.approval_result.Value == 4">
                            {{user.ModifiedOn | date:'yyyy-MM-dd HH:mm'}}
                        </p>

                        <p class="status-03" ng-show="user.approval_status.Value == 3 && user.approval_result.Value == 5">
                            {{user.approval_result.Name}}{{user.remark!=null && user.remark!=''?"(":""}}{{user.remark}}{{user.remark!=null && user.remark!=''?")":""}}
                        </p>

                        <p class="datetime" ng-show="user.approval_status.Value == 3">
                            {{user.ApprovedOn | date:'yyyy-MM-dd HH:mm'}}
                        </p>
                    </div>
                </div>
            </div>
        </section>
    </div>
</rt-form>