|
@@ -179,7 +179,8 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 焊接、防腐 下管 沟下连头 -->
|
|
|
- <view v-if="objValue.Label=='焊接、防腐'||objValue.Label=='下管'||objValue.Label=='沟下连头'">
|
|
|
+ <view
|
|
|
+ v-if="objValue.Label=='焊接、防腐'||objValue.Label=='下管'||objValue.Label=='沟下连头'||objValue.Label=='顶管材料米数'">
|
|
|
<view v-for="(a,index) in czggslList" :key="index" class="num-style">
|
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
<view>
|
|
@@ -226,7 +227,7 @@
|
|
|
</view>
|
|
|
|
|
|
|
|
|
- <view v-if="objValue.Label!='回填、撤场'">
|
|
|
+ <view v-if="objValue.Label!='回填、撤场'&&objValue.value!='阀井'&&objValue.value!='顶管材料米数'">
|
|
|
<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;">
|
|
@@ -253,7 +254,7 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
- <view v-else>
|
|
|
+ <view v-else-if="objValue.Label=='回填、撤场'">
|
|
|
<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;">
|
|
@@ -333,9 +334,117 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
+
|
|
|
+ <view v-else-if="objValue.Label=='阀井'">
|
|
|
+ <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('Tg')"
|
|
|
+ v-show="reviewStatus!='1'"></image>
|
|
|
+ <view v-for="(item,index) in imgTgArr" :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,'Tg')">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="remove(index,'Tg')"
|
|
|
+ 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('Nbmh')"
|
|
|
+ v-show="reviewStatus!='1'"></image>
|
|
|
+ <view v-for="(item,index) in imgNbmhArr" :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,'Nbmh')">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="remove(index,'Nbmh')"
|
|
|
+ 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('Fhw')"
|
|
|
+ v-show="reviewStatus!='1'"></image>
|
|
|
+ <view v-for="(item,index) in imgFhwArr" :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,'Fhw')">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item"
|
|
|
+ style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="remove(index,'Fhw')"
|
|
|
+ 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('Bj')"
|
|
|
+ v-show="reviewStatus!='1'"></image>
|
|
|
+ <view v-for="(item,index) in imgBjArr" :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,'Bj')">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item"
|
|
|
+ style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="remove(index,'Bj')"
|
|
|
+ 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">
|
|
|
<button @click="submit" class="btn cu-btn block bg-blue lg round">确认上传</button>
|
|
|
</view>
|
|
@@ -452,6 +561,12 @@
|
|
|
enginId: '', //工程id
|
|
|
createTime: '',
|
|
|
infonId: '', //info id
|
|
|
+ //阀井
|
|
|
+ imgTgArr: [],
|
|
|
+ imgNbmhArr: [],
|
|
|
+ imgFhwArr: [],
|
|
|
+ imgBjArr: [],
|
|
|
+
|
|
|
|
|
|
enginName: '',
|
|
|
enginType: '',
|
|
@@ -478,8 +593,8 @@
|
|
|
getEngineeringDetails(this.enginId).then(
|
|
|
response => {
|
|
|
uni.hideLoading();
|
|
|
- this.enginName=response.data.enginName;
|
|
|
- this.enginType=response.data.enginType;
|
|
|
+ this.enginName = response.data.enginName;
|
|
|
+ this.enginType = response.data.enginType;
|
|
|
// this.enginList = response.data
|
|
|
this.jlPhoneValue = response.data.supervisionPhone; //监理电话
|
|
|
this.jlfzrValue = response.data.supervisionHead; //监理负责人
|
|
@@ -607,6 +722,14 @@
|
|
|
typeArr = this.imgJspsArr;
|
|
|
} else if (e == 'hth') {
|
|
|
typeArr = this.imgHthArr;
|
|
|
+ } else if (e == 'Tg') {
|
|
|
+ typeArr = this.imgTgArr;
|
|
|
+ } else if (e == 'Nbmh') {
|
|
|
+ typeArr = this.imgNbmhArr;
|
|
|
+ } else if (e == 'Fhw') {
|
|
|
+ typeArr = this.imgFhwArr;
|
|
|
+ } else if (e == 'Bj') {
|
|
|
+ typeArr = this.imgBjArr;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -645,6 +768,14 @@
|
|
|
_this.imgJspsArr.splice(index, 1)
|
|
|
} else if (e == 'hth') {
|
|
|
_this.imgHthArr.splice(index, 1)
|
|
|
+ } else if (e == 'Tg') {
|
|
|
+ this.imgTgArr.splice(index, 1)
|
|
|
+ } else if (e == 'Nbmh') {
|
|
|
+ this.imgNbmhArr.splice(index, 1)
|
|
|
+ } else if (e == 'Fhw') {
|
|
|
+ this.imgFhwArr.splice(index, 1)
|
|
|
+ } else if (e == 'Bj') {
|
|
|
+ this.imgBjArr.splice(index, 1)
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -700,6 +831,14 @@
|
|
|
_this.imgJspsArr.push(data.data.url)
|
|
|
} else if (e == 'hth') {
|
|
|
_this.imgHthArr.push(data.data.url)
|
|
|
+ } else if (e == 'Tg') {
|
|
|
+ _this.imgTgArr.push(data.data.url)
|
|
|
+ } else if (e == 'Nbmh') {
|
|
|
+ _this.imgNbmhArr.push(data.data.url)
|
|
|
+ } else if (e == 'Fhw') {
|
|
|
+ _this.imgFhwArr.push(data.data.url)
|
|
|
+ } else if (e == 'Bj') {
|
|
|
+ _this.imgBjArr.push(data.data.url)
|
|
|
}
|
|
|
_this.$modal.msg('上传成功!')
|
|
|
}
|
|
@@ -766,6 +905,14 @@
|
|
|
_this.imgJspsArr.push(data.data.url)
|
|
|
} else if (e == 'hth') {
|
|
|
_this.imgHthArr.push(data.data.url)
|
|
|
+ } else if (e == 'Tg') {
|
|
|
+ _this.imgTgArr.push(data.data.url)
|
|
|
+ } else if (e == 'Nbmh') {
|
|
|
+ _this.imgNbmhArr.push(data.data.url)
|
|
|
+ } else if (e == 'Fhw') {
|
|
|
+ _this.imgFhwArr.push(data.data.url)
|
|
|
+ } else if (e == 'Bj') {
|
|
|
+ _this.imgBjArr.push(data.data.url)
|
|
|
}
|
|
|
_this.$modal.msg('上传成功!')
|
|
|
}
|
|
@@ -989,7 +1136,8 @@
|
|
|
// this.$modal.msg('请选择工程名称')
|
|
|
// return
|
|
|
// }
|
|
|
- if (this.objValue.title == '焊接、防腐' || this.objValue.title == '下管' || this.objValue.title == ' 沟下连头') {
|
|
|
+ if (this.objValue.title == '焊接、防腐' || this.objValue.title == '下管' || this.objValue.title == ' 沟下连头' ||
|
|
|
+ this.objValue.title == '顶管材料米数') {
|
|
|
try {
|
|
|
this.czggslList.forEach((list) => {
|
|
|
if (this.isEmpty(list.cz.id)) {
|
|
@@ -1040,16 +1188,36 @@
|
|
|
// this.$modal.msg('请上传回填后照片')
|
|
|
// return
|
|
|
// }
|
|
|
- } else {
|
|
|
- if (this.imgArr.length <= 0) {
|
|
|
- this.$modal.msg('请上传照片或视频')
|
|
|
+ } else if (this.objValue.title == '阀井') {
|
|
|
+ if (this.imgTgArr.length <= 0) {
|
|
|
+ this.$modal.msg('请上传套管照片')
|
|
|
return
|
|
|
}
|
|
|
+ if (this.imgNbmhArr.length <= 0) {
|
|
|
+ this.$modal.msg('请上传内壁抹灰照片')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.imgFhwArr.length <= 0) {
|
|
|
+ this.$modal.msg('请上传防护网照片')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.imgBjArr.length <= 0) {
|
|
|
+ this.$modal.msg('请上传八角照片')
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ if (this.objValue.title != '顶管材料米数') {
|
|
|
+ if (this.imgArr.length <= 0) {
|
|
|
+ this.$modal.msg('请上传照片或视频')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- if (this.loading == false) {
|
|
|
- this.$modal.msg('照片或视频未上传完毕,无法提交!')
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (this.loading == false) {
|
|
|
+ // this.$modal.msg('照片或视频未上传完毕,无法提交!')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
let param = {
|
|
@@ -1078,6 +1246,12 @@
|
|
|
zEngiineeringPhotoBoListThree: this.imgHthArr,
|
|
|
|
|
|
|
|
|
+ cannula: this.imgTgArr,
|
|
|
+ wallPlaster: this.imgNbmhArr,
|
|
|
+ protectiveNet: this.imgFhwArr,
|
|
|
+ starAnise: this.imgBjArr,
|
|
|
+
|
|
|
+
|
|
|
zEngineeringMaterialBo: this.zEngineeringMaterialBo // 用料对象
|
|
|
}
|
|
|
}
|