12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382 |
- <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="50" 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.constructAddre"
- @blur="bindTextAddress($event.target.value,key)"></textarea>
- </view>
- </view>
- </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="50" 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.segmentedCompressionQualified"
- @blur="bindTextWorkStyle($event.target.value,key)"></textarea>
- </view>
- </view>
- </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="50" 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 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="50" 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.constructAccordingDrawings"
- @blur="bindTextPipePress($event.target.value,key)"></textarea>
- </view>
- </view>
- </view>
- <!-- // XXXXXX -->
- <view v-if="projectType=='pe'">
- <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('peHolesOpening',key)">
- </image>
- <view v-for="(item,index) in value.peHolesOpening" :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.peHolesOpening)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.peHolesOpening)"
- 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('pePlugging',key)">
- </image>
- <view v-for="(item,index) in value.pePlugging" :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.pePlugging)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.pePlugging)"
- 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('peHomeworkDone',key)">
- </image>
- <view v-for="(item,index) in value.peHomeworkDone" :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.peHomeworkDone)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.peHomeworkDone)"
- 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('peSaddleWelding',key)">
- </image>
- <view v-for="(item,index) in value.peSaddleWelding" :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.peSaddleWelding)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.peSaddleWelding)"
- 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('peAirtightTest',key)">
- </image>
- <view v-for="(item,index) in value.peAirtightTest" :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.peAirtightTest)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.peAirtightTest)"
- 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('peCleaning',key)">
- </image>
- <view v-for="(item,index) in value.peCleaning" :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.peCleaning)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.peCleaning)"
- 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('peCollisionOperating',key)">
- </image>
- <view v-for="(item,index) in value.peCollisionOperating" :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.peCollisionOperating)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.peCollisionOperating)"
- 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('peAirrecovering',key)">
- </image>
- <view v-for="(item,index) in value.peAirrecovering" :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.peAirrecovering)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.peAirrecovering)"
- 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>
- <!-- xxx -->
- </view>
- <view v-else>
- <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('ironHolesOpening',key)">
- </image>
- <view v-for="(item,index) in value.ironHolesOpening" :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.ironHolesOpening)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.ironHolesOpening)"
- 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('ironCleaning',key)">
- </image>
- <view v-for="(item,index) in value.ironCleaning" :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.ironCleaning)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.ironCleaning)"
- 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('ironHomeworkDone',key)">
- </image>
- <view v-for="(item,index) in value.ironHomeworkDone" :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.ironHomeworkDone)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.ironHomeworkDone)"
- 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('ironPipelineThickness',key)">
- </image>
- <view v-for="(item,index) in value.ironPipelineThickness" :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.ironPipelineThickness)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.ironPipelineThickness)"
- 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('iron4Welding',key)">
- </image>
- <view v-for="(item,index) in value.iron4Welding" :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.iron4Welding)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.iron4Welding)"
- 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('ironBypassWelding',key)">
- </image>
- <view v-for="(item,index) in value.ironBypassWelding" :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.ironBypassWelding)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.ironBypassWelding)"
- 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('ironNitrogenPurging',key)">
- </image>
- <view v-for="(item,index) in value.ironNitrogenPurging" :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.ironNitrogenPurging)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.ironNitrogenPurging)"
- 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('ironPipelineReplacing',key)">
- </image>
- <view v-for="(item,index) in value.ironPipelineReplacing" :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.ironPipelineReplacing)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.ironPipelineReplacing)"
- 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('ironLowerEndCap',key)">
- </image>
- <view v-for="(item,index) in value.ironLowerEndCap" :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.ironLowerEndCap)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.ironLowerEndCap)"
- 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('iron4Aczoiling',key)">
- </image>
- <view v-for="(item,index) in value.iron4Aczoiling" :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.iron4Aczoiling)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,value.iron4Aczoiling)"
- 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>
- <!-- ccc -->
- </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">
- <button @click="submit" class="btn cu-btn block bg-blue lg round">提交</button>
- </view>
- </scroll-view>
- </template>
- <script>
- import {
- getDicts
- } from "@/api/system/dict/data";
- import {
- getToken
- } from '../../utils/auth';
- import user from '@/store/modules/user'
- import {
- getGasSealingHistoryList,
- submitGasSealingHistory
- } from '@/api/common'
- export default {
- components: {},
- data() {
- return {
- // playVideo: false,//视频播放放大
- // playVideoSrc:'',
- selectZbfList: [],
- dictOptions: [],
- openDict: false,
- dataIndex: 0, //数据用第几条
- selectIndex: 0, //材质规格用的第几条
- imageIndex: 0,
- headers: {
- Authorization: "Bearer " + getToken()
- },
- id: '',
- projectType: '',
- projectTypeLabel: '',
- title: '',
- dataJson: '',
- enginClassification: '',
- enginType: '',
- enginClassValue: '',
- selectList: [],
- open: false,
- selectType: '',
- hideButton: false,
- }
- },
- onLoad(options) {
- if ('params' in options) {
- let obj = JSON.parse(decodeURIComponent(options.params));
- this.id = obj.id;
- this.projectType = obj.type;
- if (this.projectType === 'pe') {
- this.projectTypeLabel = 'PE封堵';
- } else {
- this.projectTypeLabel = '钢管带气封堵';
- }
- getGasSealingHistoryList(this.id, this.projectType).then(res => {
- if (res.data.zEngineeringNodeBo.zEngineeringInfoBoList != null) {
- this.dataJson = res.data;
- this.hideButton = false;
- } else {
- this.$modal.msg("暂无历史信息")
- this.hideButton = true;
- }
- })
- }
- },
- methods: {
- //关闭弹窗
- close(e) {
- this.open = false
- },
- bindTextAddress(e, index) {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].constructAddre = e;
- },
- bindTextPipePress(e, index) {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].constructAccordingDrawings = e;
- },
- bindTextAreaBlur(e, index) {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].remark = e;
- },
- bindTextWorkStyle(e, index) {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].segmentedCompressionQualified = e;
- },
- remove(index, fileArr) {
- uni.showModal({
- title: '提示',
- content: '是否删除该文件?',
- success: (res) => {
- if (res.confirm) {
- fileArr.splice(index, 1)
- }
- }
- })
- },
- choose(fileType, index) {
- this.dataIndex = index;
- let _this = this;
- uni.showActionSheet({
- title: '上传',
- itemList: ['图片', '视频'],
- success: (res) => {
- if (res.tapIndex == 0) {
- this.chooseimage(fileType)
- } else {
- this.choosevideo(fileType)
- }
- }
- })
- },
- chooseimage(fileType) {
- 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 (fileType === 'peHolesOpening') { //PE开孔
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peHolesOpening.push(data.data
- .url)
- } else if (fileType === 'peHomeworkDone') { //PE封堵
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peHomeworkDone
- .push(data.data
- .url)
- } else if (fileType === 'pePlugging') { //PE作业
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .pePlugging.push(
- data.data
- .url)
- } else if (fileType === 'ironHolesOpening') { //开孔
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironHolesOpening
- .push(data
- .data.url)
- } else if (fileType === 'ironHomeworkDone') { //封堵
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironHomeworkDone
- .push(data
- .data.url)
- } else if (fileType === 'ironCleaning') { //作业
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironCleaning.push(
- data.data
- .url)
- } else if (fileType ===
- 'peSaddleWelding') { //鞍型焊接照片 PE
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peSaddleWelding
- .push(data
- .data.url)
- } else if (fileType ===
- 'peAirtightTest') { //气密实验照片 PE
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peAirtightTest
- .push(data.data
- .url)
- } else if (fileType === 'peCleaning') { //清扫照片 PE
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peCleaning.push(
- data.data
- .url)
- } else if (fileType ===
- 'peCollisionOperating') { //碰口作业照片 PE
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peCollisionOperating.push(
- data.data.url)
- } else if (fileType ===
- 'peAirrecovering') { //恢复通气检漏照片 PE
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peAirrecovering
- .push(data
- .data.url)
- } else if (fileType ===
- 'ironPipelineThickness') { //管道壁厚照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironPipelineThickness.push(
- data.data.url)
- } else if (fileType ===
- 'iron4Welding') { //焊接四通照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .iron4Welding.push(
- data.data
- .url)
- } else if (fileType ===
- 'ironBypassWelding') { //焊接旁通照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironBypassWelding
- .push(data
- .data.url)
- } else if (fileType ===
- 'ironNitrogenPurging') { //氮气吹扫照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironNitrogenPurging
- .push(data
- .data.url)
- } else if (fileType ===
- 'ironPipelineReplacing') { //管道置换照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironPipelineReplacing.push(
- data.data.url)
- } else if (fileType ===
- 'ironLowerEndCap') { //下堵照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironLowerEndCap
- .push(data
- .data.url)
- } else if (fileType ===
- 'iron4Aczoiling') { //四通防腐照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .iron4Aczoiling
- .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(fileType) {
- 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 => {
- // 判断是否json字符串,将其转为json格式
- let data = JSON.parse(res.data);
- if (![200].includes(res.statusCode)) {
- this.uploadError(index, data);
- } else {
- //上传成功
- if (_this.progress === 100) {
- if (fileType === 'peHolesOpening') { //PE开孔
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peHolesOpening.push(data.data
- .url)
- } else if (fileType === 'peHomeworkDone') { //PE封堵
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peHomeworkDone
- .push(data.data
- .url)
- } else if (fileType === 'pePlugging') { //PE作业
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex].pePlugging
- .push(
- data.data
- .url)
- } else if (fileType === 'ironHolesOpening') { //开孔
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironHolesOpening
- .push(data
- .data.url)
- } else if (fileType === 'ironHomeworkDone') { //封堵
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironHomeworkDone
- .push(data
- .data.url)
- } else if (fileType === 'ironCleaning') { //作业
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironCleaning.push(
- data.data
- .url)
- } else if (fileType ===
- 'peSaddleWelding') { //鞍型焊接照片 PE
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peSaddleWelding
- .push(data
- .data.url)
- } else if (fileType ===
- 'peAirtightTest') { //气密实验照片 PE
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peAirtightTest
- .push(data.data
- .url)
- } else if (fileType === 'peCleaning') { //清扫照片 PE
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex].peCleaning
- .push(
- data.data
- .url)
- } else if (fileType ===
- 'peCollisionOperating') { //碰口作业照片 PE
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peCollisionOperating.push(
- data.data.url)
- } else if (fileType ===
- 'peAirrecovering') { //恢复通气检漏照片 PE
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .peAirrecovering
- .push(data
- .data.url)
- } else if (fileType ===
- 'ironPipelineThickness') { //管道壁厚照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironPipelineThickness.push(
- data.data.url)
- } else if (fileType ===
- 'iron4Welding') { //焊接四通照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .iron4Welding.push(
- data.data
- .url)
- } else if (fileType ===
- 'ironBypassWelding') { //焊接旁通照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironBypassWelding
- .push(data
- .data.url)
- } else if (fileType ===
- 'ironNitrogenPurging') { //氮气吹扫照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironNitrogenPurging
- .push(data
- .data.url)
- } else if (fileType ===
- 'ironPipelineReplacing') { //管道置换照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironPipelineReplacing.push(
- data.data.url)
- } else if (fileType ===
- 'ironLowerEndCap') { //下堵照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .ironLowerEndCap
- .push(data
- .data.url)
- } else if (fileType ===
- 'iron4Aczoiling') { //四通防腐照片
- _this.dataJson.zEngineeringNodeBo
- .zEngineeringInfoBoList[_this.dataIndex]
- .iron4Aczoiling
- .push(data.data
- .url)
- }
- _this.$modal.msg('上传成功!')
- //_this.photo = false;
- }
- }
- },
- 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.loadingFile = false
- } else {
- _this.loadingFile = 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,
- })
- },
- isEmpty(str) {
- return (!str || 0 === str.length);
- },
- isEdit(item) {
- var isShow = item.createBy == undefined || item.createBy == this.$user.state.name;
- return isShow;
- },
- submit() {
- let isSubmit = true;
- // XXXXXX
- if (this.projectType == 'pe') {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
- if (res.peHolesOpening.length == 0) { //PE开孔
- this.$modal.msg("请上传开孔照片");
- isSubmit = false;
- }
- if (res.pePlugging.length == 0) {
- this.$modal.msg("请上传封堵照片");
- isSubmit = false;
- }
- if (res.peHomeworkDone.length == 0) {
- this.$modal.msg("请上传作业完成照片");
- isSubmit = false;
- }
- if (res.peSaddleWelding.length == 0) {
- this.$modal.msg("请上传鞍型焊接照片");
- isSubmit = false;
- }
- if (res.peAirtightTest.length == 0) {
- this.$modal.msg("请上传气密实验照片");
- isSubmit = false;
- }
- if (res.peCleaning.length == 0) {
- this.$modal.msg("请上传清扫照片");
- isSubmit = false;
- }
- if (res.peCollisionOperating.length == 0) {
- this.$modal.msg("请上传碰口作业照片");
- isSubmit = false;
- }
- if (res.peAirrecovering.length == 0) {
- this.$modal.msg("请上传恢复通气检漏照片");
- isSubmit = false;
- }
- })
- } else {
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
- if (res.ironHolesOpening.length == 0) {
- this.$modal.msg("请上传开孔照片");
- isSubmit = false;
- }
- if (res.ironCleaning.length == 0) {
- this.$modal.msg("请上传封堵照片");
- isSubmit = false;
- }
- if (res.ironHomeworkDone.length == 0) {
- this.$modal.msg("请上传作业完成照片");
- isSubmit = false;
- }
- if (res.ironPipelineThickness.length == 0) {
- this.$modal.msg("请上传管道壁厚照片");
- isSubmit = false;
- }
- if (res.iron4Welding.length == 0) {
- this.$modal.msg("请上传焊接四通照片");
- isSubmit = false;
- }
- if (res.ironBypassWelding.length == 0) {
- this.$modal.msg("请上传焊接旁通照片");
- isSubmit = false;
- }
- if (res.ironNitrogenPurging.length == 0) {
- this.$modal.msg("请上传氮气吹扫照片");
- isSubmit = false;
- }
- if (res.ironPipelineReplacing.length == 0) {
- this.$modal.msg("请上传管道置换照片");
- isSubmit = false;
- }
- if (res.ironLowerEndCap.length == 0) {
- this.$modal.msg("请上传下堵照片");
- isSubmit = false;
- }
- if (res.iron4Aczoiling.length == 0) {
- this.$modal.msg("请上传四通防腐照片");
- isSubmit = false;
- }
- })
- }
- if (!isSubmit) {
- return
- }
- uni.showLoading()
- submitGasSealingHistory(this.dataJson).then(
- response => {
- uni.hideLoading()
- if (response.code == '200') {
- 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>
|