<view class='tab-box'>
	<view class="left">
		<view class="user line-1">{{language[content.enterprisename]||content.enterprisename}}</view>
	</view>
	<view class="right">
		<view class="search-box" hover-class="navigator-hover" bindtap="changeSearchShow">
			<text class="iconfont icon-a-sousuolansousuo" />
		</view>
	</view>
</view>
<view wx-if="{{searchShow}}">
	<van-transition show="{{ searchShow }}" name='fade' duration='300'>
		<view>
			<van-search focus="{{focus}}" value="{{searchValue}}" placeholder="{{language['请输入关键字']||'请输入关键字'}}" bind:search="onSearch" bind:clear="onClear" bind:change="onChange" />
		</view>
	</van-transition>
</view>
<view class="global-total">
	<text wx:if="{{language['总共']}}">{{language['总共']}}：{{content.total}}</text>
	<text wx:else>总共{{total}}个</text>
</view>
<Yl_ListBox id='ListBox' bind:getlist='getList'>
	<view class="global-card" wx:for="{{list}}" wx:key="sa_orderitemsid">
		<view class="title">
			{{item.sonum}}
		</view>
		<view class="row" wx:if="{{item.expanded}}">erp{{language['订单号']||'订单号'}}：{{item.erpbillno ||' --'}}</view>
		<view class="row">{{language['业务员']||'业务员'}}：{{item.name ||' --'}}</view>
		<view class="row" wx:if="{{item.expanded}}">{{language['部门']||'部门'}}：{{item.depname ||' --'}}</view>
		<view class="row">{{language['客户名称']||'客户名称'}}：{{item.enterprisename ||' --'}}</view>
		<view class="row" wx:if="{{item.expanded}}">{{language['客户']||'客户'}}erp{{language['编号']||'编号'}}：{{item.agentnum ||' --'}}</view>
		<view class="row">{{language['订单行号']||'订单行号'}}：{{item.rowno ||' --'}}</view>
		<view class="row">{{language['产品名称']||'产品名称'}}：{{item.itemname ||' --'}}</view>
		<view class="row">{{language['品号']||'品号'}}：{{item.itemno ||' --'}}</view>
		<block wx:if="{{item.expanded}}">
			<view class="row">
				{{language['型号']||'型号'}}：{{language[item.model]||item.model||' --'}}
			</view>
			<view class="row" wx:if="{{siteid!='HY'}}">
				{{language['规格']||'规格'}}：{{language[item.spec]||item.spec||' --'}}
			</view>
			<view class="row" wx:if="{{siteid=='HY'}}">
				{{language['公称通径']||'公称通径'}}：{{item.caliber||' --'}}
			</view>
			<view class="row" wx:if="{{siteid=='HY'}}">
				{{language['公称压力']||'公称压力'}}：{{item.nominalpressureStr||' --'}}
			</view>
			<view class="row">
				{{language['订单数量']||'订单数量'}}：{{item.qty||0}}
			</view>
			<view class="row">
				{{language['计量单位']||'计量单位'}}：{{language[item.unit]||item.unit||' --'}}
			</view>
			<view class="row">
				{{language['折后价格']||'折后价格'}}：{{item.price}}
			</view>
		</block>
		<view class="row">
			{{language['折后金额']||'折后金额'}}：{{item.amount}}
		</view>
		<view class="row">
			{{language['出货金额']||'出货金额'}}：{{item.outOrderamount}}
		</view>
		<view class="row" wx:if="{{item.expanded}}">
			{{language['出货日期']||'出货日期'}}：{{item.outOrderdate}}
		</view>
		<view class="row">
			{{language['开票未核销金额']||'开票未核销金额'}}：{{item.unwriteoffamount}}
		</view>
		<view class="{{item.expanded?'expanded up':'expanded'}}" data-index="{{index}}" bind:tap="changeExpanded">
			{{item.expanded?'简略信息':'详情信息'}}
			<text class="iconfont icon-dianjizhankai" />
		</view>
	</view>
	<My_empty wx:if="{{list.length==0}}" />
</Yl_ListBox>