indoor.vue 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438
  1. <template>
  2. <scroll-view>
  3. <view class="background">
  4. <!-- <view class="uni-list">
  5. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  6. <view>
  7. 工程周期
  8. </view>
  9. <view v-if="this.isEmpty(this.projectValue.dictValue)" @click="pickerShow('gczq')">
  10. <view>
  11. <span style="color: darkgray;">请选择工程周期
  12. </span>
  13. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  14. </view>
  15. </view>
  16. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gczq')">
  17. <span style="color: black;">{{projectValue.dictLabel}}
  18. </span>
  19. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  20. </view>
  21. </view>
  22. </view> -->
  23. <view class="uni-list">
  24. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  25. <view>
  26. 行政区
  27. </view>
  28. <view v-if="this.isEmpty(this.XZQValue.dictValue)" style="margin-top: 10;"
  29. @click="pickerShow('xzq')">
  30. <span style="color: darkgray;">请选择行政区</span>
  31. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  32. </view>
  33. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('xzq')">
  34. <span style="color: black;">{{XZQValue.dictLabel}}</span>
  35. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="uni-list">
  40. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  41. <view>
  42. 小区
  43. </view>
  44. <view v-if="this.isEmpty(this.XQValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
  45. @click="pickerShow('xq')">
  46. <span style="color: darkgray;">请选择小区</span>
  47. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  48. </view>
  49. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('xq')">
  50. <span style="color: black;">{{XQValue.name}}</span>
  51. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="uni-list">
  56. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  57. <view class="uni-list-cell-left">
  58. 楼栋
  59. </view>
  60. <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
  61. @click="pickerShow('ld')">
  62. <span style="color: darkgray;">请选择楼栋</span>
  63. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  64. </view>
  65. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('ld')">
  66. <span style="color: black;">{{LDValue.name}}</span>
  67. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="uni-list" style="margin-top: 10;">
  72. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  73. <view class="uni-list-cell-left">
  74. 单元
  75. </view>
  76. <view v-if="this.isEmpty(this.DYValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
  77. @click="pickerShow('dy')">
  78. <span style="color: darkgray;">请选择单元</span>
  79. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  80. </view>
  81. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('dy')">
  82. <span style="color: black;">{{DYValue.name}}</span>
  83. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  84. </view>
  85. </view>
  86. </view>
  87. <view class="uni-list">
  88. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  89. <view class="uni-list-cell-left">
  90. 房间
  91. </view>
  92. <view v-if="this.isEmpty(this.FJValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
  93. @click="pickerShow('fj')">
  94. <span style="color: darkgray;">请选择房间</span>
  95. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  96. </view>
  97. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('fj')">
  98. <span style="color: black;">{{FJValue.name}}</span>
  99. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- <view class="container" style="">
  104. <view class="title">是否按照施工图纸施工</view>
  105. <span style="color: black;">{{this.form}}</span>
  106. <switch style="transform: scale(0.6,0.6);" @change="switchChange" checked="isChick" />
  107. </view> -->
  108. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  109. subtitleKey="id" v-model="name"></SelectPicker>
  110. <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
  111. titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  112. </view>
  113. <!--报警器切断阀-->
  114. <view class="background">
  115. <view v-if="objValue.enginClassValue=='报警器切断阀'">
  116. <view class="uni-list">
  117. <view
  118. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
  119. 报警器切断阀
  120. <span
  121. style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
  122. @click="history">历史</span>
  123. </view>
  124. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  125. <text>厂 家</text>
  126. <view v-if="this.isEmpty(this.brandValue.dictValue)" style="margin-top: 10;"
  127. @click="pickerShow('brand')">
  128. <span style="color: darkgray;">请选择厂家</span>
  129. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  130. </view>
  131. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('brand')">
  132. <span style="color: black;">{{brandValue.dictLabel}}</span>
  133. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. <!--拆旧管-->
  139. <view v-if="objValue.enginClassValue=='拆旧管'">
  140. <view class="uni-list">
  141. <view
  142. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  143. 拆旧管
  144. <span
  145. style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
  146. @click="history">历史</span>
  147. </view>
  148. <view class="container" style="margin-bottom: 20PX;border-bottom: 1px solid #f8f8f8;">
  149. <view>
  150. 腐蚀等级
  151. </view>
  152. <view v-if="this.isEmpty(this.LevelValue.dictValue)" style="margin-top: 10;"
  153. @click="pickerShow('fsdj')">
  154. <span style="color: darkgray;">请选择腐蚀等级</span>
  155. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  156. </view>
  157. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('fsdj')">
  158. <span style="color: black;">{{LevelValue.dictLabel}}</span>
  159. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. <view v-if="objValue.enginClassValue=='打孔'">
  165. <view class="uni-list">
  166. <view
  167. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  168. 打孔
  169. <span
  170. style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
  171. @click="history">历史</span>
  172. </view>
  173. <view class="container" style="margin-bottom: 20PX;border-bottom: 1px solid #f8f8f8;">
  174. <view>
  175. 孔距
  176. </view>
  177. <view v-if="this.isEmpty(this.LevelValue.dictValue)" style="margin-top: 10;"
  178. @click="pickerShow('kj')">
  179. <span style="color: darkgray;">请选择孔距</span>
  180. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  181. </view>
  182. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('kj')">
  183. <span style="color: black;">{{LevelValue.dictLabel}}</span>
  184. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. <!--立杠-->
  190. <view v-else-if="objValue.enginClassValue=='立杠'">
  191. <view class="uni-list" style="margin-bottom: 20px;">
  192. <view
  193. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  194. 立杠
  195. <span
  196. style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
  197. @click="history">历史</span>
  198. </view>
  199. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  200. <view>
  201. 材 质
  202. </view>
  203. <view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;"
  204. @click="pickerShow('cz')">
  205. <span style="color: darkgray;">请选择材质</span>
  206. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  207. </view>
  208. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
  209. <span style="color: black;">{{materialValue.name}}</span>
  210. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  211. </view>
  212. </view>
  213. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  214. <view>
  215. 规 格
  216. </view>
  217. <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;"
  218. @click="pickerShow('gg')">
  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('gg')">
  223. <span style="color: black;">{{specificationValue.name}}</span>
  224. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  225. </view>
  226. </view>
  227. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  228. <text>米 数</text>
  229. <!-- style="margin-left: 10px;text-align: right;" -->
  230. <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
  231. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  232. <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
  233. <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
  234. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  235. </view>
  236. </view>
  237. </view>
  238. <!--挂表-->
  239. <view v-else-if="objValue.enginClassValue=='挂表'">
  240. <view class="uni-list" style="margin-bottom: 20px;">
  241. <view
  242. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  243. 挂表
  244. <span
  245. style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
  246. @click="history">历史</span>
  247. </view>
  248. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  249. <view>
  250. 品 牌
  251. </view>
  252. <view v-if="this.isEmpty(this.brandValue.dictValue)" style="margin-top: 10;"
  253. @click="pickerShow('brand')">
  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('brand')">
  258. <span style="color: black;">{{brandValue.dictLabel}}</span>
  259. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  260. </view>
  261. </view>
  262. </view>
  263. </view>
  264. <!--表后管-->
  265. <view v-else-if="objValue.enginClassValue=='表后管'">
  266. <view class="uni-list" style="margin-bottom: 20px;">
  267. <view
  268. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  269. 表后管
  270. <span
  271. style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
  272. @click="history">历史</span>
  273. </view>
  274. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  275. <view>
  276. 材 质
  277. </view>
  278. <view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;"
  279. @click="pickerShow('cz')">
  280. <span style="color: darkgray;">请选择材质</span>
  281. </view>
  282. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
  283. <span style="color: black;">{{materialValue.name}}</span>
  284. </view>
  285. </view>
  286. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  287. <view>
  288. 规 格
  289. </view>
  290. <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;"
  291. @click="pickerShow('gg')">
  292. <span style="color: darkgray;">请选择规格</span>
  293. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  294. </view>
  295. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gg')">
  296. <span style="color: black;">{{specificationValue.name}}</span>
  297. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  298. </view>
  299. </view>
  300. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  301. <text>米 数</text>
  302. <!-- style="margin-left: 10px;text-align: right;" -->
  303. <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
  304. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  305. <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
  306. <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
  307. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  308. </view>
  309. </view>
  310. </view>
  311. <!--阀管-->
  312. <view v-else-if="objValue.enginClassValue=='阀管'">
  313. <view class="uni-list" style="margin-bottom: 20px;">
  314. <view
  315. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  316. 阀管
  317. <span
  318. style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
  319. @click="history">历史</span>
  320. </view>
  321. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  322. <view>
  323. 上门类型
  324. </view>
  325. <view v-if="this.isEmpty(this.doorValue.dictValue)" style="margin-top: 10;"
  326. @click="pickerShow('door')">
  327. <span style="color: darkgray;">请选择上门类型</span>
  328. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  329. </view>
  330. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('door')">
  331. <span style="color: black;">{{doorValue.dictLabel}}</span>
  332. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  333. </view>
  334. </view>
  335. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  336. <view>
  337. 自闭阀类型
  338. </view>
  339. <view v-if="this.isEmpty(this.SelfClosValve.dictValue)" style="margin-top: 10;"
  340. @click="pickerShow('zbf')">
  341. <span style="color: darkgray;">请选择自闭阀类型</span>
  342. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  343. </view>
  344. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('zbf')">
  345. <span style="color: black;">{{SelfClosValve.dictLabel}}</span>
  346. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  347. </view>
  348. </view>
  349. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  350. <view>
  351. 材 质
  352. </view>
  353. <view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;"
  354. @click="pickerShow('cz')">
  355. <span style="color: darkgray;">请选择材质</span>
  356. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  357. </view>
  358. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
  359. <span style="color: black;">{{materialValue.name}}</span>
  360. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  361. </view>
  362. </view>
  363. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  364. <view>
  365. 规 格
  366. </view>
  367. <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;"
  368. @click="pickerShow('gg')">
  369. <span style="color: darkgray;">请选择规格</span>
  370. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  371. </view>
  372. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gg')">
  373. <span style="color: black;">{{specificationValue.name}}</span>
  374. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  375. </view>
  376. </view>
  377. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  378. <text>米 数</text>
  379. <!-- style="margin-left: 10px;text-align: right;" -->
  380. <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
  381. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  382. <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
  383. <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
  384. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  385. </view>
  386. </view>
  387. </view>
  388. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  389. <view class="container" style="color: #b2b2b2;">*请上传照片</view>
  390. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  391. <image :src="loadImgSrc('updateimg.png')" mode=""
  392. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose()"
  393. v-show="reviewStatus!='1'"></image>
  394. <view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
  395. <view
  396. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  397. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  398. @click="showPhoto(index)">
  399. </image>
  400. </view>
  401. <view v-else>
  402. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  403. </view>
  404. <view @click="remove(index)"
  405. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  406. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  407. </image>
  408. </view>
  409. </view>
  410. </view>
  411. </view>
  412. </view>
  413. <view class="action-btn" v-show="reviewStatus!='1'">
  414. <button @click="submit" class="btn cu-btn block bg-blue lg round">确认上传</button>
  415. </view>
  416. <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
  417. </scroll-view>
  418. </template>
  419. <script>
  420. import SelectPicker from '../../../components/selectPicker/select_picker.vue'
  421. import bottomSheet from '../../../components/bottomSheet/bottomSheet.vue'
  422. import {
  423. getDicts
  424. } from "@/api/system/dict/data";
  425. import {
  426. getAreaList,
  427. getBuildingList,
  428. getUnitList,
  429. getHousesList,
  430. addTearOldPipe,
  431. getEnginMaterialQualityList,
  432. getEnginSpecificationsList,
  433. getRoomProjectList,
  434. getRoomProjectId,
  435. } from '@/api/common'
  436. import {
  437. getToken
  438. } from '../../../utils/auth';
  439. import {
  440. showConfirm
  441. } from '../../../utils/common';
  442. export default {
  443. components: {
  444. SelectPicker,
  445. bottomSheet
  446. },
  447. data() {
  448. return {
  449. headers: {
  450. Authorization: "Bearer " + getToken()
  451. },
  452. type: '',
  453. open: false,
  454. reviewStatus: '', //是否可以点击
  455. objValue: '', //上一页面传过来的值 新增接口用
  456. openDict: false,
  457. selectList: [],
  458. dictOptions: [],
  459. imgArr: [],
  460. XQValue: {},
  461. XZQValue: {},
  462. projectValue: {
  463. 'dictValue': '0'
  464. },
  465. LevelValue: {},
  466. LDValue: {},
  467. DYValue: {},
  468. FJValue: {},
  469. FSValue: {},
  470. specificationValue: {}, //规格
  471. materialValue: {}, //材质
  472. brandValue: {}, //品牌
  473. doorValue: {}, //上门类型
  474. SelfClosValve: {}, //自闭阀类型
  475. materialList: '', //材质list
  476. XQList: '',
  477. LDList: '',
  478. DYList: '',
  479. FJList: '',
  480. progress: 0, //上传图片进度百分比
  481. loading: false,
  482. isCheck: true, //是否按照施工图纸施工
  483. inputNumberValue: '',
  484. inputIntegerNumberValue: '',
  485. inputDecimalNumberValue: '',
  486. title: '',
  487. historyList: {} //历史数据
  488. }
  489. },
  490. created() {
  491. },
  492. onLoad(options) {
  493. if ('params' in options) {
  494. this.objValue = JSON.parse(decodeURIComponent(options.params));
  495. if (this.objValue.enginType == `old_renovation`) {
  496. this.title = '旧改工程-室内'
  497. } else if (this.objValue.enginType == `new_built`) {
  498. this.title = '新建工程-室内'
  499. }
  500. uni.setNavigationBarTitle({
  501. title: this.title
  502. })
  503. }
  504. },
  505. methods: {
  506. //判断是否选择
  507. isEmpty(str) {
  508. return (!str || 0 === str.length);
  509. },
  510. // 显示历史弹窗
  511. handleShowSheet() {
  512. this.shareState = true;
  513. },
  514. // 隐藏历史弹窗
  515. handleHiddenShare() {
  516. this.shareState = false;
  517. },
  518. showPhoto(index) {
  519. uni.previewImage({
  520. current: index,
  521. urls: this.imgArr,
  522. })
  523. },
  524. remove(index) {
  525. uni.showModal({
  526. title: '提示',
  527. content: '是否删除该图片或视频?',
  528. success: (res) => {
  529. if (res.confirm) {
  530. this.imgArr.splice(index, 1)
  531. console.log('this.imgarr', this.imgArr)
  532. if (this.imgArr.length <= 0) {
  533. this.photo = true;
  534. }
  535. }
  536. }
  537. })
  538. },
  539. choose() {
  540. let _this = this;
  541. uni.showActionSheet({
  542. title: '上传',
  543. itemList: ['图片', '视频'],
  544. success: (res) => {
  545. console.log(res)
  546. if (res.tapIndex == 0) {
  547. this.chooseimage()
  548. } else {
  549. this.choosevideo()
  550. }
  551. }
  552. })
  553. },
  554. chooseimage() {
  555. let _this = this;
  556. console.log('图片', _this.headers)
  557. uni.chooseImage({
  558. sizeType: ['album', 'camera'],
  559. success(resp) {
  560. resp.tempFiles.forEach((item, index) => {
  561. const task = uni.uploadFile({
  562. url: _this.$HTTP + `/obs`,
  563. filePath: item.path,
  564. name: 'file',
  565. formData: {},
  566. header: _this.headers,
  567. success: res => {
  568. // 判断是否json字符串,将其转为json格式
  569. console.log("结果", res)
  570. // let data = _this.$u.test.jsonString(res
  571. // .data) ? JSON.parse(res.data) : res.data;
  572. let data = JSON.parse(res.data);
  573. if (![200].includes(data.code)) {
  574. // this.uploadError(index, data);
  575. _this.$modal.msg(data.msg)
  576. } else {
  577. if (_this.progress === 100) {
  578. console.log('_this.progress', _this.progress)
  579. //console.log('data----', data)data
  580. console.log('res--', res)
  581. _this.imgArr.push(data.data.url)
  582. console.log('imgArr', _this.imgArr)
  583. _this.$modal.msg('上传成功!')
  584. _this.photo = false;
  585. }
  586. }
  587. },
  588. fail: e => {
  589. console.log(e)
  590. _this.$modal.msg('上传失败!')
  591. //_this.uploadError(index, e);
  592. },
  593. complete: res => {
  594. uni.hideLoading();
  595. _this.uploading = false;
  596. }
  597. });
  598. task.onProgressUpdate(res => {
  599. _this.progress = res.progress;
  600. console.log('onProgressUpdate', res)
  601. console.log('task.onProgressUpdate', _this.progress)
  602. uni.showLoading({
  603. title: '上传中'
  604. })
  605. if (_this.progress != 100) {
  606. _this.loading = false
  607. console.log('_this.loading false', _this.loading)
  608. } else {
  609. _this.loading = true
  610. console.log('_this.loading true', _this.loading)
  611. }
  612. });
  613. })
  614. },
  615. })
  616. },
  617. choosevideo() {
  618. let _this = this;
  619. console.log('视频')
  620. uni.chooseVideo({
  621. sourceType: ['album', 'camera'],
  622. maxDuration: 30,
  623. success(resp) {
  624. const task = uni.uploadFile({
  625. url: _this.$HTTP + `/obs`,
  626. filePath: resp.tempFilePath,
  627. name: 'file',
  628. formData: {},
  629. header: _this.headers,
  630. success: res => {
  631. // 判断是否json字符串,将其转为json格式
  632. let data = JSON.parse(res.data);
  633. if (![200].includes(res.statusCode)) {
  634. this.uploadError(index, data);
  635. } else {
  636. //上传成功
  637. if (_this.progress === 100) {
  638. console.log('_this.progress', _this.progress)
  639. _this.imgArr.push(data.data.url)
  640. console.log('imgArr', _this.imgArr)
  641. _this.$modal.msg('上传成功!')
  642. _this.photo = false;
  643. }
  644. }
  645. },
  646. fail: e => {
  647. _this.$modal.msg('上传失败!')
  648. this.uploadError(index, e);
  649. },
  650. complete: res => {
  651. uni.hideLoading();
  652. _this.uploading = false;
  653. }
  654. });
  655. task.onProgressUpdate(res => {
  656. _this.progress = res.progress;
  657. console.log('onProgressUpdate', res)
  658. uni.showLoading({
  659. title: '上传中'
  660. })
  661. if (_this.progress != 100) {
  662. _this.loading = false
  663. console.log('_this.loading false', _this.loading)
  664. } else {
  665. _this.loading = true
  666. console.log('_this.loading true', _this.loading)
  667. }
  668. });
  669. },
  670. })
  671. },
  672. pickerShow(e) {
  673. this.type = e; //赋值类型
  674. if (e == 'door') { //上门类型
  675. this.openDict = true;
  676. getDicts("visit_type").then(response => {
  677. this.dictOptions = response.data;
  678. });
  679. } else if (e == 'zbf') { //自闭阀类型
  680. this.openDict = true;
  681. getDicts("self_closing_valve_type").then(response => {
  682. this.dictOptions = response.data;
  683. });
  684. } else if (e == 'brand') { //品牌
  685. this.openDict = true;
  686. getDicts("brand").then(response => {
  687. this.dictOptions = response.data;
  688. });
  689. } else if (e == 'cz') { //材质
  690. this.open = true;
  691. getEnginMaterialQualityList("民用工程").then(response => {
  692. this.selectList = response.data;
  693. });
  694. } else if (e == 'gg') { //规格
  695. if (this.isEmpty(this.materialValue.id)) {
  696. this.$modal.msg('请选择材质')
  697. } else {
  698. this.open = true;
  699. this.selectList = this.materialList;
  700. }
  701. } else if (e == 'fsdj') {
  702. //腐蚀等级
  703. this.openDict = true;
  704. //腐蚀等级
  705. getDicts("corrosion_level").then(response => {
  706. this.dictOptions = response.data;
  707. });
  708. } else if (e == 'kj') {
  709. //孔距
  710. this.openDict = true;
  711. getDicts("perforated_pipe_diameter").then(response => {
  712. this.dictOptions = response.data;
  713. });
  714. } else if (e == 'gczq') { //工程周期
  715. this.openDict = true;
  716. getDicts("engin_cycle").then(response => {
  717. this.dictOptions = response.data;
  718. });
  719. } else if (e == 'xzq') { //行政区
  720. if (this.isEmpty(this.projectValue.dictValue)) {
  721. this.$modal.msg('请选择工程周期')
  722. } else {
  723. this.openDict = true;
  724. getDicts("district").then(response => {
  725. this.dictOptions = response.data;
  726. });
  727. }
  728. //this.selectList = this.dictOptions;
  729. } else if (e == 'xq') { //小区
  730. if (this.isEmpty(this.XZQValue.dictValue)) {
  731. this.$modal.msg('请选择行政区')
  732. } else {
  733. this.open = true;
  734. this.selectList = this.XQList;
  735. }
  736. } else if (e == 'ld') { //楼栋
  737. if (this.isEmpty(this.XQValue.id)) {
  738. this.$modal.msg('请选择小区')
  739. } else {
  740. this.open = true;
  741. this.selectList = this.LDList;
  742. }
  743. } else if (e == 'dy') { //单元
  744. if (this.isEmpty(this.LDValue.id)) {
  745. this.$modal.msg('请选择楼栋')
  746. } else {
  747. this.open = true;
  748. this.selectList = this.DYList;
  749. }
  750. } else if (e == 'fj') { //房间
  751. if (this.isEmpty(this.DYValue.id)) {
  752. this.$modal.msg('请选择单元')
  753. } else {
  754. this.open = true;
  755. this.selectList = this.FJList;
  756. }
  757. }
  758. },
  759. switchChange(e) {
  760. //'switch 发生 change 事件,携带值为', e.detail.value)
  761. this.isCheck = e.detail.value;
  762. },
  763. changeSelectDict(item, index) {
  764. this.openDict = false;
  765. if (this.type == 'door') {
  766. this.doorValue = item
  767. } else if (this.type == 'zbf') {
  768. this.SelfClosValve = item
  769. } else if (this.type == 'brand') {
  770. this.brandValue = item
  771. } else if (this.type == 'gczq') {
  772. this.projectValue = item
  773. if (!this.isEmpty(this.FJValue.id)) {
  774. //房间选完 判断 工程周期 工程周期切换
  775. this.getStatus();
  776. }
  777. } else if (this.type == 'xzq') {
  778. this.XZQValue = item;
  779. //根据行政区id获取小区数据
  780. this.XQValue = ''; //重置小区数据
  781. this.LDValue = ''; //重置楼栋数据
  782. this.DYValue = ''; //重置单元数据
  783. this.FJValue = ''; //重置房间数据
  784. getAreaList(item.dictValue).then(res => {
  785. this.XQList = res.data;
  786. })
  787. } else {
  788. this.LevelValue = item;
  789. }
  790. },
  791. changeSelect(item, index) {
  792. // this.index = index;
  793. // this.address = item.communityName;
  794. this.open = false;
  795. if (this.type == 'cz') {
  796. this.materialValue = item;
  797. this.specificationValue = ''; //重置规格
  798. //根据材质ID 获取规格数据
  799. getEnginSpecificationsList(item.id).then(res => {
  800. this.materialList = res.data
  801. })
  802. } else if (this.type == 'gg') {
  803. this.specificationValue = item;
  804. } else if (this.type == 'xq') {
  805. this.XQValue = item;
  806. //根据小区id 获取楼栋数据
  807. this.LDValue = ''; //重置楼栋数据
  808. this.DYValue = ''; //重置单元数据
  809. this.FJValue = ''; //重置房间数据
  810. getBuildingList(item.id).then(res => {
  811. this.LDList = res.data
  812. // console.log("楼栋=", res)
  813. })
  814. } else if (this.type == 'ld') {
  815. this.LDValue = item;
  816. //根据楼栋ID 获取单元数据
  817. this.DYValue = ''; //重置单元数据
  818. this.FJValue = ''; //重置房间数据
  819. getUnitList(item.id).then(res => {
  820. this.DYList = res.data
  821. // console.log("单元=", res)
  822. })
  823. } else if (this.type == 'dy') {
  824. this.DYValue = item;
  825. //根据单元数据 获取房间数据
  826. this.FJValue = ''; //重置房间数据
  827. getHousesList(item.id).then(res => {
  828. this.FJList = res.data
  829. // console.log("房间=", res)
  830. })
  831. } else if (this.type == 'fj') {
  832. this.FJValue = item;
  833. if (!this.isEmpty(this.projectValue.dictValue)) {
  834. //房间选完 判断 工程周期
  835. this.getStatus();
  836. }
  837. }
  838. },
  839. //关闭弹窗
  840. close(e) {
  841. this.open = false
  842. },
  843. //关闭弹窗
  844. closeDict(e) {
  845. this.openDict = false
  846. },
  847. getStatus() {
  848. let param = {
  849. areaId: this.XQValue.id, // 小区id
  850. buildingId: this.LDValue.id, // 楼宇id
  851. unitId: this.DYValue.id, // 单元id
  852. houseId: this.FJValue.id, // 房间id
  853. enginCycle: this.projectValue.dictValue, // 工程周期
  854. enginType: this.objValue.enginType, //写死 上一页面传过来的
  855. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  856. }
  857. getRoomProjectId(param).then(res => {
  858. if (res.code == '200') {
  859. if (res.data != null && res.data.zEngineeringNodeBoList != null) {
  860. res.data.zEngineeringNodeBoList.forEach((item, index) => {
  861. if (this.objValue.enginClassValue == item.type) {
  862. this.reviewStatus = item.reviewStatus;
  863. if (item.reviewStatus == '1')
  864. this.$modal.msg('当前工程已结束')
  865. }
  866. })
  867. } else {
  868. this.reviewStatus = '' //置空
  869. }
  870. } else {
  871. this.$modal.msg(res.msg)
  872. this.reviewStatus = '' //置空
  873. }
  874. })
  875. },
  876. //提交数据
  877. submit() {
  878. if (this.isEmpty(this.projectValue.dictValue)) {
  879. this.$modal.msg("请选择工程周期")
  880. } else if (this.isEmpty(this.XZQValue.dictValue)) {
  881. this.$modal.msg("请选择行政区")
  882. } else if (this.isEmpty(this.XQValue.id)) {
  883. this.$modal.msg("请选择小区")
  884. } else if (this.isEmpty(this.LDValue.id)) {
  885. this.$modal.msg("请选择楼栋")
  886. } else if (this.isEmpty(this.DYValue.id)) {
  887. this.$modal.msg("请选择单元")
  888. } else if (this.isEmpty(this.FJValue.id)) {
  889. this.$modal.msg("请选择房间")
  890. } else if (this.objValue.enginClassValue == '报警器切断阀') {
  891. if (this.isEmpty(this.brandValue.dictValue)) {
  892. this.$modal.msg("请选择厂家")
  893. } else {
  894. this.onsubmit();
  895. }
  896. } else if (this.objValue.enginClassValue == '打孔') {
  897. if (this.isEmpty(this.LevelValue.dictValue)) {
  898. this.$modal.msg("请选择孔距") //打孔 判断孔距
  899. } else {
  900. this.onsubmit();
  901. }
  902. } else if (this.objValue.enginClassValue == '拆旧管') {
  903. if (this.isEmpty(this.LevelValue.dictValue)) {
  904. this.$modal.msg("请选择腐蚀等级") //拆旧管 判断腐蚀等级
  905. } else {
  906. this.onsubmit();
  907. }
  908. } else if (this.objValue.enginClassValue == '立杠') {
  909. //立杠 判断 材质 规格 米数
  910. if (this.isEmpty(this.materialValue.id)) {
  911. this.$modal.msg("请选择材质")
  912. } else if (this.isEmpty(this.specificationValue.id)) {
  913. this.$modal.msg("请选择规格")
  914. } else if (this.isEmpty(this.inputIntegerNumberValue)) {
  915. this.$modal.msg("请输入米数")
  916. } else {
  917. if (this.isEmpty(this.inputDecimalNumberValue)) {
  918. this.inputNumberValue = this.inputIntegerNumberValue;
  919. } else {
  920. this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
  921. }
  922. this.onsubmit();
  923. }
  924. } else if (this.objValue.enginClassValue == '挂表') {
  925. //挂表 判断 品牌
  926. if (this.isEmpty(this.brandValue.dictValue)) {
  927. this.$modal.msg("请选择品牌")
  928. } else {
  929. this.onsubmit();
  930. }
  931. } else if (this.objValue.enginClassValue == '表后管') {
  932. //表后管 判断 材质 规格 米数 (为必须有一张照片和一个视频)
  933. if (this.isEmpty(this.materialValue.id)) {
  934. this.$modal.msg("请选择材质")
  935. } else if (this.isEmpty(this.specificationValue.id)) {
  936. this.$modal.msg("请选择规格")
  937. } else if (this.isEmpty(this.inputIntegerNumberValue)) {
  938. this.$modal.msg("请输入米数")
  939. } else if (this.imgArr.length <= 0) {
  940. this.$modal.msg('请上传照片或视频')
  941. } else if (this.loading == false) {
  942. this.$modal.msg('照片或视频未上传完毕,无法提交!')
  943. } else {
  944. const hasImage = this.imgArr.some(item => item.endsWith('.jpg') || item.endsWith(
  945. '.png') || item
  946. .endsWith('.jpeg') || item.endsWith('.JPG') || item.endsWith('.PNG') || item
  947. .endsWith('.JPEG'));
  948. const hasVideo = this.imgArr.some(item => item.endsWith('.mp4') || item.endsWith('.MP4'));
  949. if (hasImage && hasVideo) {
  950. //表后管 特殊 提交
  951. if (this.isEmpty(this.inputDecimalNumberValue)) {
  952. this.inputNumberValue = this.inputIntegerNumberValue;
  953. } else {
  954. this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
  955. }
  956. let param = {
  957. district: this.XZQValue.dictValue,
  958. areaId: this.XQValue.id,
  959. buildingId: this.LDValue.id,
  960. unitId: this.DYValue.id,
  961. houseId: this.FJValue.id,
  962. enginType: this.objValue.enginType, //写死 上一页面传过来的
  963. enginClassification: this.objValue
  964. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  965. enginCycle: this.projectValue.dictValue, //工程周期
  966. zEngineeringNodeBo: {
  967. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  968. zEngineeringInfoBo: {
  969. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  970. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  971. zEngineeringMaterialBo: [{
  972. materialQuality: this.materialValue.id, //材质
  973. specifications: this.specificationValue.id, //规格
  974. number: this.inputNumberValue //米数
  975. }]
  976. }
  977. }
  978. }
  979. addTearOldPipe(param).then(res => {
  980. if (res.code == '200') {
  981. uni.showToast({
  982. title: res.msg,
  983. icon: 'none',
  984. //显示持续时间为 1秒
  985. duration: 1000
  986. });
  987. uni.navigateBack();
  988. }
  989. })
  990. } else {
  991. this.$modal.msg('请至少上传一张照片和一个视频')
  992. }
  993. }
  994. } else if (this.objValue.enginClassValue == '阀管') {
  995. //阀管 判断 材质 规格 米数
  996. if (this.isEmpty(this.doorValue.dictValue)) {
  997. this.$modal.msg("请选择上门类型")
  998. } else if (this.isEmpty(this.SelfClosValve.dictValue)) {
  999. this.$modal.msg("请选择自闭阀类型")
  1000. } else if (this.isEmpty(this.materialValue.id)) {
  1001. this.$modal.msg("请选择材质")
  1002. } else if (this.isEmpty(this.specificationValue.id)) {
  1003. this.$modal.msg("请选择规格")
  1004. } else if (this.isEmpty(this.inputIntegerNumberValue)) {
  1005. this.$modal.msg("请输入米数")
  1006. } else {
  1007. if (this.isEmpty(this.inputDecimalNumberValue)) {
  1008. this.inputNumberValue = this.inputIntegerNumberValue;
  1009. } else {
  1010. this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
  1011. }
  1012. this.onsubmit();
  1013. }
  1014. }
  1015. },
  1016. onsubmit() {
  1017. if (this.imgArr.length <= 0) {
  1018. this.$modal.msg('请上传照片或视频')
  1019. } else if (this.loading == false) {
  1020. this.$modal.msg('照片或视频未上传完毕,无法提交!')
  1021. } else {
  1022. //提交
  1023. let param = ';'
  1024. if (this.objValue.enginClassValue == '拆旧管' || this.objValue.enginClassValue ==
  1025. '打孔') { //拆旧管 打孔
  1026. param = {
  1027. district: this.XZQValue.dictValue,
  1028. areaId: this.XQValue.id,
  1029. buildingId: this.LDValue.id,
  1030. unitId: this.DYValue.id,
  1031. houseId: this.FJValue.id,
  1032. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1033. enginClassification: this.objValue
  1034. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1035. enginCycle: this.projectValue.dictValue, //工程周期
  1036. zEngineeringNodeBo: {
  1037. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1038. zEngineeringInfoBo: {
  1039. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1040. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1041. zEngineeringMaterialBo: [{
  1042. corrosionLevel: this.LevelValue.dictValue //腐蚀等级 //孔距
  1043. }]
  1044. }
  1045. }
  1046. }
  1047. //this.onsubmit(param)
  1048. } else if (this.objValue.enginClassValue == '报警器切断阀') { //报警器切断阀
  1049. param = {
  1050. district: this.XZQValue.dictValue,
  1051. areaId: this.XQValue.id,
  1052. buildingId: this.LDValue.id,
  1053. unitId: this.DYValue.id,
  1054. houseId: this.FJValue.id,
  1055. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1056. enginClassification: this.objValue
  1057. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1058. enginCycle: this.projectValue.dictValue, //工程周期
  1059. zEngineeringNodeBo: {
  1060. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1061. zEngineeringInfoBo: {
  1062. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1063. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1064. zEngineeringMaterialBo: [{
  1065. brand: this.brandValue.dictValue, //品牌
  1066. // number: this.inputNumberValue //米数
  1067. }]
  1068. }
  1069. }
  1070. }
  1071. } else if (this.objValue.enginClassValue == '立杠') { //立杠
  1072. param = {
  1073. district: this.XZQValue.dictValue,
  1074. areaId: this.XQValue.id,
  1075. buildingId: this.LDValue.id,
  1076. unitId: this.DYValue.id,
  1077. houseId: this.FJValue.id,
  1078. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1079. enginClassification: this.objValue
  1080. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1081. enginCycle: this.projectValue.dictValue, //工程周期
  1082. zEngineeringNodeBo: {
  1083. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1084. zEngineeringInfoBo: {
  1085. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1086. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1087. zEngineeringMaterialBo: [{
  1088. materialQuality: this.materialValue.id, //材质
  1089. specifications: this.specificationValue.id, //规格
  1090. number: this.inputNumberValue //米数
  1091. }]
  1092. }
  1093. }
  1094. }
  1095. } else if (this.objValue.enginClassValue == '挂表') { //挂表
  1096. param = {
  1097. district: this.XZQValue.dictValue,
  1098. areaId: this.XQValue.id,
  1099. buildingId: this.LDValue.id,
  1100. unitId: this.DYValue.id,
  1101. houseId: this.FJValue.id,
  1102. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1103. enginClassification: this.objValue
  1104. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1105. enginCycle: this.projectValue.dictValue, //工程周期
  1106. zEngineeringNodeBo: {
  1107. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1108. zEngineeringInfoBo: {
  1109. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1110. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1111. zEngineeringMaterialBo: [{
  1112. brand: this.brandValue.dictValue, //品牌
  1113. //number: this.inputNumberValue //米数
  1114. }]
  1115. }
  1116. }
  1117. }
  1118. } else if (this.objValue.enginClassValue == '阀管') { //自闭阀
  1119. param = {
  1120. district: this.XZQValue.dictValue,
  1121. areaId: this.XQValue.id,
  1122. buildingId: this.LDValue.id,
  1123. unitId: this.DYValue.id,
  1124. houseId: this.FJValue.id,
  1125. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1126. enginClassification: this.objValue
  1127. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1128. enginCycle: this.projectValue.dictValue, //工程周期
  1129. zEngineeringNodeBo: {
  1130. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1131. zEngineeringInfoBo: {
  1132. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1133. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1134. zEngineeringMaterialBo: [{
  1135. visitType: this.doorValue.dictValue, //上门类型
  1136. selfClosingValveType: this.SelfClosValve.dictValue, //自闭阀类型
  1137. materialQuality: this.materialValue.id, //材质
  1138. specifications: this.specificationValue.id, //规格
  1139. number: this.inputNumberValue //米数
  1140. }]
  1141. }
  1142. }
  1143. }
  1144. }
  1145. addTearOldPipe(param).then(res => {
  1146. if (res.code == '200') {
  1147. uni.showToast({
  1148. title: res.msg,
  1149. icon: 'none',
  1150. //显示持续时间为 3秒
  1151. duration: 2000
  1152. });
  1153. setTimeout(function() {
  1154. uni.navigateBack();
  1155. }, 1000)
  1156. }
  1157. })
  1158. }
  1159. },
  1160. history() {
  1161. if (this.isEmpty(this.projectValue.dictValue)) {
  1162. this.$modal.msg("请选择工程周期")
  1163. return
  1164. }
  1165. if (this.isEmpty(this.XZQValue.dictValue)) {
  1166. this.$modal.msg("请选择行政区")
  1167. return
  1168. }
  1169. if (this.isEmpty(this.XQValue.id)) {
  1170. this.$modal.msg("请选择小区")
  1171. return
  1172. }
  1173. if (this.isEmpty(this.LDValue.id)) {
  1174. this.$modal.msg("请选择楼栋")
  1175. return
  1176. }
  1177. if (this.isEmpty(this.DYValue.id)) {
  1178. this.$modal.msg("请选择单元")
  1179. return
  1180. }
  1181. if (this.isEmpty(this.FJValue.id)) {
  1182. this.$modal.msg("请选择房间")
  1183. return
  1184. }
  1185. let param = {
  1186. areaId: this.XQValue.id, // 小区id
  1187. buildingId: this.LDValue.id, // 楼宇id
  1188. unitId: this.DYValue.id, // 单元id
  1189. houseId: this.FJValue.id, // 房间id
  1190. enginCycle: this.projectValue.dictValue, // 工程周期
  1191. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1192. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1193. }
  1194. getRoomProjectId(param).then(res => {
  1195. if (res.code == '200') {
  1196. if (res.data != null) {
  1197. getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(res => {
  1198. this.historyList = res.data
  1199. if (res.data.zEngineeringNodeBo != null) {
  1200. this.showHistoryList();
  1201. } else {
  1202. this.$modal.msg("暂无历史信息")
  1203. }
  1204. })
  1205. } else {
  1206. this.$modal.msg("暂无工程信息")
  1207. }
  1208. } else {
  1209. this.$modal.msg(res.msg)
  1210. }
  1211. })
  1212. },
  1213. showHistoryList() {
  1214. this.$refs.refShare.handleShowShare();
  1215. }
  1216. }
  1217. }
  1218. </script>
  1219. <style lang="scss">
  1220. .container {
  1221. display: flex;
  1222. align-items: center;
  1223. justify-content: space-between;
  1224. padding: 10px;
  1225. position: relative;
  1226. }
  1227. .uni-list {
  1228. border: 1xp solid #eee;
  1229. }
  1230. .to-right-icon {
  1231. width: 15px;
  1232. height: 15px;
  1233. position: absolute;
  1234. top: 50%;
  1235. transform: translateY(-50%);
  1236. }
  1237. .text {
  1238. font-size: 16px;
  1239. color: #333;
  1240. }
  1241. .background {
  1242. // border: 15px solid hsla(0, 0%, 100%, .5);
  1243. background: white;
  1244. background-clip: padding-box;
  1245. padding: 20rpx;
  1246. border-radius: 20rpx;
  1247. margin: 20rpx;
  1248. /*从padding开始往外面裁剪背景*/
  1249. }
  1250. .btn {
  1251. width: 715rpx;
  1252. height: 69rpx;
  1253. background: #79A4F0;
  1254. border-radius: 6rpx;
  1255. font-size: 25rpx;
  1256. font-family: Microsoft YaHei;
  1257. font-weight: 400;
  1258. color: #FFFFFF;
  1259. line-height: 69rpx;
  1260. margin-top: 40rpx;
  1261. margin-bottom: 100rpx;
  1262. }
  1263. .number {
  1264. display: flex;
  1265. /* 水平居中显示子元素 */
  1266. align-items: flex-start;
  1267. /* 垂直居中显示子元素 */
  1268. justify-content: space-between;
  1269. /* 左右间距等于间距大小 */
  1270. padding: 10px;
  1271. /* 设置padding以提高视觉效果 */
  1272. }
  1273. .textarea {
  1274. margin-top: 10upx;
  1275. width: 100%;
  1276. border: 1rpx solid red;
  1277. min-height: 100upx;
  1278. line-height: 20px;
  1279. }
  1280. </style>