indoor.vue 60 KB

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