<!--pages/reportFault/report.wxml-->
<view class="container" style="padding-bottom:100px;">
  <view class="height20"></view>
  <view>
    <form bindsubmit="formSubmit">
      <input name="orderId" value='{{ orderId }}' hidden='true' />
      <view class="part">
        <!-- 生产工序 -->
        <van-field label="生产工序" required input-align="right" is-link>
          <view slot="input" style="width: 100%;">
            <input name="loadPointId" value='{{loadPointArray[loadPointIndex].id}}' hidden='true' />
            <picker bindchange="bindPickerChange" value="{{loadPointIndex}}" range="{{loadPointArray}}" range-key="loadPoint" data-pickername='loadPoint'>
              <view class="selectPlaceholder"> {{loadPointArray[loadPointIndex].loadPoint?loadPointArray[loadPointIndex].loadPoint:defaultText}}</view>
            </picker>
          </view>
        </van-field>

        <!-- 工序节点 -->
        <van-field label="工序节点" required input-align="right" is-link>
          <view slot="input" style="width: 100%;">
            <input name="loadPointId" value='{{loadPointArray[loadPointIndex].id}}' hidden='true' />
            <picker bindchange="bindPickerChange" value="{{loadPointIndex}}" range="{{loadPointArray}}" range-key="loadPoint" data-pickername='loadPoint'>
              <view class="selectPlaceholder"> {{loadPointArray[loadPointIndex].loadPoint?loadPointArray[loadPointIndex].loadPoint:defaultText}}</view>
            </picker>
          </view>
        </van-field>

        <!-- 故障级别 -->
        <van-field label="故障级别" required input-align="right" class="radioHeight fieldAutoHeight">
          <view slot="input" style="width: 100%;" class="level radioHeightBx" style="text-align: right;">
            <text data-level="1" class="{{level=='1'?'active':''}}" bind:tap="onchange">故障级</text>
            <text data-level="2" class="{{level=='2'?'active':''}}" bind:tap="onchange">预警级</text>
          </view>
        </van-field>


      </view>

      <view class="fixedBtn submitBtn">
        <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">确定
        </van-button>
      </view>

    </form>
  </view>
</view>

<wxs module="filters" src="../../utils/filter.wxs"></wxs>