<!--pages/ticketReceive/ticketReceive.wxml-->
<view class="tabBar shadow">
	<view bindtap="switchTab" data-index="{{0}}" class="tabItem {{tabIndex===0?'active':''}}">商品信息</view>
	<view bindtap="switchTab" data-index="{{1}}" class="tabItem {{tabIndex===1?'active':''}}">购方信息</view>
	<view bindtap="switchTab" data-index="{{2}}" class="tabItem {{tabIndex===2?'active':''}}">人员信息</view>
</view>
<view class="searchWrap">
	<i class="iconfont icon-search"></i>
	<input bindconfirm="search" class="input shadow" placeholder="{{placeholder}}" confirm-type="search" placeholder-class="placeholderStyle"></input>
</view>
<view class="allSelected">
	<view bindtap="selectedAll" wx:if="{{tabIndex!==2}}" class="all">
		<i wx:if="{{!allSelected}}" class="iconfont icon-select"></i>
		<i wx:if="{{allSelected}}" class="iconfont icon-selected"></i>
		<text class="text">全选</text>
	</view>
	<button bindtap="showDelete" class="delete">删除</button>
</view>
<view class="topPlaceholder"></view>
<view wx:if="{{tabIndex===0}}" class="list">
	<block wx:for="{{list}}" wx:key="index">
		<view bindtap="select" data-selected="{{item.selected}}" data-index="{{index}}" class="listItem">
			<i wx:if="{{!item.selected}}" class="iconfont icon-select"></i>
			<i wx:if="{{item.selected}}" class="iconfont icon-selected"></i>
			<view class="name">产品名称：{{item.productName}}</view>
			<view class="line">产品分类：{{item.taxationCateName}}</view>
			<!-- <view class="line">简码：{{item.shortCode}}</view> -->
			<view class="line">单价：{{item.price?'￥'+item.price:0}}</view>
			<view class="line">税率：{{item.taxRate?item.taxRate*100+'%':'0%'}}</view>
			<i catchtap="edit" data-index="{{index}}" class="iconfont icon-edit"></i>
		</view>
	</block>
</view>
<view wx:if="{{tabIndex===1}}" class="list">
	<block wx:for="{{list}}" wx:key="index">
		<view bindtap="select" data-selected="{{item.selected}}" data-index="{{index}}" class="listItem">
			<i wx:if="{{!item.selected}}" class="iconfont icon-select"></i>
			<i wx:if="{{item.selected}}" class="iconfont icon-selected"></i>
			<view class="name">购方名称：{{item.customerName}}</view>
			<view class="line">手机号：{{item.customerMobile}}</view>
			<view class="line">邮箱：{{item.email}}</view>
			<i catchtap="edit" data-index="{{index}}" class="iconfont icon-edit"></i>
		</view>
	</block>
</view>
<view wx:if="{{tabIndex===2}}" class="list">
	<block wx:for="{{list}}" wx:key="index">
		<view bindtap="select" data-selected="{{item.selected}}" data-index="{{index}}" class="listItem">
			<i wx:if="{{!item.selected}}" class="iconfont icon-select"></i>
			<i wx:if="{{item.selected}}" class="iconfont icon-selected"></i>
			<view class="empLine">
				<text class="empName">{{item.userName}}</text>
				<text class="mobile">{{item.userMobile}}</text>
				<!-- <text class="offer">{{item.deptName}}</text> -->
				<text class="role">{{item.roleMemo}}</text>
			
			</view>
			<i catchtap="edit" data-index="{{index}}" data-userMobile="{{item.userMobile}}" class="iconfont icon-edit"></i>
		</view>
	</block>
</view>
<loadmore loadmore="{{pages>0&&finish===false}}" finish="{{pages>0&&finish===true}}" nodata="{{pages===0}}"></loadmore>
<view class="paddingBottom"></view>
<ipx-placeholder></ipx-placeholder>
<customer-bottom>
	<button bindtap="add" class="addBtn">新增</button>
</customer-bottom>