12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334 |
- <template>
- <scroll-view>
- <view class="uni-media-list" v-for="(value, key) in dataJson.zEngineeringNodeBo.zEngineeringInfoBoList"
- :key="key" v-if="isEdit(value)">
- <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.constructTime}}
- </view>
- <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 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.remark"
- @blur="bindTextAreaBlur($event.target.value,key)"></textarea>
- </view>
- </view>
- </view>
- <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=" ">
- <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 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 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>
- <button @click="btnAdd(key,index)" class="tj-btn">添加</button>
- </view>
- </view>
- <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)">
- </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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.zEngiineeringPhotoBoList)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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-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('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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.zEngiineeringPhotoBoListOne)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.zEngiineeringPhotoBoListTwo)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.zEngiineeringPhotoBoListThree)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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 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('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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.boxBrand)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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>
- </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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.stonePowder)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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>
- </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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.lightning)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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>
- </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.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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.bottomLeg)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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>
- </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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.groundHardening)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.cannula)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.wallPlaster)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.protectiveNet)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
- @click="showPhoto(index,value.starAnise)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; 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>
- <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
- subtitleKey="id">
- </SelectPicker>
- <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
- titleKey="dictLabel" subtitleKey="dictValue" v-model="name"></SelectPicker>
- <view class="action-btn" v-if="hideButton==false">
- <button @click="submit" class="btn cu-btn block bg-blue lg round">确认</button>
- </view>
- </scroll-view>
- </template>
- <script>
- import SelectPicker from '../../components/selectPicker/select_picker.vue'
- import {
- getDicts
- } from "@/api/system/dict/data";
- import {
- getToken
- } from '../../utils/auth';
- import user from '@/store/modules/user'
- import {
- getEngineeringHistoryListNew,
- getEnginMaterialQualityList,
- PutengineeringNew,
- getEnginSpecificationsList
- } from '@/api/common'
- export default {
- components: {
- SelectPicker,
- },
- data() {
- return {
- // playVideo: false,//视频播放放大
- // playVideoSrc:'',
- selectZbfList: [],
- dictOptions: [],
- openDict: false,
- dataIndex: 0, //数据用第几条
- selectIndex: 0, //材质规格用的第几条
- imageIndex: 0,
- headers: {
- Authorization: "Bearer " + getToken()
- },
- nodeId: '',
- type: '',
- title: '',
- dataJson: '',
- enginClassification: '',
- enginType: '',
- enginClassValue: '',
- selectList: [],
- open: false,
- selectType: '',
- hideButton: false,
- }
- },
- onLoad(options) {
- if ('params' in options) {
- let e = JSON.parse(decodeURIComponent(options.params));
- this.nodeId = e.id;
- this.type = e.type;
- getEngineeringHistoryListNew(this.nodeId, this.type).then(response => {
- if (response.data.zEngineeringNodeBo != null) {
- let flag = false;
- for (let i in response.data.zEngineeringNodeBo.zEngineeringInfoBoList) {
- if (response.data.zEngineeringNodeBo.zEngineeringInfoBoList[i].createBy == this.$user
- .state.name) {
- flag = true;
- break;
- }
- }
- if (flag) {
- this.hideButton = false;
- this.dataJson = response.data;
- this.title = response.data.zEngineeringNodeBo.type;
- this.enginType = response.data.enginType;
- this.enginClassification = response.data.enginClassification;
- } else {
- this.hideButton = true;
- this.$modal.msg("暂无本人历史信息")
- }
- } else {
- this.hideButton = true;
- this.$modal.msg("暂无历史信息")
- }
- });
- }
- },
- methods: {
- //关闭弹窗
- close(e) {
- this.open = false
- },
- btnAdd(key, index) {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo.push({
- 'materialQuality': '',
- 'materialQualityName': '',
- 'number': '',
- 'specifications': '',
- 'specificationsName': ''
- });
- },
- btnDel(key, index) {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo.splice(index, 1);
- },
- pickerShow(e, index, indexTwo) {
- this.dataIndex = index;
- this.selectIndex = indexTwo; //材质规格 第几条
- this.selectType = e;
- if (e == 'cz') {
- this.open = true;
- getEnginMaterialQualityList("工业工程").then(response => {
- this.selectList = response.data;
- });
- }
- if (e == 'gg') {
- if (this.isEmpty(this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex]
- .zEngineeringMaterialBo[this.selectIndex].materialQuality)) {
- this.$modal.msg('请选择材质')
- } else {
- this.open = true;
- getEnginSpecificationsList(this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex]
- .zEngineeringMaterialBo[this.selectIndex].materialQuality).then(res => {
- this.selectList = res.data
- })
- }
- }
- },
- changeSelect(item, index) {
- this.open = false;
- if (this.selectType == 'cz') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
- .selectIndex]
- .materialQuality = item.id;
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
- .selectIndex]
- .materialQualityName = item.name;
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
- .selectIndex]
- .specifications = '';
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
- .selectIndex]
- .specificationsName = '';
- } else if (this.selectType == 'gg') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
- .selectIndex]
- .specifications = item.id;
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
- .selectIndex]
- .specificationsName = item.name;
- }
- },
- // 截取小数点前的字符串
- getIntegerPart(numStr, i) {
- if (numStr != null && numStr != undefined && numStr != '') {
- return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
- }
- },
- setInfoBoNumber(key, index, number, i) {
- let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index]
- .number;
- let resAry = Ynumber.toString().split('.');
- resAry[i] = number
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index].number = resAry
- .join('.');
- },
- bindTextAreaBlur(e, index) {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].remark = e;
- },
- removeht(index, key, type) {
- uni.showModal({
- title: '提示',
- content: '是否删除该图片或视频?',
- success: (res) => {
- if (res.confirm) {
- if (type == 'htq') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
- .zEngiineeringPhotoBoListOne
- .splice(index, 1)
- } else if (type == 'jsdps') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
- .zEngiineeringPhotoBoListTwo
- .splice(index, 1)
- } else if (type == 'hth') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
- .zEngiineeringPhotoBoListThree
- .splice(index, 1)
- } else 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
- .splice(index, 1)
- } else if (type == 'Dtlj') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
- .bottomLeg
- .splice(index, 1)
- } else if (type == 'Hldmyh') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
- .groundHardening
- .splice(index, 1)
- } else if (type == 'Tg') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
- .cannula
- .splice(index, 1)
- } else if (type == 'Nbmh') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
- .wallPlaster
- .splice(index, 1)
- } else if (type == 'Fhw') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
- .protectiveNet
- .splice(index, 1)
- } else if (type == 'Bj') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
- .starAnise
- .splice(index, 1)
- }
- }
- }
- })
- },
- remove(index, key) {
- uni.showModal({
- title: '提示',
- content: '是否删除该图片或视频?',
- success: (res) => {
- if (res.confirm) {
- this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[key]
- .zEngiineeringPhotoBoList.splice(index, 1)
- }
- }
- })
- },
- choose(type, index) {
- this.dataIndex = index;
- let _this = this;
- uni.showActionSheet({
- title: '上传',
- itemList: ['图片', '视频'],
- success: (res) => {
- if (res.tapIndex == 0) {
- this.chooseimage(type)
- } else {
- this.choosevideo(type)
- }
- }
- })
- },
- chooseimage(e) {
- let _this = this;
- uni.chooseImage({
- sizeType: ['album', 'camera'],
- success(resp) {
- resp.tempFiles.forEach((item, index) => {
- const task = uni.uploadFile({
- url: _this.$HTTP + `/obs`,
- filePath: item.path,
- name: 'file',
- formData: {},
- header: _this.headers,
- success: res => {
- let data = JSON.parse(res.data);
- if (![200].includes(data.code)) {
- _this.$modal.msg(data.msg)
- } else {
- if (_this.progress === 100) {
- if (e == 'other') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .zEngiineeringPhotoBoList.push(data.data
- .url);
- } else if (e == 'htq') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .zEngiineeringPhotoBoListOne.push(data.data
- .url);
- } else if (e == 'jsdps') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .zEngiineeringPhotoBoListTwo.push(data.data
- .url);
- } else if (e == 'hth') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .zEngiineeringPhotoBoListThree.push(data
- .data
- .url);
- } else if (e == 'Box') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .boxBrand.push(data
- .data
- .url);
- } else if (e == 'Sfht') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .stonePowder.push(data
- .data
- .url);
- } else if (e == 'Fljd') {
- _this.dataJson.zEngineeringNodeBo
- .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
- .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('上传成功!')
- }
- }
- },
- fail: e => {
- _this.$modal.msg('上传失败!')
- },
- complete: res => {
- uni.hideLoading();
- _this.uploading = false;
- }
- });
- task.onProgressUpdate(res => {
- _this.progress = res.progress;
- uni.showLoading({
- title: '上传中'
- })
- if (_this.progress != 100) {
- _this.loading = false
- } else {
- _this.loading = true
- }
- });
- })
- },
- })
- },
- choosevideo(e) {
- let _this = this;
- uni.chooseVideo({
- sourceType: ['album', 'camera'],
- maxDuration: 30,
- success(resp) {
- const task = uni.uploadFile({
- url: _this.$HTTP + `/obs`,
- filePath: resp.tempFilePath,
- name: 'file',
- formData: {},
- header: _this.headers,
- success: res => {
- let data = JSON.parse(res.data);
- if (![200].includes(res.statusCode)) {
- this.uploadError(index, data);
- } else {
- //上传成功
- if (_this.progress === 100) {
- if (e == 'other') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .zEngiineeringPhotoBoList.push(data.data.url);
- } else if (e == 'htq') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .zEngiineeringPhotoBoListOne.push(data.data.url);
- } else if (e == 'jsdps') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .zEngiineeringPhotoBoListTwo.push(data.data.url);
- } else if (e == 'hth') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .zEngiineeringPhotoBoListThree.push(data.data.url);
- } else if (e == 'Box') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .boxBrand.push(data.data.url);
- } else if (e == 'Sfht') {
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .stonePowder.push(data.data.url);
- } else if (e == 'Fljd') {
- _this.dataJson.zEngineeringNodeBo
- .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.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('上传成功!')
- }
- }
- },
- fail: e => {
- _this.$modal.msg('上传失败!')
- this.uploadError(index, e);
- },
- complete: res => {
- uni.hideLoading();
- _this.uploading = false;
- }
- });
- task.onProgressUpdate(res => {
- _this.progress = res.progress;
- uni.showLoading({
- title: '上传中'
- })
- if (_this.progress != 100) {
- _this.loading = false
- } else {
- _this.loading = true
- }
- });
- },
- })
- },
- showPhoto(index, arr) {
- let newArr = [];
- arr.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)
- }
- });
- uni.previewImage({
- current: index,
- urls: newArr,
- })
- },
- // showVideo(arr) {
- // this.playVideo = true;
- // this.playVideoSrc = arr;
- // },
- // closeVideo(){
- // this.playVideo = false;
- // },
- isEmpty(str) {
- return (!str || 0 === str.length);
- },
- isEdit(item) {
- var isShow = item.createBy == this.$user.state.name;
- return isShow;
- },
- submit() {
- let isSubmit = true;
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
- 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 (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 (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;
- // }
- // })
- if (!isSubmit) {
- return
- }
- PutengineeringNew(this.dataJson).then(
- response => {
- if (response.code == '200') {
- uni.hideLoading()
- uni.showToast({
- title: response.msg,
- icon: 'none',
- duration: 2000
- });
- setTimeout(function() {
- uni.navigateBack();
- }, 1000)
- }
- });
- }
- }
- }
- </script>
- <style lang="scss">
- .uni-media-list-body {
- background: #fff;
- border: 1px solid #eee;
- border-radius: 40rpx;
- margin: 20rpx;
- padding: 10rpx 0 40rpx;
- box-shadow: 0 0 5px #eee;
- }
- .uni-media-list-text-top {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 10px;
- position: relative;
- }
- .to-right-icon {
- width: 15px;
- height: 15px;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- }
- .share {
- width: 100%;
- height: 100%;
- }
- .tit-text {
- color: #4f535a;
- margin-right: 20rpx;
- }
- .normal-text {}
- .cz-style {
- background: #e8f4f9;
- margin: 20rpx;
- padding: 10rpx;
- border-radius: 20rpx;
- border: 1px solid #d4e3f0;
- }
- .uni-media-list-text-top {
- font-size: 14px;
- color: #696969;
- padding: 20rpx 20rpx;
- border-bottom: 1px solid #eee;
- display: flex;
- align-items: center;
- }
- .share-box {
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0rpx;
- left: 0rpx;
- bottom: 0rpx;
- right: 0rpx;
- background-color: rgba(0, 0, 0, 0.4);
- transition: .3s;
- z-index: 999;
- }
- // 进入分享动画
- .share-show {
- transition: all 0.3s ease;
- transform: translateY(0%) !important;
- border-radius: 20px 20px 0px 0px;
- }
- .scroll-Y {
- height: 58vh;
- }
- // 离开分享动画
- .share-item {
- position: fixed;
- left: 0;
- bottom: 0;
- width: 100%;
- height: 70%;
- background-color: #FFFFFF;
- transition: all 0.3s ease;
- transform: translateY(100%);
- z-index: 1999;
- .share-to {
- width: 100%;
- height: 30px;
- display: flex;
- justify-content: center;
- margin: 30rpx 0;
- align-items: center;
- }
- .content {
- width: 100%;
- height: auto;
- display: flex;
- flex-wrap: wrap;
- .block {
- width: 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: left;
- height: auto;
- image {
- width: 80rpx;
- height: 80rpx;
- }
- text {
- margin-top: 16rpx;
- font-size: 28rpx;
- color: #606266;
- }
- }
- }
- .cancel {
- width: 100%;
- height: 3rem;
- display: flex;
- justify-content: center;
- align-items: center;
- border-top: 1rpx solid #E4E7ED;
- }
- }
- .uni-media-list-text-top {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 10px;
- position: relative;
- }
- .uni-list {
- border: 1xp solid #eee;
- }
- .to-right-icon {
- width: 15px;
- height: 15px;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- }
- .text {
- font-size: 16px;
- color: #333;
- }
- .tj-btn {
- height: 69rpx;
- background: #3184f0;
- border-radius: 6rpx;
- font-size: 25rpx;
- font-weight: 400;
- // width: 100%;
- color: #FFFFFF;
- line-height: 69rpx;
- margin: 40rpx 70rpx;
- }
- .sc-btn {
- height: 69rpx;
- background: #f0686b;
- border-radius: 6rpx;
- font-size: 25rpx;
- font-weight: 400;
- color: #FFFFFF;
- line-height: 69rpx;
- margin: 40rpx;
- }
- // .gesture-area {
- // //加浮动弹窗
- // width: 100%;
- // height: 100%;
- // }
- </style>
|