indoor.vue 64 KB

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