<div ms-controller="CustomerTree">

    <table style="width: 100%;">
        <tr>
            <td style="width: 210px;">
                <ul id="customerTree" class='ztree'  style="width: 200px; height: 520px;border:1px #d2d2d2 solid;overflow:auto;background-color:#FAFAFA;">
                </ul>
            </td>
            <td style="vertical-align:top;">
                <table border="0" cellspacing="1" cellpadding="0" class="tablecInfo" style="margin: 0 10px; width: 98%;">
                    <tbody>
                        <tr>
                            <td width="120">客户名称：
                            </td>
                            <td width="180" class="tmbig">
                                <a ms-if="customerEntity.Id" href="javascript:void(0)" ms-click="viewCustomer(customerEntity.Id)">{{customerEntity.Name2}} </a>
                                <span ms-if="!customerEntity.Id">{{customerEntity.Name2}}</span>
                            </td>
                            <td width="120">直属客户数量：
                            </td>
                            <td>{{customerEntity.count}}
                            </td>
                        </tr>
                        <tr>
                            <td>签约总额：
                            </td>
                            <td class="tmbig tblue">{{customerEntity.ContractAmount}} 
                            </td>
                            <td>累计签约：
                            </td>
                            <td>{{customerEntity.SignAllNun}}
                            </td>
                        </tr>
                        <tr>
                            <td>收入总额
                            </td>
                            <td class="tmbig tred">{{customerEntity.sumin}} 
                            </td>
                            <td>支出总额：
                            </td>
                            <td class="tmbig tgreen">{{customerEntity.sumout}}
                            </td>
                        </tr>
                        <tr>
                            <td>首次签约：
                            </td>
                            <td>{{customerEntity.FirstSign | truncate(10,'')}}
                            </td>
                            <td>最后跟单：
                            </td>
                            <td>{{customerEntity.LastDocumentary | truncate(10,'')}} 
                            </td>
                        </tr>
                        <tr>
                            <td class="tRed">最后签约：
                            </td>
                            <td colspan="3">{{customerEntity.LastSign | truncate(10,'') | dayspan}} 
                            </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 class="tRed">最后回款日期：
                            </td>
                            <td>{{customerEntity.LastPaymentDate | truncate(10,'') | dayspan}}
                            </td>
                            <td>最后回款金额：
                            </td>
                            <td>{{customerEntity.LastPaymentAmount}}
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </table>
</div>