|
@@ -5,8 +5,17 @@
|
|
|
|
|
|
<view class="uni-media-list-body">
|
|
|
<view>
|
|
|
+ <view class="uni-media-list-text-top" v-if="value.zEngineeringReviewBo!=null">
|
|
|
+ <view class="tit-text"
|
|
|
+ v-if="value.zEngineeringReviewBo.reviewStatus==''||value.zEngineeringReviewBo==null">未审核
|
|
|
+ </view>
|
|
|
+ <view class="tit-text" v-if="value.zEngineeringReviewBo.reviewStatus=='0'" style="color: red;">未通过</view>
|
|
|
+ <view class="tit-text" v-if="value.zEngineeringReviewBo.reviewStatus=='1'">通过</view>
|
|
|
+ <view :style="value.zEngineeringReviewBo.reviewStatus=='0'?'color: red;':''">
|
|
|
+ {{value.zEngineeringReviewBo.reviewContent}}</view>
|
|
|
+ </view>
|
|
|
<view class="uni-media-list-text-top">
|
|
|
- <view class="tit-text">施工时间:</view>{{value.updateTime}}
|
|
|
+ <view class="tit-text">施工时间:</view>{{value.constructTime}}
|
|
|
</view>
|
|
|
<view class="uni-media-list-text-top">
|
|
|
<view class="uni-common-mt" style="width: 100%;">
|
|
@@ -23,7 +32,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <view v-if="title=='焊接、防腐'||title=='架空管线'||title=='下管'||title=='沟下连头'||title=='焊接'">
|
|
|
+ <view
|
|
|
+ v-if="title=='焊接、防腐'||title=='架空管线'||title=='下管'||title=='沟下连头'||title=='焊接'||title=='顶管材料米数'||title=='全貌照片'">
|
|
|
|
|
|
<view class="cz-style" v-for="(a,index) in value.zEngineeringMaterialBo" :key="index">
|
|
|
<view class="uni-media-list-text-top" style=" ">
|
|
@@ -66,7 +76,7 @@
|
|
|
<button @click="btnAdd(key,index)" class="tj-btn">添加</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if="title!='回填、撤场'&&title!='调压柜'">
|
|
|
+ <view v-if="title!='回填、撤场'&&title!='调压柜'&&title!='阀井'&&title!='顶管材料米数'">
|
|
|
<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('other',key)">
|
|
@@ -181,7 +191,7 @@
|
|
|
|
|
|
</view>
|
|
|
|
|
|
- <view v-else>
|
|
|
+ <view v-else-if="title=='调压柜'">
|
|
|
|
|
|
<view class="uni-common-mt" style="width: 100%;">
|
|
|
<text class="uni-title uni-common-pl" style=" font-size: 13px;color:
|
|
@@ -322,10 +332,121 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view v-else-if="title=='阀井'">
|
|
|
+ <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;">
|
|
|
+ <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
+ style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Tg',key)">
|
|
|
+ </image>
|
|
|
+ <view v-for="(item,index) in value.cannula" :key="index" style="position: relative;">
|
|
|
+ <view
|
|
|
+ v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
|
|
|
+ <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
+ @click="showPhoto(index,value.cannula)">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="removeht(index,key,'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 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;">
|
|
|
+ <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
+ style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Nbmh',key)">
|
|
|
+ </image>
|
|
|
+ <view v-for="(item,index) in value.wallPlaster" :key="index" style="position: relative;">
|
|
|
+ <view
|
|
|
+ v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
|
|
|
+ <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
+ @click="showPhoto(index,value.wallPlaster)">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="removeht(index,key,'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="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;">
|
|
|
+ <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
+ style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fhw',key)">
|
|
|
+ </image>
|
|
|
+ <view v-for="(item,index) in value.protectiveNet" :key="index" style="position: relative;">
|
|
|
+ <view
|
|
|
+ v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
|
|
|
+ <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
+ @click="showPhoto(index,value.protectiveNet)">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="removeht(index,key,'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="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;">
|
|
|
+ <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
+ style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Bj',key)">
|
|
|
+ </image>
|
|
|
+ <view v-for="(item,index) in value.starAnise" :key="index" style="position: relative;">
|
|
|
+ <view
|
|
|
+ v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
|
|
|
+ <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
+ @click="showPhoto(index,value.starAnise)">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
+ </view>
|
|
|
+ <view @click="removeht(index,key,'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>
|
|
@@ -661,6 +782,30 @@
|
|
|
.groundHardening.push(data
|
|
|
.data
|
|
|
.url);
|
|
|
+ } else if (e == 'Tg') {
|
|
|
+ _this.dataJson.zEngineeringNodeBo
|
|
|
+ .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
+ .cannula.push(data
|
|
|
+ .data
|
|
|
+ .url);
|
|
|
+ } else if (e == 'Nbmh') {
|
|
|
+ _this.dataJson.zEngineeringNodeBo
|
|
|
+ .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
+ .wallPlaster.push(data
|
|
|
+ .data
|
|
|
+ .url);
|
|
|
+ } else if (e == 'Fhw') {
|
|
|
+ _this.dataJson.zEngineeringNodeBo
|
|
|
+ .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
+ .protectiveNet.push(data
|
|
|
+ .data
|
|
|
+ .url);
|
|
|
+ } else if (e == 'Bj') {
|
|
|
+ _this.dataJson.zEngineeringNodeBo
|
|
|
+ .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
+ .starAnise.push(data
|
|
|
+ .data
|
|
|
+ .url);
|
|
|
}
|
|
|
_this.$modal.msg('上传成功!')
|
|
|
}
|
|
@@ -749,6 +894,22 @@
|
|
|
_this.dataJson.zEngineeringNodeBo
|
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
|
.groundHardening.push(data.data.url);
|
|
|
+ } else if (e == 'Tg') {
|
|
|
+ _this.dataJson.zEngineeringNodeBo
|
|
|
+ .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
+ .cannula.push(data.data.url);
|
|
|
+ } else if (e == 'Nbmh') {
|
|
|
+ _this.dataJson.zEngineeringNodeBo
|
|
|
+ .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
+ .wallPlaster.push(data.data.url);
|
|
|
+ } else if (e == 'Fhw') {
|
|
|
+ _this.dataJson.zEngineeringNodeBo
|
|
|
+ .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
+ .protectiveNet.push(data.data.url);
|
|
|
+ } else if (e == 'Bj') {
|
|
|
+ _this.dataJson.zEngineeringNodeBo
|
|
|
+ .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
+ .starAnise.push(data.data.url);
|
|
|
}
|
|
|
_this.$modal.msg('上传成功!')
|
|
|
}
|
|
@@ -820,87 +981,103 @@
|
|
|
},
|
|
|
submit() {
|
|
|
let isSubmit = true;
|
|
|
- if (this.title == '调压柜') {
|
|
|
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
|
|
|
- if (res.boxBrand.length == 0) {
|
|
|
- this.$modal.msg("请上传调压箱铭牌照片");
|
|
|
- isSubmit = false;
|
|
|
- }
|
|
|
- if (res.stonePowder.length == 0) {
|
|
|
- this.$modal.msg("请上传调压箱内石粉回填照片");
|
|
|
- isSubmit = false;
|
|
|
- }
|
|
|
- if (res.lightning.length == 0) {
|
|
|
- this.$modal.msg("请上传调压箱防雷接地照片");
|
|
|
- isSubmit = false;
|
|
|
- }
|
|
|
- if (res.bottomLeg.length == 0) {
|
|
|
- this.$modal.msg("请上传调压箱底腿连接照片");
|
|
|
- isSubmit = false;
|
|
|
- }
|
|
|
- if (res.groundHardening.length == 0) {
|
|
|
- this.$modal.msg("请上传调压箱护栏及地面硬化(远景)照片");
|
|
|
- isSubmit = false;
|
|
|
- }
|
|
|
- })
|
|
|
|
|
|
- } else {
|
|
|
|
|
|
+ this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
|
|
|
|
|
|
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
|
|
|
-
|
|
|
- if (res.createBy == this.$user.state.name) {
|
|
|
- if (this.title == '焊接、防腐' || this.title == '架空管线' || this.title ==
|
|
|
- '下管' || this.title == '沟下连头' || this.title == '焊接') {
|
|
|
- res.zEngineeringMaterialBo.forEach((itme) => {
|
|
|
- if (itme.specifications == '') {
|
|
|
- this.$modal.msg("请选择规格");
|
|
|
- isSubmit = false;
|
|
|
- }
|
|
|
- if (itme.number == '') {
|
|
|
- this.$modal.msg("请输入米数");
|
|
|
- isSubmit = false;
|
|
|
- }
|
|
|
- if (this.getIntegerPart(itme.number, 0) == '') {
|
|
|
- this.$modal.msg("请输入米数");
|
|
|
- isSubmit = false;
|
|
|
- }
|
|
|
- })
|
|
|
+ if (res.createBy == this.$user.state.name) {
|
|
|
|
|
|
+ if (this.title == '调压柜') {
|
|
|
+ if (res.boxBrand.length == 0) {
|
|
|
+ this.$modal.msg("请上传调压箱铭牌照片");
|
|
|
+ isSubmit = false;
|
|
|
+ }
|
|
|
+ if (res.stonePowder.length == 0) {
|
|
|
+ this.$modal.msg("请上传调压箱内石粉回填照片");
|
|
|
+ isSubmit = false;
|
|
|
+ }
|
|
|
+ if (res.lightning.length == 0) {
|
|
|
+ this.$modal.msg("请上传调压箱防雷接地照片");
|
|
|
+ isSubmit = false;
|
|
|
+ }
|
|
|
+ if (res.bottomLeg.length == 0) {
|
|
|
+ this.$modal.msg("请上传调压箱底腿连接照片");
|
|
|
+ isSubmit = false;
|
|
|
+ }
|
|
|
+ if (res.groundHardening.length == 0) {
|
|
|
+ this.$modal.msg("请上传调压箱护栏及地面硬化(远景)照片");
|
|
|
+ isSubmit = false;
|
|
|
+ }
|
|
|
+ } else if (this.title == '阀井') {
|
|
|
+ if (res.cannula.length == 0) {
|
|
|
+ this.$modal.msg("请上传套管照片");
|
|
|
+ isSubmit = false;
|
|
|
}
|
|
|
- if (this.title == '回填、撤场') {
|
|
|
- if (res.zEngiineeringPhotoBoListOne.length <= 0 && res.zEngiineeringPhotoBoListTwo
|
|
|
- .length <= 0 && res.zEngiineeringPhotoBoListThree.length <= 0) {
|
|
|
- this.$modal.msg('请上传照片')
|
|
|
+ if (res.wallPlaster.length == 0) {
|
|
|
+ this.$modal.msg("请上传内壁抹灰照片");
|
|
|
+ isSubmit = false;
|
|
|
+ }
|
|
|
+ if (res.protectiveNet.length == 0) {
|
|
|
+ this.$modal.msg("请上传防护网照片");
|
|
|
+ isSubmit = false;
|
|
|
+ }
|
|
|
+ if (res.starAnise.length == 0) {
|
|
|
+ this.$modal.msg("请上传八角照片");
|
|
|
+ isSubmit = false;
|
|
|
+ }
|
|
|
+ } else if (this.title == '焊接、防腐' || this.title == '架空管线' || this.title ==
|
|
|
+ '下管' || this.title == '沟下连头' || this.title == '焊接' || this.title == '顶管材料米数' ||
|
|
|
+ this.title == '全貌照片') {
|
|
|
+ res.zEngineeringMaterialBo.forEach((itme) => {
|
|
|
+ if (itme.specifications == '') {
|
|
|
+ this.$modal.msg("请选择规格");
|
|
|
isSubmit = false;
|
|
|
}
|
|
|
- // if (res.zEngiineeringPhotoBoListTwo.length <= 0) {
|
|
|
- // this.$modal.msg('请上传警示带铺设照片')
|
|
|
- // isSubmit = false;
|
|
|
- // }
|
|
|
- // if (res.zEngiineeringPhotoBoListThree.length <= 0) {
|
|
|
- // this.$modal.msg('请上传回填后照片')
|
|
|
- // isSubmit = false;
|
|
|
- // }
|
|
|
- } else {
|
|
|
+ if (itme.number == '') {
|
|
|
+ this.$modal.msg("请输入米数");
|
|
|
+ isSubmit = false;
|
|
|
+ }
|
|
|
+ if (this.getIntegerPart(itme.number, 0) == '') {
|
|
|
+ this.$modal.msg("请输入米数");
|
|
|
+ isSubmit = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ } else if (this.title == '回填、撤场') {
|
|
|
+ if (res.zEngiineeringPhotoBoListOne.length <= 0 && res.zEngiineeringPhotoBoListTwo
|
|
|
+ .length <= 0 && res.zEngiineeringPhotoBoListThree.length <= 0) {
|
|
|
+ this.$modal.msg('请上传照片')
|
|
|
+ isSubmit = false;
|
|
|
+ }
|
|
|
+ // if (res.zEngiineeringPhotoBoListTwo.length <= 0) {
|
|
|
+ // this.$modal.msg('请上传警示带铺设照片')
|
|
|
+ // isSubmit = false;
|
|
|
+ // }
|
|
|
+ // if (res.zEngiineeringPhotoBoListThree.length <= 0) {
|
|
|
+ // this.$modal.msg('请上传回填后照片')
|
|
|
+ // isSubmit = false;
|
|
|
+ // }
|
|
|
+ } else {
|
|
|
+ if (this.title != '顶管材料米数') {
|
|
|
if (res.zEngiineeringPhotoBoList.length == 0) {
|
|
|
this.$modal.msg("请上传照片");
|
|
|
isSubmit = false;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
- })
|
|
|
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
- // this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
|
|
|
- // if (res.zEngiineeringPhotoBoList.length == 0) {
|
|
|
- // this.$modal.msg("请上传照片");
|
|
|
- // isSubmit = false;
|
|
|
- // }
|
|
|
|
|
|
- // })
|
|
|
- }
|
|
|
+ // this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
|
|
|
+ // if (res.zEngiineeringPhotoBoList.length == 0) {
|
|
|
+ // this.$modal.msg("请上传照片");
|
|
|
+ // isSubmit = false;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // })
|
|
|
+
|
|
|
if (!isSubmit) {
|
|
|
return
|
|
|
}
|