<!--pages/fault-detail/fault-detail.wxml-->
<view class="page-body" style="height: {{height}};">
    <form bindsubmit="formSubmit" bindreset="formReset">
        <scroll-view class="formbody" scroll-y="true">
            <view class="page-section page-section-gap">
                <view class="page-section-title">故障标题：</view>
                <input type="text" class="weui-input" name="title" value="{{title}}" disabled="{{disabled}}" placeholder="请输入故障标题" maxlength="50" />
            </view>
            <view class="page-section page-section-gap">
                <view class="page-section-title">提出人员：</view>
                <input type="text" class="weui-input" name="proposePersonnel" value="{{proposePersonnel}}" disabled="{{disabled}}" placeholder="请输入提出人员" maxlength="50" />
            </view>
            <view class="page-section page-section-gap">
                <view class="page-section-title">故障内容：</view>
                <textarea class="weui-input" name="content" value="{{content}}" disabled="{{disabled}}" placeholder="请输入故障内容" maxlength="500"></textarea>
            </view>
            <view class="page-section page-section-gap">
                <view class="page-section-title">处理方式：</view>
                <textarea class="weui-input" name="treatmentMethod" value="{{treatmentMethod}}" disabled="{{disabled}}" placeholder="请输入处理方式" maxlength="500"></textarea>
            </view>
            <view class="page-section page-section-gap">
                <view class="page-section-title">处理人员：</view>
                <input type="text" class="weui-input" name="treatmentPersonnel" value="{{treatmentPersonnel}}" disabled="{{disabled}}" placeholder="请输入处理人员" maxlength="20" />
            </view>
            <view class="page-section page-section-gap">
                <view class="page-section-title">处理时间：</view>
                <picker mode="date" value="{{index}}" end="{{endTime}}" bindchange="changeTreatmentTime" wx:if="{{showPicker}}">
                    <input type="text" class="weui-input" name="updateTime" value="{{updateTime}}" disabled="true" placeholder="请输入处理时间" />
                </picker>
                <input type="text" class="weui-input" name="updateTime" value="{{updateTime}}" disabled="true" placeholder="请输入处理时间" wx:if="{{!showPicker}}" />
            </view>
        </scroll-view>
        <view class="btn-area" wx:if="{{showSubmit}}">
            <button class="submit-btn" formType="submit">提交</button>
        </view>
    </form>
</view>