12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081 |
- <template>
- <scroll-view>
- <view class="background">
- <view>
- <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- <view style="display: flex;align-items: center;">房间信息
- <image :src="loadImgSrc('icon_copy.png')" @click='copyAddress()' style="display: flex;justify-content:flex-end; margin-left: 10px;width: 15px;height: 15px;">
- </image>
- </view>
- <image v-if="changefj==false" :src="loadImgSrc('icon_user_open.png')" @click='this.changefj = !this.changefj' style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
- </image>
- <image v-if="changefj==true" :src="loadImgSrc('icon_user_close.png')" @click='this.changefj = !this.changefj' style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
- </image>
- </view>
- </view>
- <view v-show="changefj">
- <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 v-for="(user,index) in currentResidentsPhoe" :key="index" class="num-style">
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <spane>现住人电话</spane>
- <view style="display: flex; justify-content: flex-end; ">
- <input class="uni-input" type="tel" v-model="user.phone" maxlength="11" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input>
- </view>
- </view>
- <button v-if="index!=0" @click="this.currentResidentsPhoe.splice(index,1)" class="sc-btn">删除</button>
- </view>
- <button @click="this.currentResidentsPhoe.push({phone:''})" class="tj-btn">添加</button>
- </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="name"></SelectPicker>
- </view>
- <view class="background">
- <input class="uni-input" type="idcard" v-model="idCard" maxlength="18" placeholder="请输入身份证号码" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input>
- </view>
- <button class="tj-btn" style="margin: 40rpx 90rpx;" @click="serchByCard"> 搜索</button>
- <view class="background">
- <view>
- <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 户主信息
- <image v-if="change==false" :src="loadImgSrc('icon_user_open.png')" @click='change1' style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
- </image>
- <image v-if="change==true" :src="loadImgSrc('icon_user_close.png')" @click='change1' style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
- </image>
- </view>
- </view>
- <view v-show="change">
- <view class="uni-list">
- <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;">
- <span style="color: darkgray;" v-model="houseHeadName">{{houseHeadName}}</span>
- </view>
- </view>
- </view>
- <view class="uni-list">
- <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;">
- <span style="color: darkgray;" v-model="houseHeadPhone">{{houseHeadPhone}}</span>
- </view>
- </view>
- </view>
- <view class="uni-list">
- <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;">
- <span style="color: darkgray;" v-model="houseHeadIDcardNumber">{{houseHeadIDcardNumber}}</span>
- </view>
- </view>
- </view>
- <view class="uni-list">
- <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;">
- <span style="color: darkgray;" v-model="administrative">{{administrative}}</span>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!--报警器切断阀-->
- <view class="background">
- <view v-if="objValue.enginClassValue=='报警器'||objValue.enginClassValue=='切断阀'">
- <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;">
- <text>厂 家</text>
- <view v-if="this.isEmpty(this.brandValue.id)" style="margin-top: 10;" @click="pickerShow('brand')">
- <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('brand')">
- <span style="color: black;">{{brandValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- </view>
- <!--拆旧管-->
- <view v-if="objValue.enginClassValue=='拆旧管'">
- <view class="uni-list">
- <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 拆旧管
- <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="margin-bottom: 20PX;border-bottom: 1px solid #f8f8f8;">
- <view>
- 腐蚀等级
- </view>
- <view v-if="this.isEmpty(this.LevelValue.id)" style="margin-top: 10;" @click="pickerShow('fsdj')">
- <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('fsdj')">
- <span style="color: black;">{{LevelValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- </view>
- <view v-if="objValue.enginClassValue=='打孔'">
- <view class="uni-list">
- <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 打孔
- <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="margin-bottom: 20PX;border-bottom: 1px solid #f8f8f8;">
- <view>
- 孔距
- </view>
- <view v-if="this.isEmpty(this.LevelValue.id)" style="margin-top: 10;"
- @click="pickerShow('kj')">
- <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('kj')">
- <span style="color: black;">{{LevelValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view> -->
- </view>
- </view>
- <!--立杠-->
- <view v-else-if="objValue.enginClassValue=='立杠'">
- <view class="uni-list" style="margin-bottom: 20px;">
- <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 立杠
- <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 v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;" @click="pickerShow('cz')">
- <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('cz')">
- <span style="color: black;">{{materialValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 规 格
- </view>
- <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;" @click="pickerShow('gg')">
- <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('gg')">
- <span style="color: black;">{{specificationValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <text>米 数</text>
- <!-- style="margin-left: 10px;text-align: right;" -->
- <view style="display: flex; justify-content: right; width: 70%;">
- <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
- <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
- <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
- </view>
- </view>
- </view>
- </view>
- <!--挂表-->
- <view v-else-if="objValue.enginClassValue=='挂表'">
- <view class="uni-list" style="margin-bottom: 20px;">
- <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 挂表
- <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 v-if="this.isEmpty(this.brandValue.id)" style="margin-top: 10;" @click="pickerShow('brand')">
- <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('brand')">
- <span style="color: black;">{{brandValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- </view>
- <!--表后管-->
- <view v-else-if="objValue.enginClassValue=='表后管'">
- <view class="uni-list" style="margin-bottom: 20px;">
- <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 表后管
- <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 v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;" @click="pickerShow('cz')">
- <span style="color: darkgray;">请选择材质</span>
- </view>
- <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
- <span style="color: black;">{{materialValue.name}}</span>
- </view>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 规 格
- </view>
- <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;" @click="pickerShow('gg')">
- <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('gg')">
- <span style="color: black;">{{specificationValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <text>米 数</text>
- <!-- style="margin-left: 10px;text-align: right;" -->
- <view style="display: flex; justify-content: right; width: 70%;">
- <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
- <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
- <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
- </view>
- </view>
- </view>
- </view>
- <!--阀管-->
- <view v-else-if="objValue.enginClassValue=='阀管'">
- <view class="uni-list" style="margin-bottom: 20px;">
- <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 阀管
- <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 v-if="this.isEmpty(this.doorValue.dictValue)" style="margin-top: 10;" @click="pickerShow('door')">
- <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('door')">
- <span style="color: black;">{{doorValue.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>
- 自闭阀厂家
- </view>
- <view v-if="this.isEmpty(this.SelfClosValve.id)" style="margin-top: 10;" @click="pickerShow('zbf')">
- <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('zbf')">
- <span style="color: black;">{{SelfClosValve.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 灶具管厂家
- </view>
- <view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;" @click="pickerShow('cz')">
- <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('cz')">
- <span style="color: black;">{{materialValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 规 格
- </view>
- <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;" @click="pickerShow('gg')">
- <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('gg')">
- <span style="color: black;">{{specificationValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- <!-- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <text>米 数</text>
- <view style="display: flex; justify-content: right; width: 70%;">
- <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
- <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
- <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
- </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()" 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)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
- </view>
- <view @click="remove(index)" 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 v-if="objValue.enginType == 'old_renovation'" style="margin-top: 10px;">
- <view v-if="objValue.enginClassValue=='拆旧管'">
- <span class="container-text">(1)拆除前照片(能体现出周边环境的宏观照片)</span>
- <span class="container-text">(2)拆除的立杠照片(如腐蚀严重需增加腐蚀处特写照片)</span>
- <span class="container-text">(3)立杠腐蚀照片</span>
- </view>
- <view v-if="objValue.enginClassValue=='立杠'">
- <span class="container-text">改造完成后的宏观照片,热收缩套照片,立杠要求有卡子及三通、表弯头、立杠刷油均匀</span>
- </view>
- <view v-if="objValue.enginClassValue=='挂表'">
- <span class="container-text">安装后的业主家燃气表正面能看清相关信息的照片</span>
- </view>
- <view v-if="objValue.enginClassValue=='表后管'">
- <span class="container-text">表后管整体照片+表至自闭阀区间的管道走向视频,表后管需按照施工标准横平竖直且有卡子固定</span>
- </view>
- <view v-if="objValue.enginClassValue=='阀管'">
- <span class="container-text">(1)自闭阀照片(自闭阀必须安装底座)</span>
- <span class="container-text">(2)灶具连接处照片</span>
- <span class="container-text">(3)打压照片</span>
- <span class="container-text">(4)回执单照片</span>
- </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>
- </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,
- addTearOldPipe,
- getEnginMaterialQualityList,
- getEnginSpecificationsList,
- getRoomProjectList,
- getRoomProjectId,
- getRoomDetailsIDCard,
- putRoomDetails
- } from '@/api/common'
- import {
- getToken
- } from '../../../utils/auth';
- import {
- showConfirm
- } from '../../../utils/common';
- import {
- login
- } from '../../../api/login';
- export default {
- components: {
- SelectPicker,
- bottomSheet
- },
- data() {
- return {
- headers: {
- Authorization: "Bearer " + getToken()
- },
- historyName: '恢复暂存',
- houseHeadName: '',
- houseHeadPhone: '',
- houseHeadIDcardNumber: '',
- administrative: '',
- type: '',
- changefj: false,
- change: false,
- open: false,
- reviewStatus: '', //是否可以点击
- objValue: '', //上一页面传过来的值 新增接口用
- openDict: false,
- selectList: [],
- dictOptions: [],
- imgArr: [],
- idCard: '',
- XQValue: {},
- XZQValue: {},
- projectValue: {
- 'dictValue': '0'
- },
- currentResidentsPhoe: [{
- phone: ''
- }],
- LevelValue: {},
- LDValue: {},
- DYValue: {},
- FJValue: {},
- specificationValue: {}, //规格
- materialValue: {}, //材质
- brandValue: {}, //品牌
- doorValue: {}, //上门类型
- SelfClosValve: {}, //自闭阀类型
- materialList: '', //材质list
- XQList: '',
- LDList: '',
- DYList: '',
- FJList: '',
- progress: 0, //上传图片进度百分比
- loading: false,
- isCheck: true, //是否按照施工图纸施工
- inputNumberValue: '',
- inputIntegerNumberValue: '',
- inputDecimalNumberValue: '',
- title: '',
- historyList: {}, //历史数据
- tempState: '',
- tempSelectList: [],
- }
- },
- created() {
- },
- 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: {
- copyAddress() {
- if (uni.getStorageSync('XZQValue') != {}) {
- this.type = 'xzq';
- this.changeSelectDict(uni.getStorageSync('XZQValue'));
- }
- if (uni.getStorageSync('XQValue') != {}) {
- this.type = 'xq';
- this.changeSelect(uni.getStorageSync('XQValue'))
- }
- if (uni.getStorageSync('LDValue') != {}) {
- this.type = 'ld';
- this.changeSelect(uni.getStorageSync('LDValue'))
- }
- if (uni.getStorageSync('DYValue') != {}) {
- this.type = 'dy';
- this.changeSelect(uni.getStorageSync('DYValue'))
- }
- if (uni.getStorageSync('FJValue') != {}) {
- this.type = 'fj';
- this.changeSelect(uni.getStorageSync('FJValue'))
- }
- },
- //判断是否选择
- isEmpty(str) {
- return (!str || 0 === str.length);
- },
- change1() {
- this.change = !this.change
- },
- // 显示历史弹窗
- handleShowSheet() {
- this.shareState = true;
- },
- // 隐藏历史弹窗
- handleHiddenShare() {
- this.shareState = false;
- },
- showPhoto(index) {
- uni.previewImage({
- current: index,
- urls: this.imgArr,
- })
- },
- remove(index) {
- uni.showModal({
- title: '提示',
- content: '是否删除该图片或视频?',
- success: (res) => {
- if (res.confirm) {
- this.imgArr.splice(index, 1)
- if (this.imgArr.length <= 0) {
- this.photo = true;
- }
- }
- }
- })
- },
- choose() {
- let _this = this;
- uni.showActionSheet({
- title: '上传',
- itemList: ['图片', '视频'],
- success: (res) => {
- if (res.tapIndex == 0) {
- this.chooseimage()
- } else {
- this.choosevideo()
- }
- }
- })
- },
- chooseimage() {
- 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) {
- _this.imgArr.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() {
- let _this = this;
- uni.chooseVideo({
- sourceType: this.objValue.enginType == `old_renovation` ? ['camera'] : ['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) {
- _this.imgArr.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 == 'door') { //上门类型
- this.openDict = true;
- getDicts("visit_type").then(response => {
- this.dictOptions = response.data;
- });
- } else if (e == 'zbf') { //自闭阀类型
- this.open = true;
- getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
- .objValue.enginClassValue, '自闭阀厂家').then(response => {
- this.selectList = response.data;
- });
- } else if (e == 'brand') { //品牌
- this.open = true;
- getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
- .objValue.enginClassValue).then(response => {
- this.selectList = response.data;
- });
- } else if (e == 'cz') { //材质
- this.open = true;
- if (this.objValue.enginClassValue == '阀管') {
- getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification,
- this
- .objValue.enginClassValue, "灶具管厂家").then(response => {
- this.selectList = response.data;
- });
- } else {
- 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)) {
- if (this.objValue.enginClassValue == '阀管') {
- this.$modal.msg('请选择灶具管厂家')
- } else {
- this.$modal.msg('请选择材质')
- }
- } else {
- this.open = true;
- this.selectList = this.materialList;
- }
- } else if (e == 'fsdj') {
- this.open = true;
- getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
- .objValue.enginClassValue).then(response => {
- this.selectList = response.data;
- });
- } else if (e == 'kj') {
- //孔距
- this.open = true;
- getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
- .objValue.enginClassValue).then(response => {
- this.selectList = response.data;
- });
- } 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;
- })
- }
- } else if (e == 'dy') { //单元
- if (this.isEmpty(this.LDValue.id)) {
- this.$modal.msg('请选择楼栋')
- } else {
- getUnitList(this.LDValue.id).then(res => {
- this.DYList = res.data
- this.selectList = this.DYList;
- this.open = true;
- })
- }
- } else if (e == 'fj') { //房间
- if (this.isEmpty(this.DYValue.id)) {
- this.$modal.msg('请选择单元')
- } else {
- getHousesList(this.DYValue.id).then(res => {
- this.FJList = res.data
- this.selectList = this.FJList;
- this.open = true;
- })
- }
- }
- },
- switchChange(e) {
- //'switch 发生 change 事件,携带值为', e.detail.value)
- this.isCheck = e.detail.value;
- },
- changeSelectDict(item, index) {
- this.openDict = false;
- if (this.type == 'door') {
- this.doorValue = item
- } else if (this.type == 'gczq') {
- this.projectValue = item
- if (!this.isEmpty(this.FJValue.id)) {
- //房间选完 判断 工程周期 工程周期切换
- this.getStatus();
- }
- } else if (this.type == 'xzq') {
- this.XZQValue = item;
- //根据行政区id获取小区数据
- this.XQValue = ''; //重置小区数据
- this.LDValue = ''; //重置楼栋数据
- this.DYValue = ''; //重置单元数据
- this.FJValue = ''; //重置房间数据
- this.currentResidentsPhoe = [];
- //this.historyName = "";
- this.houseHeadName = "";
- this.houseHeadPhone = "";
- this.houseHeadIDcardNumber = "";
- this.administrative = "";
- }
- },
- 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,
- id: item.id
- };
- this.XQValue = item;
- //根据小区id 获取楼栋数据
- this.LDValue = ''; //重置楼栋数据
- this.DYValue = ''; //重置单元数据
- this.FJValue = ''; //重置房间数据
- this.currentResidentsPhoe = [];
- //this.historyName = "";
- this.houseHeadName = "";
- this.houseHeadPhone = "";
- this.houseHeadIDcardNumber = "";
- this.administrative = item.administrative;
- } else if (this.type == 'ld') {
- this.LDValue = item;
- //根据楼栋ID 获取单元数据
- this.DYValue = ''; //重置单元数据
- this.FJValue = ''; //重置房间数据
- this.currentResidentsPhoe = [];
- //this.historyName = "";
- this.houseHeadName = "";
- this.houseHeadPhone = "";
- this.houseHeadIDcardNumber = "";
- } else if (this.type == 'dy') {
- this.DYValue = item;
- //根据单元数据 获取房间数据
- this.FJValue = ''; //重置房间数据
- this.currentResidentsPhoe = [];
- //this.historyName = "";
- this.houseHeadName = "";
- this.houseHeadPhone = "";
- this.houseHeadIDcardNumber = "";
- } else if (this.type == 'fj') {
- this.FJValue = item;
- //this.history();
- this.houseHeadName = item.houseUserName;
- this.houseHeadPhone = item.phone;
- this.houseHeadIDcardNumber = item.idCard;
- this.currentResidentsPhoe = [];
- if (!this.isEmpty(item.newPhone)) {
- let str = item.newPhone;
- var array = str.split(",");
- array.forEach((list) => {
- this.currentResidentsPhoe.push({
- phone: list
- })
- })
- }
- if (!this.isEmpty(this.projectValue.id)) {
- //房间选完 判断 工程周期
- this.getStatus();
- }
- } else if (this.type == 'zbf') {
- this.SelfClosValve = item
- } else if (this.type == 'brand') {
- this.brandValue = item
- } else {
- this.LevelValue = item;
- }
- },
- //关闭弹窗
- close(e) {
- this.open = false
- },
- //关闭弹窗
- closeDict(e) {
- this.openDict = false
- },
- getStatus() {
- let param = {
- areaId: this.XQValue.id, // 小区id
- buildingId: this.LDValue.id, // 楼宇id
- unitId: this.DYValue.id, // 单元id
- houseId: this.FJValue.id, // 房间id
- enginCycle: this.projectValue.id, // 工程周期
- 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 = '' //置空
- }
- })
- },
- serchByCard() {
- if (this.isEmpty(this.idCard)) {
- this.$modal.msg("请输入身份证号码")
- return
- }
- if (!this.$validation.idCard(this.idCard)) {
- this.$modal.msg("身份证号码格式不正确")
- return
- }
- getRoomDetailsIDCard(this.idCard).then(res => {
- if (res.code == '200' && res.data != null) {
- if (!this.isEmpty(res.data.newPhone)) {
- this.currentResidentsPhoe = [];
- let str = res.data.newPhone;
- var array = str.split(",");
- array.forEach((list) => {
- this.currentResidentsPhoe.push({
- phone: list
- })
- })
- }
- this.houseHeadName = res.data.houseUserName;
- this.houseHeadIDcardNumber = res.data.idCard;
- this.houseHeadPhone = res.data.phone;
- this.XZQValue = {
- dictValue: res.data.district,
- dictLabel: res.data.districtName
- };
- this.XQValue = {
- id: res.data.areaId,
- name: res.data.areaName
- }
- this.LDValue = {
- id: res.data.buildingId,
- name: res.data.buildingName
- }
- this.DYValue = {
- id: res.data.unitId,
- name: res.data.unitName
- }
- this.FJValue = {
- id: res.data.id,
- name: res.data.name
- }
- 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
- })
- }
- })
- },
- //提交数据
- 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
- }
- if (this.isEmpty(this.LDValue.id)) {
- this.$modal.msg("请选择楼栋")
- return
- }
- if (this.isEmpty(this.DYValue.id)) {
- this.$modal.msg("请选择单元")
- return
- }
- if (this.isEmpty(this.FJValue.id)) {
- this.$modal.msg("请选择房间")
- return
- }
- if (this.currentResidentsPhoe.length <= 0) {
- this.$modal.msg('现住人电话不能为空');
- return
- }
- try {
- this.currentResidentsPhoe.forEach((list) => {
- if (this.isEmpty(list.phone)) {
- this.$modal.msg('现住人电话不能为空')
- throw new Error('End Loop')
- }
- if (list.phone.length == 11 || list.phone.length == 8) {} else {
- this.$modal.msg('现住人电话填写错误')
- throw new Error('End Loop')
- }
- })
- } catch (e) {
- if (e.message === 'End Loop') throw e
- }
- uni.setStorageSync("XZQValue", this.XZQValue)
- uni.setStorageSync("XQValue", this.XQValue)
- uni.setStorageSync("LDValue", this.LDValue)
- uni.setStorageSync("DYValue", this.DYValue)
- this.FJValue.newPhone = this.currentResidentsPhoe.map(item => item.phone).join();
- uni.setStorageSync("FJValue", this.FJValue)
- if (this.objValue.enginClassValue == '报警器' || this.objValue.enginClassValue == '切断阀') {
- if (e == 'submit') {
- if (this.isEmpty(this.brandValue.id)) {
- this.$modal.msg("请选择厂家")
- } else {
- this.onsubmit(e);
- }
- } else {
- this.onsubmit(e); //暂存
- }
- } else if (this.objValue.enginClassValue == '打孔') {
- // if (this.isEmpty(this.LevelValue.id)) {
- // this.$modal.msg("请选择孔距") //打孔 判断孔距
- // } else {
- this.onsubmit(e);
- //}
- } else if (this.objValue.enginClassValue == '拆旧管') {
- if (e == 'submit') {
- if (this.isEmpty(this.LevelValue.id)) {
- this.$modal.msg("请选择腐蚀等级") //拆旧管 判断腐蚀等级
- } else {
- this.onsubmit(e);
- }
- } else {
- this.onsubmit(e); //暂存
- }
- } else if (this.objValue.enginClassValue == '立杠') {
- //立杠 判断 材质 规格 米数
- if (e == 'submit') {
- if (this.isEmpty(this.materialValue.id)) {
- this.$modal.msg("请选择材质")
- } else if (this.isEmpty(this.specificationValue.id)) {
- this.$modal.msg("请选择规格")
- } else if (this.isEmpty(this.inputIntegerNumberValue)) {
- this.$modal.msg("请输入米数")
- } else {
- if (this.isEmpty(this.inputDecimalNumberValue)) {
- this.inputNumberValue = this.inputIntegerNumberValue;
- } else {
- this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
- }
- this.onsubmit(e);
- }
- } else {
- this.onsubmit(e); //暂存
- }
- } else if (this.objValue.enginClassValue == '挂表') {
- //挂表 判断 品牌
- if (e == 'submit') {
- if (this.isEmpty(this.brandValue.id)) {
- this.$modal.msg("请选择品牌")
- } else {
- this.onsubmit(e);
- }
- } else {
- this.onsubmit(e);
- }
- } else if (this.objValue.enginClassValue == '表后管') {
- //表后管 判断 材质 规格 米数 (为必须有一张照片和一个视频)
- if (e == 'submit') {
- if (this.isEmpty(this.materialValue.id)) {
- this.$modal.msg("请选择材质")
- } else if (this.isEmpty(this.specificationValue.id)) {
- this.$modal.msg("请选择规格")
- } else if (this.isEmpty(this.inputIntegerNumberValue)) {
- this.$modal.msg("请输入米数")
- } else {
- const hasImage = this.imgArr.some(item => item.endsWith('.jpg') || item.endsWith(
- '.png') || item
- .endsWith('.jpeg') || item.endsWith('.JPG') || item.endsWith('.PNG') || item
- .endsWith('.JPEG'));
- const hasVideo = this.imgArr.some(item => item.endsWith('.mp4') || item.endsWith('.MP4'));
- if (hasImage && hasVideo) {
- //表后管
- this.againSubmitBHG();
- } else {
- this.$modal.msg('请至少上传一张照片和一个视频')
- }
- }
- } else {
- //暂存
- this.againSubmitBHG();
- }
- } else if (this.objValue.enginClassValue == '阀管') {
- //阀管 判断 材质 规格 米数
- if (e == 'submit') {
- if (this.isEmpty(this.doorValue.dictValue)) {
- this.$modal.msg("请选择上门类型")
- } else if (this.isEmpty(this.SelfClosValve.id)) {
- this.$modal.msg("请选择自闭阀厂家")
- } else if (this.isEmpty(this.materialValue.id)) {
- this.$modal.msg("请选择灶具管厂家")
- } else if (this.isEmpty(this.specificationValue.id)) {
- this.$modal.msg("请选择规格")
- } else {
- if (this.isEmpty(this.inputDecimalNumberValue)) {
- this.inputNumberValue = this.inputIntegerNumberValue;
- } else {
- this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
- }
- this.onsubmit(e);
- }
- } else {
- this.onsubmit(e); //暂存
- }
- }
- },
- onsubmit(e) {
- if (e == 'submit') {
- if (this.imgArr.length <= 0) {
- this.$modal.msg('请上传照片或视频')
- return
- }
- }
- // else if (this.loading == false) {
- // this.$modal.msg('照片或视频未上传完毕,无法提交!')
- // }
- //else {
- let phoneArr = [];
- this.currentResidentsPhoe.forEach((list) => {
- phoneArr.push(list.phone)
- })
- putRoomDetails(this.FJValue.id, phoneArr.join())
- .then(res => {
- if (res.code == '200') {
- this.againSubmit();
- }
- })
- //}
- },
- againSubmitBHG() {
- //表后管 特殊 提交
- if (this.isEmpty(this.inputDecimalNumberValue)) {
- this.inputNumberValue = this.inputIntegerNumberValue;
- } else {
- this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
- }
- let phoneArr = [];
- this.currentResidentsPhoe.forEach((list) => {
- phoneArr.push(list.phone)
- })
- putRoomDetails(this.FJValue.id, phoneArr
- .join())
- .then(res => {
- if (res.code == '200') {
- let param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- state: this.tempState,
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- materialQuality: this.materialValue.id, //材质
- specifications: this.specificationValue.id, //规格
- number: this.inputNumberValue //米数
- }]
- }
- }
- }
- uni.showLoading()
- addTearOldPipe(param).then(res => {
- if (res.code == '200') {
- uni.hideLoading()
- uni.showToast({
- title: res.msg,
- icon: 'none',
- //显示持续时间为 1秒
- duration: 1000
- });
- uni.navigateBack();
- }
- })
- }
- })
- },
- againSubmit() {
- //提交
- let param = '';
- if (this.objValue.enginClassValue == '拆旧管' || this.objValue.enginClassValue ==
- '打孔') { //拆旧管 打孔
- param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- state: this.tempState,
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- corrosionLevel: this.LevelValue.id //腐蚀等级 //孔距
- }]
- }
- }
- }
- //this.onsubmit(param)
- } else if (this.objValue.enginClassValue == '报警器' || this.objValue.enginClassValue ==
- '切断阀') { //报警器切断阀
- param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- state: this.tempState,
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- brand: this.brandValue.id, //品牌
- // number: this.inputNumberValue //米数
- }]
- }
- }
- }
- } else if (this.objValue.enginClassValue == '立杠') { //立杠
- param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- state: this.tempState,
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- materialQuality: this.materialValue.id, //材质
- specifications: this.specificationValue.id, //规格
- number: this.inputNumberValue //米数
- }]
- }
- }
- }
- } else if (this.objValue.enginClassValue == '挂表') { //挂表
- param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- state: this.tempState,
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- brand: this.brandValue.id, //品牌
- //number: this.inputNumberValue //米数
- }]
- }
- }
- }
- } else if (this.objValue.enginClassValue == '阀管') { //自闭阀
- if (!this.isEmpty(this.specificationValue.name)) {
- var onlyNumbers = this.specificationValue.name.replace(/[^\d.]/g, '');
- }
- param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- state: this.tempState,
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- visitType: this.doorValue.dictValue, //上门类型
- selfClosingValveType: this.SelfClosValve.id, //自闭阀类型
- materialQuality: this.materialValue.id, //材质
- specifications: this.specificationValue.id, //规格
- number: onlyNumbers //米数
- }]
- }
- }
- }
- }
- 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.LevelValue = {};
- this.imgArr = [];
- this.materialValue = {};
- this.specificationValue = {};
- this.inputIntegerNumberValue = '';
- this.inputDecimalNumberValue = '';
- this.brandValue = {};
- this.doorValue = {};
- this.SelfClosValve = {};
- 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
- }
- if (this.isEmpty(this.LDValue.id)) {
- this.$modal.msg("请选择楼栋")
- return
- }
- if (this.isEmpty(this.DYValue.id)) {
- this.$modal.msg("请选择单元")
- return
- }
- if (this.isEmpty(this.FJValue.id)) {
- this.$modal.msg("请选择房间")
- return
- }
- let param = {
- areaId: this.XQValue.id, // 小区id
- buildingId: this.LDValue.id, // 楼宇id
- unitId: this.DYValue.id, // 单元id
- houseId: this.FJValue.id, // 房间id
- enginCycle: this.projectValue.dictValue, // 工程周期
- 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.historyName = res.data.zEngineeringNodeBo.reviewStatus == '0' ?
- // '未通过' : '已通过'
- // if (res.data.zEngineeringNodeBo.reviewStatus != null && res.data.zEngineeringNodeBo.reviewStatus == '99') {
- // this.historyName = '恢复暂存';
- // } else {
- // this.historyName = '';
- // }
- this.historyList = res.data
- if (res.data.zEngineeringNodeBo != null) {
- if (res.data.zEngineeringNodeBo.reviewStatus == '1') {
- // this.showHistoryList();
- this.$modal.msg("当前步骤以审核通过请谨慎!")
- } else if (res.data.zEngineeringNodeBo.reviewStatus == '99') {
- let dataJson = res.data.zEngineeringNodeBo
- .zEngineeringInfoBoList[0];
- this.imgArr = dataJson.zEngiineeringPhotoBoList;
- if (this.objValue.enginClassValue == '拆旧管') {
- this.LevelValue.id = dataJson
- .zEngineeringMaterialBo[0]
- .corrosionLevel
- this.LevelValue.name = dataJson
- .zEngineeringMaterialBo[0]
- .corrosionLevelName
- } else if (this.objValue.enginClassValue == '立杠' || this.objValue
- .enginClassValue == '表后管') {
- this.materialValue.id = dataJson.zEngineeringMaterialBo[0].materialQuality;
- if (!this.isEmpty(this.materialValue.id) && this.materialValue.id != null) {
- //根据材质ID 获取规格数据
- getEnginSpecificationsList(this.materialValue.id).then(res => {
- this.materialList = res.data
- })
- }
- this.specificationValue.id = dataJson
- .zEngineeringMaterialBo[0]
- .specifications;
- this.materialValue.name = dataJson.zEngineeringMaterialBo[0]
- .materialQualityName;
- this.specificationValue.name = dataJson
- .zEngineeringMaterialBo[0].specificationsName;
- if (dataJson.zEngineeringMaterialBo[0].number != null) {
- this.inputIntegerNumberValue = this.getIntegerPart(
- dataJson
- .zEngineeringMaterialBo[0].number, 0);
- this.inputDecimalNumberValue = this.getIntegerPart(dataJson
- .zEngineeringMaterialBo[0].number, 1);
- }
- } else if (this.objValue.enginClassValue == '报警器' || this.objValue
- .enginClassValue == '切断阀' || this.objValue
- .enginClassValue == '挂表') {
- this.brandValue.id = dataJson.zEngineeringMaterialBo[0]
- .brand
- this.brandValue.name = dataJson.zEngineeringMaterialBo[0]
- .brandName
- } else if (this.objValue.enginClassValue == '阀管') {
- this.doorValue.dictValue = dataJson
- .zEngineeringMaterialBo[0]
- .visitType;
- this.doorValue.dictLabel = dataJson
- .zEngineeringMaterialBo[0]
- .visitType;
- this.SelfClosValve.id = dataJson
- .zEngineeringMaterialBo[0]
- .selfClosingValveType;
- this.SelfClosValve.name = dataJson
- .zEngineeringMaterialBo[0]
- .selfClosingValveTypeName;
- this.materialValue.id = dataJson
- .zEngineeringMaterialBo[0]
- .materialQuality;
- if (!this.isEmpty(this.materialValue.id) && this.materialValue.id != null) {
- //根据材质ID 获取规格数据
- getEnginSpecificationsList(this.materialValue.id).then(res => {
- this.materialList = res.data
- })
- }
- this.specificationValue.id = dataJson
- .zEngineeringMaterialBo[0]
- .specifications;
- this.materialValue.name = dataJson.zEngineeringMaterialBo[0]
- .materialQualityName;
- this.specificationValue.name = dataJson
- .zEngineeringMaterialBo[0].specificationsName;
- }
- } else {
- this.$modal.msg("暂无暂存信息")
- }
- } else {
- this.$modal.msg("暂无历史信息")
- }
- })
- } else {
- this.$modal.msg("暂无工程信息")
- }
- } else {
- this.$modal.msg(res.msg)
- }
- })
- },
- getIntegerPart(numStr, i) {
- if (numStr != null && numStr != undefined && numStr != '') {
- return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
- }
- },
- setInfoBoNumber(key, number, i) {
- let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]
- .number;
- let resAry = Ynumber.toString().split('.');
- resAry[i] = number
- this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0].number = resAry
- .join('.');
- },
- showHistoryList() {
- this.$refs.refShare.handleShowShare();
- }
- }
- }
- </script>
- <style lang="scss">
- .container-text {
- display: flex;
- align-items: center;
- justify-content: space-between;
- color: #b2b2b2;
- position: relative;
- }
- .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 10rpx;
- /*从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以提高视觉效果 */
- }
- .tj-btn {
- height: 69rpx;
- background: #3184f0;
- border-radius: 6rpx;
- font-size: 25rpx;
- font-weight: 400;
- 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;
- }
- .num-style {
- background: #e8f4f9;
- margin: 20rpx;
- padding: 10rpx;
- border-radius: 20rpx;
- border: 1px solid #d4e3f0;
- }
- .textarea {
- margin-top: 10upx;
- width: 100%;
- border: 1rpx solid red;
- min-height: 100upx;
- line-height: 20px;
- }
- page {
- background: #f2f2f2;
- }
- .flex-x {
- display: flex;
- align-items: center;
- }
- .template_title,
- .template_title1,
- .template_title_list {
- height: 90rpx;
- background: #fff;
- justify-content: space-between;
- padding: 0 30rpx;
- box-sizing: border-box;
- }
- .template_title1 {
- background: none;
- }
- .template_title_list {
- margin-bottom: 4rpx;
- }
- .template_title>view,
- .template_title1>view {
- font-size: 32rpx;
- color: #8f8f8f;
- flex-shrink: 0;
- margin-right: 20rpx;
- }
- .template_title>input {
- font-size: 28rpx;
- color: #808080;
- text-align: right;
- flex-grow: 1;
- }
- /* 添加内容 */
- .add_con>text {
- font-size: 40rpx;
- color: #f16765;
- display: block;
- margin-right: 20rpx;
- margin-left: 10rpx;
- line-height: 44rpx;
- }
- .add_con>view {
- font-size: 32rpx;
- color: #7885cb;
- }
- /* 删除内容 */
- .del {
- font-size: 32rpx;
- color: #f16765;
- margin-right: 14rpx;
- padding: 20rpx;
- }
- input {
- flex-grow: 1;
- font-size: 28rpx;
- color: #808080;
- }
- // .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>
|