<import src="detail.skeleton.wxml" />
<template is="skeleton" wx:if="{{loading}}" />
<view class="header">
    <view class="title">{{detail.enterprisename_customer||'--'}}</view>
    <Yl-tags wx:if="{{appAuth.isdatatag}}" id="Tags" add ownertable='sat_orderclue' ownerid='{{sat_orderclueid}}' />
</view>
<!-- 简介 -->
<Yl_Detail list="{{briefs}}">
    <Yl-group wx:if="{{appAuth.isdatateam}}" slot='bottom' id='Group' add ownertable='sat_orderclue' ownerid='{{sat_orderclueid}}' />
</Yl_Detail>
<view style="height: 20rpx;" />
<Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
    <Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
    <Follow resource='销售线索' slot='跟进记录' isshowsalesfeesamount rowData="{{detail}}" id='follow' disabled="{{isFollow && isLeader}}" expenseBreakdown isAdmin="{{per.query(appAuth.options,'expenseBreakdown')}}" />
    <Work slot='任务' id='Work' ownertable='sat_orderclue' ownerid='{{sat_orderclueid}}' disabled="{{isAdmin||isLeader}}" />
    <Clue slot='线索来源' id='Clue' />
    <Record slot='操作' id="Record" ownertable='sat_orderclue' ownerid='{{sat_orderclueid}}' />
    <Trace resource='销售线索' slot='跟进动态' id='Trace' ownertable='sat_orderclue' ownerid='{{sat_orderclueid}}' />
    <Files slot="附件" id="Files" ownertable="sat_orderclue" ownerid="{{detail.sat_orderclueid}}" />
    <Contacts slot="联系人" id='Contacts' ownertable="sat_orderclue" ownerid="{{detail.sat_orderclueid}}" disabled path='/packageA/saleClue/modules/contacts/quickly/index' />
</Yl_FunTabs>
<!-- 底部 -->
<Yl_Tabbar wx:if="{{tabbarList.length!=0}}" list='{{tabbarList}}' bind:callback="tabbarOnClick" />

<van-dialog confirmButtonText="{{language['确定']||'确定'}}" cancelButtonText="{{language['取消']||'取消'}}" use-slot title="{{language['作废情况说明']||'作废情况说明'}}" show="{{ deletereasonShow }}" show-cancel-button confirm-button-color='#3874F6' bind:confirm='deleteItem' bind:cancel='onCancel'>
    <textarea placeholder="{{language['情况说明']||'情况说明'}}" value="{{deletereason}}" data-name="deletereason" bindinput="areaInput" class="textarea" />
</van-dialog>

<van-dialog confirmButtonText="{{language['确定']||'确定'}}" cancelButtonText="{{language['取消']||'取消'}}" use-slot title="{{language['无效情况说明']||'无效情况说明'}}" show="{{ invalidreasonShow }}" show-cancel-button confirm-button-color='#3874F6' bind:confirm='invalidItem' bind:cancel='onCancel'>
    <textarea placeholder="{{language['情况说明']||'情况说明'}}" value="{{invalidreason}}" data-name="invalidreason" bindinput="areaInput" class="textarea" />
</van-dialog>
<!-- 转站点 -->
<ShiftSite id='ShiftSite' sat_orderclueid='{{sat_orderclueid}}' wx:if="{{siteShow}}" />

<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />