<wxs src='../../utils/formatFuc.wxs' module="utils"></wxs>
<view class="supply-order">
    <view class="order-title">
		<view>补差订单
		</view>
		<view class="{{orderInfo.state!=2?'non-payment':''}} pay-status">{{(orderInfo.state==0||orderInfo.state==1)?'未支付':(orderInfo.state==2?'已支付':'取消')}}</view>
		</view>
		<view class="item-line">
	    <view class="item-left">补差内容：</view>
		<view>{{orderInfo.difName}}</view>
	 </view>
	 <view class="item-line">
	    <view class="item-left">金额：</view>
		<view class="order-amount">¥ {{orderInfo.difTotalPrice}}</view>
	 </view>
	 <view class="item-line">
	    <view class="item-left">创建时间：</view>
		<view class="order-time">{{orderInfo.createTime}}</view>
	 </view>

</view>
<view class="supply-list">
   <view class="supply-item" wx:for="{{itemList}}" wx:key="index">
	 <view class="item-title">
	 补差项{{index+1}}
	 </view>
	 <view class="item-line">
	    <view class="item-left">补差内容：</view>
		<view>{{item.itemName}}</view>
	 </view>
	
	 <view class="item-line">
	    <view class="item-left">份数：</view>
		<view>{{item.number}}</view>
	 </view>
	 <view class="item-line">
	    <view class="item-left">金额：</view>
		<view>¥ {{item.difTotalPrice}}</view>
	 </view>
	 </view>
</view>
<view class="img-wrapper" bindtap="previewImage">
	 <image src="{{orderInfo.qrUrl}}"></image>
	 </view>
<view class="supply-bottom" wx:if="{{orderInfo.state==0}}">
  <view class="total-amount">
	<view class="title">总计补差金额</view>
	<view>	¥ <text>{{orderInfo.difTotalPrice}}</text> 元</view>
	
	</view>
	<view class="order-button" bindtap="goEdit">修改补差订单</view>
</view>
