You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
232 lines
13 KiB
232 lines
13 KiB
<!--pages/completion/completion.wxml-->
|
|
<wxs src="/wxs/util.wxs" module="util"></wxs>
|
|
<view class="content">
|
|
<!-- 用户信息 -->
|
|
<userInfo detail="{{detail}}" type='{{detail.tenant_type}}'></userInfo>
|
|
<block wx:if="{{formSetObj.filing_document_code.status =='1'}}">
|
|
<view class="content-line"></view>
|
|
<view class="content-list">
|
|
<text style="color: red;" wx:if="{{formSetObj.filing_document_code.mustFillFlag =='1' && detail.map.filingType =='2'}}">*</text>
|
|
<text style="color: red; visibility: hidden;" wx:else>*</text>
|
|
<view class="content-title-item">项目备案代码</view>
|
|
<input type="text" class="content-input" placeholder="请输入" model:value="{{filingDocumentCode}}" />
|
|
</view>
|
|
</block>
|
|
<block wx:if="{{formSetObj.filing_document_photo.status =='1'}}">
|
|
<view class="content-line"></view>
|
|
<view class="content-img-box">
|
|
<view class="content-img-name">
|
|
<view class="content-attention-text">
|
|
<text style="color: red;" wx:if="{{detail.map.filingType =='2'}}">*</text>
|
|
<text style="color: red; visibility: hidden;" wx:else>*</text>
|
|
<view class="content-attention-showText f28">备案证(1-4张)</view>
|
|
</view>
|
|
<view class="txt-upload" style="padding-left: 10rpx;">
|
|
<view wx:for="{{photo.filingDocumentPhoto}}" wx:key="childIndex" wx:for-index="childIndex" wx:for-item="child" class="txt-upload-list">
|
|
<text bindtap="openDocument" data-path="{{child.name}}">{{util.formartFileName(child.name)}}</text>
|
|
<text bindtap="deleteImg2" style="color: red;" data-name="filingDocumentPhoto" data-index="{{childIndex}}">删除</text>
|
|
</view>
|
|
<view class="btn" bindtap="selectUplosd" data-maxcount="4" data-type="filingDocumentPhoto" data-name="filingDocumentPhoto" wx:if="{{ photo.filingDocumentPhoto.length<4}}">上传</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<block wx:if="{{detail.tenant_type == '2'}}">
|
|
<block wx:if="{{formSetObj.other_imgs1.status =='1'}}">
|
|
<view class="content-line"></view>
|
|
<view class="content-img-box">
|
|
<view class="content-img-name">
|
|
<view class="content-attention-text">
|
|
<text style="color: red;" wx:if="{{formSetObj.other_imgs1.mustFillFlag =='1'}}">*</text>
|
|
<text style="color: red; visibility: hidden;" wx:else>*</text>
|
|
<view class="content-attention-showText f28">银行印鉴留样(1-4张)</view>
|
|
</view>
|
|
<view class="img-box">
|
|
<van-uploader capture="{{capture}}" file-list="{{photo.otherImgs1}}" bind:after-read="afteruploadPhotoRead" data-name="otherImgs1" data-type="otherImgs1" bind:delete="deleteImg2" multiple preview-size="150rpx" preview-image preview-full-image max-count="4" style="flex: 1;">
|
|
</van-uploader>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<block wx:if="{{formSetObj.other_imgs2.status =='1'}}">
|
|
<view class="content-line"></view>
|
|
<view class="content-img-box">
|
|
<view class="content-img-name">
|
|
<view class="content-attention-text">
|
|
<text style="color: red;" wx:if="{{formSetObj.other_imgs2.mustFillFlag =='1'}}">*</text>
|
|
<text style="color: red; visibility: hidden;" wx:else>*</text>
|
|
<view class="content-attention-showText f28">签约现场照片-法定代表人/负责人签字照(1-4张)</view>
|
|
</view>
|
|
<view class="img-box">
|
|
<van-uploader capture="{{capture}}" file-list="{{photo.otherImgs2}}" bind:after-read="afteruploadPhotoRead" data-name="otherImgs2" data-type="otherImgs2" bind:delete="deleteImg2" multiple preview-size="150rpx" preview-image preview-full-image max-count="4" style="flex: 1;">
|
|
</van-uploader>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<block wx:if="{{formSetObj.other_imgs3.status =='1'}}">
|
|
<view class="content-line"></view>
|
|
<view class="content-img-box">
|
|
<view class="content-img-name">
|
|
<view class="content-attention-text">
|
|
<text style="color: red;" wx:if="{{formSetObj.other_imgs3.mustFillFlag =='1'}}">*</text>
|
|
<text style="color: red; visibility: hidden;" wx:else>*</text>
|
|
<view class="content-attention-showText f28">签约现场照片-正脸、持笔/持印、合同签署页同框(1-4张)</view>
|
|
</view>
|
|
<view class="img-box">
|
|
<van-uploader capture="{{capture}}" file-list="{{photo.otherImgs3}}" bind:after-read="afteruploadPhotoRead" data-name="otherImgs3" data-type="otherImgs3" bind:delete="deleteImg2" multiple preview-size="150rpx" preview-image preview-full-image max-count="4" style="flex: 1;">
|
|
</van-uploader>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<block wx:if="{{formSetObj.other_imgs4.status =='1'}}">
|
|
<view class="content-line"></view>
|
|
<view class="content-img-box">
|
|
<view class="content-img-name">
|
|
<view class="content-attention-text">
|
|
<text style="color: red;" wx:if="{{formSetObj.other_imgs4.mustFillFlag =='1'}}">*</text>
|
|
<text style="color: red; visibility: hidden;" wx:else>*</text>
|
|
<view class="content-attention-showText f28">签署完成照片(1-4张)</view>
|
|
</view>
|
|
<view class="img-box">
|
|
<van-uploader capture="{{capture}}" file-list="{{photo.otherImgs4}}" bind:after-read="afteruploadPhotoRead" data-name="otherImgs4" data-type="otherImgs4" bind:delete="deleteImg2" multiple preview-size="150rpx" preview-image preview-full-image max-count="4" style="flex: 1;">
|
|
</van-uploader>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</block>
|
|
<!-- 广发历史电站才显示 -->
|
|
<block wx:if="{{detail.is_history =='1' && detail.management =='03'}}">
|
|
<view class="content-line"></view>
|
|
<view class="content-img-box">
|
|
<view class="content-img-name">
|
|
<view class="content-attention-text">
|
|
<text style="color: red; ">*</text>
|
|
<view class="content-attention-showText f28">合同</view>
|
|
</view>
|
|
<view class="txt-upload" style="padding-left: 10rpx;">
|
|
<view wx:for="{{photo.contractUrl}}" wx:key="childIndex" wx:for-index="childIndex" wx:for-item="child" class="txt-upload-list">
|
|
<text bindtap="openDocument" data-path="{{child.name}}">{{util.formartFileName(child.name)}}</text>
|
|
<text bindtap="deleteImg" style="color: red;" data-type="contractUrl" data-index="{{childIndex}}">删除</text>
|
|
</view>
|
|
<view class="btn" bindtap="selectUplosd" data-maxcount="1" data-type="contractUrl" data-name="contractUrl" wx:if="{{ photo.contractUrl.length<1}}">上传</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
|
|
</view>
|
|
<!-- 工程信息 -->
|
|
<view class="content">
|
|
<view class="content-title">工程信息</view>
|
|
<block wx:if="{{formSetObj.safety_warning_img2.status =='1'}}">
|
|
<view class="content-line"></view>
|
|
<view class="content-img-box">
|
|
<view class="content-img-name">
|
|
<view class="content-attention-text">
|
|
<text style="color: red;" wx:if="{{formSetObj.safety_warning_img2.mustFillFlag =='1'}}">*</text>
|
|
<text style="color: red; visibility: hidden;" wx:else>*</text>
|
|
<view class="content-attention-showText f28">三级安全教育卡(1-15张)</view>
|
|
</view>
|
|
<view class="img-box">
|
|
<van-uploader capture="{{capture}}" file-list="{{photo.safetyWarningImg2}}" bind:after-read="afteruploadPhotoRead" data-name="safetyWarningImg2" data-type="safetyWarningImg2" bind:delete="deleteImg2" multiple sizeType="compressed" isChoseType="{{true}}" preview-size="150rpx" preview-image preview-full-image max-count="15" style="flex: 1;">
|
|
</van-uploader>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<block wx:if="{{formSetObj.kg_condition_files.status =='1'}}">
|
|
<view class="content-line"></view>
|
|
<view class="content-img-box">
|
|
<view class="content-img-name">
|
|
<view class="content-attention-text">
|
|
<text style="color: red;" wx:if="{{formSetObj.kg_condition_files.mustFillFlag =='1'}}">*</text>
|
|
<text style="color: red; visibility: hidden;" wx:else>*</text>
|
|
<view class="content-attention-showText f28">安全防护措施合照照片(1-15张)</view>
|
|
</view>
|
|
<view class="img-box">
|
|
<van-uploader capture="{{capture}}" file-list="{{photo.kgConditionFiles}}" bind:after-read="afteruploadPhotoRead" data-name="kgConditionFiles" data-type="kgConditionFiles" bind:delete="deleteImg2" multiple sizeType="compressed" isChoseType="{{true}}" preview-size="150rpx" preview-image preview-full-image max-count="15" style="flex: 1;">
|
|
</van-uploader>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<view class="content-line"></view>
|
|
<!-- 多产品分类 -->
|
|
<view class="detail-tab">
|
|
<view wx:for="{{projectList}}" wx:key="index" class="{{tabIndex == index?'active':''}}" data-index="{{index}}" bind:tap="changeTab">
|
|
{{item.roofType}}
|
|
<view wx:if="{{tabIndex ==index}}" class="actived"></view>
|
|
</view>
|
|
</view>
|
|
|
|
<view wx:for="{{projectListTab}}" wx:for-index="pIndex" wx:for-item="pItem" wx:key="pIndex" hidden="{{tabIndex != pIndex}}">
|
|
<view class="content-img-box">
|
|
<block wx:for="{{photoTips}}" wx:for-item="child" wx:for-index="childIndex" wx:key="childIndex">
|
|
<block wx:if="{{child.status =='1'}}">
|
|
<view class="content-line" style="margin:10rpx 5rpx 10rpx" wx:if="{{childIndex!=0}}"></view>
|
|
<view class="content-img-name {{child.num>1?'w-100':''}}">
|
|
<view class="content-attention-text" data-tit="{{child.title}}">
|
|
<text class="content-red" wx:if="{{child.must =='1'}}">*</text>
|
|
<view class="content-attention-showText f24">{{child.title}}
|
|
<block wx:if="{{child.num>1 && child.min}}">({{child.min}}-{{child.num}}张)</block>
|
|
<block wx:elif="{{child.num>1}}">(1-{{child.num}}张)</block>
|
|
</view>
|
|
</view>
|
|
<view class="img-box">
|
|
<view class="sl-img" wx:for="{{child.sampleGraph}}" wx:key="index">
|
|
<image src="{{IMG_BASE_URL}}{{item.imgsValue}}" class="caseImg" catchtap="viewPic" data-item="{{IMG_BASE_URL}}{{item.imgsValue}}"></image>
|
|
<text>示例图</text>
|
|
<view>{{item.imgsDesc}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="txt-upload" style="padding-left: 10rpx;" wx:if="{{child.key == 'otherFiles' || child.key == 'kgConditionFiles'}}">
|
|
<view wx:for="{{pItem.photo[child.key]}}" wx:key="childsIndex" wx:for-index="childsIndex" wx:for-item="childs" class="txt-upload-list">
|
|
<text bindtap="openDocument" data-path="{{childs.name}}">{{util.formartFileName(childs.name)}}</text>
|
|
<text bindtap="deleteImg" style="color: red;" data-type="{{child.key}}" data-name="{{child.key}}" data-index="{{childsIndex}}">删除</text>
|
|
</view>
|
|
<view class="btn" bindtap="selectUplosd" data-maxcount="{{child.num}}" data-name="{{child.key}}" wx:if="{{pItem.photo[child.key].length<child.num}}">上传</view>
|
|
</view>
|
|
<block wx:elif="{{child.key == 'supplementVideoUrl'}}">
|
|
<van-uploader accept="video" file-list="{{pItem.photo[child.key]}}" bind:after-read="afteruploadPhotoRead" bind:delete="deleteImg" data-type="{{child.key}}" data-name="{{child.key}}" max-count="{{child.num}}">
|
|
</van-uploader>
|
|
</block>
|
|
<view class="img-box2" wx:else>
|
|
<van-uploader capture="{{capture}}" file-list="{{pItem.photo[child.key]}}" bind:after-read="afteruploadPhotoRead" data-name="{{child.key}}" use-before-read bind:before-read="beforeRead" bind:delete="deleteImg" data-type="{{child.key}}" preview-size="150rpx" preview-image preview-full-image max-count="{{child.num}}" multiple sizeType="compressed" isChoseType="{{true}}" style="flex: 1;">
|
|
</van-uploader>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</block>
|
|
</view>
|
|
<block wx:if="{{formSetObj.complete_remark.status =='1'}}">
|
|
<view class="content-line"></view>
|
|
<view class="content-list">
|
|
<text class="content-red" wx:if="{{formSetObj.complete_remark.mustFillFlag =='1'}}">*</text>
|
|
<view class="content-title-item">完工备注</view>
|
|
<textarea class="content-input" style="padding-top: 4rpx; font-size: 24rpx; height: 90rpx;" placeholder="请输入" bindinput="onInput" value="{{remarkArr[tabIndex].completeRemark}}" />
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="buttom-margin"></view>
|
|
<view class="from-submit-buttom">
|
|
<view class="from-submit-buttom-cancle" bindtap="cacheFrom">暂存</view>
|
|
<view class="from-submit-buttom-confirm {{completeEnable?'':'from-submit-buttom-confirm-gray'}}" bindtap="{{completeEnable?'submitFrom':''}}">完工</view>
|
|
</view>
|
|
|
|
|
|
<van-dialog id="van-dialog" />
|
|
|
|
<!-- 省市区街道选择器 -->
|
|
<region showRegion="{{showRegion}}" bind:chooseRegion="chooseRegion"></region>
|
|
|
|
<!-- 添加水印画布 -->
|
|
<canvas style="position: absolute; top: -10000px; left: -10000px; width: {{canvasWidth}}px;height: {{canvasHeight}}px; " type="2d" id="Canvas"></canvas>
|
|
|
|
|
|
<!-- 当api.js开启开发模式且登录账号为100100时,可一键填充完工所有照片 -->
|
|
<view class="content-all" bind:tap="imageAll" wx:if="{{ DEV}}">填充</view> |