
<import src="detail.skeleton.wxml"/>
<template is="skeleton" wx:if="{{loading}}" />
<view class="header">
    <view class="title">{{detail.title}}</view>
    <Yl-tags id="Tags" add ownertable='sa_contract' ownerid='{{sa_contractid}}' />
</view>
<!-- 简介 -->
<Yl_Detail list="{{briefs}}">
    <Yl-group slot='bottom' id='Group' add ownertable='sa_contract' ownerid='{{sa_contractid}}' />
</Yl_Detail>
<view style="height: 20rpx;" />
<Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
    <Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
    <Trace slot='跟进动态' id='Trace' ownertable='sa_contract' ownerid='{{detail.sa_contractid}}' />
    <Work slot='任务' id='Work' ownertable='sa_contract' ownerid='{{detail.sa_contractid}}' disabled="{{isAdmin||isLeader}}" />
    <PiscountProduct wx:if="{{detail.type=='经销商合作协议'}}" slot='产品明细折扣' id='PiscountProduct' disabled="{{(per.query(options,'app')||isAdmin||isLeader)&&detail.status!='新建'}}" />
    <Product wx:else slot='{{detail.type=="工具使用(借用)协议"?  "工具清单": "产品明细折扣"}}' disabled="{{(per.query(options,'app')||isAdmin||isLeader)&&detail.status!='新建'}}" id='Product' />
    <PiscountType slot='产品类别折扣' id='PiscountType' disabled="{{(per.query(options,'app')||isAdmin||isLeader)&&detail.status!='新建'}}" />
    <Objective slot='业绩目标' id='Objective' />
    <!-- <view slot='合同条款' /> -->
    <view style="height: 140rpx;" />
</Yl_FunTabs>
<!-- 底部 -->
<Yl_Tabbar list='{{tabbarList}}' bind:callback="tabbarOnClick" />
<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />