<view class="head">
	<view class="title">
		{{language['跟进记录']||'跟进记录'}}
	</view>
	<block wx:if="{{content.ownertable!='sat_orderclue'}}">
		<view class="row">
			{{language['跟进类型']||'跟进类型'}}：{{detail.type || ' --'}}
		</view>
		<view class="row">
			{{language['跟进时间']||'跟进时间'}}：{{detail.createdate ||' --'}}
		</view>
		<view class="row">
			{{language['目的']||'目的'}}：{{detail.target ||' --'}}
		</view>
		<view class="row">
			{{language['过程']||'过程'}}：{{detail.content ||' --'}}
		</view>
		<view class="row">
			{{language['结果']||'结果'}}：{{detail.results ||' --'}}
		</view>
		<view class="row">
			{{language['下次跟进计划']||'下次跟进计划'}}：{{detail.nextplan ||' --'}}
		</view>
	</block>
	<block wx:else>
		<view class="row">
			{{language['跟进类型']||'跟进类型'}}：{{detail.followupmode}}
		</view>
		<view class="row" wx:if="{{detail.content}}">
			{{detail.content}}
		</view>
	</block>
	<view class="amount">{{language['营销费用']||'营销费用'}}：<text>{{detail.showsalesfeesamount}}</text></view>
</view>
<view class="search">
	<view class="label">
		{{language['费用明细']||'费用明细'}}
	</view>
	<view class="box">
		<van-search custom-class='custom-class' value="{{ content.where.condition }}" background='#F4F5F7' shape="round" placeholder="{{language['关键字']||'请输入搜索关键词'}}" bind:search='startSearch' bind:clear='startSearch' />
	</view>
</view>

<Yl_ListBox id='ListBox' bind:getlist='getList'>
	<view class="item" wx:for="{{list}}" wx:key="sa_hrcashbilldetailid">
		<view class="title">{{item.billno}}</view>
		<view class="row two-lines">
			<view class="left">
				{{language['业务员']||'业务员'}}：{{item.name}}
			</view>
			<view>
				{{language['部门']||'部门'}}：{{language[item.depname]||item.depname}}
			</view>
		</view>
		<view class="row">
			{{language['费用类型']||'费用类型'}}：{{item.feestypefullname || '--'}}
		</view>
		<view class="row">
			{{language['客户名称']||'客户名称'}}：{{item.enterprisename || '--'}}
		</view>
		<view class="row">
			{{language['项目名称']||'项目名称'}}：{{item.projectname || '--'}}
		</view>
		<view class="row">
			{{language['联系人']||'联系人'}}：{{item.names || '--'}}
		</view>
		<view class="bottom">
			<view>
				{{language['营销费用']||'营销费用'}}：<text class="price">{{item.showAmount}}</text>
			</view>
			<view wx:if="{{userid == detail.createuserid}}">
				<text class="iconfont icon-dibu-bianji" data-item="{{item}}" bind:tap="editItem" />
				<text class="iconfont icon-guanlian-shanchu" data-item="{{item}}" bind:tap="deleteItem" />
			</view>
		</view>
	</view>
	<view style="height: 60px;" wx:if="{{userid == detail.createuserid}}" />
	<My_Empty wx:if="{{list.length === 0}}" />
</Yl_ListBox>

<view class="footer" wx:if="{{userid == detail.createuserid}}">
	<van-button custom-class='button-class' bind:click='toInsertion'>{{language['新增营销费用']||'新增营销费用'}}</van-button>
</view>