12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361 |
- <template>
- <scroll-view>
- <view class="background">
- <view class="uni-list">
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 行政区
- </view>
- <view v-if="this.isEmpty(this.XZQValue.dictValue)" @click="pickerShow('xzq')">
- <span style="color: darkgray;">请选择行政区</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- <view v-else class="uni-list-cell-db" @click="pickerShow('xzq')">
- <span style="color: black;">{{XZQValue.dictLabel}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <view class="uni-list">
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 小区
- </view>
- <view v-if="this.isEmpty(this.XQValue.id)" class="uni-list-cell-db" @click="pickerShow('xq')">
- <span style="color: darkgray;">请选择小区</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- <view v-else class="uni-list-cell-db" @click="pickerShow('xq')">
- <span style="color: black;">{{XQValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <view class="uni-list">
- <view class="container">
- <view class="uni-list-cell-left">
- 楼栋
- </view>
- <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" @click="pickerShow('ld')">
- <span style="color: darkgray;">请选择楼栋</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- <view v-else class="uni-list-cell-db" @click="pickerShow('ld')">
- <span style="color: black;">{{LDValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name" subtitleKey="id" v-model="name"></SelectPicker>
- <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict" titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
- </view>
- <view class="background">
- <view>
- <view class="uni-list">
- <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- {{objValue.enginClassValue}}
- <span style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;" @click="history" v-if="objValue.enginType == 'old_renovation'">{{historyName}}</span>
- </view>
- <view class=" container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 施工时间
- </view>
- <view @click="openDatetimePicker('sg')">
- <span style="color: black;">{{time}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-common-mt" style="width: 100%;">
- <text class="uni-title uni-common-pl">施工内容</text>
- <view style="width: 100%;box-sizing: border-box;">
- <textarea class="textarea" placeholder="请输入施工内容" 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 v-model="projectContent"></textarea>
- </view>
- </view>
- </view>
- </view>
- <view v-if="objValue.enginClassValue=='开挖前' || objValue.enginClassValue=='开挖后' ||objValue.enginClassValue=='焊口照片' ||objValue.enginClassValue== '隐蔽工程'||objValue.enginClassValue== '管道施工记录'" class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('other')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgArr" :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,'other')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'other')" 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="objValue.enginClassValue=='回填'">
- <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传石粉回填照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('sfht')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in stonePowderArr" :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,'sfht')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'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="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传警示带铺设照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('jsdps')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in warningtTapeArr" :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,'jsdps')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'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="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上回填后照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('hth')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in photosAfterArr" :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,'hth')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'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>
- </view>
- <view v-if="objValue.enginClassValue=='调压柜'">
- <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传调压箱名牌照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Box')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgBoxArr" :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,'Box')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'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>
- <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传调压箱内石粉回填照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Sfht')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgSfhtArr" :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,'Sfht')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'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="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传调压箱防雷接地照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fljd')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgFljdArr" :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,'Fljd')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'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="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传调压箱底腿连接照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Dtlj')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgDtljArr" :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,'Dtlj')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'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>
- </view>
- </view>
- <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传调压箱护栏及地面硬化(远景)照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Hldmyh')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgHldmyhArr" :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,'Hldmyh')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'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 v-if="objValue.enginClassValue=='阀井'">
- <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传套管照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Tg')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgTgArr" :key="index" style="position: relative;">
- <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg'">
- <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Tg')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'Tg')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
- <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
- </image>
- </view>
- </view>
- </view>
- </view>
- <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传内壁抹灰照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Nbmh')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgNbmhArr" :key="index" style="position: relative;">
- <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg'">
- <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Nbmh')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'Nbmh')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
- <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
- </image>
- </view>
- </view>
- </view>
- <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传防护网照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fhw')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgFhwArr" :key="index" style="position: relative;">
- <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
- <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Fhw')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'Fhw')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
- <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
- </image>
- </view>
- </view>
- </view>
- <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传调八角照片</view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
- <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Bj')" v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgBjArr" :key="index" style="position: relative;">
- <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
- <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Bj')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'Bj')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
- <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
- </image>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="action-btn" v-show="reviewStatus!='1'" style="display: flex;padding: 5px;">
- <button @click="submit('submit')" class="btn cu-btn block bg-blue lg round" style="margin-right: 10px;">确认上传</button>
- <button @click="submit('save')" class="btn cu-btn block bg-blue lg round" v-if="objValue.enginType == 'old_renovation'">暂存</button>
- </view>
- <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
- <yt-dateTimePicker ref="myPicker" @submit="handleSubmit" :start-year="2024" :end-year="2099" :time-hide="[true, true, true, true, true, true]" :time-label="['年', '月', '日', '时', '分', '秒']" />
- </scroll-view>
- </template>
- <script>
- import SelectPicker from '../../../components/selectPicker/select_picker.vue'
- import bottomSheet from '../../../components/bottomSheet/bottomSheet.vue'
- import {
- getDicts
- } from "@/api/system/dict/data";
- import {
- getAreaList,
- getBuildingList,
- addTearOldPipe,
- getEnginMaterialQualityList,
- getEnginSpecificationsList,
- getRoomProjectList,
- getRoomProjectId,
- } from '@/api/common'
- import {
- getToken
- } from '../../../utils/auth';
- export default {
- components: {
- SelectPicker,
- bottomSheet,
- },
- data() {
- return {
- headers: {
- Authorization: "Bearer " + getToken()
- },
- type: '',
- reviewStatus: '', //是否可以点击
- open: false,
- objValue: '', //上一页面传过来的值 新增接口用
- openDict: false,
- selectList: [],
- dictOptions: [],
- imgArr: [],
- stonePowderArr: [],
- warningtTapeArr: [],
- photosAfterArr: [],
- XQValue: {},
- XZQValue: {},
- projectValue: {
- 'dictValue': '0'
- },
- LevelValue: {},
- isOkValue: '', //分段打压是否合格
- isOkLabel: '', //分段打压是否合格label
- LDValue: {},
- time: '', //施工时间
- timeType: '', //时间类型
- BackfillingTime: '', //回填时间
- showTime: false,
- specificationValue: {}, //规格
- projectContent: '', //施工内容
- materialValue: {}, //材质
- brandValue: {}, //品牌
- doorValue: {}, //上门类型
- SelfClosValve: {}, //自闭阀类型
- materialList: '', //材质list
- XQList: '',
- LDList: '',
- progress: 0, //上传图片进度百分比
- loading: false,
- inputNumberValue: '',
- title: '',
- historyList: {}, //历史数据
- imgSfhtArr: [],
- imgFljdArr: [],
- imgBoxArr: [],
- imgDtljArr: [],
- imgHldmyhArr: [],
- imgTgArr: [],
- imgNbmhArr: [],
- imgFhwArr: [],
- imgBjArr: [],
- historyName: '恢复暂存',
- tempState: '',
- temporaryOrNot: false, //是否点击恢复暂存
- }
- },
- created() {
- this.time = this.traversalTime(new Date().getTime()) //在data里定义变量-nowTime
- },
- onLoad(options) {
- if ('params' in options) {
- this.objValue = JSON.parse(decodeURIComponent(options.params));
- if (this.objValue.enginType == `old_renovation`) {
- this.title = '旧改工程-庭院'
- } else if (this.objValue.enginType == `new_built`) {
- this.title = '新建工程-庭院'
- }
- uni.setNavigationBarTitle({
- title: this.title
- })
- }
- },
- methods: {
- // 打开picker
- openDatetimePicker(type) {
- this.timeType = type;
- this.$refs.myPicker.show();
- },
- // 关闭picker
- closeDatetimePicker() {
- this.$refs.myPicker.hide();
- },
- handleSubmit(e) {
- if (this.timeType == 'ht') {
- this.BackfillingTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
- } else {
- this.time = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
- }
- },
- //获取当前时间
- traversalTime(timestamp) {
- //timestamp(时间戳)是整数,否则要parseInt转换
- let time = new Date(timestamp);
- let y = time.getFullYear();
- let m = time.getMonth() + 1;
- let d = time.getDate();
- let h = time.getHours();
- let mm = time.getMinutes();
- let s = time.getSeconds();
- return y + '-' + this.addTimes(m) + '-' + this.addTimes(d) + ' ' + this.addTimes(h) + ':' + this.addTimes(
- mm) + ':' + this.addTimes(s);
- },
- addTimes(m) {
- return m < 10 ? '0' + m : m
- },
- //判断是否选择
- isEmpty(str) {
- return (!str || 0 === str.length);
- },
- // 显示历史弹窗
- handleShowSheet() {
- this.shareState = true;
- },
- // 隐藏历史弹窗
- handleHiddenShare() {
- this.shareState = false;
- },
- showPhoto(index, type) {
- let typeArr = [];
- let newArr = [];
- if (type == 'other') {
- typeArr = this.imgArr;
- } else if (type == 'sfht') {
- typeArr = this.stonePowderArr;
- } else if (type == 'jsdps') {
- typeArr = this.warningtTapeArr;
- } else if (type == 'hth') {
- typeArr = this.photosAfterArr;
- } else if (type == 'Box') {
- typeArr = this.imgBoxArr;
- } else if (type == 'Sfht') {
- typeArr = this.imgSfhtArr;
- } else if (type == 'Fljd') {
- typeArr = this.imgFljdArr;
- } else if (type == 'Dtlj') {
- typeArr = this.imgDtljArr;
- } else if (type == 'Hldmyh') {
- typeArr = this.imgHldmyhArr;
- } else if (type == 'Tg') {
- typeArr = this.imgTgArr;
- } else if (type == 'Nbmh') {
- typeArr = this.imgNbmhArr;
- } else if (type == 'Fhw') {
- typeArr = this.imgFhwArr;
- } else if (type == 'Bj') {
- typeArr = this.imgBjArr;
- }
- typeArr.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,
- })
- },
- remove(index, type) {
- uni.showModal({
- title: '提示',
- content: '是否删除该图片或视频?',
- success: (res) => {
- if (res.confirm) {
- if (type == 'other') {
- this.imgArr.splice(index, 1)
- if (this.imgArr.length <= 0) {
- this.photo = true;
- }
- } else if (type == 'sfht') {
- this.stonePowderArr.splice(index, 1)
- if (this.stonePowderArr.length <= 0) {
- this.photo = true;
- }
- } else if (type == 'jsdps') {
- this.warningtTapeArr.splice(index, 1)
- if (this.warningtTapeArr.length <= 0) {
- this.photo = true;
- }
- } else if (type == 'hth') {
- this.photosAfterArr.splice(index, 1)
- if (this.photosAfterArr.length <= 0) {
- this.photo = true;
- }
- } else if (type == 'Box') {
- this.imgBoxArr.splice(index, 1)
- } else if (type == 'Sfht') {
- this.imgSfhtArr.splice(index, 1)
- } else if (type == 'Fljd') {
- this.imgFljdArr.splice(index, 1)
- } else if (type == 'Dtlj') {
- this.imgDtljArr.splice(index, 1)
- } else if (type == 'Hldmyh') {
- this.imgHldmyhArr.splice(index, 1)
- } else if (type == 'Tg') {
- this.imgTgArr.splice(index, 1)
- } else if (type == 'Nbmh') {
- this.imgNbmhArr.splice(index, 1)
- } else if (type == 'Fhw') {
- this.imgFhwArr.splice(index, 1)
- } else if (type == 'Bj') {
- this.imgBjArr.splice(index, 1)
- }
- }
- }
- })
- },
- choose(e) {
- let _this = this;
- uni.showActionSheet({
- title: '上传',
- itemList: ['图片', '视频'],
- success: (res) => {
- if (res.tapIndex == 0) {
- this.chooseimage(e)
- } else {
- this.choosevideo(e)
- }
- }
- })
- },
- chooseimage(e) {
- let _this = this;
- uni.chooseImage({
- sourceType: this.objValue.enginType == `old_renovation` ? ['camera'] : ['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 => {
- // 判断是否json字符串,将其转为json格式
- // let data = _this.$u.test.jsonString(res
- // .data) ? JSON.parse(res.data) : res.data;
- let data = JSON.parse(res.data);
- if (![200].includes(data.code)) {
- // this.uploadError(index, data);
- _this.$modal.msg(data.msg)
- } else {
- if (_this.progress === 100) {
- if (e == 'other') {
- _this.imgArr.push(data.data.url)
- } else if (e == 'sfht') {
- _this.stonePowderArr.push(data.data.url)
- } else if (e == 'jsdps') {
- _this.warningtTapeArr.push(data.data.url)
- } else if (e == 'hth') {
- _this.photosAfterArr.push(data.data.url)
- } else if (e == 'Box') {
- _this.imgBoxArr.push(data.data.url)
- } else if (e == 'Sfht') {
- _this.imgSfhtArr.push(data.data.url)
- } else if (e == 'Fljd') {
- _this.imgFljdArr.push(data.data.url)
- } else if (e == 'Dtlj') {
- _this.imgDtljArr.push(data.data.url)
- } else if (e == 'Hldmyh') {
- _this.imgHldmyhArr.push(data.data.url)
- } else if (e == 'Tg') {
- _this.imgTgArr.push(data.data.url)
- } else if (e == 'Nbmh') {
- _this.imgNbmhArr.push(data.data.url)
- } else if (e == 'Fhw') {
- _this.imgFhwArr.push(data.data.url)
- } else if (e == 'Bj') {
- _this.imgBjArr.push(data.data.url)
- }
- _this.$modal.msg('上传成功!')
- _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.loading = false
- } else {
- _this.loading = true
- }
- });
- })
- },
- })
- },
- choosevideo(e) {
- let _this = this;
- uni.chooseVideo({
- sourceType: this.objValue.enginType == `old_renovation` ? ['camera'] : ['album', 'camera'],
- maxDuration: 60,
- 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 (e == 'other') {
- _this.imgArr.push(data.data.url)
- } else if (e == 'sfht') {
- _this.stonePowderArr.push(data.data.url)
- } else if (e == 'jsdps') {
- _this.warningtTapeArr.push(data.data.url)
- } else if (e == 'hth') {
- _this.photosAfterArr.push(data.data.url)
- } else if (e == 'Box') {
- _this.imgBoxArr.push(data.data.url)
- } else if (e == 'Sfht') {
- _this.imgSfhtArr.push(data.data.url)
- } else if (e == 'Fljd') {
- _this.imgFljdArr.push(data.data.url)
- } else if (e == 'Dtlj') {
- _this.imgDtljArr.push(data.data.url)
- } else if (e == 'Hldmyh') {
- _this.imgHldmyhArr.push(data.data.url)
- } else if (e == 'Tg') {
- _this.imgTgArr.push(data.data.url)
- } else if (e == 'Nbmh') {
- _this.imgNbmhArr.push(data.data.url)
- } else if (e == 'Fhw') {
- _this.imgFhwArr.push(data.data.url)
- } else if (e == 'Bj') {
- _this.imgBjArr.push(data.data.url)
- }
- _this.$modal.msg('上传成功!')
- _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.loading = false
- } else {
- _this.loading = true
- }
- });
- },
- })
- },
- pickerShow(e) {
- this.type = e; //赋值类型
- if (e == 'cz') { //材质
- this.open = true;
- getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
- .objValue.enginClassValue).then(
- response => {
- this.selectList = response.data;
- });
- } else if (e == 'gg') { //规格
- if (this.isEmpty(this.materialValue.id)) {
- this.$modal.msg('请选择材质')
- } else {
- this.open = true;
- this.selectList = this.materialList;
- }
- } else if (e == 'gczq') { //工程周期
- this.openDict = true;
- getDicts("engin_cycle").then(response => {
- this.dictOptions = response.data;
- });
- } else if (e == 'xzq') { //行政区
- if (this.isEmpty(this.projectValue.dictValue)) {
- this.$modal.msg('请选择工程周期')
- } else {
- this.openDict = true;
- getDicts("district").then(response => {
- this.dictOptions = response.data;
- });
- }
- //this.selectList = this.dictOptions;
- } else if (e == 'xq') { //小区
- if (this.isEmpty(this.XZQValue.dictValue)) {
- getAreaList('').then(res => {
- this.XQList = res.data;
- this.open = true;
- this.selectList = this.XQList;
- })
- } else {
- getAreaList(this.XZQValue.dictValue).then(res => {
- this.XQList = res.data;
- this.selectList = this.XQList;
- this.open = true;
- })
- }
- } else if (e == 'ld') { //楼栋
- if (this.isEmpty(this.XQValue.id)) {
- this.$modal.msg('请选择小区')
- } else {
- getBuildingList(this.XQValue.id).then(res => {
- this.LDList = res.data
- this.selectList = this.LDList;
- this.open = true;
- })
- }
- }
- },
- changeSelectDict(item, index) {
- this.openDict = false;
- if (this.type == 'isok') {
- this.isOkValue = item
- } else if (this.type == 'gczq') {
- this.projectValue = item
- if (!this.isEmpty(this.XQValue.id)) {
- //房间选完 判断 工程周期 工程周期切换
- this.getStatus();
- }
- } else if (this.type == 'xzq') {
- this.XZQValue = item;
- //根据行政区id获取小区数据
- this.XQValue = ''; //重置小区数据
- this.LDValue = ''; //重置楼栋数据
- }
- },
- changeSelect(item, index) {
- // this.index = index;
- // this.address = item.communityName;
- this.open = false;
- if (this.type == 'cz') {
- this.materialValue = item;
- this.specificationValue = ''; //重置规格
- //根据材质ID 获取规格数据
- getEnginSpecificationsList(item.id).then(res => {
- this.materialList = res.data
- })
- } else if (this.type == 'gg') {
- this.specificationValue = item;
- } else if (this.type == 'xq') {
- this.XZQValue = {
- dictValue: item.district,
- dictLabel: item.districtName
- };
- this.XQValue = item;
- if (!this.isEmpty(this.projectValue.dictValue)) {
- //小区选完 判断 工程周期
- this.getStatus();
- }
- //根据小区id 获取楼栋数据
- this.LDValue = ''; //重置楼栋数据
- this.DYValue = ''; //重置单元数据
- this.FJValue = ''; //重置房间数据
- } else if (this.type == 'ld') {
- this.LDValue = item;
- if (!this.isEmpty(this.projectValue.dictValue)) {
- //楼栋选完 判断 工程周期
- this.getStatus();
- }
- }
- },
- //关闭弹窗
- close(e) {
- this.open = false
- },
- //关闭弹窗
- closeDict(e) {
- this.openDict = false
- },
- getStatus() {
- let unitId = '';
- let houseId = '';
- let buildingId = '';
- if (this.isEmpty(this.LDValue.id)) {
- buildingId = '';
- } else {
- buildingId = this.LDValue.id
- }
- let param = {
- areaId: this.XQValue.id, // 小区id
- buildingId: buildingId, // 楼宇id
- unitId: unitId,
- houseId: houseId, //传空
- enginCycle: this.projectValue.dictValue, // 工程周期
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- }
- getRoomProjectId(param).then(res => {
- if (res.code == '200') {
- if (res.data != null && res.data.zEngineeringNodeBoList != null) {
- res.data.zEngineeringNodeBoList.forEach((item, index) => {
- if (this.objValue.enginClassValue == item.type) {
- this.reviewStatus = item.reviewStatus;
- if (item.reviewStatus == '1')
- this.$modal.msg('当前工程已结束')
- }
- })
- } else {
- this.reviewStatus = '' //置空
- }
- } else {
- this.$modal.msg(res.msg)
- this.reviewStatus = '' //置空
- }
- })
- },
- //提交数据
- submit(e) {
- this.tempState = e == 'submit' ? '' : '99'
- if (this.isEmpty(this.projectValue.dictValue)) {
- this.$modal.msg("请选择工程周期")
- return
- }
- if (this.isEmpty(this.XZQValue.dictValue)) {
- this.$modal.msg("请选择行政区")
- return
- }
- if (this.isEmpty(this.XQValue.id)) {
- this.$modal.msg("请选择小区")
- return
- }
- // else if (this.isEmpty(this.LDValue.id)) {
- // this.$modal.msg("请选择楼栋")
- // }
- if (e == 'submit') {
- if (this.objValue.enginClassValue == '回填') {
- // if (this.stonePowderArr.length <= 0) {
- // this.$modal.msg('请上传石粉回填照片')
- // return
- // }
- if (this.warningtTapeArr.length <= 0) {
- this.$modal.msg('请上传警示带铺设照片')
- return
- }
- if (this.photosAfterArr.length <= 0) {
- this.$modal.msg('请上传回填后照片')
- return
- }
- } else if (this.objValue.enginClassValue == '调压柜') {
- if (this.imgBoxArr.length <= 0) {
- this.$modal.msg('请上传调压箱名牌照片')
- return
- }
- if (this.imgSfhtArr.length <= 0) {
- this.$modal.msg('请上传调压箱内石粉回填照片')
- return
- }
- if (this.imgFljdArr.length <= 0) {
- this.$modal.msg('请上传调压箱防雷接地照片')
- return
- }
- if (this.imgDtljArr.length <= 0) {
- this.$modal.msg('请上传调压箱底腿连接照片')
- return
- }
- if (this.imgHldmyhArr.length <= 0) {
- this.$modal.msg('请上传调压箱护栏及地面硬化(远景)照片')
- return
- }
- } else if (this.objValue.enginClassValue == '阀井') {
- if (this.imgTgArr.length <= 0) {
- this.$modal.msg('请上传套管照片')
- return
- }
- if (this.imgNbmhArr.length <= 0) {
- this.$modal.msg('请上传内壁抹灰照片')
- return
- }
- if (this.imgFhwArr.length <= 0) {
- this.$modal.msg('请上传防护网照片')
- return
- }
- if (this.imgBjArr.length <= 0) {
- this.$modal.msg('请上传八角照片')
- return
- }
- } else {
- if (this.imgArr.length <= 0) {
- this.$modal.msg('请上传照片或视频')
- return
- }
- }
- }
- // if (this.loading == false) {
- // this.$modal.msg('照片或视频未上传完毕,无法提交!')
- // return
- // }
- //提交
- this.onsubmit();
- },
- onsubmit() {
- let unitId = '';
- let houseId = '';
- let buildingId = '';
- if (this.isEmpty(this.LDValue.id)) {
- buildingId = '';
- } else {
- buildingId = this.LDValue.id
- }
- //提交
- let param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: buildingId, //不必传 如果没有传 ' '
- unitId: unitId,
- houseId: houseId, //传空
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- temporaryOrNot: this.temporaryOrNot,
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- state: this.tempState,
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- warningtTape: this.warningtTapeArr,
- photosAfter: this.photosAfterArr,
- constructTime: this.time, //施工时间
- remark: this.projectContent, //施工内容
- boxBrand: this.imgBoxArr,
- stonePowder: this.stonePowderArr.length > 0 ? this.stonePowderArr : this.imgSfhtArr,
- lightning: this.imgFljdArr,
- bottomLeg: this.imgDtljArr,
- groundHardening: this.imgHldmyhArr,
- cannula: this.imgTgArr,
- wallPlaster: this.imgNbmhArr,
- protectiveNet: this.imgFhwArr,
- starAnise: this.imgBjArr,
- }
- }
- }
- uni.showLoading()
- addTearOldPipe(param).then(res => {
- if (res.code == '200') {
- uni.hideLoading()
- uni.showToast({
- title: res.msg,
- icon: 'none',
- //显示持续时间为 3秒
- duration: 2000
- });
- setTimeout(function() {
- uni.navigateBack();
- }, 1000)
- }
- })
- },
- history() {
- this.temporaryOrNot = true;
- this.imgArr = [];
- this.projectContent = '';
- this.stonePowderArr = [];
- this.warningtTapeArr = [];
- this.photosAfterArr = [];
- this.imgBoxArr = [];
- this.imgSfhtArr = [];
- this.imgFljdArr = [];
- this.imgDtljArr = [];
- this.imgHldmyhArr = [];
- this.imgTgArr = [];
- this.imgNbmhArr = [];
- this.imgFhwArr = [];
- this.imgBjArr = [];
- if (this.isEmpty(this.projectValue.dictValue)) {
- this.$modal.msg("请选择工程周期")
- return
- }
- if (this.isEmpty(this.XZQValue.dictValue)) {
- this.$modal.msg("请选择行政区")
- return
- }
- if (this.isEmpty(this.XQValue.id)) {
- this.$modal.msg("请选择小区")
- return
- }
- let unitId = '';
- let houseId = '';
- let buildingId = '';
- if (this.isEmpty(this.LDValue.id)) {
- buildingId = '';
- } else {
- buildingId = this.LDValue.id
- }
- let param = {
- areaId: this.XQValue.id, // 小区id
- buildingId: buildingId, // 楼宇id
- enginCycle: this.projectValue.dictValue, // 工程周期
- unitId: unitId,
- houseId: houseId, //传空
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- }
- getRoomProjectId(param).then(res => {
- if (res.code == '200') {
- if (res.data != null) {
- getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(
- res => {
- this.historyList = res.data
- if (res.data.zEngineeringNodeBo != null) {
- // this.showHistoryList();
- // if (res.data.zEngineeringNodeBo.reviewStatus != null && res.data.zEngineeringNodeBo.reviewStatus == '99') {
- // this.historyName = '恢复暂存';
- // } else {
- // this.historyName = '';
- // }
- if (res.data.zEngineeringNodeBo.reviewStatus == '1') {
- // this.showHistoryList();
- this.$modal.msg("当前步骤以审核通过请谨慎!")
- } else if (res.data.zEngineeringNodeBo.reviewStatus == '99') {
- this.temporaryOrNot = true;
- let dataJson = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0];
- this.projectContent = dataJson.remark;
- this.time = dataJson.constructTime;
- if (this.objValue.enginClassValue == '开挖前' || this.objValue.enginClassValue == '开挖后' || this.objValue.enginClassValue == '焊口照片' || this.objValue.enginClassValue == '隐蔽工程' || this.objValue.enginClassValue == '管道施工记录') {
- this.imgArr = dataJson.zEngiineeringPhotoBoList;
- } else if (this.objValue.enginClassValue == '回填') {
- this.stonePowderArr = dataJson.stonePowder;
- this.warningtTapeArr = dataJson.warningtTape;
- this.photosAfterArr = dataJson.photosAfter;
- } else if (this.objValue.enginClassValue == '调压柜') {
- this.imgBoxArr = dataJson.boxBrand;
- this.imgSfhtArr = dataJson.stonePowder;
- this.imgFljdArr = dataJson.lightning;
- this.imgDtljArr = dataJson.bottomLeg;
- this.imgHldmyhArr = dataJson.groundHardening;
- } else if (this.objValue.enginClassValue == '阀井') {
- this.imgTgArr = dataJson.cannula;
- this.imgNbmhArr = dataJson.wallPlaster;
- this.imgFhwArr = dataJson.protectiveNet;
- this.imgBjArr = dataJson.starAnise;
- }
- } else {
- this.$modal.msg("暂无暂存信息")
- }
- } else {
- this.$modal.msg("暂无历史信息")
- }
- })
- } else {
- this.$modal.msg("暂无工程信息")
- }
- } else {
- this.$modal.msg(res.msg)
- }
- })
- },
- showHistoryList() {
- this.$refs.refShare.handleShowShare();
- }
- }
- }
- </script>
- <style lang="scss">
- .container {
- 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;
- }
- .background {
- // border: 15px solid hsla(0, 0%, 100%, .5);
- background: white;
- background-clip: padding-box;
- padding: 20rpx;
- border-radius: 20rpx;
- margin: 20rpx;
- /*从padding开始往外面裁剪背景*/
- }
- .btn {
- width: 715rpx;
- height: 69rpx;
- background: #79A4F0;
- border-radius: 6rpx;
- font-size: 25rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #FFFFFF;
- line-height: 69rpx;
- margin-top: 40rpx;
- margin-bottom: 100rpx;
- }
- .number {
- display: flex;
- /* 水平居中显示子元素 */
- align-items: flex-start;
- /* 垂直居中显示子元素 */
- justify-content: space-between;
- /* 左右间距等于间距大小 */
- padding: 10px;
- /* 设置padding以提高视觉效果 */
- }
- .textarea {
- margin-top: 10upx;
- width: 100%;
- border: 1rpx solid red;
- min-height: 100upx;
- line-height: 20px;
- }
- </style>
|