|
@@ -20,215 +20,170 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if="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)">
|
|
|
|
- </image>
|
|
|
|
- <view v-for="(item,index) in value.zEngiineeringPhotoBoList" :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.zEngiineeringPhotoBoList)">
|
|
|
|
- </image>
|
|
|
|
- </view>
|
|
|
|
- <view v-else>
|
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
|
- </view>
|
|
|
|
- <view @click="remove(index,key)"
|
|
|
|
- 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 class="cz-style" v-for="(a,index) in value.zEngineeringMaterialBo" :key="index">
|
|
|
|
- <view class="uni-media-list-text-top" style=" ">
|
|
|
|
- <view class="tit-text">材质:</view>
|
|
|
|
|
|
+ <view v-if="title=='焊接、防腐'||title=='架空管线'||title=='下管'||title=='沟下连头'||title=='焊接'">
|
|
|
|
|
|
- <view class="uni-list-cell-db" style="margin-top: 10;"
|
|
|
|
- @click="pickerShow('cz',key,index)">
|
|
|
|
- <span
|
|
|
|
- style="color: black;">{{a.materialQualityName==''?'请选择材质':a.materialQualityName}}</span>
|
|
|
|
|
|
+ <view class="cz-style" v-for="(a,index) in value.zEngineeringMaterialBo" :key="index">
|
|
|
|
+ <view class="uni-media-list-text-top" style=" ">
|
|
|
|
+ <view class="tit-text">材质:</view>
|
|
|
|
+
|
|
|
|
+ <view class="uni-list-cell-db" style="margin-top: 10;"
|
|
|
|
+ @click="pickerShow('cz',key,index)">
|
|
|
|
+ <span
|
|
|
|
+ style="color: black;">{{a.materialQualityName==''?'请选择材质':a.materialQualityName}}</span>
|
|
|
|
|
|
- </view>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="uni-media-list-text-top" style=" ">
|
|
|
|
- <view class="tit-text">规格:</view>
|
|
|
|
- <view class="uni-list-cell-db" style="margin-top: 10;"
|
|
|
|
- @click="pickerShow('gg',key,index)">
|
|
|
|
- <span
|
|
|
|
- style="color: black;">{{a.specificationsName==''?'请选择规格':a.specificationsName}}</span>
|
|
|
|
|
|
+ <view class="uni-media-list-text-top" style=" ">
|
|
|
|
+ <view class="tit-text">规格:</view>
|
|
|
|
+ <view class="uni-list-cell-db" style="margin-top: 10;"
|
|
|
|
+ @click="pickerShow('gg',key,index)">
|
|
|
|
+ <span
|
|
|
|
+ style="color: black;">{{a.specificationsName==''?'请选择规格':a.specificationsName}}</span>
|
|
|
|
|
|
- </view>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="uni-media-list-text-top" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
|
- <text class="tit-text">米 数</text>
|
|
|
|
- <view style="display: flex; justify-content: right; width: 70%;">
|
|
|
|
- <input class="uni-input" type="number" :value="getIntegerPart(a.number,0)"
|
|
|
|
- @change="setInfoBoNumber(key,index,$event.target.value,0)" maxlength="6"
|
|
|
|
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
|
- <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
|
|
|
|
-
|
|
|
|
- <input class="uni-input" type="number" :value="getIntegerPart(a.number,1)"
|
|
|
|
- @change="setInfoBoNumber(key,index,$event.target.value,1)" maxlength="1"
|
|
|
|
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view class="uni-media-list-text-top" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
|
+ <text class="tit-text">米 数</text>
|
|
|
|
+ <view style="display: flex; justify-content: right; width: 70%;">
|
|
|
|
+ <input class="uni-input" type="number" :value="getIntegerPart(a.number,0)"
|
|
|
|
+ @change="setInfoBoNumber(key,index,$event.target.value,0)" maxlength="6"
|
|
|
|
+ style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
|
+ <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
|
|
|
|
+
|
|
|
|
+ <input class="uni-input" type="number" :value="getIntegerPart(a.number,1)"
|
|
|
|
+ @change="setInfoBoNumber(key,index,$event.target.value,1)" maxlength="1"
|
|
|
|
+ style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
</view>
|
|
</view>
|
|
- <button v-if="index!=0" @click="btnDel(key,index)" class="sc-btn">删除</button>
|
|
|
|
-
|
|
|
|
</view>
|
|
</view>
|
|
- <button @click="btnAdd(key,index)" class="tj-btn">添加</button>
|
|
|
|
|
|
+ <button v-if="index!=0" @click="btnDel(key,index)" class="sc-btn">删除</button>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
|
|
+ <button @click="btnAdd(key,index)" class="tj-btn">添加</button>
|
|
</view>
|
|
</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if="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)">
|
|
|
|
+ </image>
|
|
|
|
+ <view v-for="(item,index) in value.zEngiineeringPhotoBoList" :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.zEngiineeringPhotoBoList)">
|
|
|
|
+ </image>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-else>
|
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
|
+ </view>
|
|
|
|
+ <view @click="remove(index,key)"
|
|
|
|
+ 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 v-else>
|
|
|
|
|
|
- <view v-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="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('Box',key)">
|
|
|
|
- </image>
|
|
|
|
- <view v-for="(item,index) in value.boxBrand" :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.boxBrand)">
|
|
|
|
- </image>
|
|
|
|
- </view>
|
|
|
|
- <view v-else>
|
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
|
- </view>
|
|
|
|
- <view @click="removeht(index,key,'Box')"
|
|
|
|
- style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
|
- <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
|
|
- </image>
|
|
|
|
- </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('htq',key)">
|
|
|
|
+ </image>
|
|
|
|
+ <view v-for="(item,index) in value.zEngiineeringPhotoBoListOne" :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.zEngiineeringPhotoBoListOne)">
|
|
|
|
+ </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('Sfht',key)">
|
|
|
|
- </image>
|
|
|
|
- <view v-for="(item,index) in value.stonePowder" :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.stonePowder)">
|
|
|
|
- </image>
|
|
|
|
- </view>
|
|
|
|
- <view v-else>
|
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
|
- </view>
|
|
|
|
- <view @click="removeht(index,key,'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 v-else>
|
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
|
+ </view>
|
|
|
|
+ <view @click="removeht(index,key,'htq')"
|
|
|
|
+ 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;">
|
|
|
|
- <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
|
- style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fljd',key)">
|
|
|
|
- </image>
|
|
|
|
- <view v-for="(item,index) in value.lightning" :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.lightning)">
|
|
|
|
- </image>
|
|
|
|
- </view>
|
|
|
|
- <view v-else>
|
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
|
- </view>
|
|
|
|
- <view @click="removeht(index,key,'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 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('jsdps',key)">
|
|
|
|
+ </image>
|
|
|
|
+ <view v-for="(item,index) in value.zEngiineeringPhotoBoListTwo" :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.zEngiineeringPhotoBoListTwo)">
|
|
|
|
+ </image>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-else>
|
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
|
+ </view>
|
|
|
|
+ <view @click="removeht(index,key,'jsdps')"
|
|
|
|
+ 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;">
|
|
|
|
- <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
|
- style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Dtlj',key)">
|
|
|
|
- </image>
|
|
|
|
- <view v-for="(item,index) in value.bottomLeg" :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.bottomLeg)">
|
|
|
|
- </image>
|
|
|
|
- </view>
|
|
|
|
- <view v-else>
|
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
|
- </view>
|
|
|
|
- <view @click="removeht(index,key,'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 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('hth',key)">
|
|
|
|
+ </image>
|
|
|
|
+ <view v-for="(item,index) in value.zEngiineeringPhotoBoListThree" :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.zEngiineeringPhotoBoListThree)">
|
|
|
|
+ </image>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-else>
|
|
|
|
+ <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
|
+ </view>
|
|
|
|
+ <view @click="removeht(index,key,'hth')"
|
|
|
|
+ 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;">
|
|
|
|
- <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
|
- style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Hldmyh',key)">
|
|
|
|
- </image>
|
|
|
|
- <view v-for="(item,index) in value.groundHardening" :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.groundHardening)">
|
|
|
|
- </image>
|
|
|
|
- </view>
|
|
|
|
- <view v-else>
|
|
|
|
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
|
|
|
|
- </view>
|
|
|
|
- <view @click="removeht(index,key,'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>
|
|
|
|
|
|
<SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
|
|
<SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
|
|
subtitleKey="id">
|
|
subtitleKey="id">
|
|
@@ -251,9 +206,9 @@
|
|
} from '../../utils/auth';
|
|
} from '../../utils/auth';
|
|
import user from '@/store/modules/user'
|
|
import user from '@/store/modules/user'
|
|
import {
|
|
import {
|
|
- getHistoryEnginprojectDetails,
|
|
|
|
|
|
+ getEngineeringHistoryListNew,
|
|
getEnginMaterialQualityList,
|
|
getEnginMaterialQualityList,
|
|
- Putengineering,
|
|
|
|
|
|
+ PutengineeringNew,
|
|
getEnginSpecificationsList
|
|
getEnginSpecificationsList
|
|
} from '@/api/common'
|
|
} from '@/api/common'
|
|
export default {
|
|
export default {
|
|
@@ -291,11 +246,11 @@
|
|
let e = JSON.parse(decodeURIComponent(options.params));
|
|
let e = JSON.parse(decodeURIComponent(options.params));
|
|
this.nodeId = e.id;
|
|
this.nodeId = e.id;
|
|
this.type = e.type;
|
|
this.type = e.type;
|
|
- getHistoryEnginprojectDetails(this.nodeId, this.type).then(response => {
|
|
|
|
|
|
+ getEngineeringHistoryListNew(this.nodeId, this.type).then(response => {
|
|
if (response.data.zEngineeringNodeBo != null) {
|
|
if (response.data.zEngineeringNodeBo != null) {
|
|
this.hideButton = false;
|
|
this.hideButton = false;
|
|
this.dataJson = response.data;
|
|
this.dataJson = response.data;
|
|
- this.title = response.data.enginClassification;
|
|
|
|
|
|
+ this.title = response.data.zEngineeringNodeBo.type;
|
|
this.enginType = response.data.enginType;
|
|
this.enginType = response.data.enginType;
|
|
this.enginClassification = response.data.enginClassification;
|
|
this.enginClassification = response.data.enginClassification;
|
|
|
|
|
|
@@ -401,28 +356,21 @@
|
|
success: (res) => {
|
|
success: (res) => {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
|
|
|
- if (type == 'Box') {
|
|
|
|
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].boxBrand
|
|
|
|
- .splice(index, 1)
|
|
|
|
-
|
|
|
|
- } else if (type == 'Sfht') {
|
|
|
|
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].stonePowder
|
|
|
|
- .splice(index, 1)
|
|
|
|
-
|
|
|
|
- } else if (type == 'Fljd') {
|
|
|
|
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].lightning
|
|
|
|
|
|
+ if (type == 'htq') {
|
|
|
|
+ this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
|
|
|
|
+ .zEngiineeringPhotoBoListOne
|
|
.splice(index, 1)
|
|
.splice(index, 1)
|
|
|
|
|
|
- } else if (type == 'Dtlj') {
|
|
|
|
|
|
+ } else if (type == 'jsdps') {
|
|
this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
|
|
this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
|
|
- .bottomLeg
|
|
|
|
|
|
+ .zEngiineeringPhotoBoListTwo
|
|
.splice(index, 1)
|
|
.splice(index, 1)
|
|
- } else if (type == 'Hldmyh') {
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
+ } else if (type == 'hth') {
|
|
this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
|
|
this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
|
|
- .groundHardening
|
|
|
|
|
|
+ .zEngiineeringPhotoBoListThree
|
|
.splice(index, 1)
|
|
.splice(index, 1)
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -485,35 +433,23 @@
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
.zEngiineeringPhotoBoList.push(data.data
|
|
.zEngiineeringPhotoBoList.push(data.data
|
|
.url);
|
|
.url);
|
|
- } else if (e == 'Box') {
|
|
|
|
|
|
+ } else if (e == 'htq') {
|
|
_this.dataJson.zEngineeringNodeBo
|
|
_this.dataJson.zEngineeringNodeBo
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
- .boxBrand.push(data.data
|
|
|
|
|
|
+ .zEngiineeringPhotoBoListOne.push(data.data
|
|
.url);
|
|
.url);
|
|
- } else if (e == 'Sfht') {
|
|
|
|
|
|
+ } else if (e == 'jsdps') {
|
|
_this.dataJson.zEngineeringNodeBo
|
|
_this.dataJson.zEngineeringNodeBo
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
- .stonePowder.push(data.data
|
|
|
|
|
|
+ .zEngiineeringPhotoBoListTwo.push(data.data
|
|
.url);
|
|
.url);
|
|
- } else if (e == 'Fljd') {
|
|
|
|
|
|
+ } else if (e == 'hth') {
|
|
_this.dataJson.zEngineeringNodeBo
|
|
_this.dataJson.zEngineeringNodeBo
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
- .lightning.push(data.data
|
|
|
|
- .url);
|
|
|
|
- } else if (e == 'Dtlj') {
|
|
|
|
-
|
|
|
|
- _this.dataJson.zEngineeringNodeBo
|
|
|
|
- .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
|
- .bottomLeg.push(data.data
|
|
|
|
- .url);
|
|
|
|
- } else if (e == 'Hldmyh') {
|
|
|
|
-
|
|
|
|
- _this.dataJson.zEngineeringNodeBo
|
|
|
|
- .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
|
- .groundHardening.push(data.data
|
|
|
|
|
|
+ .zEngiineeringPhotoBoListThree.push(data
|
|
|
|
+ .data
|
|
.url);
|
|
.url);
|
|
}
|
|
}
|
|
-
|
|
|
|
_this.$modal.msg('上传成功!')
|
|
_this.$modal.msg('上传成功!')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -568,27 +504,19 @@
|
|
_this.dataJson.zEngineeringNodeBo
|
|
_this.dataJson.zEngineeringNodeBo
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
.zEngiineeringPhotoBoList.push(data.data.url);
|
|
.zEngiineeringPhotoBoList.push(data.data.url);
|
|
- } else if (e == 'Box') {
|
|
|
|
|
|
+ } else if (e == 'htq') {
|
|
_this.dataJson.zEngineeringNodeBo
|
|
_this.dataJson.zEngineeringNodeBo
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
- .boxBrand.push(data.data.url);
|
|
|
|
|
|
+ .zEngiineeringPhotoBoListOne.push(data.data.url);
|
|
|
|
|
|
- } else if (e == 'Sfht') {
|
|
|
|
- _this.dataJson.zEngineeringNodeBo
|
|
|
|
- .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
|
- .stonePowder.push(data.data.url);
|
|
|
|
- } else if (e == 'Fljd') {
|
|
|
|
|
|
+ } else if (e == 'jsdps') {
|
|
_this.dataJson.zEngineeringNodeBo
|
|
_this.dataJson.zEngineeringNodeBo
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
- .lightning.push(data.data.url);
|
|
|
|
- } else if (e == 'Dtlj') {
|
|
|
|
|
|
+ .zEngiineeringPhotoBoListTwo.push(data.data.url);
|
|
|
|
+ } else if (e == 'hth') {
|
|
_this.dataJson.zEngineeringNodeBo
|
|
_this.dataJson.zEngineeringNodeBo
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
.zEngineeringInfoBoList[_this.dataIndex]
|
|
- .bottomLeg.push(data.data.url);
|
|
|
|
- } else if (e == 'Hldmyh') {
|
|
|
|
- _this.dataJson.zEngineeringNodeBo
|
|
|
|
- .zEngineeringInfoBoList[_this.dataIndex]
|
|
|
|
- .groundHardening.push(data.data.url);
|
|
|
|
|
|
+ .zEngiineeringPhotoBoListThree.push(data.data.url);
|
|
}
|
|
}
|
|
_this.$modal.msg('上传成功!')
|
|
_this.$modal.msg('上传成功!')
|
|
}
|
|
}
|
|
@@ -660,62 +588,91 @@
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
let isSubmit = true;
|
|
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) => {
|
|
|
|
|
|
+ // 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) => {
|
|
|
|
+
|
|
|
|
+ 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;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
|
|
- res.zEngineeringMaterialBo.forEach((itme) => {
|
|
|
|
- if (itme.specifications == '') {
|
|
|
|
- this.$modal.msg("请选择规格");
|
|
|
|
|
|
+ }
|
|
|
|
+ if (this.title == '回填、撤场') {
|
|
|
|
+ if (res.zEngiineeringPhotoBoListOne.length <= 0) {
|
|
|
|
+ this.$modal.msg('请上传回填前照片')
|
|
isSubmit = false;
|
|
isSubmit = false;
|
|
}
|
|
}
|
|
- if (itme.number == '') {
|
|
|
|
- this.$modal.msg("请输入米数");
|
|
|
|
|
|
+ if (res.zEngiineeringPhotoBoListTwo.length <= 0) {
|
|
|
|
+ this.$modal.msg('请上传警示带铺设照片')
|
|
isSubmit = false;
|
|
isSubmit = false;
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ if (res.zEngiineeringPhotoBoListThree.length <= 0) {
|
|
|
|
+ this.$modal.msg('请上传回填后照片')
|
|
|
|
+ isSubmit = false;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ 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) {
|
|
if (!isSubmit) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- Putengineering(this.dataJson).then(
|
|
|
|
|
|
+ PutengineeringNew(this.dataJson).then(
|
|
|
|
|
|
response => {
|
|
response => {
|
|
if (response.code == '200') {
|
|
if (response.code == '200') {
|