<view class="detail">
    <view class="head">
        <view class="left">
            <text class="iconfont  icon-kehu1" />
        </view>
        <view class="right">
            <view class="title">{{detail.enterprisename||'--'}}</view>
            <view class="tag-box">
                <view class="tag" style="background-color:{{sColors[tag]||'#3874F6'}}" wx:for="{{detail.sys_tag}}" wx:for-item='tag' wx:key='tag'>
                    {{language[tag]||tag}}
                </view>
                <view class="business" hover-class="navigator-hover" bindtap="getBusinessInfo">
                    工商信息
                    <text class='iconfont icon-webfanhui' />
                    <text class='iconfont icon-webfanhui' />
                </view>
            </view>
        </view>
    </view>
    <view class="line">
        {{language['医院类型']||'医院类型'}}：{{language[detail.type]||detail.type||'--'}}
    </view>
    <view class="line">
        {{language['客户分类']||'客户分类'}}：{{language[detail.customergrade]||detail.customergrade||'--'}}
    </view>
    <view class="line">
        {{language['客户等级']||'客户等级'}}：{{language[detail.grade]||detail.grade||'--'}}
    </view>
    <view class="line">
        {{language['合作状态']||'合作状态'}}：
        <view style="color:{{sColors[detail.status]||'999999'}}">
            {{language[detail.status]||detail.status}}
        </view>
    </view>
    <view class="line">
        {{language['成交状态']||'成交状态'}}：
        <view style="color:{{sColors[detail.tradingstatus]||'999999'}}">
            {{language[detail.tradingstatus]||detail.tradingstatus}}
        </view>
    </view>
    <view class="line">{{language['负责人']||'负责人'}}：{{detail.team[0].name||'--'}}</view>
    <view class="line">
        {{language['未跟进天数']||'未跟进天数'}}：
        <view style="color:#3874F6">
            {{detail.subdate||'--'}}{{language['天']||'天'}}
        </view>
    </view>
    <view class="line">
        {{language['注册地址']||'注册地址'}}：{{detail.province+detail.city+detail.county+detail.address||'--'}}
    </view>
    <view style='margin-top:10rpx;'>
        <Yl-group id='Group' slot='bottom' add="false" ownertable='sa_customers' ownerid='{{sa_customersid}}' />
    </view>
</view>
<Yl_FunTabs list='{{tabsList}}' mode='buts' active='{{tabsActive}}' bind:onChenge="tabsChange">
    <FollowUp slot='跟进记录' id='FollowUp' mode='客户' />
    <OrderForm slot='订单' id='OrderForm' />
    <Serve slot='服务' id='Serve' mode='客户' />
    <Contacts slot='联系人' contacts='{{detail.contacts}}' mode='客户' />
    <Contract slot='合同' id='Contract' mode='客户' />
    <Project id='Project' slot='项目' />
    <PriceSheet id='PriceSheet' slot='报价单' mode='客户' />
</Yl_FunTabs>
<!-- 工商信息 -->
<van-popup show="{{ showBusInfo }}" position="right" custom-style="height: 100%;width:660rpx;" bind:click-overlay='closeBusInfo'>
    <view class="popup-box">
        <scroll-view class="scroll-view" scroll-y>
            <view class="mian-info">
                <view class="title">{{language['工商信息']||'工商信息'}}</view>
                <view class="line">
                    {{language['法定代表人']||'法定代表人'}}:{{businessInfo.legalPerson}}
                </view>
                <view class="line">
                    {{language['统一社会信用代码']||'统一社会信用代码'}}:{{businessInfo.creditCode}}
                </view>
                <view class="line">{{language['纳税人识别号']||'纳税人识别号'}}:{{businessInfo.taxNum}}</view>
                <view class="line">
                    {{language['人员规模']||'人员规模'}}:{{businessInfo.staffNumRange||'--'}}
                </view>
                <view class="line">
                    {{language['注册地址']||'注册地址'}}:{{businessInfo.address||'--'}}
                </view>
                <view class="line">
                    {{language['注册资本']||'注册资本'}}:{{businessInfo.regCapital||'--'}}
                </view>
                <view class="line">
                    {{language['工商注册号']||'工商注册号'}}:{{businessInfo.regNumber||'--'}}
                </view>
                <view class="line">
                    {{language['行业大类']||'行业大类'}}:{{businessInfo.industry||'--'}}
                </view>
                <view class="line">
                    {{language['经营期限']||'经营期限'}}:{{businessInfo.toTime +' - '+businessInfo.fromTime||'--'}}
                </view>
            </view>
            <view class="scope">
                <view>{{language['经营范围']||'经营范围'}}：</view>
                <view>{{businessInfo.businessScope}}</view>
            </view>
        </scroll-view>
        <view class="but" hover-class="navigator-hover" bindtap="closeBusInfo">
            {{language['收起']||'收起'}}
        </view>
    </view>
</van-popup>