<table border="0" align="center" cellpadding="0" cellspacing="0" width="1000" ms-controller="ViewCustomer">
    <tbody style="background-color: #fff;">
        <tr>
            <!--leftNav-->
            <td width="120" height="*" valign="top" bgcolor="#edecec" id="view_left">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableClassify">
                    <tbody>
                        <tr>
                            <td height="55" ms-class-official="customerEntity.SuperiorCategoryId==10103 || customerEntity.SuperiorCategoryId==10107"
                                ms-class-collaborate="customerEntity.SuperiorCategoryId==10131" ms-class-channel="customerEntity.SuperiorCategoryId==10132"
                                ms-class-supply="customerEntity.SuperiorCategoryId==10133" ms-class-latent="customerEntity.SuperiorCategoryId==10134"
                                ms-class-compete="customerEntity.SuperiorCategoryId==10135" ms-class-society="customerEntity.SuperiorCategoryId==11170">&nbsp;</td>
                        </tr>
                        <tr>
                            <td height="25" align="center">
                                <strong style="font-size: 12px; line-height: 22px;">{{customerEntity.SuperiorCategoryDisplay|truncate(30,"")}}</strong>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div ms-visible="customerEntity.SuperiorCategoryId!=10135">
                    <ul style="margin-top: 10px;" ms-if="customerEntity.InRecycleBin">
                        <li ms-class-selected="currNav==1"><a ms-click="doChangeNav(1)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">客户详情</a></li>
                    </ul>
                    <ul style="margin-top: 10px;" ms-if="!customerEntity.InRecycleBin">
                        <li ms-class-selected="currNav==1"><a ms-click="doChangeNav(1)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">客户详情</a></li>
                        <li ms-if="authContacts && authEntity" ms-class-selected="currNav==2"><a ms-click="doChangeNav(2)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">联系人</a></li>
                        <li ms-if="authSalesOpportunities && authEntity" ms-class-selected="currNav==3"><a ms-click="doChangeNav(3)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">销售机会</a></li>
                        <li ms-if="authDocumentaryOffer && authEntity" ms-class-selected="currNav==14"><a ms-click="doChangeNav(14)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">跟单报价</a></li>
                        <li ms-if="authContract && authEntity" ms-class-selected="currNav==4"><a ms-click="doChangeNav(4)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">合同订单</a></li>
                        <li ms-if="authProductList && authEntity" ms-class-selected="currNav==5"><a ms-click="doChangeNav(5)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">业务明细</a></li>
                        <li ms-if="authAccounting && authEntity" ms-class-selected="currNav==6"><a ms-click="doChangeNav(6)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">款项流水</a></li>
                        <li ms-if="authCalendar && authEntity" ms-class-selected="currNav==7"><a ms-click="doChangeNav(7)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">日程任务</a></li>
                        <li ms-if="authCalls && authEntity" ms-class-selected="currNav==8"><a ms-click="doChangeNav(8)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">来电管理</a></li>
                        <li ms-if="authFollowUp && authEntity" ms-class-selected="currNav==9"><a ms-click="doChangeNav(9)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">回访关怀</a></li>
                        <li ms-if="authCServices && authEntity" ms-class-selected="currNav==10"><a ms-click="doChangeNav(10)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">客户服务</a></li>
                        <li ms-if="authComplaints && authEntity" ms-class-selected="currNav==11"><a ms-click="doChangeNav(11)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">客户投诉</a></li>
                        <li ms-if="authCredentials && authEntity" ms-class-selected="currNav==13"><a ms-click="doChangeNav(13)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">客户证件</a></li>
                        <li ms-if="authDynamic && authEntity" ms-class-selected="currNav==15"><a ms-click="doChangeNav(15)" href="javascript:void(0)" ms-attr-val="customerEntity.Id">客户动态</a></li>
                        <li ms-if="authTree && authEntity" ms-class-selected="currNav==19"><a ms-click="doChangeNav(19)" href="javascript:void(0)">客户树</a></li>
                        <li ms-if="authAnalysis && authEntity" ms-class-selected="currNav==20"><a ms-click="doChangeNav(20)" href="javascript:void(0)">客户分析</a></li>
                    </ul>
                </div>
                <div ms-if="customerEntity.SuperiorCategoryId==10135 && authEntity">
                    <ul style="margin-top: 10px;">
                        <li class="last" ms-class-selected="currNav==1"><a ms-click="doChangeNav(1)" href="javascript:void(0);">对手详情</a></li>
                        <li ms-if="authTree" ms-class-selected="currNav==19"><a ms-click="doChangeNav(19)" href="javascript:void(0)">客户树</a></li>
                        <li ms-if="authAnalysis" ms-class-selected="currNav==20"><a ms-click="doChangeNav(20)" href="javascript:void(0)">客户分析</a></li>
                    </ul>
                </div>
                <div ms-if="CustomerRecordModel.configs.ShowStart==0 && authEntity && !customerEntity.InRecycleBin">
                    <ul ms-if="CustomerRecordModel.configs.ShowNumder==0 && !customerEntity.InRecycleBin">
                        <li ms-if="IsDate==0" ms-class-selected="currNav==16">
                            <a ms-click="doChangeNav(16)" href="javascript:void(0);" ms-attr-val="0" ms-title="CustomerRecordModel.configs.NumderTag">{{CustomerRecordModel.configs.NumderTag|truncate2(4,"..")}}</a></li>
                        <li ms-if="IsDate==1" ms-class-selected="currNav==16">
                            <a ms-click="doChangeNav(16)" href="javascript:void(0);" ms-attr-val="CustomerRecordSettings.Id" ms-title="CustomerRecordSettings.RecordTag">{{CustomerRecordSettings.RecordTag|truncate2(4,"..")}}</a></li>
                    </ul>
                    <div ms-if="CustomerRecordModel.configs.ShowNumder==1 && !customerEntity.InRecycleBin">
                        <ul ms-if="CustomerRecordModel.configs.ShowPosition==0">
                            <li ms-repeat-r="CustomerRecordleftlist" ms-class-selected="currNav==(r.id)">
                                <a ms-click="ChangeNav(r.id,r.Val)" href="javascript:void(0);" ms-title="r.Val">{{r.Val|truncate2(4,"..")}}</a>
                            </li>
                        </ul>
                        <ul ms-if="CustomerRecordModel.configs.ShowPosition==1 && !customerEntity.InRecycleBin">
                            <li ms-if="IsDate==0" ms-class-selected="currNav==17">
                                <a ms-click="doChangeNav(17)" href="javascript:void(0);" ms-attr-val="0" ms-title="CustomerRecordModel.configs.TagPositionTag">{{CustomerRecordModel.configs.TagPositionTag|truncate2(4,"..")}}</a></li>
                            <li ms-if="IsDate==1" ms-class-selected="currNav==17">
                                <a ms-click="doChangeNav(17)" href="javascript:void(0);" ms-attr-val="CustomerRecordSettings.Id" ms-title="CustomerRecordSettings.RecordTag">{{CustomerRecordSettings.RecordTag|truncate2(4,"..")}}</a></li>
                        </ul>
                        <ul ms-if="CustomerRecordModel.configs.ShowPosition==2 && !customerEntity.InRecycleBin">
                            <li ms-if="IsDate==0" ms-class-selected="currNav==18">
                                <a ms-click="doChangeNav(18)" href="javascript:void(0);" ms-attr-val="0" ms-title="CustomerRecordModel.configs.ListPositionTag">{{CustomerRecordModel.configs.ListPositionTag|truncate2(4,"..")}}</a></li>
                            <li ms-if="IsDate==1" ms-class-selected="currNav==18">
                                <a ms-click="doChangeNav(18)" href="javascript:void(0);" ms-attr-val="0" ms-title="CustomerRecordSettings.RecordTag">{{CustomerRecordSettings.RecordTag|truncate2(4,"..")}}</a></li>
                        </ul>
                    </div>
                </div>
                <div>
                    <ul>
                        <li ms-if="authPriceList && authEntity && (!customerEntity.InRecycleBin)" ms-class-selected="currNav==21"><a ms-click="doChangeNav(21)" href="javascript:void(0)">享受价格</a></li>
                        <li ms-if="authHistory && authEntity && (!customerEntity.InRecycleBin)" ms-class-selected="currNav==12"><a ms-click="doChangeNav(12)" href="javascript:void(0)">历史归属</a></li>
                    </ul>
                </div>
            </td>
            <!--End leftNav-->
            <td valign="top">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" id="customerPanelPrint">
                    <tbody>
                        <tr>
                            <td class="addrightbg" valign="top" style="height: 46px; line-height: 46px; border-bottom: 1px solid #d2d2d2;">&nbsp; 
                                <a style='color: #2D2D2D; font-weight: 300; font-size: 18px; font-family: "黑体"; font-family: "Microsoft Yahei";' ms-attr-title="customerEntity.Name">{{customerEntity.Name|trancate2(20,"...")}}</a>
                                <a title="百度搜索" target="_blank" ms-href="'http://www.baidu.com/s?wd='+customerEntity.Name">
                                    <img style="margin-top: 17px;" src="/Content/Themes/base/Images/ico/c_baidu.jpg"></a>
                                <a title="谷歌搜索" target="_blank" ms-href="'http://www.google.com.hk/search?q='+customerEntity.Name">
                                    <img style="margin-top: 17px;" src="/Content/Themes/base/Images/ico/c_google.jpg"></a>
                                <span style="float: right; margin-right: 15px;" ms-if="!customerEntity.InRecycleBin">
                                    <a ms-if="customerEntity.EDIT" href="javascript:void(0)" ms-click="doedit" class="view_doedit" title="编辑">编辑</a>
                                    <a ms-if="customerEntity.EDIT" href="javascript:void(0)" ms-click="changeCategory" class="view_dobelong" title="变更客户形态">形态</a>
                                    <a ms-if="customerEntity.BELONG && customerEntity.SuperiorCategoryId!=10135" href="javascript:void(0)" ms-click="doBelongTo" class="view_doshare" title="转移归属">归属</a>
                                    <a ms-if="customerEntity.SHARE && customerEntity.SuperiorCategoryId!=10135" href="javascript:void(0)" ms-click="doShare" class="view_doshare" title="共享">共享</a>
                                    <a ms-if="customerEntity.SEA && customerEntity.SuperiorCategoryId!=10135" href="javascript:void(0)" ms-click="doMoveToInternaional" class="view_doputsea" title="放入公海">公海</a>
                                    <a ms-if="customerEntity.DELETE" href="javascript:void(0)" ms-click="doRemove" class="view_doalldel" title="删除">删除</a>
                                    <a ms-if="customerEntity.PRINT" href="javascript:void(0)" ms-click="doPrint" class="view_doprint" title="打印">打印</a>
                                    <a class="view_prefix" ms-if="hasPrevious" href="javascript:void(0)" ms-click="viewCustomer(previousId)" ms-title="previousLabel">&nbsp;</a>
                                    <a class="view_next" ms-if="hasNext" href="javascript:void(0)" ms-click="viewCustomer(nextId)" ms-title="nextLabel">&nbsp;</a>
                                </span>
                            </td>
                        </tr>
                        <tr ms-visible='isCustInfo'>
                            <td>
                                <div style="display: block;" class="top10">
                                    <div>
                                        <ul class="tabWarp">
                                            <li val="tab1" ms-click="tabChange" ms-class-hover="tab=='tab1'" ms-class-normal="tab!='tab1'">基本信息</li>
                                            <li val="tab2" ms-click="tabChange" ms-class-hover="tab=='tab2'" ms-class-normal="tab!='tab2'">扩展信息</li>
                                            <li val="tab3" ms-click="tabChange" ms-class-hover="tab=='tab3'" ms-class-normal="tab!='tab3'">服务信息</li>
                                            <li val="tab4" ms-click="tabChange" ms-if="customerEntity.SuperiorCategoryId=='10132'" ms-class-hover="tab=='tab4'" ms-class-normal="tab!='tab4'" style="width: 120px;">渠道代理商信息</li>
                                            <li val="tab5" ms-click="tabChange" ms-if="customerEntity.SuperiorCategoryId=='10133'" ms-class-hover="tab=='tab5'" ms-class-normal="tab!='tab5'" style="width: 170px;">供应商实力指标评估信息</li>
                                            <li val="tab6" ms-click="tabChange" ms-if="customerEntity.SuperiorCategoryId=='10134'" ms-class-hover="tab=='tab6'" ms-class-normal="tab!='tab6'" style="width: 100px;">媒体资源信息</li>
                                            <li val="tab7" ms-click="tabChange" ms-if="customerEntity.SuperiorCategoryId=='10135'" ms-class-hover="tab=='tab7'" ms-class-normal="tab!='tab7'" style="width: 110px;">竞争SWOT分析</li>
                                            <li val="reload" style="border: none;"><a href="javascript:void(0)" class="transfer acolor" ms-click="reloadCustomer">刷新信息</a></li>
                                        </ul>
                                    </div>
                                    <div ms-visible="tab=='tab1'" class="tabContent" style="border: none;">
                                        <img ms-if="customerEntity.IsBlackList" ms-src="blackImg" style="position: absolute; left: 445px; z-index: 100; top: 40px;" />
                                        <div ms-if="customerEntity.OwnerType==1" class="tip" style="margin: 0px 0px 5px 10px;">注：此客户为公海客户，无原归属权限的用户只能查看有限的基本信息，领取后才能查看详细信息。</div>
                                        <table border="0" cellspacing="1" cellpadding="0" class="tablecInfo" style="width: 100%;">
                                            <tbody>
                                                <tr>
                                                    <td class="tRed" width="90">客户名称：
                                                    </td>
                                                    <td colspan="3">{{customerEntity.Name}}
                                                    </td>
                                                    <td width="90">助记简称：
                                                    </td>
                                                    <td colspan="3">{{customerEntity.ShortName}}
                                                    </td>
                                                </tr>
                                                <tr ms-visible="customerEntity.SuperiorCategoryId!='11170'">
                                                    <td>客户类型：</td>
                                                    <td colspan="3">{{customerTypeDisplay}}
                                                    </td>
                                                    <td class="tRed">会员级别：
                                                    </td>
                                                    <td colspan="3">{{customerEntity.MemberGradeDisplay?customerEntity.MemberGradeDisplay:"无"}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>客户分类：</td>
                                                    <td colspan="3">{{customerEntity.CategoryDisplay}}， 
                                                {{customerEntity.State==0?"潜在":"正式"}}-{{customerEntity.StateGradeDisplay}}
                                                    </td>
                                                    <td>上级客户：</td>
                                                    <td colspan="3">
                                                        <a href="javascript:void(0)" ms-if="customerEntity.HigherCustomerId" ms-click="gotoview(customerEntity.HigherCustomerId)">{{customerEntity.ParentName}}</a>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tRed">服务阶段：</td>
                                                    <td colspan="3">{{customerEntity.StageDisplay}}
                                                    </td>
                                                    <td>客户来源：</td>
                                                    <td colspan="3">{{customerEntity.SourceDisplay}}
                                                    </td>
                                                </tr>
                                                <tr ms-visible='isPerson'>
                                                    <td ms-html='lang.Sex'></td>
                                                    <td>{{customerEntity.Sex==0?"男":"女"}}
                                                    </td>
                                                    <td ms-html='lang.Birthday'></td>
                                                    <td>{{customerEntity.Birthday|truncate(10,"")}}
                                                    </td>
                                                    <td ms-html='lang.IdCardType'></td>
                                                    <td>{{customerEntity.IdCardTypeDisplay}}
                                                    </td>
                                                    <td ms-html='lang.IdCardNO'></td>
                                                    <td>{{customerEntity.IdCardNO}}
                                                    </td>
                                                </tr>
                                                <tr ms-visible='isPerson'>
                                                    <td ms-html="lang.UnitName"></td>
                                                    <td colspan="3">{{customerEntity.Company}}
                                                    </td>
                                                    <td ms-html='lang.Department'></td>
                                                    <td colspan="3">{{customerEntity.Department}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td ms-html='lang.Industry'></td>
                                                    <td colspan="3">{{customerEntity.IndustryDisplay}}
                                                    </td>
                                                    <td ms-html='lang.Profession'></td>
                                                    <td colspan="3">{{customerEntity.Profession}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td ms-html='lang.Scale' style="width: 90px;"></td>
                                                    <td style="width: 100px;">{{customerEntity.ScaleDisplay}}
                                                    </td>
                                                    <td ms-html='lang.RegFund' style="width: 90px;"></td>
                                                    <td style="width: 100px;">
                                                        <span ms-if="customerEntity.RegFund">{{customerEntity.RegFund}}万</span>
                                                    </td>
                                                    <td ms-html='lang.Credit' style="width: 90px;"></td>
                                                    <td style="width: 100px;">
                                                        <div style="width: 80px;" ms-widget='raty,creditRaty,creditRatyOpts' readonly="readonly"></div>
                                                    </td>
                                                    <td ms-html='lang.RelationId' style="width: 90px;"></td>
                                                    <td>{{customerEntity.RelationDisplay}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td ms-html='lang.IsBlackList'></td>
                                                    <td ms-class="tRed:customerEntity.IsBlackList">{{customerEntity.IsBlackList?"是":"否"}}
                                                    </td>
                                                    <td ms-html='lang.Value'></td>
                                                    <td>
                                                        <div style="width: 80px; display: inline;" ms-widget='raty,valueRaty,valueRatyOpts' readonly="readonly"></div>
                                                    </td>
                                                    <td ms-html='lang.IsHot'></td>
                                                    <td ms-class="tRed:customerEntity.IsHot">{{customerEntity.IsHot?"是":"否"}}
                                                    </td>
                                                    <td ms-html='lang.Temperature'></td>
                                                    <td>
                                                        <div ms-widget='processbar,hotprocessbar,hotOpts'></div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>业务分类：</td>
                                                    <td colspan="3">{{customerEntity.BusinessTypesDisplay}}
                                                    </td>
                                                    <td ms-html='lang.ServerLabel'></td>
                                                    <td colspan="3">{{customerEntity.ServerLabelDisplay}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td ms-html='lang.Remark'></td>
                                                    <td colspan="7">{{customerEntity.Remark|areaText|html}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td ms-html='lang.Location'></td>
                                                    <td colspan="7" class="Area">{{customerEntity.CompanyCountryDisplay}}
                                                        {{customerEntity.CompanyProvinceDisplay}}
                                                        {{customerEntity.CompanyCityDisplay}}
                                                        {{customerEntity.CompanyAreaDisplay}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tRed" ms-html='lang.CompanyAddress'></td>
                                                    <td colspan="3">{{customerEntity.CompanyAddress}}&nbsp;&nbsp; 
                                                        <a class="viewmap" ms-if="customerEntity.CompanyAddress && customerEntity.Lng" href="javascript:void(0)" title="查看地图" ms-click="detailMap"></a>
                                                        <a class="noviewmap" ms-if="customerEntity.CompanyAddress && !customerEntity.Lng" href="javascript:void(0)" title="地图未标注"></a>
                                                    </td>
                                                    <td ms-html='lang.CompanyPostCode'></td>
                                                    <td colspan="3">{{customerEntity.CompanyPostCode}}
                                                    </td>
                                                </tr>
                                                <tr ms-if="customerEntity.OwnerType!=1">
                                                    <td class="tRed">
                                                        <span ms-if='!isPerson'>公司电话1：</span>
                                                        <span ms-if='isPerson'>手机：</span>
                                                    </td>
                                                    <td colspan="3">{{customerEntity.CompanyTel1|mobileFormat|html}}
                                                    </td>
                                                    <td ms-html='lang.Tel400'></td>
                                                    <td colspan="3">{{customerEntity.Tel400}}
                                                    </td>
                                                </tr>
                                                <tr ms-if="customerEntity.OwnerType!=1">
                                                    <td>
                                                        <span ms-if='!isPerson'>公司电话2：</span>
                                                        <span ms-if='isPerson'>电话：</span>
                                                    </td>
                                                    <td colspan="3">{{customerEntity.CompanyTel2|mobileFormat|html}}
                                                    </td>
                                                    <td ms-html='lang.Fax'></td>
                                                    <td colspan="3">{{customerEntity.Fax}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <label ms-if='!isPerson'>公司网址：</label>
                                                        <label ms-if='isPerson'>个人主页：</label>
                                                    </td>
                                                    <td colspan="3">{{customerEntity.Homepage|link|html}}
                                                    </td>
                                                    <td ms-html='lang.ShopPage'></td>
                                                    <td colspan="3">{{customerEntity.ShopPage|link|html}}
                                                        
                                                    </td>
                                                </tr>
                                                <tr ms-if="customerEntity.OwnerType!=1">
                                                    <td ms-html='lang.Email'></td>
                                                    <td colspan="3">
                                                        <a ms-href="'#/Tools/Email/'+customerEntity.Email+'/send'">{{customerEntity.Email}}</a>
                                                    </td>
                                                    <td ms-html='lang.QQ'></td>
                                                    <td colspan="3">{{customerEntity.QQ}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td ms-html='lang.Wangwang'></td>
                                                    <td colspan="3">{{customerEntity.Wangwang|truncate(20,"...")}}
                                                    </td>
                                                    <td ms-html='lang.OtherContactMethod'></td>
                                                    <td colspan="3">{{customerEntity.OtherContactMethod}}
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table ms-if="customerEntity.OwnerType!=1 || authEntity" style="width: 100%;" border="0" cellspacing="1" cellpadding="0" class="tableList hasOfferPanel top10">
                                            <tr class="minhead">
                                                <td align="center" width="20%">联系人姓名
                                                </td>
                                                <td align="center" width="15%">手机
                                                </td>
                                                <td align="center" width="15%">电话
                                                </td>
                                                <td align="center" width="10%">QQ
                                                </td>
                                                <td align="center" width="15%">Email
                                                </td>
                                            </tr>
                                            <tr ms-repeat-con="conList" align="center" style="background-color: rgb(255, 255, 255);">
                                                <td align="left">
                                                    <span ms-class="{{con.Sex==0?'sMale':'sFemale'}}" style="margin-left: 5px;"></span>
                                                    {{con.Name}}
                                                    <span ms-if="con.IsFirst" class="tRed">(默认)</span>
                                                    <span ms-if="con.Post" class="tipContent">&nbsp;{{con.Post}}</span>
                                                </td>
                                                <td align="center">{{con.MobileNumber1|mobileFormat|html}}
                                                </td>
                                                <td align="center">{{con.OfficeTel}}
                                                </td>
                                                <td align="center">{{con.QQ}}
                                                </td>
                                                <td align="center">{{con.Email}}
                                                </td>
                                            </tr>
                                            <tr ms-if="conList.length==0">
                                                <td colspan="5">暂无联系人，是否添加？
                                                    <a href="javascript:void(0)" title="点击添加联系人" class="acolor" ms-click="doChangeNav(2,'add')">立即添加</a>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div ms-visible="tab=='tab2'" class="tabContent" style="border: none;">
                                        <table border="0" cellspacing="1" cellpadding="0" class="tablecInfo" style="width: 100%;">
                                            <tbody ms-if="expandoTmpl" ms-html="expandoTmpl">
                                            </tbody>
                                            <tbody>
                                                <tr>
                                                    <td style="width: 90px;">单位全称：
                                                    </td>
                                                    <td style="width: 350px;">{{customerEntity.FullName}}&nbsp;&nbsp;&nbsp;
                                            <span class="red" ms-if="customerEntity.FullNameChangeDate" ms-text="customerEntity.FullNameChangeDate"></span>
                                                    </td>
                                                    <td style="width: 110px;">税务登记号：</td>
                                                    <td>{{customerEntity.TaxNum}}</td>
                                                </tr>
                                                <tr>
                                                    <td>营业执照号：
                                                    </td>
                                                    <td>{{customerEntity.BusinessLicense}}
                                                    </td>
                                                    <td>组织机构代码证：</td>
                                                    <td>{{customerEntity.OrganizationCode}}</td>
                                                </tr>
                                                <tr>
                                                    <td>法人姓名：
                                                    </td>
                                                    <td>{{customerEntity.LegalPersion}}
                                                    </td>
                                                    <td>法人身份证号：</td>
                                                    <td>{{customerEntity.LegalPersionIdCard}}</td>
                                                </tr>
                                                <tr>
                                                    <td>开户银行</td>
                                                    <td colspan="3">
                                                        <div ms-visible="customerEntity.BankAccount !=''">
                                                            {{customerEntity.BankDisplay}}&nbsp;[户名]
                                            <span style="background: #fff; width: 80px; color: #898888;">{{customerEntity.OpenAccountBank}}
                                            </span>
                                                            &nbsp;[帐号] 
                                            <span style="background: #fff; width: 80px; color: #898888;">{{customerEntity.BankAccount}}
                                            </span>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td>公司简介</td>
                                                    <td colspan="3" style="padding: 5px;">{{customerEntity.Intro|html}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>开发模式：
                                                    </td>
                                                    <td>{{customerEntity.ModeDisplay}}
                                                    </td>
                                                    <td>归属来源：
                                                    </td>
                                                    <td>{{customerEntity.OwnerFrom|customerOwnerFrom}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>归属部门：
                                                    </td>
                                                    <td>{{customerEntity.OwnerByDepartment}}
                                                    </td>
                                                    <td>归属员工：
                                                    </td>
                                                    <td>{{customerEntity.OwnerBy}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>共 享 给：
                                                    </td>
                                                    <td>{{customerEntity.ShareToNames}}</td>
                                                    <td>是否开放：
                                                    </td>
                                                    <td>{{customerEntity.IsOpen?"是":"否"}}</td>
                                                </tr>
                                                <tr>
                                                    <td>录入人：</td>
                                                    <td>{{customerEntity.AddBy.FullName}}
                                                    </td>
                                                    <td>录入时间：</td>
                                                    <td>{{customerEntity.AddTime}}
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>

                                    <div ms-visible="tab=='tab3'" class="tabContent" style="border: none;">
                                        <table border="0" cellspacing="1" cellpadding="0" class="tablecInfo" style="width: 100%;">
                                            <tbody>
                                                <tr>
                                                    <td width="100">签单总额：
                                                    </td>
                                                    <td width="280">{{customerEntity.ContractAmount}} 
                                                    </td>
                                                    <td width="100">首次跟单：
                                                    </td>
                                                    <td width="280">{{customerEntity.FirstDocumentary | truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>最后跟单：
                                                    </td>
                                                    <td>{{customerEntity.LastDocumentary | truncate(10,'')}} 
                                                    </td>
                                                    <td>首次签约：
                                                    </td>
                                                    <td>{{customerEntity.FirstSign | truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>最后签约：
                                                    </td>
                                                    <td>{{customerEntity.LastSign | truncate(10,'')}} 
                                                    </td>
                                                    <td>累计签约：
                                                    </td>
                                                    <td>{{customerEntity.SignAllNun}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>计划下次回访：
                                                    </td>
                                                    <td>{{customerEntity.NextVisit | truncate(10,'')}}
                                                    </td>
                                                    <td>最后回访：
                                                    </td>
                                                    <td>{{customerEntity.LastVisit | truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>最后投诉：
                                                    </td>
                                                    <td>{{customerEntity.LastComplaint | truncate(10,'')}} 
                                                    </td>
                                                    <td>投诉次数：
                                                    </td>
                                                    <td>{{customerEntity.ComplaintAllNum | truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>最后回款日期：
                                                    </td>
                                                    <td>{{customerEntity.LastPaymentDate | truncate(10,'')}} 
                                                    </td>
                                                    <td>最后回款金额：
                                                    </td>
                                                    <td>{{customerEntity.LastPaymentAmount}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>累计收入：
                                                    </td>
                                                    <td>{{customerEntity.PaymentAmount}} 
                                                    </td>
                                                    <td>累计支出：
                                                    </td>
                                                    <td>{{customerEntity.ReceiptAmount}}
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>

                                    <div ms-if="customerEntity.SuperiorCategoryId=='10132' && tab=='tab4'" class="tabContent" style="border: none;">
                                        <table border="0" cellspacing="1" cellpadding="0" class="tablecInfo" style="width: 100%;">
                                            <tbody>
                                                <tr>
                                                    <td width="70">代理区域：</td>
                                                    <td colspan="3">{{customerEntity.AuthorizedRegionalsDisplay}}</td>
                                                </tr>
                                                <tr>
                                                    <td width="70">经营面积：</td>
                                                    <td width="300">{{customerEntity.ManagementArea}}</td>
                                                    <td width="80">年营收情况：</td>
                                                    <td>{{customerEntity.AnnualRevenue}}</td>
                                                </tr>
                                                <tr>
                                                    <td>优势分析：</td>
                                                    <td>{{customerEntity.Advantage}}</td>
                                                    <td>劣势分析：</td>
                                                    <td>{{customerEntity.Disadvantages}}</td>
                                                </tr>
                                                <tr>
                                                    <td>市场占有率和认可度：</td>
                                                    <td>{{customerEntity.PresenceAndRecognition}}</td>
                                                    <td>总体评价：</td>
                                                    <td>{{customerEntity.OverallRating}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>

                                    <div ms-if="customerEntity.SuperiorCategoryId=='10133' && tab=='tab5'" class="tabContent" style="border: none;">
                                        <table border="0" cellspacing="1" cellpadding="0" class="tablecInfo" style="width: 100%;">
                                            <tbody>
                                                <tr>
                                                    <td width="100">供应商级别：</td>
                                                    <td colspan="3">{{customerEntity.SupplierLevelDisplay}}</td>
                                                </tr>
                                                <tr>
                                                    <td>相关资质：</td>
                                                    <td width="300">{{customerEntity.QualificationDisplay}}</td>
                                                    <td width="100">质量水平：</td>
                                                    <td>{{customerEntity.Txtquality}}</td>
                                                </tr>
                                                <tr>
                                                    <td>交货能力：</td>
                                                    <td>{{customerEntity.Txtability}}</td>
                                                    <td>价格水平：</td>
                                                    <td>{{customerEntity.Txtprice}}</td>
                                                </tr>
                                                <tr>
                                                    <td>技术和生产能力：</td>
                                                    <td>{{customerEntity.Txttechnology}}</td>
                                                    <td>后援服务：</td>
                                                    <td>{{customerEntity.Txtservice}}</td>
                                                </tr>
                                                <tr>
                                                    <td>企业声誉：</td>
                                                    <td>{{customerEntity.Txtreputation}}</td>
                                                    <td>现有合作状况：</td>
                                                    <td>{{customerEntity.Txtcooperation}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>

                                    <div ms-if="customerEntity.SuperiorCategoryId=='10134' && tab=='tab6'" class="tabContent" style="border: none;">
                                        <table width="98%" border="0" cellspacing="1" cellpadding="0" class="tablecInfo" style="width: 100%;">
                                            <tbody>
                                                <tr>
                                                    <td width="160">发行量或浏览量(收视率等)：</td>
                                                    <td width="300">{{customerEntity.Ratings}}</td>
                                                    <td width="80">覆盖区域：</td>
                                                    <td>{{customerEntity.CoverageArea}}</td>
                                                </tr>
                                                <tr>
                                                    <td>媒体目标受众：</td>
                                                    <td>{{customerEntity.MediaTarget}}</td>
                                                    <td>市场地位：</td>
                                                    <td>{{customerEntity.PositionAndRecognition}}</td>
                                                </tr>
                                                <tr>
                                                    <td>优势：</td>
                                                    <td>{{customerEntity.Advantage}}</td>
                                                    <td>劣势：</td>
                                                    <td>{{customerEntity.Disadvantages}}</td>
                                                </tr>
                                                <tr>
                                                    <td>总体评价：</td>
                                                    <td colspan="3">{{customerEntity.OverallRating}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>

                                    <div ms-if="customerEntity.SuperiorCategoryId=='10135' && tab=='tab7'" class="tabContent" style="border: none;">
                                        <table width="98%" border="0" cellspacing="1" cellpadding="0" class="tablecInfo" style="width: 100%;">
                                            <tbody>
                                                <tr style="background-color: rgb(246, 246, 246);">
                                                    <td colspan="4" class="title">经营和管理信息</td>
                                                </tr>
                                                <tr style="background-color: rgb(255, 255, 255);">
                                                    <td width="80">市场地位：</td>
                                                    <td width="39%">{{customerEntity.MarketPositionDisplay}}</td>
                                                    <td width="80">企业老总：</td>
                                                    <td>{{customerEntity.CEO}}</td>
                                                </tr>
                                                <tr style="background-color: rgb(255, 255, 255);">
                                                    <td width="80">经营和管理情况：</td>
                                                    <td colspan="3">{{customerEntity.Particulars}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table border="0" cellspacing="0" cellpadding="0" class="tablecInfo" style="width: 100%;">
                                            <tbody>
                                                <tr style="background-color: rgb(246, 246, 246);">
                                                    <td colspan="4" class="title">竞争SWOT分析</td>
                                                </tr>
                                                <tr style="background-color: rgb(255, 255, 255);">
                                                    <td width="80">优势分析：</td>
                                                    <td width="39%">{{customerEntity.Strengths}}</td>
                                                    <td width="80">劣势分析：</td>
                                                    <td width="39%">{{customerEntity.Weakness}}</td>
                                                </tr>
                                                <tr style="background-color: rgb(246, 246, 246);">
                                                    <td width="80">机会分析：</td>
                                                    <td width="39%">{{customerEntity.Opportunities}}</td>
                                                    <td width="80">威胁分析：</td>
                                                    <td width="39%">{{customerEntity.Threats}}</td>
                                                </tr>
                                                <tr style="background-color: rgb(255, 255, 255);">
                                                    <td width="100">总体评价和应对策略：</td>
                                                    <td colspan="3">{{customerEntity.ReplyStrategy}}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr ms-visible='!isCustInfo'>
                            <td style="padding: 10px;" width="870" ms-html='otherContent' id="otherContent"></td>
                        </tr>
                    </tbody>
                </table>

            </td>
        </tr>
    </tbody>
</table>
<style>
    #otherContent #mian {
        background: white;
        overflow: hidden;
        width: 100%;
        border: none;
        margin: 0;
    }
</style>
<noscript id='belongToForm2'>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="color: #5C5C5C;">
        <tbody>
            <tr>
                <td ms-html='lang.ChangeBelongTo'></td>
                <td>
                    <input type="text" readonly="readonly" style="width: 320px;" ms-duplex='changeBelongToName' />
                    <button type="button" class="myfbt" ms-click='selectBelongTo()'><i class="iadduser"></i></button>
                </td>
            </tr>
            <tr>
                <td ms-html='lang.ChangeBelongToRemark'></td>
                <td>
                    <textarea rows="5" cols="28" style="height: 50px; width: 78%" ms-duplex='changeBelongToRemark'></textarea></td>
            </tr>
        </tbody>
    </table>
</noscript>
<noscript id='shareToForm2'>
    <div class="tabContent2" style="padding-top: 0px;">
        <table border="0" cellspacing="1" cellpadding="0" width="100%" class="tableList" id="grid">
            <tbody>
                <tr class="head" style="background-color: rgb(255, 255, 255);">
                    <td width="15%" align="center" ms-html='lang.Name'></td>
                    <td width="48%" align="center" ms-html='lang.ShareMembers'></td>
                    <td width="10%" align="center" ms-html='lang.Opts'></td>
                </tr>
                <tr ms-hover='hover' ms-repeat-cs='shareCustomers'>
                    <td height="22" ms-html='cs.Name'></td>
                    <td align="left" ms-html='cs.ShareToNames'></td>
                    <td align="center">
                        <button type="button" class="myfbt" style='margin-top: 5px;' ms-click='setShare(cs)'><i class="iadduser"></i></button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</noscript>
<noscript id='changeCatogryTmpl'>
    <table cellspacing="1" cellpadding="0" border="0" width="100%" class="tablecInfo">
        <tbody>
            <tr>
                <td style="width: 100px; height: 50px;">选择新形态</td>
                <td>
                    <label ms-repeat-c="categorys">
                        <input type="radio" ms-duplex-text="newSuperiorCategoryId" ms-value="c.Id" />{{c.Data}}</label>
                </td>
            </tr>

            <tr>
                <td style="height: 50px;">选择客户分类</td>
                <td>
                    <select ms-duplex="newCategoryId">
                        <option value="">请选择</option>
                        <option ms-repeat-s="subCategorys" ms-value="s.Id" ms-text="s.Data"></option>
                    </select>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="tipContent" style="background: #ffffff;">注：因不同形态字段有差别，变更客户形态会导致在新形态信息面板部分字段无法显示。</td>
            </tr>
        </tbody>
    </table>
</noscript>
