<import src="detail.skeleton.wxml"/>
<template is="skeleton" wx:if="{{loading}}" />

<view class="header">
    <view class="title">单号：{{detail.billno}}</view>
    <Yl-tags id="Tags" add ownertable='sa_quotedprice' ownerid='{{sa_quotedpriceid}}' />
</view>
<!-- 简介 -->
<Yl_Detail list="{{briefs}}">
    <Yl-group slot='bottom' id='Group' add ownertable='sa_quotedprice' ownerid='{{sa_quotedpriceid}}' />
</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_quotedprice' ownerid='{{detail.sa_quotedpriceid}}' />
    <Product slot='产品明细折扣' id='Product' sa_projectid="{{detail.sa_projectid}}" type="{{detail.quotedpricetype}}" disabled="{{(per.query(options,'product')||isAdmin||isLeader)&&detail.status=='新建'}}" />
    <PiscountType slot='产品类别折扣' id='PiscountType' disabled="{{(isAdmin||isLeader)&&detail.status!='新建'}}" type="报价单" />
    <PettyExpense slot='其他费用' id='PettyExpense' quotedpricenotes='{{detail.quotedpricenotes}}' disabled="{{(isAdmin||isLeader)&&detail.status!='新建'}}" />
    <History slot='历史报价' id="History" isproject="{{detail.quotedpricetype=='项目报价'?1:0}}" />
    <Record slot='操作记录' id="Record" ownertable='sa_quotedprice' ownerid='{{detail.sa_quotedpriceid}}' />
    <Files slot='附件' id="Files" ownertable='sa_quotedprice' ownerid='{{detail.sa_quotedpriceid}}' />
    <Work slot='任务' id='Work' ownertable='sa_quotedprice' ownerid='{{detail.sa_quotedpriceid}}' disabled="{{isAdmin||isLeader}}" />
    <view style="height: 140rpx;" />
</Yl_FunTabs>
<!-- 底部 -->
<Yl_Tabbar list='{{tabbarList}}' bind:callback="tabbarOnClick" />
<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />