indoor.vue 59 KB

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