indoor.vue 59 KB

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