12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382 |
- <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)" style="margin-top: 10;"
- @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" style="margin-top: 10;" @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" style="margin-top: 10;"
- @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" style="margin-top: 10;" @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" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 楼栋
- </view>
- <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
- @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" style="margin-top: 10;" @click="pickerShow('ld')">
- <span style="color: black;">{{LDValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <view class="uni-list" style="margin-top: 10;">
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 单元
- </view>
- <view v-if="this.isEmpty(this.DYValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="pickerShow('dy')">
- <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" style="margin-top: 10;" @click="pickerShow('dy')">
- <span style="color: black;">{{DYValue.name}}</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 class="uni-list-cell-left">
- 房间
- </view>
- <view v-if="this.isEmpty(this.FJValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="pickerShow('fj')">
- <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" style="margin-top: 10;" @click="pickerShow('fj')">
- <span style="color: black;">{{FJValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- </view>
- <view class="background" style="margin-top: 10px;margin-bottom: 10px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
- 燃气立杠
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 立杠是否刷涂防腐漆
- </view>
- <view v-if="this.isEmpty(this.openBoltKey)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="showActionsheet('openBoltKey')">
- <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" style="margin-top: 10;" @click="showActionsheet('openBoltKey')">
- <span style="color: black;">{{openBoltValue}}</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-list-cell-left">
- 是否有立杠卡子
- </view>
- <view v-if="this.isEmpty(this.barClamptKey)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="showActionsheet('barClamptKey')">
- <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" style="margin-top: 10;" @click="showActionsheet('barClamptKey')">
- <span style="color: black;">{{barClamptValue}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="color: #b2b2b2;">*请上传照片</view>
- <view 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('1')"
- 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: 100rpx; height: 100rpx; margin: 0 12rpx;"
- @click="showPhoto(index,'1')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'1')"
- 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="background" style="margin-top: 10px;margin-bottom: 10px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
- 气密测试
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-common-mt" style="width: 100%;">
- <view style="width: 100%;box-sizing: border-box;">
- <checkbox-group @change="checkboxChange">
- <checkbox style="margin-right: 30rpx;" v-for="(item, index) in checkItems" :key="index"
- :value="item.dictValue" :checked="item.checked">{{ item.dictLabel }}</checkbox>
- </checkbox-group>
- </view>
- </view>
- </view>
- <view class="container" style="color: #b2b2b2;">*请上传照片</view>
- <view 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('2')"
- v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgArr2" :key="index" style="position: relative;">
- <view
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
- @click="showPhoto(index,'2')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'2')"
- 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="background" style="margin-top: 10px;margin-bottom: 10px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
- 燃气表
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 表号
- </view>
- <view class="uni-list-cell-db" style="margin-top: 10;">
- <input class="uni-input" type="text" v-model="tableNumber" maxlength="50" placeholder="请输入表号"
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
- </view>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 表字
- </view>
- <view class="uni-list-cell-db" style="margin-top: 10;">
- <input class="uni-input" type="text" v-model="tableCharacters" maxlength="50" placeholder="请输入表字"
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
- </view>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 品牌
- </view>
- <view v-if="this.isEmpty(this.brankValue.dictValue)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="pickerShow('brank')">
- <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" style="margin-top: 10;" @click="pickerShow('brank')">
- <span style="color: black;">{{brankValue.dictLabel}}</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-list-cell-left">
- 型号
- </view>
- <view v-if="this.isEmpty(this.tableModel.dictValue)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="pickerShow('Model')">
- <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" style="margin-top: 10;" @click="pickerShow('Model')">
- <span style="color: black;">{{tableModel.dictLabel}}</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-list-cell-left">
- 进气方向
- </view>
- <view v-if="this.isEmpty(this.direction.dictValue)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="pickerShow('jqfx')">
- <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" style="margin-top: 10;" @click="pickerShow('jqfx')">
- <span style="color: black;">{{direction.dictLabel}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="color: #b2b2b2;">*请上传照片</view>
- <view 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('3')"
- v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgArr3" :key="index" style="position: relative;">
- <view
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
- @click="showPhoto(index,'3')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'3')"
- 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="background" style="margin-top: 10px;margin-bottom: 10px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
- 表后管
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 是否有卡子固定
- </view>
- <view v-if="this.isEmpty(this.isFixationId)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="showActionsheet('isFixationId')">
- <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" style="margin-top: 10;" @click="showActionsheet('isFixationId')">
- <span style="color: black;">{{isFixationValue}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="color: #b2b2b2;">*请上传照片</view>
- <view 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('4')"
- v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgArr4" :key="index" style="position: relative;">
- <view
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
- @click="showPhoto(index,'4')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'4')"
- 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="background" style="margin-top: 10px;margin-bottom: 10px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
- 灶前阀门
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 是否阀管改造
- </view>
- <view v-if="this.isEmpty(this.isPipeChangeId)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="showActionsheet('isPipeChangeId')">
- <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" style="margin-top: 10;"
- @click="showActionsheet('isPipeChangeId')">
- <span style="color: black;">{{isPipeChangeValue}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;" v-if="isPipeChangeValue=='是'">
- <view class="uni-list-cell-left">
- 阀管改造类型
- </view>
- <view v-if="this.isEmpty(this.PipeType.dictValue)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="pickerShow('fglx')">
- <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" style="margin-top: 10;" @click="pickerShow('fglx')">
- <span style="color: black;">{{PipeType.dictLabel}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="color: #b2b2b2;">*请上传照片</view>
- <view 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('5')"
- v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgArr5" :key="index" style="position: relative;">
- <view
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
- @click="showPhoto(index,'5')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'5')"
- 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="background" style="margin-top: 10px;margin-bottom: 10px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
- 软管
- </view>
- <view class="container" style="color: #b2b2b2;">*请上传照片</view>
- <view 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('6')"
- v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgArr6" :key="index" style="position: relative;">
- <view
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
- @click="showPhoto(index,'6')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'6')"
- 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="background" style="margin-top: 10px;margin-bottom: 10px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
- 灶具
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 是否使用防风圈
- </view>
- <view v-if="this.isEmpty(this.isUseWindproofId)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="showActionsheet('isUseWindproofId')">
- <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" style="margin-top: 10;"
- @click="showActionsheet('isUseWindproofId')">
- <span style="color: black;">{{isUseWindproofValue}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="color: #b2b2b2;">*请上传照片</view>
- <view 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('7')"
- v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgArr7" :key="index" style="position: relative;">
- <view
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
- @click="showPhoto(index,'7')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'7')"
- 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="background" style="margin-top: 10px;margin-bottom: 10px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
- 用气环境
- </view>
- <view class="container" style="color: #b2b2b2;">*请上传照片</view>
- <view 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('8')"
- v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgArr8" :key="index" style="position: relative;">
- <view
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
- @click="showPhoto(index,'8')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'8')"
- 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="background" style="margin-top: 10px;margin-bottom: 10px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
- 回执单
- </view>
- <view class="container" style="color: #b2b2b2;">*请上传照片</view>
- <view 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('9')"
- v-show="reviewStatus!='1'"></image>
- <view v-for="(item,index) in imgArr9" :key="index" style="position: relative;">
- <view
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
- @click="showPhoto(index,'9')">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index,'9')"
- 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="action-btn" v-show="reviewStatus!='1'">
- <button @click="submit" class="btn cu-btn block bg-blue lg round">确认上传</button>
- </view>
- <!-- <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet> -->
- <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>
- <!-- <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet> -->
- </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,
- getUnitList,
- getHousesList,
- openBolt,
- getRoomProjectList,
- getRoomProjectId,
- AddOpenBolt,
- getOpenBoltHistoryDetails
- } from '@/api/common';
- import {
- getToken
- } from '../../utils/auth';
- export default {
- components: {
- SelectPicker,
- bottomSheet,
- },
- data() {
- return {
- checkItems: [],
- checkedValues: [],
- title: '',
- name: '开栓',
- headers: {
- Authorization: "Bearer " + getToken()
- },
- projectValue: {
- 'dictValue': '0'
- },
- //1
- openBoltKey: '',
- openBoltValue: '',
- barClamptKey: '',
- barClamptValue: '',
- imgArr: [],
- //2
- barTestValue: '',
- singleValue: '',
- imgArr2: [],
- //3
- tableNumber: '',
- tableCharacters: '',
- brankValue: '',
- tableModel: '',
- direction: '',
- imgArr3: [],
- //4
- isFixationValue: '',
- isFixationId: '',
- imgArr4: [],
- //5
- isPipeChangeValue: '',
- isPipeChangeId: '',
- PipeType: '',
- imgArr5: [],
- //6
- imgArr6: [],
- //7
- isUseWindproofValue: '',
- isUseWindproofId: '',
- imgArr7: [],
- //8
- imgArr8: [],
- //9
- imgArr9: [],
- openBoltText: '',
- type: '',
- reviewStatus: '', //是否可以点击
- objValue: '', //上一页面传过来的值 新增接口用
- open: false,
- openDict: false,
- selectList: [],
- dictOptions: [],
- XQValue: {},
- XZQValue: {},
- remark: '',
- LDValue: {},
- DYValue: {},
- FJValue: {},
- XQList: '',
- LDList: '',
- DYList: '',
- FJList: '',
- progress: 0, //上传图片进度百分比
- loading: false,
- historyList: {}, //历史数据
- nodeId: '',
- nodeType: '',
- createTime: null,
- }
- },
- onLoad(options) {
- uni.setNavigationBarTitle({
- title: '开栓'
- })
- getDicts("vertical_bar").then(response => {
- response.data.forEach((obj, index) => {
- obj.checked = false;
- });
- this.checkItems = response.data;
- });
- if ('params' in options) {
- let e = JSON.parse(decodeURIComponent(options.params));
- this.nodeType = e.type;
- if (e.type == 'edit') {
- this.nodeId = e.id;
- getOpenBoltHistoryDetails(this.nodeId).then(res => {
- let response = res.data;
- this.createTime = response.createTime;
- this.XZQValue.dictValue = response.district;
- this.XZQValue.dictLabel = response.districtName;
- this.XQValue.id = response.areaId;
- this.XQValue.name = response.areaName;
- this.LDValue.id = response.buildingId;
- this.LDValue.name = response.buildingName;
- this.DYValue.id = response.unitId;
- this.DYValue.name = response.unitName;
- this.FJValue.id = response.houseId;
- this.FJValue.name = response.houseName;
- this.openBoltKey = response.isAntiCorrosionPaint;
- this.openBoltValue = response.isAntiCorrosionPaint == 'Y' ? '是' : '否';
- this.barClamptKey = response.isVerticalBarClamp;
- this.barClamptValue = response.isVerticalBarClamp == 'Y' ? '是' : '否';
- this.imgArr = response.gasCylinderPic;
- // this.barTestValue = response.verticalBarTest;
- // this.singleValue = response.householdTest;
- var arr = response.verticalBarTest.split(",");
- arr.forEach((obj, index) => {
- this.checkItems.forEach((item, index2) => {
- if (obj == item.dictLabel) {
- this.checkItems[index2].checked = true;
- }
- });
- });
- this.imgArr2 = response.pressureTestPic;
- this.tableNumber = response.gasMeterNumber;
- this.tableCharacters = response.gasMeterCount;
- this.brankValue = {
- dictValue: response.gasMeterBrand,
- dictLabel: response.gasMeterBrand
- };
- this.tableModel = {
- dictValue: response.gasMeterType,
- dictLabel: response.gasMeterType
- };
- this.direction = {
- dictValue: response.gasMeterDirection,
- dictLabel: response.gasMeterDirectionName
- };
- this.imgArr3 = response.gasMeterPic;
- this.isFixationId = response.isRearPipeClamp;
- this.isFixationValue = response.isRearPipeClamp == 'Y' ? '是' : '否';
- this.imgArr4 = response.rearPipePic;
- this.isPipeChangeId = response.isGasChangeType;
- this.isPipeChangeValue = response.isGasChangeType == 'Y' ? '是' : '否';
- this.PipeType = {
- dictValue: response.gasChangeType,
- dictLabel: response.gasChangeTypeName
- };
- this.imgArr5 = response.gasChangePic;
- this.imgArr6 = response.softPipePic;
- this.isUseWindproofId = response.isWindproofCircle;
- this.isUseWindproofValue = response.isWindproofCircle == 'Y' ? '是' : '否';
- this.imgArr7 = response.windproofCirclePic;
- this.imgArr8 = response.gasEnvironmentPic;
- this.imgArr9 = response.receiptFormPic;
- getAreaList(this.XZQValue.dictValue).then(res => {
- this.XQList = res.data;
- })
- getBuildingList(this.XQValue.id).then(res => {
- this.LDList = res.data
- })
- getUnitList(this.LDValue.id).then(res => {
- this.DYList = res.data
- })
- getHousesList(this.DYValue.id).then(res => {
- this.FJList = res.data
- })
- });
- }
- }
- },
- methods: {
- //判断是否选择
- isEmpty(str) {
- return (!str || 0 === str.length);
- },
- checkboxChange(e) {
- this.checkedValues = e.detail.value;
- },
- submit() {
- if (this.isEmpty(this.XZQValue.dictValue)) {
- this.$modal.msg("请选择行政区")
- } else if (this.isEmpty(this.XQValue.id)) {
- this.$modal.msg("请选择小区")
- } else if (this.isEmpty(this.LDValue.id)) {
- this.$modal.msg("请选择楼栋")
- } else if (this.isEmpty(this.DYValue.id)) {
- this.$modal.msg("请选择单元")
- } else if (this.isEmpty(this.FJValue.id)) {
- this.$modal.msg("请选择房间")
- } else if (this.isEmpty(this.openBoltKey)) {
- this.$modal.msg("请选择立杠是否刷涂防腐漆")
- } else if (this.isEmpty(this.barClamptKey)) {
- this.$modal.msg("请选择是否有立杠卡子")
- } else if (this.imgArr.length <= 0) {
- this.$modal.msg("请上传燃气立杠照片")
- } else if (this.isEmpty(this.checkedValues)) {
- this.$modal.msg("请选择气密测试")
- }
- // else if (this.isEmpty(this.barTestValue)) {
- // this.$modal.msg("请输入立杠气密测试")
- // } else if (this.isEmpty(this.singleValue)) {
- // this.$modal.msg("请输入单户气密测试")
- // }
- else if (this.imgArr2.length <= 0) {
- this.$modal.msg("请上传气密测试照片")
- } else if (this.imgArr3.length <= 0) {
- this.$modal.msg("请上传燃气表照片")
- } else if (this.imgArr4.length <= 0) {
- this.$modal.msg("请上传表后管照片")
- } else if (this.isPipeChangeValue == '是' && this.isEmpty(this.PipeType.dictValue)) {
- this.$modal.msg("请选择阀管改造类型")
- } else if (this.imgArr5.length <= 0) {
- this.$modal.msg("请上传灶前阀门照片")
- } else if (this.imgArr6.length <= 0) {
- this.$modal.msg("请上传软管照片")
- } else if (this.imgArr7.length <= 0) {
- this.$modal.msg("请上传灶具照片")
- } else if (this.imgArr8.length <= 0) {
- this.$modal.msg("请上传用气环境照片")
- } else if (this.imgArr9.length <= 0) {
- this.$modal.msg("请上传回执单照片")
- } else {
- uni.showLoading()
- let param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- isAntiCorrosionPaint: this.openBoltKey,
- isVerticalBarClamp: this.barClamptKey,
- gasCylinderPic: this.imgArr,
- verticalBarTest: this.checkedValues.toString(),
- //householdTest: this.singleValue,
- pressureTestPic: this.imgArr2,
- gasMeterNumber: this.tableNumber,
- gasMeterCount: this.tableCharacters,
- gasMeterBrand: this.brankValue.dictValue,
- gasMeterType: this.tableModel.dictValue,
- gasMeterDirection: this.direction.dictValue,
- gasMeterPic: this.imgArr3,
- isRearPipeClamp: this.isFixationId,
- rearPipePic: this.imgArr4,
- isGasChangeType: this.isPipeChangeId,
- gasChangeType: this.PipeType.dictValue,
- gasChangePic: this.imgArr5,
- softPipePic: this.imgArr6,
- isWindproofCircle: this.isUseWindproofId,
- windproofCirclePic: this.imgArr7,
- gasEnvironmentPic: this.imgArr8,
- receiptFormPic: this.imgArr9,
- createTime: this.createTime,
- }
- AddOpenBolt(this.nodeType, param, this.nodeId).then(res => {
- uni.hideLoading()
- if (res.code == '200') {
- uni.showToast({
- title: res.msg,
- icon: 'none',
- //显示持续时间为 3秒
- duration: 2000
- });
- setTimeout(function() {
- uni.navigateBack();
- }, 1000)
- }
- })
- //提交接口执行逻辑
- }
- },
- showActionsheet(type) {
- //是否
- getDicts("sys_yes_no").then(response => {
- this.dictOptions = response.data;
- let array = [];
- this.dictOptions.forEach((item, index) => {
- array.push(item.dictLabel)
- });
- uni.showActionSheet({
- itemList: array,
- success: (res) => {
- // this.openBoltKey = this.dictOptions[res.tapIndex].dictValue;
- // this.openBoltValue = this.dictOptions[res.tapIndex].dictLabel;
- if (type == 'openBoltKey') {
- this.openBoltKey = this.dictOptions[res.tapIndex].dictValue;
- this.openBoltValue = this.dictOptions[res.tapIndex].dictLabel;
- } else if (type == 'barClamptKey') {
- this.barClamptKey = this.dictOptions[res.tapIndex].dictValue;
- this.barClamptValue = this.dictOptions[res.tapIndex]
- .dictLabel;
- } else if (type == 'isFixationId') {
- this.isFixationId = this.dictOptions[res.tapIndex].dictValue;
- this.isFixationValue = this.dictOptions[res.tapIndex]
- .dictLabel;
- } else if (type == 'isPipeChangeId') {
- this.isPipeChangeId = this.dictOptions[res.tapIndex]
- .dictValue;
- this.isPipeChangeValue = this.dictOptions[res.tapIndex]
- .dictLabel;
- } else if (type == 'isUseWindproofId') {
- this.isUseWindproofId = this.dictOptions[res.tapIndex]
- .dictValue;
- this.isUseWindproofValue = this.dictOptions[res.tapIndex]
- .dictLabel;
- }
- },
- fail: (err) => {
- console.log('弹窗取消');
- }
- });
- });
- },
- showPhoto(index, type) {
- let typeArr = [];
- let newArr = [];
- if (type == '1') {
- typeArr = this.imgArr;
- } else if (type == '2') {
- typeArr = this.imgArr2;
- } else if (type == '3') {
- typeArr = this.imgArr3;
- } else if (type == '4') {
- typeArr = this.imgArr4;
- } else if (type == '5') {
- typeArr = this.imgArr5;
- } else if (type == '6') {
- typeArr = this.imgArr6;
- } else if (type == '7') {
- typeArr = this.imgArr7;
- } else if (type == '8') {
- typeArr = this.imgArr8;
- } else if (type == '9') {
- typeArr = this.imgArr9;
- }
- 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, e) {
- uni.showModal({
- title: '提示',
- content: '是否删除该图片或视频?',
- success: (res) => {
- if (res.confirm) {
- if (e == '1') {
- this.imgArr.splice(index, 1)
- } else if (e == '2') {
- this.imgArr2.splice(index, 1)
- } else if (e == '3') {
- this.imgArr3.splice(index, 1)
- } else if (e == '4') {
- this.imgArr4.splice(index, 1)
- } else if (e == '5') {
- this.imgArr5.splice(index, 1)
- } else if (e == '6') {
- this.imgArr6.splice(index, 1)
- } else if (e == '7') {
- this.imgArr7.splice(index, 1)
- } else if (e == '8') {
- this.imgArr8.splice(index, 1)
- } else if (e == '9') {
- this.imgArr9.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({
- 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 => {
- // 判断是否json字符串,将其转为json格式
- let data = JSON.parse(res.data);
- if (![200].includes(data.code)) {
- _this.$modal.msg(data.msg)
- } else {
- if (_this.progress === 100) {
- if (e == '1') {
- _this.imgArr.push(data.data.url)
- } else if (e == '2') {
- _this.imgArr2.push(data.data.url)
- } else if (e == '3') {
- _this.imgArr3.push(data.data.url)
- } else if (e == '4') {
- _this.imgArr4.push(data.data.url)
- } else if (e == '5') {
- _this.imgArr5.push(data.data.url)
- } else if (e == '6') {
- _this.imgArr6.push(data.data.url)
- } else if (e == '7') {
- _this.imgArr7.push(data.data.url)
- } else if (e == '8') {
- _this.imgArr8.push(data.data.url)
- } else if (e == '9') {
- _this.imgArr9.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 => {
- // 判断是否json字符串,将其转为json格式
- let data = JSON.parse(res.data);
- if (![200].includes(res.statusCode)) {
- this.uploadError(index, data);
- } else {
- //上传成功
- if (_this.progress === 100) {
- if (e == '1') {
- _this.imgArr.push(data.data.url)
- } else if (e == '2') {
- _this.imgArr2.push(data.data.url)
- } else if (e == '3') {
- _this.imgArr3.push(data.data.url)
- } else if (e == '4') {
- _this.imgArr4.push(data.data.url)
- } else if (e == '5') {
- _this.imgArr5.push(data.data.url)
- } else if (e == '6') {
- _this.imgArr6.push(data.data.url)
- } else if (e == '7') {
- _this.imgArr7.push(data.data.url)
- } else if (e == '8') {
- _this.imgArr8.push(data.data.url)
- } else if (e == '9') {
- _this.imgArr9.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
- }
- });
- },
- })
- },
- pickerShow(e) {
- this.type = e; //赋值类型
- if (e == 'Model') {
- this.openDict = true;
- getDicts("gas_meter_type").then(response => {
- this.dictOptions = response.data;
- });
- } else if (e == 'brank') {
- this.openDict = true;
- getDicts("gas_meter_brand").then(response => {
- this.dictOptions = response.data;
- });
- } else if (e == 'fglx') {
- this.openDict = true;
- getDicts("gas_change_type").then(response => {
- this.dictOptions = response.data;
- });
- } else if (e == 'jqfx') {
- this.openDict = true;
- getDicts("gas_meter_direction").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;
- });
- }
- } else if (e == 'xq') { //小区
- // if (this.isEmpty(this.XZQValue.dictValue)) {
- // this.$modal.msg('请选择行政区')
- //
- // } else {
- //根据行政区id获取小区数据
- this.XQValue = ''; //重置小区数据
- this.LDValue = ''; //重置楼栋数据
- this.DYValue = ''; //重置单元数据
- getAreaList('').then(res => {
- this.XQList = res.data;
- this.open = true;
- this.selectList = this.XQList;
- })
- // }
- } else if (e == 'ld') { //楼栋
- if (this.isEmpty(this.XQValue.id)) {
- this.$modal.msg('请选择小区')
- } else {
- this.open = true;
- this.selectList = this.LDList;
- }
- } else if (e == 'dy') { //单元
- if (this.isEmpty(this.LDValue.id)) {
- this.$modal.msg('请选择楼栋')
- } else {
- this.open = true;
- this.selectList = this.DYList;
- }
- } else if (e == 'fj') { //房间
- if (this.isEmpty(this.DYValue.id)) {
- this.$modal.msg('请选择单元')
- } else {
- this.open = true;
- this.selectList = this.FJList;
- }
- }
- },
- changeSelectDict(item, index) {
- this.openDict = false;
- if (this.type == 'fglx') {
- this.PipeType = item;
- } else if (this.type == 'jqfx') {
- this.direction = item;
- } else if (this.type == 'xzq') {
- this.XZQValue = item;
- //根据行政区id获取小区数据
- this.XQValue = '';
- this.LDValue = '';
- this.DYValue = '';
- this.FJValue = '';
- getAreaList(item.dictValue).then(res => {
- this.XQList = res.data;
- })
- } else if (this.type == 'brank') {
- this.brankValue = item;
- } else if (this.type == 'Model') {
- this.tableModel = item
- }
- },
- changeSelect(item, index) {
- this.open = false;
- if (this.type == 'xq') {
- this.XZQValue = {
- dictValue: item.district,
- dictLabel: item.districtName
- };
- this.XQValue = item;
- //根据小区id 获取楼栋数据
- this.LDValue = '';
- this.DYValue = '';
- this.FJValue = '';
- getBuildingList(item.id).then(res => {
- this.LDList = res.data
- })
- } else if (this.type == 'ld') {
- this.LDValue = item;
- this.DYValue = '';
- this.FJValue = '';
- getUnitList(item.id).then(res => {
- this.DYList = res.data
- })
- } else if (this.type == 'dy') {
- this.DYValue = item; //根据单元数据 获取房间数据
- this.FJValue = ''; //重置房间数据
- getHousesList(item.id).then(res => {
- this.FJList = res.data
- })
- } else if (this.type == 'fj') {
- this.FJValue = item;
- }
- },
- //关闭弹窗
- close(e) {
- this.open = false
- },
- //关闭弹窗
- closeDict(e) {
- this.openDict = false
- },
- }
- }
- </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;
- }
-
- checkbox .wx-checkbox-input {
- // border-radius: 50%;
- border-color: #AAAAAA !important;
- width: 30rpx;
- height: 30rpx;
- }
- checkbox .wx-checkbox-input.wx-checkbox-input-checked {
- background: #2D6EFC;
- border-color: #2D6EFC !important;
- color: #fff;
- }
- </style>
|