<!-- <image class="calculation" src="https://esos-iot.bjdexn.cn/myminio/project/a6546181416e4ca5a266b3b5ce31c335.jpg" mode="widthFix"/> -->

<!-- <view class="side-bar-wrapper" style="height: calc(100vh - {{navbarHeight}}px)">
</view> -->

<view class="workorder">
  <t-tabs value="{{tabsindex}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" split="{{false}}">
    <t-tab-panel label="待办" value="1,2" />
    <t-tab-panel label="办结" value="3" />
  <t-tab-panel label="全部" value="0" />
</t-tabs>
<view bind:tap="onfilter">
  <t-icon name="filter" size="50rpx" color="#585CE5" data-name="filter" />
</view>
</view>
<view style="height: 100rpx;"></view>
<view class="examine_list">
  <view class="examine_box" wx:for="{{reviewdata}}" wx:key="index" data-id="{{item.id}}" data-workorderId="{{item.workorderId}}" bind:tap="ondetails">
<view class="examine_title">
<view class="examine_title0" wx:if="{{item.type==1}}">日常<text style="padding: 0rpx 10rpx;">/</text><text wx:if="{{item.workorderGrade==1}}"> 低</text><text wx:if="{{item.workorderGrade==2}}"> 中</text><text wx:if="{{item.workorderGrade==3}}"> 高</text></view>
<view class="examine_title01" wx:if="{{item.type==2}}">故障 <text style="padding: 0rpx 10rpx;">/</text> <text wx:if="{{item.workorderGrade==1}}"> 低</text><text wx:if="{{item.workorderGrade==2}}"> 中</text><text wx:if="{{item.workorderGrade==3}}"> 高</text></view>
<view class="examine_title02" wx:if="{{item.type==3}}">其他<text style="padding: 0rpx 10rpx;">/</text> <text wx:if="{{item.workorderGrade==1}}"> 低</text><text wx:if="{{item.workorderGrade==2}}"> 中</text><text wx:if="{{item.workorderGrade==3}}"> 高</text></view>
<view class="examine_title1">{{item.workorderName}}</view>
<view class="process_bj2" wx:if="{{item.workorderType==1}}">待处理</view>
<view class="process_bj3" wx:if="{{item.workorderType==2}}">处理中</view>
<view class="examine_title2" wx:if="{{item.workorderType==3}}">处理完成</view>
<!-- <view class="examine_title2" wx:if="{{item.workorderType==3&&item.examineType==5}}">待审核</view>
<view class="examine_title2" wx:if="{{item.workorderType==3&&item.examineType==6}}">审核完成</view>
<view class="examine_title2" wx:if="{{item.workorderType==3&&item.examineType==7}}">审核失败</view> -->
</view>
<view class="examine_content">
<view class="examine_name">描述：{{item.workorderContent}}</view>
<view class="feedback examine_name" wx:if="{{item.examineType==7}}">退回原因：{{item.workoderReason}}</view>
<view class="feedback examine_name" wx:if="{{item.examineCount!=0&&item.examineType!=7}}">退回原因：{{item.lastfail||'无'}}</view>
</view>
<view class="examine_bottom">
<view class="examine_bottompro">
  <view class="promoter"> 
 <view class="promoter_people">发起人</view>
 <view class="promoter_name">{{item.workorderPromoter}}</view> 
 </view>
 <view class="promoter_right">
  <view class="promoter_people">发起时间</view>
  <view class="promoter_name">{{item.workorderStarttime}}</view>
 </view>
</view>

 <view class="promoter_review">
  <text class="promoter_review_color" wx:if="{{item.workorderType==3&&item.examineType==5}}">待审核</text>
  <text class="promoter_review_color" wx:if="{{item.workorderType==3&&item.examineType==6}}">审核完成</text>
  <text class="promoter_review_colors" wx:if="{{item.workorderType==3&&item.examineType==7}}">审核失败</text>
 </view>
</view>
<!-- <view class="examine_button">
<view class="examine_buttonleft">通过</view>
<view class="examine_buttonright">不通过</view>
</view> -->
</view>
<view class="available" wx:if="{{reviewdata.length==0}}">
<image src="https://esos-iot.bjdexn.cn/myminio/project/9efa1691f71a48b6ae20648c0a2dae56.png" mode="aspectFit"/>
</view>
</view>
<view style="height: 30rpx;"></view>

<t-popup
  visible="{{visible}}"
  bind:visible-change="onVisibleChange"
  placement="right"
>
  <view class="filter">
    <view class="mtinput">
<input class="uni-mt-5" trim="all" value="{{workorderName}}" clearSize="0"
										placeholder="请输入工单标题" 	bindinput="onPeakprice"></input>
</view>
<view class="owner_type1">
          <picker mode="date" value="{{datestart}}" start="2000-01-01" end="2060-09-01" bindchange="bindstartChange">
					<view class="calculation_top">
						<view class="calculation_left">
              开始时间
						</view>
            <view class="event">
						<view class="uni-input">{{datestart}}</view>
							<t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
            </view>
					</view>
				</picker>
        </view>
        <view class="owner_type1">
          <picker mode="date" value="{{dateend}}" start="2000-01-01" end="2060-09-01" bindchange="bindendChange">   
					<view class="calculation_top">                                                                            
						<view class="calculation_left">
              结束时间
						</view>
            <view class="event">
						<view class="uni-input">{{dateend}}</view>
							<t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
            </view>
					</view>
				</picker>
        </view>
        <view class="owner_type1">
					<picker bindcolumnchange="bindcolumn" bindchange="bindeventChange" value="{{index}}" range="{{array}}">
          <view class="calculation_top">                                                                            
						<view class="calculation_left">
              事件
						</view>
            <view class="event">
						<view class="uni-input">{{array[index]}}</view>
							<t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
            </view>
					</view>
        </picker>
        </view>
 
       

        <view class="owner_type11">
        	<view class="calculation_strategy">
					工单优先级
					</view>
				  <view class="calculation_capsule">
            <t-radio-group default-value="{{priority}}" value="{{priority}}" borderless t-class="box" bindchange="onradio">
  <t-radio block="{{false}}" label="低" value="0" />
  <t-radio block="{{false}}" label="中" value="1" />
  <t-radio block="{{false}}" label="高" value="2" />
</t-radio-group>
					</view>
        </view>
        <view class="owner_type11">
        	<view class="calculation_strategy">
            审核状态
					</view>
				  <view class="calculation_capsule">
            <t-radio-group default-value="{{examineType}}" value="{{examineType}}" borderless t-class="box" bindchange="onexamineType">
  <t-radio block="{{false}}" label="成功" value="6" />
  <t-radio block="{{false}}" label="失败" value="7" />
</t-radio-group>
					</view>
        </view>
        <view class="workorder_box">

<view class="workorder1" bind:tap="onworkorder">提交</view>
<view class="workorder1" bind:tap="onreset">重置</view>
</view>
  </view>
</t-popup>
<!--   -->