|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
+ <scroll-view>
|
|
|
<view class="uni-media-list" v-for="(value, key) in dataJson.zEngineeringNodeBo.zEngineeringInfoBoList"
|
|
|
:key="key" v-if="isEdit(value)">
|
|
|
|
|
@@ -8,23 +8,26 @@
|
|
|
<view class="uni-media-list-text-top">
|
|
|
<view class="tit-text">施工时间:</view>{{value.updateTime}}
|
|
|
</view>
|
|
|
- <view class="uni-common-mt" style="width: 100%;">
|
|
|
- <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
|
|
|
- #000;margin-top: 5px;">施工内容:</text>
|
|
|
- <view style="width: 100%;padding-right: 20rpx;box-sizing: border-box;">
|
|
|
- <textarea class="textarea" maxlength="255" placeholder-style="padding: 10rpx;"
|
|
|
- style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal; min-height: 30px;"
|
|
|
- auto-height :value="value.zEngineeringMaterialBo[0].remark"
|
|
|
- @blur="bindTextAreaBlur($event.target.value,key)"></textarea>
|
|
|
+ <view class="uni-media-list-text-top">
|
|
|
+ <view class="uni-common-mt" style="width: 100%;">
|
|
|
+ <text class="tit-text">施工内容:</text>
|
|
|
+ <view style="width: 100%;box-sizing: border-box;">
|
|
|
+ <textarea class="textarea" maxlength="255" placeholder-style="padding: 10rpx;"
|
|
|
+ style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
|
|
|
+ auto-height :value="value.zEngineeringMaterialBo[0].remark"
|
|
|
+ @blur="bindTextAreaBlur($event.target.value,key)"></textarea>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
+
|
|
|
<view class="uni-media-list-text-top" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
<view class="tit-text">
|
|
|
施工位置
|
|
|
</view>
|
|
|
<view style="display: flex; align-items: center; justify-content: right; width: 70%;">
|
|
|
- <view v-if="isEmpty(value.constructAddre)" @click="pickerShow('position')" style="margin-right: 20rpx;">
|
|
|
+ <view v-if="isEmpty(value.constructAddre)" @click="pickerShow('position')"
|
|
|
+ style="margin-right: 20rpx;">
|
|
|
<span style="color: darkgray;">请选择施工位置</span>
|
|
|
</view>
|
|
|
<view v-else @click="pickerShow('position',key)" style="margin-right: 20rpx;">
|
|
@@ -37,110 +40,119 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="uni-common-mt" style="width: 100%;">
|
|
|
- <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
|
|
|
- #000;margin-top: 5px; margin-left: 8px;">沟上部分照片:</text>
|
|
|
- </view>
|
|
|
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
|
|
|
- <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
- style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="chooseimage(0,key)">
|
|
|
- </image>
|
|
|
- <view v-for="(item,index) in value.onTheDitch" :key="index" style="position: relative;">
|
|
|
- <view
|
|
|
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
|
|
|
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
- @click="showPhoto(index,value.onTheDitch)">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
- </view>
|
|
|
- <view @click="removeht(index,key,0)"
|
|
|
- style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
- <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
|
+ <view class="uni-media-list-text-top">
|
|
|
+ <view class="uni-common-mt" style="width: 100%;">
|
|
|
+ <text class="tit-text">沟上部分照片:</text>
|
|
|
+ <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; ">
|
|
|
+ <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
+ style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
|
|
|
+ @click="chooseimage(0,key)">
|
|
|
</image>
|
|
|
+ <view v-for="(item,index) in value.onTheDitch" :key="index"
|
|
|
+ style="position: relative;">
|
|
|
+ <view
|
|
|
+ v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
|
|
|
+ <image :src="item" mode=""
|
|
|
+ style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
+ @click="showPhoto(index,value.onTheDitch)">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item"
|
|
|
+ style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="removeht(index,key,0)"
|
|
|
+ style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
+ <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="uni-common-mt" style="width: 100%;">
|
|
|
- <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
|
|
|
- #000;margin-top: 5px; margin-left: 8px;">开挖前照片:</text>
|
|
|
- </view>
|
|
|
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
|
|
|
- <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
- style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="chooseimage(1,key)">
|
|
|
- </image>
|
|
|
- <view v-for="(item,index) in value.beforeBottom" :key="index" style="position: relative;">
|
|
|
- <view
|
|
|
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
|
|
|
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
- @click="showPhoto(index,value.beforeBottom)">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
- </view>
|
|
|
- <view @click="removeht(index,key,1)"
|
|
|
- style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
- <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
|
+ <view class="uni-media-list-text-top">
|
|
|
+ <view class="uni-common-mt" style="width: 100%;">
|
|
|
+ <text class="tit-text">开挖前照片:</text>
|
|
|
+ <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; ">
|
|
|
+ <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
+ style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="chooseimage(1,key)">
|
|
|
</image>
|
|
|
+ <view v-for="(item,index) in value.beforeBottom" :key="index" style="position: relative;">
|
|
|
+ <view
|
|
|
+ v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
|
|
|
+ <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
+ @click="showPhoto(index,value.beforeBottom)">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="removeht(index,key,1)"
|
|
|
+ style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
+ <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+<view class="uni-media-list-text-top">
|
|
|
<view class="uni-common-mt" style="width: 100%;">
|
|
|
- <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
|
|
|
- #000;margin-top: 5px; margin-left: 8px;">下沟照片:</text>
|
|
|
- </view>
|
|
|
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
|
|
|
- <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
- style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="chooseimage(2,key)">
|
|
|
- </image>
|
|
|
- <view v-for="(item,index) in value.legBackfilling" :key="index" style="position: relative;">
|
|
|
- <view
|
|
|
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
|
|
|
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
- @click="showPhoto(index,value.legBackfilling)">
|
|
|
+ <text class="tit-text" style=" font-size: 13px;color:
|
|
|
+ #000;margin-top: 5px;">下沟照片:</text>
|
|
|
+ <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; ">
|
|
|
+ <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
+ style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="chooseimage(2,key)">
|
|
|
</image>
|
|
|
+ <view v-for="(item,index) in value.legBackfilling" :key="index" style="position: relative;">
|
|
|
+ <view
|
|
|
+ v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
|
|
|
+ <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
+ @click="showPhoto(index,value.legBackfilling)">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="removeht(index,key,2)"
|
|
|
+ style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
+ <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view v-else>
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
- </view>
|
|
|
- <view @click="removeht(index,key,2)"
|
|
|
- style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
- <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="uni-common-mt" style="width: 100%;">
|
|
|
- <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
|
|
|
- #000;margin-top: 5px; margin-left: 8px;">回填照片:</text>
|
|
|
</view>
|
|
|
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
|
|
|
- <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
- style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="chooseimage(3,key)">
|
|
|
- </image>
|
|
|
- <view v-for="(item,index) in value.inferiorSulcus" :key="index" style="position: relative;">
|
|
|
- <view
|
|
|
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
|
|
|
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
- @click="showPhoto(index,value.inferiorSulcus)">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
- </view>
|
|
|
- <view @click="removeht(index,key,3)"
|
|
|
- style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
- <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
|
+
|
|
|
+<view class="uni-media-list-text-top">
|
|
|
+ <view class="uni-common-mt" style="width: 100%;">
|
|
|
+ <text class="tit-text" style=" font-size: 13px;color:
|
|
|
+ #000;margin-top: 5px;">回填照片:</text>
|
|
|
+ <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; ">
|
|
|
+ <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
+ style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="chooseimage(3,key)">
|
|
|
</image>
|
|
|
+ <view v-for="(item,index) in value.inferiorSulcus" :key="index" style="position: relative;">
|
|
|
+ <view
|
|
|
+ v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
|
|
|
+ <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
+ @click="showPhoto(index,value.inferiorSulcus)">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="removeht(index,key,3)"
|
|
|
+ style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
+ <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -152,7 +164,7 @@
|
|
|
<view class="action-btn" v-if="hideButton==false">
|
|
|
<button @click="submit" class="btn cu-btn block bg-blue lg round">确认</button>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </scroll-view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|