<view class="global-card tabs">
	<view class="tab {{content.dataType == '金额' ? 'active':''}}" data-name='金额' bind:tap="changeType">
		{{language['金额']||'金额'}}</view>
	<view class="tab {{content.dataType == '数量' ? 'active':''}}" data-name='数量' bind:tap="changeType">
		{{language['数量']||'数量'}}</view>
</view>
<timeRange id='TimeRange' dateTypes='{{dateTypes}}' dateType='{{content.dateType}}' bind:onChange='changeDate' />
<Yl_ListBox id='ListBox' bind:getlist='getList'>
	<view class="global-card" wx:if='{{!list[0].isEmpty}}'>
		<view class="chart">
			<ec-canvas id="mychart" canvas-id="chart" ec="{{ ec }}"></ec-canvas>
		</view>
	</view>
	<view style="margin-left: 30rpx;margin-bottom:20rpx;">
		{{language[content.where.type||'全部']||content.where.type||'全部'}}({{list[0].isEmpty?0:total}})
	</view>
	<My_empty wx:if='{{list[0].isEmpty}}' />
	<block wx:else>
		<navigator url="#" class="global-card item" wx:for="{{list}}" version='develop' wx:key="sonum"
			target='miniProgram' app-id='wxc1b6ae925ac1d06a'
			path="{{'/packageA/orderForm/detail'+'?auth='+auth+'&userMsg='+userMsg+'&site='+site+'&templetList='+templetList+'$languagecode='+languagecode+'&id='+item.sa_orderid}}"
			url="/packageA/orderForm/detail" open-type="navigate">
			<view class="title">
				<text class="tag"
					style="background-color: #67C23A;">{{language[item.tradefield]||item.tradefield}}</text>
				{{item.sonum}}
			</view>
			<view class="row">erp{{language['单号']||'单号'}}：{{item.erpbillno ||' --'}}</view>
			<view class="row">
				{{language['订单类型']||'订单类型'}}：{{language[item.type]||item.type || ' --'}}
			</view>
			<view class="row">{{language['企业名称']||'企业名称'}}：{{item.enterprisename ||' --'}}</view>
			<view class="row">{{language['项目名称']||'项目名称'}}：{{item.projectname ||' --'}}</view>
			<view class="row">{{language['产品总数量']||'产品总数量'}}：{{item.qty ||'0'}}</view>
			<view class="row">{{language['总金额']||'总金额'}}：{{item.amount ||'0'}}</view>
			<view class="row">{{language['退款金额']||'退款金额'}}：{{item.returnamount ||'0'}}</view>
			<view class="row">{{language['业务员']||'业务员'}}：{{item.name ||' --'}}</view>
			<view class="row" style="color: {{sColors[item.status]?'#999':''}};">
				{{language['订单状态']||'订单状态'}}：{{item.status ||' --'}}
			</view>
			<view class="but">
				{{language['查看详情']||'查看详情'}}
				<text class='iconfont icon-webfanhui' />
			</view>
		</navigator>
	</block>
</Yl_ListBox>