indoor.vue 60 KB

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