indoor.vue 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039
  1. <template>
  2. <scroll-view>
  3. <view class="background">
  4. <view>
  5. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  6. <view style="display: flex;align-items: center;">房间信息
  7. <image :src="loadImgSrc('icon_copy.png')" @click='copyAddress()' style="display: flex;justify-content:flex-end; margin-left: 10px;width: 15px;height: 15px;">
  8. </image>
  9. </view>
  10. <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;">
  11. </image>
  12. <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;">
  13. </image>
  14. </view>
  15. </view>
  16. <view v-show="changefj">
  17. <view class="uni-list">
  18. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  19. <view>
  20. 行政区
  21. </view>
  22. <view v-if="this.isEmpty(this.XZQValue.dictValue)" style="margin-top: 10;" @click="pickerShow('xzq')">
  23. <span style="color: darkgray;">请选择行政区</span>
  24. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  25. </view>
  26. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('xzq')">
  27. <span style="color: black;">{{XZQValue.dictLabel}}</span>
  28. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="uni-list">
  33. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  34. <view>
  35. 小区
  36. </view>
  37. <view v-if="this.isEmpty(this.XQValue.id)" class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('xq')">
  38. <span style="color: darkgray;">请选择小区</span>
  39. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  40. </view>
  41. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('xq')">
  42. <span style="color: black;">{{XQValue.name}}</span>
  43. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="uni-list">
  48. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  49. <view class="uni-list-cell-left">
  50. 楼栋
  51. </view>
  52. <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('ld')">
  53. <span style="color: darkgray;">请选择楼栋</span>
  54. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  55. </view>
  56. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('ld')">
  57. <span style="color: black;">{{LDValue.name}}</span>
  58. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="uni-list" style="margin-top: 10;">
  63. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  64. <view class="uni-list-cell-left">
  65. 单元
  66. </view>
  67. <view v-if="this.isEmpty(this.DYValue.id)" class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('dy')">
  68. <span style="color: darkgray;">请选择单元</span>
  69. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  70. </view>
  71. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('dy')">
  72. <span style="color: black;">{{DYValue.name}}</span>
  73. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="uni-list">
  78. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  79. <view class="uni-list-cell-left">
  80. 房间
  81. </view>
  82. <view v-if="this.isEmpty(this.FJValue.id)" class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('fj')">
  83. <span style="color: darkgray;">请选择房间</span>
  84. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  85. </view>
  86. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('fj')">
  87. <span style="color: black;">{{FJValue.name}}</span>
  88. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  89. </view>
  90. </view>
  91. <view v-for="(user,index) in currentResidentsPhoe" :key="index" class="num-style">
  92. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  93. <spane>现住人电话</spane>
  94. <view style="display: flex; justify-content: flex-end; ">
  95. <input class="uni-input" type="tel" v-model="user.phone" maxlength="11" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input>
  96. </view>
  97. </view>
  98. <button v-if="index!=0" @click="this.currentResidentsPhoe.splice(index,1)" class="sc-btn">删除</button>
  99. </view>
  100. <button @click="this.currentResidentsPhoe.push({phone:''})" class="tj-btn">添加</button>
  101. </view>
  102. </view>
  103. </view>
  104. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name" subtitleKey="id" v-model="name"></SelectPicker>
  105. <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict" titleKey="dictLabel" subtitleKey="dictValue" v-model="name"></SelectPicker>
  106. </view>
  107. <view class="background">
  108. <input class="uni-input" type="idcard" v-model="idCard" maxlength="18" placeholder="请输入身份证号码" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input>
  109. </view>
  110. <button class="tj-btn" style="margin: 40rpx 90rpx;" @click="serchByCard"> 搜索</button>
  111. <view class="background">
  112. <view>
  113. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  114. 户主信息
  115. <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;">
  116. </image>
  117. <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;">
  118. </image>
  119. </view>
  120. </view>
  121. <view v-show="change">
  122. <view class="uni-list">
  123. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  124. <view class="uni-list-cell-left">
  125. 户主姓名
  126. </view>
  127. <view class="uni-list-cell-db" style="margin-top: 10;">
  128. <span style="color: darkgray;" v-model="houseHeadName">{{houseHeadName}}</span>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="uni-list">
  133. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  134. <view class="uni-list-cell-left">
  135. 户主电话
  136. </view>
  137. <view class="uni-list-cell-db" style="margin-top: 10;">
  138. <span style="color: darkgray;" v-model="houseHeadPhone">{{houseHeadPhone}}</span>
  139. </view>
  140. </view>
  141. </view>
  142. <view class="uni-list">
  143. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  144. <view class="uni-list-cell-left">
  145. 户主身份证号码
  146. </view>
  147. <view class="uni-list-cell-db" style="margin-top: 10;">
  148. <span style="color: darkgray;" v-model="houseHeadIDcardNumber">{{houseHeadIDcardNumber}}</span>
  149. </view>
  150. </view>
  151. </view>
  152. <view class="uni-list">
  153. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  154. <view class="uni-list-cell-left">
  155. 管理所
  156. </view>
  157. <view class="uni-list-cell-db" style="margin-top: 10;">
  158. <span style="color: darkgray;" v-model="administrative">{{administrative}}</span>
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. <!--报警器切断阀-->
  165. <view class="background">
  166. <view v-if="objValue.enginClassValue=='报警器'||objValue.enginClassValue=='切断阀'">
  167. <view class="uni-list">
  168. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
  169. {{objValue.enginClassValue}}
  170. <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>
  171. </view>
  172. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  173. <text>厂 家</text>
  174. <view v-if="this.isEmpty(this.brandValue.id)" style="margin-top: 10;" @click="pickerShow('brand')">
  175. <span style="color: darkgray;">请选择厂家</span>
  176. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  177. </view>
  178. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('brand')">
  179. <span style="color: black;">{{brandValue.name}}</span>
  180. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. <!--拆旧管-->
  186. <view v-if="objValue.enginClassValue=='拆旧管'">
  187. <view class="uni-list">
  188. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  189. 拆旧管
  190. <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>
  191. </view>
  192. <view class="container" style="margin-bottom: 20PX;border-bottom: 1px solid #f8f8f8;">
  193. <view>
  194. 腐蚀等级
  195. </view>
  196. <view v-if="this.isEmpty(this.LevelValue.id)" style="margin-top: 10;" @click="pickerShow('fsdj')">
  197. <span style="color: darkgray;">请选择腐蚀等级</span>
  198. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  199. </view>
  200. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('fsdj')">
  201. <span style="color: black;">{{LevelValue.name}}</span>
  202. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  203. </view>
  204. </view>
  205. </view>
  206. </view>
  207. <view v-if="objValue.enginClassValue=='打孔'">
  208. <view class="uni-list">
  209. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  210. 打孔
  211. <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>
  212. </view>
  213. <!-- <view class="container" style="margin-bottom: 20PX;border-bottom: 1px solid #f8f8f8;">
  214. <view>
  215. 孔距
  216. </view>
  217. <view v-if="this.isEmpty(this.LevelValue.id)" style="margin-top: 10;"
  218. @click="pickerShow('kj')">
  219. <span style="color: darkgray;">请选择孔距</span>
  220. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  221. </view>
  222. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('kj')">
  223. <span style="color: black;">{{LevelValue.name}}</span>
  224. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  225. </view>
  226. </view> -->
  227. </view>
  228. </view>
  229. <!--立杠-->
  230. <view v-else-if="objValue.enginClassValue=='立杠'">
  231. <view class="uni-list" style="margin-bottom: 20px;">
  232. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  233. 立杠
  234. <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>
  235. </view>
  236. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  237. <view>
  238. 材 质
  239. </view>
  240. <view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;" @click="pickerShow('cz')">
  241. <span style="color: darkgray;">请选择材质</span>
  242. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  243. </view>
  244. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
  245. <span style="color: black;">{{materialValue.name}}</span>
  246. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  247. </view>
  248. </view>
  249. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  250. <view>
  251. 规 格
  252. </view>
  253. <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;" @click="pickerShow('gg')">
  254. <span style="color: darkgray;">请选择规格</span>
  255. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  256. </view>
  257. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gg')">
  258. <span style="color: black;">{{specificationValue.name}}</span>
  259. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  260. </view>
  261. </view>
  262. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  263. <text>米 数</text>
  264. <!-- style="margin-left: 10px;text-align: right;" -->
  265. <view style="display: flex; justify-content: right; width: 70%;">
  266. <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  267. <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
  268. <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  269. </view>
  270. </view>
  271. </view>
  272. </view>
  273. <!--挂表-->
  274. <view v-else-if="objValue.enginClassValue=='挂表'">
  275. <view class="uni-list" style="margin-bottom: 20px;">
  276. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  277. 挂表
  278. <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>
  279. </view>
  280. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  281. <view>
  282. 品 牌
  283. </view>
  284. <view v-if="this.isEmpty(this.brandValue.id)" style="margin-top: 10;" @click="pickerShow('brand')">
  285. <span style="color: darkgray;">请选择品牌</span>
  286. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  287. </view>
  288. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('brand')">
  289. <span style="color: black;">{{brandValue.name}}</span>
  290. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  291. </view>
  292. </view>
  293. </view>
  294. </view>
  295. <!--表后管-->
  296. <view v-else-if="objValue.enginClassValue=='表后管'">
  297. <view class="uni-list" style="margin-bottom: 20px;">
  298. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  299. 表后管
  300. <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>
  301. </view>
  302. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  303. <view>
  304. 材 质
  305. </view>
  306. <view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;" @click="pickerShow('cz')">
  307. <span style="color: darkgray;">请选择材质</span>
  308. </view>
  309. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
  310. <span style="color: black;">{{materialValue.name}}</span>
  311. </view>
  312. </view>
  313. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  314. <view>
  315. 规 格
  316. </view>
  317. <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;" @click="pickerShow('gg')">
  318. <span style="color: darkgray;">请选择规格</span>
  319. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  320. </view>
  321. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gg')">
  322. <span style="color: black;">{{specificationValue.name}}</span>
  323. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  324. </view>
  325. </view>
  326. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  327. <text>米 数</text>
  328. <!-- style="margin-left: 10px;text-align: right;" -->
  329. <view style="display: flex; justify-content: right; width: 70%;">
  330. <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  331. <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
  332. <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  333. </view>
  334. </view>
  335. </view>
  336. </view>
  337. <!--阀管-->
  338. <view v-else-if="objValue.enginClassValue=='阀管'">
  339. <view class="uni-list" style="margin-bottom: 20px;">
  340. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  341. 阀管
  342. <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>
  343. </view>
  344. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  345. <view>
  346. 上门类型
  347. </view>
  348. <view v-if="this.isEmpty(this.doorValue.dictValue)" style="margin-top: 10;" @click="pickerShow('door')">
  349. <span style="color: darkgray;">请选择上门类型</span>
  350. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  351. </view>
  352. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('door')">
  353. <span style="color: black;">{{doorValue.dictLabel}}</span>
  354. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  355. </view>
  356. </view>
  357. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  358. <view>
  359. 自闭阀厂家
  360. </view>
  361. <view v-if="this.isEmpty(this.SelfClosValve.id)" style="margin-top: 10;" @click="pickerShow('zbf')">
  362. <span style="color: darkgray;">请选择自闭阀厂家</span>
  363. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  364. </view>
  365. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('zbf')">
  366. <span style="color: black;">{{SelfClosValve.name}}</span>
  367. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  368. </view>
  369. </view>
  370. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  371. <view>
  372. 灶具管厂家
  373. </view>
  374. <view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;" @click="pickerShow('cz')">
  375. <span style="color: darkgray;">请选择灶具管厂家</span>
  376. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  377. </view>
  378. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
  379. <span style="color: black;">{{materialValue.name}}</span>
  380. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  381. </view>
  382. </view>
  383. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  384. <view>
  385. 规 格
  386. </view>
  387. <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;" @click="pickerShow('gg')">
  388. <span style="color: darkgray;">请选择规格</span>
  389. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  390. </view>
  391. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gg')">
  392. <span style="color: black;">{{specificationValue.name}}</span>
  393. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  394. </view>
  395. </view>
  396. <!-- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  397. <text>米 数</text>
  398. <view style="display: flex; justify-content: right; width: 70%;">
  399. <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
  400. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  401. <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
  402. <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
  403. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  404. </view>
  405. </view> -->
  406. </view>
  407. </view>
  408. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  409. <view class="container" style="color: #b2b2b2;">*请上传照片</view>
  410. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  411. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose()" v-show="reviewStatus!='1'"></image>
  412. <view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
  413. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  414. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index)">
  415. </image>
  416. </view>
  417. <view v-else>
  418. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  419. </view>
  420. <view @click="remove(index)" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  421. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  422. </image>
  423. </view>
  424. </view>
  425. </view>
  426. <view v-if="objValue.enginType == 'old_renovation'" style="margin-top: 10px;">
  427. <view v-if="objValue.enginClassValue=='拆旧管'">
  428. <span class="container-text">(1)拆除前照片(能体现出周边环境的宏观照片)</span>
  429. <span class="container-text">(2)拆除的立杠照片(如腐蚀严重需增加腐蚀处特写照片)</span>
  430. <span class="container-text">(3)立杠腐蚀照片</span>
  431. </view>
  432. <view v-if="objValue.enginClassValue=='立杠'">
  433. <span class="container-text">改造完成后的宏观照片,热收缩套照片,立杠要求有卡子及三通、表弯头、立杠刷油均匀</span>
  434. </view>
  435. <view v-if="objValue.enginClassValue=='挂表'">
  436. <span class="container-text">安装后的业主家燃气表正面能看清相关信息的照片</span>
  437. </view>
  438. <view v-if="objValue.enginClassValue=='表后管'">
  439. <span class="container-text">表后管整体照片+表至自闭阀区间的管道走向视频,表后管需按照施工标准横平竖直且有卡子固定</span>
  440. </view>
  441. <view v-if="objValue.enginClassValue=='阀管'">
  442. <span class="container-text">(1)自闭阀照片(自闭阀必须安装底座)</span>
  443. <span class="container-text">(2)灶具连接处照片</span>
  444. <span class="container-text">(3)打压照片</span>
  445. <span class="container-text">(4)回执单照片</span>
  446. </view>
  447. </view>
  448. </view>
  449. </view>
  450. <view class=" action-btn" v-show="reviewStatus!='1'" style="display: flex;padding: 5px;">
  451. <button @click="submit('submit')" class="btn cu-btn block bg-blue lg round" style="margin-right: 10px;">确认上传</button>
  452. <button @click="submit('save')" class="btn cu-btn block bg-blue lg round" v-if="objValue.enginType == 'old_renovation'">暂存</button>
  453. </view>
  454. <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
  455. </scroll-view>
  456. </template>
  457. <script>
  458. import SelectPicker from '../../../components/selectPicker/select_picker.vue'
  459. import bottomSheet from '../../../components/bottomSheet/bottomSheet.vue'
  460. import {
  461. getDicts
  462. } from "@/api/system/dict/data";
  463. import {
  464. getAreaList,
  465. getBuildingList,
  466. getUnitList,
  467. getHousesList,
  468. addTearOldPipe,
  469. getEnginMaterialQualityList,
  470. getEnginSpecificationsList,
  471. getRoomProjectList,
  472. getRoomProjectId,
  473. getRoomDetailsIDCard,
  474. putRoomDetails
  475. } from '@/api/common'
  476. import {
  477. getToken
  478. } from '../../../utils/auth';
  479. import {
  480. showConfirm
  481. } from '../../../utils/common';
  482. import {
  483. login
  484. } from '../../../api/login';
  485. export default {
  486. components: {
  487. SelectPicker,
  488. bottomSheet
  489. },
  490. data() {
  491. return {
  492. headers: {
  493. Authorization: "Bearer " + getToken()
  494. },
  495. historyName: '恢复暂存',
  496. houseHeadName: '',
  497. houseHeadPhone: '',
  498. houseHeadIDcardNumber: '',
  499. administrative: '',
  500. type: '',
  501. changefj: false,
  502. change: false,
  503. open: false,
  504. reviewStatus: '', //是否可以点击
  505. objValue: '', //上一页面传过来的值 新增接口用
  506. openDict: false,
  507. selectList: [],
  508. dictOptions: [],
  509. imgArr: [],
  510. idCard: '',
  511. XQValue: {},
  512. XZQValue: {},
  513. projectValue: {
  514. 'dictValue': '0'
  515. },
  516. currentResidentsPhoe: [{
  517. phone: ''
  518. }],
  519. LevelValue: {},
  520. LDValue: {},
  521. DYValue: {},
  522. FJValue: {},
  523. specificationValue: {}, //规格
  524. materialValue: {}, //材质
  525. brandValue: {}, //品牌
  526. doorValue: {}, //上门类型
  527. SelfClosValve: {}, //自闭阀类型
  528. materialList: '', //材质list
  529. XQList: '',
  530. LDList: '',
  531. DYList: '',
  532. FJList: '',
  533. progress: 0, //上传图片进度百分比
  534. loading: false,
  535. isCheck: true, //是否按照施工图纸施工
  536. inputNumberValue: '',
  537. inputIntegerNumberValue: '',
  538. inputDecimalNumberValue: '',
  539. title: '',
  540. historyList: {}, //历史数据
  541. tempState: '',
  542. tempSelectList: [],
  543. }
  544. },
  545. created() {
  546. },
  547. onLoad(options) {
  548. if ('params' in options) {
  549. this.objValue = JSON.parse(decodeURIComponent(options.params));
  550. if (this.objValue.enginType == `old_renovation`) {
  551. this.title = '旧改工程-室内'
  552. } else if (this.objValue.enginType == `new_built`) {
  553. this.title = '新建工程-室内'
  554. }
  555. uni.setNavigationBarTitle({
  556. title: this.title
  557. })
  558. }
  559. },
  560. methods: {
  561. copyAddress() {
  562. if (uni.getStorageSync('XZQValue') != {}) {
  563. this.type = 'xzq';
  564. this.changeSelectDict(uni.getStorageSync('XZQValue'));
  565. }
  566. if (uni.getStorageSync('XQValue') != {}) {
  567. this.type = 'xq';
  568. this.changeSelect(uni.getStorageSync('XQValue'))
  569. }
  570. if (uni.getStorageSync('LDValue') != {}) {
  571. this.type = 'ld';
  572. this.changeSelect(uni.getStorageSync('LDValue'))
  573. }
  574. if (uni.getStorageSync('DYValue') != {}) {
  575. this.type = 'dy';
  576. this.changeSelect(uni.getStorageSync('DYValue'))
  577. }
  578. if (uni.getStorageSync('FJValue') != {}) {
  579. this.type = 'fj';
  580. this.changeSelect(uni.getStorageSync('FJValue'))
  581. }
  582. },
  583. //判断是否选择
  584. isEmpty(str) {
  585. return (!str || 0 === str.length);
  586. },
  587. change1() {
  588. this.change = !this.change
  589. },
  590. // 显示历史弹窗
  591. handleShowSheet() {
  592. this.shareState = true;
  593. },
  594. // 隐藏历史弹窗
  595. handleHiddenShare() {
  596. this.shareState = false;
  597. },
  598. showPhoto(index) {
  599. uni.previewImage({
  600. current: index,
  601. urls: this.imgArr,
  602. })
  603. },
  604. remove(index) {
  605. uni.showModal({
  606. title: '提示',
  607. content: '是否删除该图片或视频?',
  608. success: (res) => {
  609. if (res.confirm) {
  610. this.imgArr.splice(index, 1)
  611. if (this.imgArr.length <= 0) {
  612. this.photo = true;
  613. }
  614. }
  615. }
  616. })
  617. },
  618. choose() {
  619. let _this = this;
  620. uni.showActionSheet({
  621. title: '上传',
  622. itemList: ['图片', '视频'],
  623. success: (res) => {
  624. if (res.tapIndex == 0) {
  625. this.chooseimage()
  626. } else {
  627. this.choosevideo()
  628. }
  629. }
  630. })
  631. },
  632. chooseimage() {
  633. let _this = this;
  634. uni.chooseImage({
  635. sourceType: this.objValue.enginType == `old_renovation` ? ['camera'] : ['album', 'camera'],
  636. success(resp) {
  637. resp.tempFiles.forEach((item, index) => {
  638. const task = uni.uploadFile({
  639. url: _this.$HTTP + `/obs`,
  640. filePath: item.path,
  641. name: 'file',
  642. formData: {},
  643. header: _this.headers,
  644. success: res => {
  645. // 判断是否json字符串,将其转为json格式
  646. // let data = _this.$u.test.jsonString(res
  647. // .data) ? JSON.parse(res.data) : res.data;
  648. let data = JSON.parse(res.data);
  649. if (![200].includes(data.code)) {
  650. // this.uploadError(index, data);
  651. _this.$modal.msg(data.msg)
  652. } else {
  653. if (_this.progress === 100) {
  654. _this.imgArr.push(data.data.url)
  655. _this.$modal.msg('上传成功!')
  656. _this.photo = false;
  657. }
  658. }
  659. },
  660. fail: e => {
  661. _this.$modal.msg('上传失败!')
  662. //_this.uploadError(index, e);
  663. },
  664. complete: res => {
  665. uni.hideLoading();
  666. _this.uploading = false;
  667. }
  668. });
  669. task.onProgressUpdate(res => {
  670. _this.progress = res.progress;
  671. uni.showLoading({
  672. title: '上传中'
  673. })
  674. if (_this.progress != 100) {
  675. _this.loading = false
  676. } else {
  677. _this.loading = true
  678. }
  679. });
  680. })
  681. },
  682. })
  683. },
  684. choosevideo() {
  685. let _this = this;
  686. uni.chooseVideo({
  687. sourceType: this.objValue.enginType == `old_renovation` ? ['camera'] : ['album', 'camera'],
  688. maxDuration: 30,
  689. success(resp) {
  690. const task = uni.uploadFile({
  691. url: _this.$HTTP + `/obs`,
  692. filePath: resp.tempFilePath,
  693. name: 'file',
  694. formData: {},
  695. header: _this.headers,
  696. success: res => {
  697. // 判断是否json字符串,将其转为json格式
  698. let data = JSON.parse(res.data);
  699. if (![200].includes(res.statusCode)) {
  700. this.uploadError(index, data);
  701. } else {
  702. //上传成功
  703. if (_this.progress === 100) {
  704. _this.imgArr.push(data.data.url)
  705. _this.$modal.msg('上传成功!')
  706. _this.photo = false;
  707. }
  708. }
  709. },
  710. fail: e => {
  711. _this.$modal.msg('上传失败!')
  712. this.uploadError(index, e);
  713. },
  714. complete: res => {
  715. uni.hideLoading();
  716. _this.uploading = false;
  717. }
  718. });
  719. task.onProgressUpdate(res => {
  720. _this.progress = res.progress;
  721. uni.showLoading({
  722. title: '上传中'
  723. })
  724. if (_this.progress != 100) {
  725. _this.loading = false
  726. } else {
  727. _this.loading = true
  728. }
  729. });
  730. },
  731. })
  732. },
  733. pickerShow(e) {
  734. this.type = e; //赋值类型
  735. if (e == 'door') { //上门类型
  736. this.openDict = true;
  737. getDicts("visit_type").then(response => {
  738. this.dictOptions = response.data;
  739. });
  740. } else if (e == 'zbf') { //自闭阀类型
  741. this.open = true;
  742. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  743. .objValue.enginClassValue, '自闭阀厂家').then(response => {
  744. this.selectList = response.data;
  745. });
  746. } else if (e == 'brand') { //品牌
  747. this.open = true;
  748. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  749. .objValue.enginClassValue).then(response => {
  750. this.selectList = response.data;
  751. });
  752. } else if (e == 'cz') { //材质
  753. this.open = true;
  754. if (this.objValue.enginClassValue == '阀管') {
  755. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification,
  756. this
  757. .objValue.enginClassValue, "灶具管厂家").then(response => {
  758. this.selectList = response.data;
  759. });
  760. } else {
  761. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification,
  762. this
  763. .objValue.enginClassValue).then(response => {
  764. this.selectList = response.data;
  765. });
  766. }
  767. } else if (e == 'gg') { //规格
  768. if (this.isEmpty(this.materialValue.id)) {
  769. if (this.objValue.enginClassValue == '阀管') {
  770. this.$modal.msg('请选择灶具管厂家')
  771. } else {
  772. this.$modal.msg('请选择材质')
  773. }
  774. } else {
  775. this.open = true;
  776. this.selectList = this.materialList;
  777. }
  778. } else if (e == 'fsdj') {
  779. this.open = true;
  780. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  781. .objValue.enginClassValue).then(response => {
  782. this.selectList = response.data;
  783. });
  784. } else if (e == 'kj') {
  785. //孔距
  786. this.open = true;
  787. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  788. .objValue.enginClassValue).then(response => {
  789. this.selectList = response.data;
  790. });
  791. } else if (e == 'gczq') { //工程周期
  792. this.openDict = true;
  793. getDicts("engin_cycle").then(response => {
  794. this.dictOptions = response.data;
  795. });
  796. } else if (e == 'xzq') { //行政区
  797. if (this.isEmpty(this.projectValue.dictValue)) {
  798. this.$modal.msg('请选择工程周期')
  799. } else {
  800. this.openDict = true;
  801. getDicts("district").then(response => {
  802. this.dictOptions = response.data;
  803. });
  804. }
  805. //this.selectList = this.dictOptions;
  806. } else if (e == 'xq') { //小区
  807. if (this.isEmpty(this.XZQValue.dictValue)) {
  808. getAreaList('').then(res => {
  809. this.XQList = res.data;
  810. this.open = true;
  811. this.selectList = this.XQList;
  812. })
  813. } else {
  814. this.open = true;
  815. this.selectList = this.XQList;
  816. }
  817. } else if (e == 'ld') { //楼栋
  818. if (this.isEmpty(this.XQValue.id)) {
  819. this.$modal.msg('请选择小区')
  820. } else {
  821. this.open = true;
  822. this.selectList = this.LDList;
  823. }
  824. } else if (e == 'dy') { //单元
  825. if (this.isEmpty(this.LDValue.id)) {
  826. this.$modal.msg('请选择楼栋')
  827. } else {
  828. this.open = true;
  829. this.selectList = this.DYList;
  830. }
  831. } else if (e == 'fj') { //房间
  832. if (this.isEmpty(this.DYValue.id)) {
  833. this.$modal.msg('请选择单元')
  834. } else {
  835. this.open = true;
  836. this.selectList = this.FJList;
  837. }
  838. }
  839. },
  840. switchChange(e) {
  841. //'switch 发生 change 事件,携带值为', e.detail.value)
  842. this.isCheck = e.detail.value;
  843. },
  844. changeSelectDict(item, index) {
  845. this.openDict = false;
  846. if (this.type == 'door') {
  847. this.doorValue = item
  848. } else if (this.type == 'gczq') {
  849. this.projectValue = item
  850. if (!this.isEmpty(this.FJValue.id)) {
  851. //房间选完 判断 工程周期 工程周期切换
  852. this.getStatus();
  853. }
  854. } else if (this.type == 'xzq') {
  855. this.XZQValue = item;
  856. //根据行政区id获取小区数据
  857. this.XQValue = ''; //重置小区数据
  858. this.LDValue = ''; //重置楼栋数据
  859. this.DYValue = ''; //重置单元数据
  860. this.FJValue = ''; //重置房间数据
  861. this.currentResidentsPhoe = [];
  862. //this.historyName = "";
  863. this.houseHeadName = "";
  864. this.houseHeadPhone = "";
  865. this.houseHeadIDcardNumber = "";
  866. this.administrative = "";
  867. getAreaList(item.dictValue).then(res => {
  868. this.XQList = res.data;
  869. })
  870. }
  871. },
  872. changeSelect(item, index) {
  873. // this.index = index;
  874. // this.address = item.communityName;
  875. this.open = false;
  876. if (this.type == 'cz') {
  877. this.materialValue = item;
  878. this.specificationValue = ''; //重置规格
  879. //根据材质ID 获取规格数据
  880. getEnginSpecificationsList(item.id).then(res => {
  881. this.materialList = res.data
  882. })
  883. } else if (this.type == 'gg') {
  884. this.specificationValue = item;
  885. } else if (this.type == 'xq') {
  886. this.XZQValue = {
  887. dictValue: item.district,
  888. dictLabel: item.districtName
  889. };
  890. this.XQValue = item;
  891. //根据小区id 获取楼栋数据
  892. this.LDValue = ''; //重置楼栋数据
  893. this.DYValue = ''; //重置单元数据
  894. this.FJValue = ''; //重置房间数据
  895. this.currentResidentsPhoe = [];
  896. //this.historyName = "";
  897. this.houseHeadName = "";
  898. this.houseHeadPhone = "";
  899. this.houseHeadIDcardNumber = "";
  900. this.administrative = item.administrative;
  901. getBuildingList(item.id).then(res => {
  902. this.LDList = res.data
  903. })
  904. } else if (this.type == 'ld') {
  905. this.LDValue = item;
  906. //根据楼栋ID 获取单元数据
  907. this.DYValue = ''; //重置单元数据
  908. this.FJValue = ''; //重置房间数据
  909. this.currentResidentsPhoe = [];
  910. //this.historyName = "";
  911. this.houseHeadName = "";
  912. this.houseHeadPhone = "";
  913. this.houseHeadIDcardNumber = "";
  914. getUnitList(item.id).then(res => {
  915. this.DYList = res.data
  916. })
  917. } else if (this.type == 'dy') {
  918. this.DYValue = item;
  919. //根据单元数据 获取房间数据
  920. this.FJValue = ''; //重置房间数据
  921. this.currentResidentsPhoe = [];
  922. //this.historyName = "";
  923. this.houseHeadName = "";
  924. this.houseHeadPhone = "";
  925. this.houseHeadIDcardNumber = "";
  926. getHousesList(item.id).then(res => {
  927. this.FJList = res.data
  928. })
  929. } else if (this.type == 'fj') {
  930. this.FJValue = item;
  931. //this.history();
  932. this.houseHeadName = item.houseUserName;
  933. this.houseHeadPhone = item.phone;
  934. this.houseHeadIDcardNumber = item.idCard;
  935. this.currentResidentsPhoe = [];
  936. if (!this.isEmpty(item.newPhone)) {
  937. let str = item.newPhone;
  938. var array = str.split(",");
  939. array.forEach((list) => {
  940. this.currentResidentsPhoe.push({
  941. phone: list
  942. })
  943. })
  944. }
  945. if (!this.isEmpty(this.projectValue.id)) {
  946. //房间选完 判断 工程周期
  947. this.getStatus();
  948. }
  949. } else if (this.type == 'zbf') {
  950. this.SelfClosValve = item
  951. } else if (this.type == 'brand') {
  952. this.brandValue = item
  953. } else {
  954. this.LevelValue = item;
  955. }
  956. },
  957. //关闭弹窗
  958. close(e) {
  959. this.open = false
  960. },
  961. //关闭弹窗
  962. closeDict(e) {
  963. this.openDict = false
  964. },
  965. getStatus() {
  966. let param = {
  967. areaId: this.XQValue.id, // 小区id
  968. buildingId: this.LDValue.id, // 楼宇id
  969. unitId: this.DYValue.id, // 单元id
  970. houseId: this.FJValue.id, // 房间id
  971. enginCycle: this.projectValue.id, // 工程周期
  972. enginType: this.objValue.enginType, //写死 上一页面传过来的
  973. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  974. }
  975. getRoomProjectId(param).then(res => {
  976. if (res.code == '200') {
  977. if (res.data != null && res.data.zEngineeringNodeBoList != null) {
  978. res.data.zEngineeringNodeBoList.forEach((item, index) => {
  979. if (this.objValue.enginClassValue == item.type) {
  980. this.reviewStatus = item.reviewStatus;
  981. if (item.reviewStatus == '1')
  982. this.$modal.msg('当前工程已结束')
  983. }
  984. })
  985. } else {
  986. this.reviewStatus = '' //置空
  987. }
  988. } else {
  989. this.$modal.msg(res.msg)
  990. this.reviewStatus = '' //置空
  991. }
  992. })
  993. },
  994. serchByCard() {
  995. if (this.isEmpty(this.idCard)) {
  996. this.$modal.msg("请输入身份证号码")
  997. return
  998. }
  999. if (!this.$validation.idCard(this.idCard)) {
  1000. this.$modal.msg("身份证号码格式不正确")
  1001. return
  1002. }
  1003. getRoomDetailsIDCard(this.idCard).then(res => {
  1004. if (res.code == '200' && res.data != null) {
  1005. if (!this.isEmpty(res.data.newPhone)) {
  1006. this.currentResidentsPhoe = [];
  1007. let str = res.data.newPhone;
  1008. var array = str.split(",");
  1009. array.forEach((list) => {
  1010. this.currentResidentsPhoe.push({
  1011. phone: list
  1012. })
  1013. })
  1014. }
  1015. this.houseHeadName = res.data.houseUserName;
  1016. this.houseHeadIDcardNumber = res.data.idCard;
  1017. this.houseHeadPhone = res.data.phone;
  1018. this.XZQValue = {
  1019. dictValue: res.data.district,
  1020. dictLabel: res.data.districtName
  1021. };
  1022. this.XQValue = {
  1023. id: res.data.areaId,
  1024. name: res.data.areaName
  1025. }
  1026. this.LDValue = {
  1027. id: res.data.buildingId,
  1028. name: res.data.buildingName
  1029. }
  1030. this.DYValue = {
  1031. id: res.data.unitId,
  1032. name: res.data.unitName
  1033. }
  1034. this.FJValue = {
  1035. id: res.data.id,
  1036. name: res.data.name
  1037. }
  1038. getAreaList(this.XZQValue.dictValue).then(res => {
  1039. this.XQList = res.data;
  1040. })
  1041. getBuildingList(this.XQValue.id).then(res => {
  1042. this.LDList = res.data
  1043. })
  1044. getUnitList(this.LDValue.id).then(res => {
  1045. this.DYList = res.data
  1046. })
  1047. getHousesList(this.DYValue.id).then(res => {
  1048. this.FJList = res.data
  1049. })
  1050. }
  1051. })
  1052. },
  1053. //提交数据
  1054. submit(e) {
  1055. this.tempState = e == 'submit' ? '' : '99'
  1056. if (this.isEmpty(this.projectValue.dictValue)) {
  1057. this.$modal.msg("请选择工程周期")
  1058. return
  1059. }
  1060. if (this.isEmpty(this.XZQValue.dictValue)) {
  1061. this.$modal.msg("请选择行政区")
  1062. return
  1063. }
  1064. if (this.isEmpty(this.XQValue.id)) {
  1065. this.$modal.msg("请选择小区")
  1066. return
  1067. }
  1068. if (this.isEmpty(this.LDValue.id)) {
  1069. this.$modal.msg("请选择楼栋")
  1070. return
  1071. }
  1072. if (this.isEmpty(this.DYValue.id)) {
  1073. this.$modal.msg("请选择单元")
  1074. return
  1075. }
  1076. if (this.isEmpty(this.FJValue.id)) {
  1077. this.$modal.msg("请选择房间")
  1078. return
  1079. }
  1080. try {
  1081. this.currentResidentsPhoe.forEach((list) => {
  1082. if (this.isEmpty(list.phone)) {
  1083. this.$modal.msg('现住人电话不能为空')
  1084. throw new Error('End Loop')
  1085. }
  1086. if (list.phone.length == 11 || list.phone.length == 8) {} else {
  1087. this.$modal.msg('现住人电话填写错误')
  1088. throw new Error('End Loop')
  1089. }
  1090. })
  1091. } catch (e) {
  1092. if (e.message === 'End Loop') throw e
  1093. }
  1094. uni.setStorageSync("XZQValue", this.XZQValue)
  1095. uni.setStorageSync("XQValue", this.XQValue)
  1096. uni.setStorageSync("LDValue", this.LDValue)
  1097. uni.setStorageSync("DYValue", this.DYValue)
  1098. this.FJValue.newPhone = this.currentResidentsPhoe.map(item => item.phone).join();
  1099. uni.setStorageSync("FJValue", this.FJValue)
  1100. if (this.objValue.enginClassValue == '报警器' || this.objValue.enginClassValue == '切断阀') {
  1101. if (this.isEmpty(this.brandValue.id)) {
  1102. this.$modal.msg("请选择厂家")
  1103. } else {
  1104. this.onsubmit(e);
  1105. }
  1106. } else if (this.objValue.enginClassValue == '打孔') {
  1107. // if (this.isEmpty(this.LevelValue.id)) {
  1108. // this.$modal.msg("请选择孔距") //打孔 判断孔距
  1109. // } else {
  1110. this.onsubmit(e);
  1111. //}
  1112. } else if (this.objValue.enginClassValue == '拆旧管') {
  1113. if (this.currentResidentsPhoe.length == 0) {
  1114. this.$modal.msg('现住人电话不能为空')
  1115. } else if (this.isEmpty(this.LevelValue.id)) {
  1116. this.$modal.msg("请选择腐蚀等级") //拆旧管 判断腐蚀等级
  1117. } else {
  1118. this.onsubmit(e);
  1119. }
  1120. } else if (this.objValue.enginClassValue == '立杠') {
  1121. //立杠 判断 材质 规格 米数
  1122. if (this.isEmpty(this.materialValue.id)) {
  1123. this.$modal.msg("请选择材质")
  1124. } else if (this.isEmpty(this.specificationValue.id)) {
  1125. this.$modal.msg("请选择规格")
  1126. } else if (this.isEmpty(this.inputIntegerNumberValue)) {
  1127. this.$modal.msg("请输入米数")
  1128. } else {
  1129. if (this.isEmpty(this.inputDecimalNumberValue)) {
  1130. this.inputNumberValue = this.inputIntegerNumberValue;
  1131. } else {
  1132. this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
  1133. }
  1134. this.onsubmit(e);
  1135. }
  1136. } else if (this.objValue.enginClassValue == '挂表') {
  1137. //挂表 判断 品牌
  1138. if (this.isEmpty(this.brandValue.id)) {
  1139. this.$modal.msg("请选择品牌")
  1140. } else {
  1141. this.onsubmit(e);
  1142. }
  1143. } else if (this.objValue.enginClassValue == '表后管') {
  1144. //表后管 判断 材质 规格 米数 (为必须有一张照片和一个视频)
  1145. if (this.isEmpty(this.materialValue.id)) {
  1146. this.$modal.msg("请选择材质")
  1147. } else if (this.isEmpty(this.specificationValue.id)) {
  1148. this.$modal.msg("请选择规格")
  1149. } else if (this.isEmpty(this.inputIntegerNumberValue)) {
  1150. this.$modal.msg("请输入米数")
  1151. }
  1152. // else if (this.imgArr.length <= 0) {
  1153. // this.$modal.msg('请上传照片或视频')
  1154. // }
  1155. // else if (this.loading == false) {
  1156. // this.$modal.msg('照片或视频未上传完毕,无法提交!')
  1157. // }
  1158. else {
  1159. if (e == 'submit') {
  1160. const hasImage = this.imgArr.some(item => item.endsWith('.jpg') || item.endsWith(
  1161. '.png') || item
  1162. .endsWith('.jpeg') || item.endsWith('.JPG') || item.endsWith('.PNG') || item
  1163. .endsWith('.JPEG'));
  1164. const hasVideo = this.imgArr.some(item => item.endsWith('.mp4') || item.endsWith('.MP4'));
  1165. if (hasImage && hasVideo) {
  1166. //表后管
  1167. this.againSubmitBHG();
  1168. } else {
  1169. this.$modal.msg('请至少上传一张照片和一个视频')
  1170. }
  1171. } else {
  1172. //暂存
  1173. this.againSubmitBHG();
  1174. }
  1175. }
  1176. } else if (this.objValue.enginClassValue == '阀管') {
  1177. //阀管 判断 材质 规格 米数
  1178. if (this.isEmpty(this.doorValue.dictValue)) {
  1179. this.$modal.msg("请选择上门类型")
  1180. } else if (this.isEmpty(this.SelfClosValve.id)) {
  1181. this.$modal.msg("请选择自闭阀厂家")
  1182. } else if (this.isEmpty(this.materialValue.id)) {
  1183. this.$modal.msg("请选择材质")
  1184. } else if (this.isEmpty(this.specificationValue.id)) {
  1185. this.$modal.msg("请选择规格")
  1186. }
  1187. // else if (this.isEmpty(this.inputIntegerNumberValue)) {
  1188. // this.$modal.msg("请输入米数")
  1189. // }
  1190. else {
  1191. if (this.isEmpty(this.inputDecimalNumberValue)) {
  1192. this.inputNumberValue = this.inputIntegerNumberValue;
  1193. } else {
  1194. this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
  1195. }
  1196. this.onsubmit(e);
  1197. }
  1198. }
  1199. },
  1200. onsubmit(e) {
  1201. if (e == 'submit') {
  1202. if (this.imgArr.length <= 0) {
  1203. this.$modal.msg('请上传照片或视频')
  1204. return
  1205. }
  1206. }
  1207. // else if (this.loading == false) {
  1208. // this.$modal.msg('照片或视频未上传完毕,无法提交!')
  1209. // }
  1210. //else {
  1211. let phoneArr = [];
  1212. this.currentResidentsPhoe.forEach((list) => {
  1213. phoneArr.push(list.phone)
  1214. })
  1215. putRoomDetails(this.FJValue.id, phoneArr.join())
  1216. .then(res => {
  1217. if (res.code == '200') {
  1218. this.againSubmit();
  1219. }
  1220. })
  1221. //}
  1222. },
  1223. againSubmitBHG() {
  1224. //表后管 特殊 提交
  1225. if (this.isEmpty(this.inputDecimalNumberValue)) {
  1226. this.inputNumberValue = this.inputIntegerNumberValue;
  1227. } else {
  1228. this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
  1229. }
  1230. let phoneArr = [];
  1231. this.currentResidentsPhoe.forEach((list) => {
  1232. phoneArr.push(list.phone)
  1233. })
  1234. putRoomDetails(this.FJValue.id, phoneArr
  1235. .join())
  1236. .then(res => {
  1237. if (res.code == '200') {
  1238. let param = {
  1239. district: this.XZQValue.dictValue,
  1240. areaId: this.XQValue.id,
  1241. buildingId: this.LDValue.id,
  1242. unitId: this.DYValue.id,
  1243. houseId: this.FJValue.id,
  1244. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1245. enginClassification: this.objValue
  1246. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1247. enginCycle: this.projectValue.dictValue, //工程周期
  1248. zEngineeringNodeBo: {
  1249. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1250. zEngineeringInfoBo: {
  1251. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1252. state: this.tempState,
  1253. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1254. zEngineeringMaterialBo: [{
  1255. materialQuality: this.materialValue.id, //材质
  1256. specifications: this.specificationValue.id, //规格
  1257. number: this.inputNumberValue //米数
  1258. }]
  1259. }
  1260. }
  1261. }
  1262. uni.showLoading()
  1263. addTearOldPipe(param).then(res => {
  1264. if (res.code == '200') {
  1265. uni.hideLoading()
  1266. uni.showToast({
  1267. title: res.msg,
  1268. icon: 'none',
  1269. //显示持续时间为 1秒
  1270. duration: 1000
  1271. });
  1272. uni.navigateBack();
  1273. }
  1274. })
  1275. }
  1276. })
  1277. },
  1278. againSubmit() {
  1279. //提交
  1280. let param = '';
  1281. if (this.objValue.enginClassValue == '拆旧管' || this.objValue.enginClassValue ==
  1282. '打孔') { //拆旧管 打孔
  1283. param = {
  1284. district: this.XZQValue.dictValue,
  1285. areaId: this.XQValue.id,
  1286. buildingId: this.LDValue.id,
  1287. unitId: this.DYValue.id,
  1288. houseId: this.FJValue.id,
  1289. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1290. enginClassification: this.objValue
  1291. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1292. enginCycle: this.projectValue.dictValue, //工程周期
  1293. zEngineeringNodeBo: {
  1294. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1295. zEngineeringInfoBo: {
  1296. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1297. state: this.tempState,
  1298. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1299. zEngineeringMaterialBo: [{
  1300. corrosionLevel: this.LevelValue.id //腐蚀等级 //孔距
  1301. }]
  1302. }
  1303. }
  1304. }
  1305. //this.onsubmit(param)
  1306. } else if (this.objValue.enginClassValue == '报警器' || this.objValue.enginClassValue ==
  1307. '切断阀') { //报警器切断阀
  1308. param = {
  1309. district: this.XZQValue.dictValue,
  1310. areaId: this.XQValue.id,
  1311. buildingId: this.LDValue.id,
  1312. unitId: this.DYValue.id,
  1313. houseId: this.FJValue.id,
  1314. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1315. enginClassification: this.objValue
  1316. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1317. enginCycle: this.projectValue.dictValue, //工程周期
  1318. zEngineeringNodeBo: {
  1319. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1320. zEngineeringInfoBo: {
  1321. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1322. state: this.tempState,
  1323. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1324. zEngineeringMaterialBo: [{
  1325. brand: this.brandValue.id, //品牌
  1326. // number: this.inputNumberValue //米数
  1327. }]
  1328. }
  1329. }
  1330. }
  1331. } else if (this.objValue.enginClassValue == '立杠') { //立杠
  1332. param = {
  1333. district: this.XZQValue.dictValue,
  1334. areaId: this.XQValue.id,
  1335. buildingId: this.LDValue.id,
  1336. unitId: this.DYValue.id,
  1337. houseId: this.FJValue.id,
  1338. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1339. enginClassification: this.objValue
  1340. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1341. enginCycle: this.projectValue.dictValue, //工程周期
  1342. zEngineeringNodeBo: {
  1343. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1344. zEngineeringInfoBo: {
  1345. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1346. state: this.tempState,
  1347. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1348. zEngineeringMaterialBo: [{
  1349. materialQuality: this.materialValue.id, //材质
  1350. specifications: this.specificationValue.id, //规格
  1351. number: this.inputNumberValue //米数
  1352. }]
  1353. }
  1354. }
  1355. }
  1356. } else if (this.objValue.enginClassValue == '挂表') { //挂表
  1357. param = {
  1358. district: this.XZQValue.dictValue,
  1359. areaId: this.XQValue.id,
  1360. buildingId: this.LDValue.id,
  1361. unitId: this.DYValue.id,
  1362. houseId: this.FJValue.id,
  1363. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1364. enginClassification: this.objValue
  1365. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1366. enginCycle: this.projectValue.dictValue, //工程周期
  1367. zEngineeringNodeBo: {
  1368. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1369. zEngineeringInfoBo: {
  1370. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1371. state: this.tempState,
  1372. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1373. zEngineeringMaterialBo: [{
  1374. brand: this.brandValue.id, //品牌
  1375. //number: this.inputNumberValue //米数
  1376. }]
  1377. }
  1378. }
  1379. }
  1380. } else if (this.objValue.enginClassValue == '阀管') { //自闭阀
  1381. var onlyNumbers = this.specificationValue.name.replace(/[^\d.]/g, '');
  1382. param = {
  1383. district: this.XZQValue.dictValue,
  1384. areaId: this.XQValue.id,
  1385. buildingId: this.LDValue.id,
  1386. unitId: this.DYValue.id,
  1387. houseId: this.FJValue.id,
  1388. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1389. enginClassification: this.objValue
  1390. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1391. enginCycle: this.projectValue.dictValue, //工程周期
  1392. zEngineeringNodeBo: {
  1393. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1394. zEngineeringInfoBo: {
  1395. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1396. state: this.tempState,
  1397. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1398. zEngineeringMaterialBo: [{
  1399. visitType: this.doorValue.dictValue, //上门类型
  1400. selfClosingValveType: this.SelfClosValve.id, //自闭阀类型
  1401. materialQuality: this.materialValue.id, //材质
  1402. specifications: this.specificationValue.id, //规格
  1403. number: onlyNumbers //米数
  1404. }]
  1405. }
  1406. }
  1407. }
  1408. }
  1409. uni.showLoading()
  1410. addTearOldPipe(param).then(res => {
  1411. if (res.code == '200') {
  1412. uni.hideLoading()
  1413. uni.showToast({
  1414. title: res.msg,
  1415. icon: 'none',
  1416. //显示持续时间为 3秒
  1417. duration: 2000
  1418. });
  1419. setTimeout(function() {
  1420. uni.navigateBack();
  1421. }, 1000)
  1422. }
  1423. })
  1424. },
  1425. history() {
  1426. this.LevelValue = {};
  1427. this.imgArr = [];
  1428. this.materialValue = {};
  1429. this.specificationValue = {};
  1430. this.inputIntegerNumberValue = '';
  1431. this.inputDecimalNumberValue = '';
  1432. this.brandValue = {};
  1433. this.doorValue = {};
  1434. this.SelfClosValve = {};
  1435. if (this.isEmpty(this.projectValue.dictValue)) {
  1436. this.$modal.msg("请选择工程周期")
  1437. return
  1438. }
  1439. if (this.isEmpty(this.XZQValue.dictValue)) {
  1440. this.$modal.msg("请选择行政区")
  1441. return
  1442. }
  1443. if (this.isEmpty(this.XQValue.id)) {
  1444. this.$modal.msg("请选择小区")
  1445. return
  1446. }
  1447. if (this.isEmpty(this.LDValue.id)) {
  1448. this.$modal.msg("请选择楼栋")
  1449. return
  1450. }
  1451. if (this.isEmpty(this.DYValue.id)) {
  1452. this.$modal.msg("请选择单元")
  1453. return
  1454. }
  1455. if (this.isEmpty(this.FJValue.id)) {
  1456. this.$modal.msg("请选择房间")
  1457. return
  1458. }
  1459. let param = {
  1460. areaId: this.XQValue.id, // 小区id
  1461. buildingId: this.LDValue.id, // 楼宇id
  1462. unitId: this.DYValue.id, // 单元id
  1463. houseId: this.FJValue.id, // 房间id
  1464. enginCycle: this.projectValue.dictValue, // 工程周期
  1465. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1466. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1467. }
  1468. getRoomProjectId(param).then(res => {
  1469. if (res.code == '200') {
  1470. if (res.data != null) {
  1471. getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(res => {
  1472. // this.historyName = res.data.zEngineeringNodeBo.reviewStatus == '0' ?
  1473. // '未通过' : '已通过'
  1474. // if (res.data.zEngineeringNodeBo.reviewStatus != null && res.data.zEngineeringNodeBo.reviewStatus == '99') {
  1475. // this.historyName = '恢复暂存';
  1476. // } else {
  1477. // this.historyName = '';
  1478. // }
  1479. this.historyList = res.data
  1480. if (res.data.zEngineeringNodeBo != null) {
  1481. if (res.data.zEngineeringNodeBo.reviewStatus == '1') {
  1482. // this.showHistoryList();
  1483. this.$modal.msg("当前步骤以审核通过请谨慎!")
  1484. } else if (res.data.zEngineeringNodeBo.reviewStatus == '99') {
  1485. let dataJson = res.data.zEngineeringNodeBo
  1486. .zEngineeringInfoBoList[0];
  1487. this.imgArr = dataJson.zEngiineeringPhotoBoList;
  1488. if (this.objValue.enginClassValue == '拆旧管') {
  1489. this.LevelValue.id = dataJson
  1490. .zEngineeringMaterialBo[0]
  1491. .corrosionLevel
  1492. this.LevelValue.name = dataJson
  1493. .zEngineeringMaterialBo[0]
  1494. .corrosionLevelName
  1495. } else if (this.objValue.enginClassValue == '立杠' || this.objValue
  1496. .enginClassValue == '表后管') {
  1497. this.materialValue.id = dataJson.zEngineeringMaterialBo[0].materialQuality;
  1498. this.specificationValue.id = dataJson
  1499. .zEngineeringMaterialBo[0]
  1500. .specifications;
  1501. this.materialValue.name = dataJson.zEngineeringMaterialBo[0]
  1502. .materialQualityName;
  1503. this.specificationValue.name = dataJson
  1504. .zEngineeringMaterialBo[0].specificationsName;
  1505. this.inputIntegerNumberValue = this.getIntegerPart(
  1506. dataJson
  1507. .zEngineeringMaterialBo[0].number, 0);
  1508. this.inputDecimalNumberValue = this.getIntegerPart(dataJson
  1509. .zEngineeringMaterialBo[0].number, 1);
  1510. } else if (this.objValue.enginClassValue == '报警器' || this.objValue
  1511. .enginClassValue == '切断阀' || this.objValue
  1512. .enginClassValue == '挂表') {
  1513. this.brandValue.id = dataJson.zEngineeringMaterialBo[0]
  1514. .brand
  1515. this.brandValue.name = dataJson.zEngineeringMaterialBo[0]
  1516. .brandName
  1517. } else if (this.objValue.enginClassValue == '阀管') {
  1518. this.doorValue.dictValue = dataJson
  1519. .zEngineeringMaterialBo[0]
  1520. .visitType;
  1521. this.doorValue.dictLabel = dataJson
  1522. .zEngineeringMaterialBo[0]
  1523. .visitType;
  1524. this.SelfClosValve.id = dataJson
  1525. .zEngineeringMaterialBo[0]
  1526. .selfClosingValveType;
  1527. this.SelfClosValve.name = dataJson
  1528. .zEngineeringMaterialBo[0]
  1529. .selfClosingValveTypeName;
  1530. this.materialValue.id = dataJson
  1531. .zEngineeringMaterialBo[0]
  1532. .materialQuality;
  1533. this.specificationValue.id = dataJson
  1534. .zEngineeringMaterialBo[0]
  1535. .specifications;
  1536. this.materialValue.name = dataJson.zEngineeringMaterialBo[0]
  1537. .materialQualityName;
  1538. this.specificationValue.name = dataJson
  1539. .zEngineeringMaterialBo[0].specificationsName;
  1540. }
  1541. } else {
  1542. this.$modal.msg("暂无暂存信息")
  1543. }
  1544. } else {
  1545. this.$modal.msg("暂无历史信息")
  1546. }
  1547. })
  1548. } else {
  1549. this.$modal.msg("暂无工程信息")
  1550. }
  1551. } else {
  1552. this.$modal.msg(res.msg)
  1553. }
  1554. })
  1555. },
  1556. getIntegerPart(numStr, i) {
  1557. return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
  1558. },
  1559. setInfoBoNumber(key, number, i) {
  1560. let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]
  1561. .number;
  1562. let resAry = Ynumber.toString().split('.');
  1563. resAry[i] = number
  1564. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0].number = resAry
  1565. .join('.');
  1566. },
  1567. showHistoryList() {
  1568. this.$refs.refShare.handleShowShare();
  1569. }
  1570. }
  1571. }
  1572. </script>
  1573. <style lang="scss">
  1574. .container-text {
  1575. display: flex;
  1576. align-items: center;
  1577. justify-content: space-between;
  1578. color: #b2b2b2;
  1579. position: relative;
  1580. }
  1581. .container {
  1582. display: flex;
  1583. align-items: center;
  1584. justify-content: space-between;
  1585. padding: 10px;
  1586. position: relative;
  1587. }
  1588. .uni-list {
  1589. border: 1xp solid #eee;
  1590. }
  1591. .to-right-icon {
  1592. width: 15px;
  1593. height: 15px;
  1594. position: absolute;
  1595. top: 50%;
  1596. transform: translateY(-50%);
  1597. }
  1598. .text {
  1599. font-size: 16px;
  1600. color: #333;
  1601. }
  1602. .background {
  1603. // border: 15px solid hsla(0, 0%, 100%, .5);
  1604. background: white;
  1605. background-clip: padding-box;
  1606. padding: 20rpx;
  1607. border-radius: 20rpx;
  1608. margin: 20rpx 10rpx;
  1609. /*从padding开始往外面裁剪背景*/
  1610. }
  1611. .btn {
  1612. width: 715rpx;
  1613. height: 69rpx;
  1614. background: #79A4F0;
  1615. border-radius: 6rpx;
  1616. font-size: 25rpx;
  1617. font-family: Microsoft YaHei;
  1618. font-weight: 400;
  1619. color: #FFFFFF;
  1620. line-height: 69rpx;
  1621. margin-top: 40rpx;
  1622. margin-bottom: 100rpx;
  1623. }
  1624. .number {
  1625. display: flex;
  1626. /* 水平居中显示子元素 */
  1627. align-items: flex-start;
  1628. /* 垂直居中显示子元素 */
  1629. justify-content: space-between;
  1630. /* 左右间距等于间距大小 */
  1631. padding: 10px;
  1632. /* 设置padding以提高视觉效果 */
  1633. }
  1634. .tj-btn {
  1635. height: 69rpx;
  1636. background: #3184f0;
  1637. border-radius: 6rpx;
  1638. font-size: 25rpx;
  1639. font-weight: 400;
  1640. color: #FFFFFF;
  1641. line-height: 69rpx;
  1642. margin: 40rpx 70rpx;
  1643. }
  1644. .sc-btn {
  1645. height: 69rpx;
  1646. background: #f0686b;
  1647. border-radius: 6rpx;
  1648. font-size: 25rpx;
  1649. font-weight: 400;
  1650. color: #FFFFFF;
  1651. line-height: 69rpx;
  1652. margin: 40rpx;
  1653. }
  1654. .num-style {
  1655. background: #e8f4f9;
  1656. margin: 20rpx;
  1657. padding: 10rpx;
  1658. border-radius: 20rpx;
  1659. border: 1px solid #d4e3f0;
  1660. }
  1661. .textarea {
  1662. margin-top: 10upx;
  1663. width: 100%;
  1664. border: 1rpx solid red;
  1665. min-height: 100upx;
  1666. line-height: 20px;
  1667. }
  1668. page {
  1669. background: #f2f2f2;
  1670. }
  1671. .flex-x {
  1672. display: flex;
  1673. align-items: center;
  1674. }
  1675. .template_title,
  1676. .template_title1,
  1677. .template_title_list {
  1678. height: 90rpx;
  1679. background: #fff;
  1680. justify-content: space-between;
  1681. padding: 0 30rpx;
  1682. box-sizing: border-box;
  1683. }
  1684. .template_title1 {
  1685. background: none;
  1686. }
  1687. .template_title_list {
  1688. margin-bottom: 4rpx;
  1689. }
  1690. .template_title>view,
  1691. .template_title1>view {
  1692. font-size: 32rpx;
  1693. color: #8f8f8f;
  1694. flex-shrink: 0;
  1695. margin-right: 20rpx;
  1696. }
  1697. .template_title>input {
  1698. font-size: 28rpx;
  1699. color: #808080;
  1700. text-align: right;
  1701. flex-grow: 1;
  1702. }
  1703. /* 添加内容 */
  1704. .add_con>text {
  1705. font-size: 40rpx;
  1706. color: #f16765;
  1707. display: block;
  1708. margin-right: 20rpx;
  1709. margin-left: 10rpx;
  1710. line-height: 44rpx;
  1711. }
  1712. .add_con>view {
  1713. font-size: 32rpx;
  1714. color: #7885cb;
  1715. }
  1716. /* 删除内容 */
  1717. .del {
  1718. font-size: 32rpx;
  1719. color: #f16765;
  1720. margin-right: 14rpx;
  1721. padding: 20rpx;
  1722. }
  1723. input {
  1724. flex-grow: 1;
  1725. font-size: 28rpx;
  1726. color: #808080;
  1727. }
  1728. // .container {
  1729. // display: flex;
  1730. // align-items: center;
  1731. // justify-content: space-between;
  1732. // padding: 10px;
  1733. // position: relative;
  1734. // }
  1735. // .uni-list {
  1736. // border: 1xp solid #eee;
  1737. // }
  1738. // .to-right-icon {
  1739. // width: 15px;
  1740. // height: 15px;
  1741. // position: absolute;
  1742. // top: 50%;
  1743. // transform: translateY(-50%);
  1744. // }
  1745. // .text {
  1746. // font-size: 16px;
  1747. // color: #333;
  1748. // }
  1749. // .background {
  1750. // // border: 15px solid hsla(0, 0%, 100%, .5);
  1751. // background: white;
  1752. // background-clip: padding-box;
  1753. // padding: 20rpx;
  1754. // border-radius: 20rpx;
  1755. // margin: 20rpx;
  1756. // /*从padding开始往外面裁剪背景*/
  1757. // }
  1758. // .btn {
  1759. // width: 715rpx;
  1760. // height: 69rpx;
  1761. // background: #79A4F0;
  1762. // border-radius: 6rpx;
  1763. // font-size: 25rpx;
  1764. // font-family: Microsoft YaHei;
  1765. // font-weight: 400;
  1766. // color: #FFFFFF;
  1767. // line-height: 69rpx;
  1768. // margin-top: 40rpx;
  1769. // margin-bottom: 100rpx;
  1770. // }
  1771. // .number {
  1772. // display: flex;
  1773. // /* 水平居中显示子元素 */
  1774. // align-items: flex-start;
  1775. // /* 垂直居中显示子元素 */
  1776. // justify-content: space-between;
  1777. // /* 左右间距等于间距大小 */
  1778. // padding: 10px;
  1779. // /* 设置padding以提高视觉效果 */
  1780. // }
  1781. // .textarea {
  1782. // margin-top: 10upx;
  1783. // width: 100%;
  1784. // border: 1rpx solid red;
  1785. // min-height: 100upx;
  1786. // line-height: 20px;
  1787. // }
  1788. </style>