indoor.vue 60 KB

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