|
@@ -97,22 +97,22 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
|
|
|
- <view class="container" style="color: #b2b2b2;">*请上传调压箱名牌照片</view>
|
|
|
+ <view class="container" style="color: #b2b2b2;">*请上传照片</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="choose('Box')"
|
|
|
+ style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose()"
|
|
|
v-show="reviewStatus!='1'"></image>
|
|
|
- <view v-for="(item,index) in imgBoxArr" :key="index" style="position: relative;">
|
|
|
+ <view v-for="(item,index) in imgArr" :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,'Box')">
|
|
|
+ @click="showPhoto(index)">
|
|
|
</image>
|
|
|
</view>
|
|
|
<view v-else>
|
|
|
<video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
</view>
|
|
|
- <view @click="remove(index,'Box')"
|
|
|
+ <view @click="remove(index)"
|
|
|
style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
|
</image>
|
|
@@ -120,110 +120,10 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
|
|
|
- <view class="container" style="color: #b2b2b2;">*请上传调压箱内石粉回填照片</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="choose('Sfht')"
|
|
|
- v-show="reviewStatus!='1'"></image>
|
|
|
- <view v-for="(item,index) in imgSfhtArr" :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,'Sfht')">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
- </view>
|
|
|
- <view @click="remove(index,'Sfht')"
|
|
|
- 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="align-items" style="margin-top: 20px;margin-bottom: 20px;">
|
|
|
- <view class="container" style="color: #b2b2b2;">*请上传调压箱防雷接地照片</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="choose('Fljd')"
|
|
|
- v-show="reviewStatus!='1'"></image>
|
|
|
- <view v-for="(item,index) in imgFljdArr" :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,'Fljd')">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
- </view>
|
|
|
- <view @click="remove(index,'Fljd')"
|
|
|
- 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="align-items" style="margin-top: 20px;margin-bottom: 20px;">
|
|
|
- <view class="container" style="color: #b2b2b2;">*请上传调压箱底腿连接照片</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="choose('Dtlj')"
|
|
|
- v-show="reviewStatus!='1'"></image>
|
|
|
- <view v-for="(item,index) in imgDtljArr" :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,'Dtlj')">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <video :src="item"
|
|
|
- style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
- </view>
|
|
|
- <view @click="remove(index,'Dtlj')"
|
|
|
- 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 class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
|
|
|
- <view class="container" style="color: #b2b2b2;">*请上传调压箱护栏及地面硬化(远景)照片</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="choose('Hldmyh')"
|
|
|
- v-show="reviewStatus!='1'"></image>
|
|
|
- <view v-for="(item,index) in imgHldmyhArr" :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,'Hldmyh')">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <video :src="item"
|
|
|
- style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
- </view>
|
|
|
- <view @click="remove(index,'Hldmyh')"
|
|
|
- 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>
|
|
|
+ </view>
|
|
|
<view class="action-btn" v-show="reviewStatus!='1'">
|
|
|
<button @click="submit" class="btn cu-btn block bg-blue lg round">确认上传</button>
|
|
|
</view>
|
|
@@ -238,7 +138,7 @@
|
|
|
|
|
|
<script>
|
|
|
import SelectPicker from '../../components/selectPicker/select_picker.vue'
|
|
|
- import bottomSheet from '../../components/bottomSheet/bottomSheetMore.vue'
|
|
|
+ import bottomSheet from '../../components/bottomSheet/bottomSheetMoreNew.vue'
|
|
|
|
|
|
import {
|
|
|
getDicts
|
|
@@ -277,11 +177,7 @@
|
|
|
selectList: [],
|
|
|
dictOptions: [],
|
|
|
|
|
|
- imgSfhtArr: [],
|
|
|
- imgFljdArr: [],
|
|
|
- imgBoxArr: [],
|
|
|
- imgDtljArr: [],
|
|
|
- imgHldmyhArr: [],
|
|
|
+ imgArr: [],
|
|
|
|
|
|
videoArr: [],
|
|
|
XQValue: {},
|
|
@@ -392,22 +288,10 @@
|
|
|
handleHiddenShare() {
|
|
|
this.shareState = false;
|
|
|
},
|
|
|
- showPhoto(index, type) {
|
|
|
- let typeArr = [];
|
|
|
- let newArr = [];
|
|
|
- if (type == 'Box') {
|
|
|
- typeArr = this.imgBoxArr;
|
|
|
- } else if (type == 'Sfht') {
|
|
|
- typeArr = this.imgSfhtArr;
|
|
|
- } else if (type == 'Fljd') {
|
|
|
- typeArr = this.imgFljdArr;
|
|
|
- } else if (type == 'Dtlj') {
|
|
|
- typeArr = this.imgDtljArr;
|
|
|
- } else if (type == 'Hldmyh') {
|
|
|
- typeArr = this.imgHldmyhArr;
|
|
|
- }
|
|
|
+ showPhoto(index) {
|
|
|
|
|
|
- typeArr.forEach((item, index) => {
|
|
|
+ let newArr = [];
|
|
|
+ this.imgArr.forEach((item, index) => {
|
|
|
if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
|
|
|
item.substring(item.length - 4) == 'jpeg') {
|
|
|
newArr.push(item)
|
|
@@ -419,32 +303,20 @@
|
|
|
})
|
|
|
|
|
|
},
|
|
|
- remove(index, e) {
|
|
|
+ remove(index) {
|
|
|
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
content: '是否删除该图片或视频',
|
|
|
success: (res) => {
|
|
|
if (res.confirm) {
|
|
|
-
|
|
|
- if (e == 'Box') {
|
|
|
- this.imgBoxArr.splice(index, 1)
|
|
|
- } else if (e == 'Sfht') {
|
|
|
- this.imgSfhtArr.splice(index, 1)
|
|
|
- } else if (e == 'Fljd') {
|
|
|
- this.imgFljdArr.splice(index, 1)
|
|
|
- } else if (e == 'Dtlj') {
|
|
|
- this.imgDtljArr.splice(index, 1)
|
|
|
- } else if (e == 'Hldmyh') {
|
|
|
- this.imgHldmyhArr.splice(index, 1)
|
|
|
- }
|
|
|
-
|
|
|
+ this.imgArr.splice(index, 1)
|
|
|
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- choose(e) {
|
|
|
+ choose() {
|
|
|
|
|
|
|
|
|
uni.showActionSheet({
|
|
@@ -452,14 +324,14 @@
|
|
|
itemList: ['图片', '视频'],
|
|
|
success: (res) => {
|
|
|
if (res.tapIndex == 0) {
|
|
|
- this.chooseimage(e)
|
|
|
+ this.chooseimage()
|
|
|
} else {
|
|
|
- this.choosevideo(e)
|
|
|
+ this.choosevideo()
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- chooseimage(e) {
|
|
|
+ chooseimage() {
|
|
|
|
|
|
let _this = this;
|
|
|
uni.chooseImage({
|
|
@@ -480,18 +352,7 @@
|
|
|
_this.$modal.msg(data.msg)
|
|
|
} else {
|
|
|
if (_this.progress === 100) {
|
|
|
- if (e == 'Box') {
|
|
|
- _this.imgBoxArr.push(data.data.url)
|
|
|
- } else if (e == 'Sfht') {
|
|
|
- _this.imgSfhtArr.push(data.data.url)
|
|
|
- } else if (e == 'Fljd') {
|
|
|
- _this.imgFljdArr.push(data.data.url)
|
|
|
- } else if (e == 'Dtlj') {
|
|
|
- _this.imgDtljArr.push(data.data.url)
|
|
|
- } else if (e == 'Hldmyh') {
|
|
|
- _this.imgHldmyhArr.push(data.data.url)
|
|
|
- }
|
|
|
-
|
|
|
+ _this.imgArr.push(data.data.url)
|
|
|
_this.$modal.msg('上传成功!')
|
|
|
}
|
|
|
}
|
|
@@ -524,7 +385,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- choosevideo(e) {
|
|
|
+ choosevideo() {
|
|
|
let _this = this;
|
|
|
uni.chooseVideo({
|
|
|
sourceType: ['album', 'camera'],
|
|
@@ -544,17 +405,7 @@
|
|
|
} else {
|
|
|
//上传成功
|
|
|
if (_this.progress === 100) {
|
|
|
- if (e == 'Box') {
|
|
|
- _this.imgBoxArr.push(data.data.url)
|
|
|
- } else if (e == 'Sfht') {
|
|
|
- _this.imgSfhtArr.push(data.data.url)
|
|
|
- } else if (e == 'Fljd') {
|
|
|
- _this.imgFljdArr.push(data.data.url)
|
|
|
- } else if (e == 'Dtlj') {
|
|
|
- _this.imgDtljArr.push(data.data.url)
|
|
|
- } else if (e == 'Hldmyh') {
|
|
|
- _this.imgHldmyhArr.push(data.data.url)
|
|
|
- }
|
|
|
+ _this.imgArr.push(data.data.url)
|
|
|
_this.$modal.msg('上传成功!')
|
|
|
}
|
|
|
}
|
|
@@ -783,24 +634,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
- if (this.imgBoxArr.length <= 0) {
|
|
|
- this.$modal.msg('请上传调压箱名牌照片')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.imgSfhtArr.length <= 0) {
|
|
|
- this.$modal.msg('请上传调压箱内石粉回填照片')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.imgFljdArr.length <= 0) {
|
|
|
- this.$modal.msg('请上传调压箱防雷接地照片')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.imgDtljArr.length <= 0) {
|
|
|
- this.$modal.msg('请上传调压箱底腿连接照片')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.imgHldmyhArr.length <= 0) {
|
|
|
- this.$modal.msg('请上传调压箱护栏及地面硬化(远景)照片')
|
|
|
+ if (this.imgArr.length <= 0) {
|
|
|
+ this.$modal.msg('请上传照片')
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -841,11 +676,7 @@
|
|
|
|
|
|
constructTime: this.time, //施工时间
|
|
|
remark: this.projectContent, //施工内容
|
|
|
- boxBrand: this.imgBoxArr,
|
|
|
- stonePowder: this.imgSfhtArr,
|
|
|
- lightning: this.imgFljdArr,
|
|
|
- bottomLeg: this.imgDtljArr,
|
|
|
- groundHardening: this.imgHldmyhArr,
|
|
|
+ zEngiineeringPhotoBoList: this.imgArr,
|
|
|
|
|
|
}
|
|
|
|