<viewDate title='分析日期' bind:onChange='changeDate' />
<Yl_ListBox id='ListBox' bind:getlist='getList'>
	<view class="global-card">
		<view class="chart"></view>
	</view>

	<view class="chart2">
		<ec-canvas id="mychart" canvas-id="chart" ec="{{ ec }}"></ec-canvas>
	</view>
	<view class="dateType" style="margin-left: 30rpx;margin-bottom: 20rpx;">
		{{language[content.dateType||'全部']||content.dateType||'全部'}}({{list[0].isEmpty?0:total}})
	</view>
	<My_empty wx:if='{{list[0].isEmpty}}' />
	<block wx:else>
		<view class="global-card" wx:for="{{list}}" wx:key="sa_orderitemsid">
			<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['企业名称']||'企业名称'}}：{{item.enterprisename ||' --'}}</view>
			<view class="row">{{language['项目名称']||'项目名称'}}：{{item.projectname ||' --'}}</view>
			<view class="row">{{language['业务员']||'业务员'}}：{{item.salername ||' --'}}</view>
			<view class="row" wx:if="{{item.expanded}}">
				{{language['行号']||'行号'}}：{{item.rowno ||' --'}}
			</view>
			<view class="row">{{language['产品名称']||'产品名称'}}：{{item.itemname ||' --'}}</view>
			<view class="row">{{language['产品编号']||'产品编号'}}：{{item.itemno ||' --'}}</view>
			<view class="row">
				{{language['型号']||'型号'}}：{{language[item.model]||item.model||' --'}}
			</view>
			<view class="row" wx:if="{{siteid!='HY' && item.expanded}}">
				{{language['规格']||'规格'}}：{{language[item.spec]||item.spec||' --'}}
			</view>
			<view class="row" wx:if="{{siteid=='HY' && item.expanded}}">
				{{language['公称通径']||'公称通径'}}：{{item.caliber||' --'}}
			</view>
			<view class="row" wx:if="{{siteid=='HY' && item.expanded}}">
				{{language['公称压力']||'公称压力'}}：{{item.nominalpressureStr||' --'}}
			</view>
			<block wx:if="{{item.expanded}}">
				<view class="row">
					{{language['需求日期']||'需求日期'}}：{{item.needdate||' --'}}
				</view>
				<view class="row">
					{{language['回复交期']||'回复交期'}}：{{item.deliverydate||' --'}}
				</view>
				<view class="row">{{language['数量']||'数量'}}：{{item.qty||' --'}}</view>
			</block>
			<view class="row">
				{{language['牌价']||'牌价'}}：
				<text style="color: #3874F6;">{{item.marketprice||' --'}}</text>
			</view>
			<view class="row">
				{{language['订单单价']||'订单单价'}}：
				<text style="color: #3874F6;">{{item.price||' --'}}</text>
			</view>
			<view class="row">
				{{language['订单金额']||'订单金额'}}：
				<text style="color: #3874F6;">{{item.amount||' --'}}</text>
			</view>
			<view class="row">
				{{language['未出货数量']||'未出货数量'}}：
				<text style="color: #3874F6;">{{item.unlogisticsqty||'0'}}</text>
			</view>
			<block wx:if="{{item.expanded}}">
				<view class="row">
					{{language['退款金额']||'退款金额'}}：
					<text style="color: #3874F6;">{{item.returnamount||' --'}}</text>
				</view>
				<view class="row">
					{{language['材质']||'材质'}}：{{language[item.material]||item.material||' --'}}
				</view>
				<block wx:if="{{siteid=='HY'}}">
					<view class="row">
						{{language['产线']||'产线'}}：{{language[item.prodline]||item.prodline||' --'}}
					</view>
					<view class="row">
						{{language['装置']||'装置'}}：{{language[item.device]||item.device||' --'}}
					</view>
					<view class="row">
						{{language['备注']||'备注'}}：{{language[item.specalnote]||item.specalnote||' --'}}
					</view>
				</block>
			</block>
			<view class="{{item.expanded?'expanded up':'expanded'}}" data-index="{{index}}" bind:tap="changeExpanded">
				{{item.expanded?'简略信息':'详情信息'}}
				<text class="iconfont icon-dianjizhankai" />
			</view>
		</view>
	</block>
</Yl_ListBox>