<!--pageage/safetyManagement/addSafetyInspect/index.wxml-->
<view class="header_title">
  <view class="header_title_row">
    <van-row>
      <van-col span="4">
        <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
      </van-col>
      <van-col span="15">
        <view class="header_name">修改材料封样</view>
      </van-col>
    </van-row>
  </view>
</view>
<view class="max_content">
    <view class="inspect_info">
    <view class="module_title module_title_flex">
        <view>{{projectName}}</view>
    </view>
    <view class="gk_open" style="margin-top: 20rpx;border: 1px solid transparent;">
        <van-collapse value="{{activeName}}" bind:change="onChange">
            <van-collapse-item title="审批日志" name="2">
                <view class="inspect_list">
                    <view class="inspect_for" wx:for="{{flowRecordList}}" wx:key="index">
                        <view class="inspect_for_bgd">
                            <view class="inspect_list_title">
                                <view class="inspect_list_title_label inspect_list_title_width">
                                    <view class="inspect_list_title_number">{{(flowRecordList.length-index) < 9 ?'0'+(flowRecordList.length-index):(flowRecordList.length-index)}}</view>
                                    <view class="module_title module_title_flex inspect_list_title_text">
                                        <text wx:if="{{item.approveStatus==1}}">提交材料封样</text>
                                        <text wx:if="{{item.approveStatus!=1}}">审批材料封样</text>
                                        <text wx:if="{{item.approveStatus==4}}"  class="timeline_for_state_1 color_green">合格</text>
                                        <text wx:if="{{item.approveStatus==3}}" class="timeline_for_state_2 color_purple">不合格</text>
                                    </view>
                                </view>
                            </view>
                            <view class="inspect_list_info gk_open_con">
                                <view wx:if="{{item.userName}}"><image src="/images/lw_3.png"></image>办理用户：<text>{{item.userName}}</text></view>
                                <view wx:if="{{item.deptName}}"><image src="/images/s_1.png"></image>办理单位：<text class="color_blue">{{item.deptName}}</text></view>
                                <view><image src="/images/s_6.png"></image>办理时间：<text>{{item.createTime}}</text></view>
                                <view wx:if="{{item.comment}}"><image src="/images/s_7.png"></image>审批意见：<text>{{item.comment}}</text></view>
                            </view>
                        </view>
                    </view>
                </view>
            </van-collapse-item>
        </van-collapse>
        </view>
    <view class="inspect_info_list">
        <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">封样图片</view>
        <view class="problem_list_info_con">
            <file-uploader bindimages="onImagesArr" data-index="{{0}}" fileUrlArray="{{imageInfoData}}"></file-uploader>
        </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">封样名称</view>
            <view class="inspect_info_content">
                <input placeholder="请填写封样名称" placeholder-style="color:#6777aa;" model:value="{{infoData.materialName}}" class="inspect_input_fill_in" bindinput="materialNameAction" maxlength="30"/>
             </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">使用部位</view>
            <view class="inspect_info_content">
                <textarea  class="add_textarea" placeholder="请填写使用部位"
                model:value="{{infoData.usePosition}}" placeholder-style="color:#6777aa;" maxlength="800" bindinput="usePositionAction"/>
             </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">合同指定品牌</view>
            <view class="inspect_info_content">
                <textarea  class="add_textarea" placeholder="请填写合同指定品牌"
                model:value="{{infoData.contractBrand}}" placeholder-style="color:#6777aa;" maxlength="800" bindinput="contractBrandAction"/>
             </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">拟用品牌</view>
            <view class="inspect_info_content">
                <textarea  class="add_textarea" placeholder="请填写拟用品牌"
                model:value="{{infoData.useBrand}}" placeholder-style="color:#6777aa;" maxlength="800" bindinput="useBrandAction"/>
             </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">封样时间</view>
            <view class="inspect_info_content">
            <voucher-datetime counts="5" placeholder="请选择封样时间" maxDate="{{maxDate}}" currentDate="{{currentDate}}" time="{{infoData.sealDate}}" bindchange="onInputTime"></voucher-datetime>
        </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">监理专员</view>
            <view class="inspect_info_content">
                <select-group-person rectifierData="{{rectifierData}}" multiple="{{fales}}" bindselected="onAddSend" index="{{0}}" title="请选择监理专员" choose="{{infoData.witnessUserName}}">
                </select-group-person>
             </view>
    </view>
    <view class="inspect_info_list">
    <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">会签单图片</view>
        <view class="problem_list_info_con">
            <file-uploader bindimages="onImagesArrSignFiles" data-index="{{1}}" limit="{{1}}" fileUrlArray="{{signFileData}}"></file-uploader>
        </view>
    </view>
    <view class="inspect_info_list" wx:if="{{showBgd}}">
    <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">变更单图片</view>
        <view class="problem_list_info_con">
            <file-uploader bindimages="onImagesArrAlterationFiles"  data-index="{{2}}" limit="{{1}}" fileUrlArray="{{alterationFileData}}"></file-uploader>
            <text class="safety_inspect_title module_title_flex">合同指定品牌和拟用品牌不一致时需要上传</text>
        </view>
    </view>     
</view>
<view class="problem_submit_to">
    <view class="problem_submit_to_btn" bindtap="cancelSaveView">取消</view>
    <view class="problem_submit_to_btn problem_submit_to_save"  bindtap="onSave">保存</view>
</view>
</view>
<van-overlay show="{{loadShow}}">
    <view class="gif">
        <image src="../../../images/loding2.gif"></image>
        <view>数据加载中！请稍后...</view>
    </view>
</van-overlay>  
















































