indoor.vue 60 KB

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