statistics.vue 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834
  1. <template>
  2. <view>
  3. <view v-if="isLeader=='sys_user'">
  4. <scroll-view>
  5. <view class="view-bg">
  6. <text class="title-txt">工程用料统计</text>
  7. <view>
  8. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  9. <view class="uni-list-cell-left">
  10. 行政区
  11. </view>
  12. <view class="uni-list-cell-db">
  13. <view v-if="this.isEmpty(this.XZQValue.dictValue)" style="margin-top: 10;"
  14. @click="pickerShow('xzq')">
  15. <span style="color: darkgray;">请选择行政区</span>
  16. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  17. </view>
  18. <view v-else style="margin-top: 10;" @click="pickerShow('xzq')">
  19. <span style="color: black;">{{XZQValue.dictLabel}}</span>
  20. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  25. <view class="uni-list-cell-left">
  26. 小区
  27. </view>
  28. <view class="uni-list-cell-db">
  29. <view v-if="this.isEmpty(this.XQValue.id)" style="margin-top: 10;"
  30. @click="pickerShow('xq')">
  31. <span style="color: darkgray;">请选择小区</span>
  32. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  33. </view>
  34. <view v-else style="margin-top: 10;" @click="pickerShow('xq')">
  35. <span style="color: black;">{{XQValue.name}}</span>
  36. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  41. <view class="uni-list-cell-left">
  42. 材料
  43. </view>
  44. <view class="uni-list-cell-db">
  45. <view v-if="this.isEmpty(this.materialValue.name)" style="margin-top: 10;"
  46. @click="pickerShow('cz')">
  47. <span style="color: darkgray;">请选择材料</span>
  48. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  49. </view>
  50. <view v-else style="display: flex;align-items: center; justify-content: flex-end;">
  51. <view style="margin-top: 10; " @click="pickerShow('cz')">
  52. <span style="color: black;">{{materialValue.name}}</span>
  53. <!-- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image> -->
  54. </view>
  55. <image :src="loadImgSrc('icon_close.png')"
  56. style=" width: 15px; height: 15px;margin-left:20rpx ;margin-right: -20rpx;"
  57. @click="clearMaterialInfo">
  58. </image>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  63. <view class="uni-list-cell-left">
  64. 规格
  65. </view>
  66. <view class="uni-list-cell-db">
  67. <view v-if="this.isEmpty(this.specificationValue.name)" style="margin-top: 10;"
  68. @click="pickerShow('gg')">
  69. <span style="color: darkgray;">请选择规格</span>
  70. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  71. </view>
  72. <view v-else style="display: flex;align-items: center; justify-content: flex-end;">
  73. <view style="margin-top: 10;" @click="pickerShow('gg')">
  74. <span style="color: black;">{{specificationValue.name}}</span>
  75. <!-- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image> -->
  76. </view>
  77. <image :src="loadImgSrc('icon_close.png')"
  78. style=" width: 15px; height: 15px;margin-left:20rpx ;margin-right: -20rpx;"
  79. @click="clearSpecificationInfo">
  80. </image>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="table">
  86. <view class="felx-row">
  87. <view class="h-tr" style="flex: 1">名称</view>
  88. <view class="h-tr" style="flex: 1">材料</view>
  89. <view class="h-tr" style="flex: 1;align-items: center;">预计用量</view>
  90. <view class="h-tr" style="flex: 1">实际用量</view>
  91. </view>
  92. </view>
  93. <view class="felx-row" v-for="(item, index) in materialUsageList" :key="index">
  94. <view class="h-td" style="flex: 1">{{ item.realityQuality }}</view>
  95. <view class="h-td" style="flex: 1">{{ item.realitySpecifications }}</view>
  96. <view class="h-td" style="flex: 1">{{ item.estimatedSize }}</view>
  97. <view class="h-td" style="flex: 1">{{ item.realitySize }}</view>
  98. </view>
  99. </view>
  100. <view class="view-bg" style="margin-bottom: 40rpx;">
  101. <text class="title-txt">工程进度统计</text>
  102. <view>
  103. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  104. <view class="uni-list-cell-left">
  105. 行政区
  106. </view>
  107. <view class="uni-list-cell-db">
  108. <view v-if="this.isEmpty(this.XZQValue2.dictValue)" style="margin-top: 10;"
  109. @click="pickerShow('xzq2')">
  110. <span style="color: darkgray;">请选择行政区</span>
  111. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  112. </view>
  113. <view v-else style="margin-top: 10;" @click="pickerShow('xzq2')">
  114. <span style="color: black;">{{XZQValue2.dictLabel}}</span>
  115. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  120. <view class="uni-list-cell-left"> 小区</view>
  121. <view class="uni-list-cell-db">
  122. <view v-if="this.isEmpty(this.XQValue2.id)" style="margin-top: 10;"
  123. @click="pickerShow('xq2')">
  124. <span style="color: darkgray;">请选择小区</span>
  125. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  126. </view>
  127. <view v-else style="margin-top: 10;" @click="pickerShow('xq2')">
  128. <span style="color: black;">{{XQValue2.name}}</span>
  129. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  130. </view>
  131. </view>
  132. </view>
  133. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  134. <view class="uni-list-cell-left">楼栋</view>
  135. <view class="uni-list-cell-db">
  136. <view v-if="this.isEmpty(this.LDValue2.id)" style="margin-top: 10;"
  137. @click="pickerShow('ld2')">
  138. <span style="color: darkgray;">请选择楼栋</span>
  139. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  140. </view>
  141. <view style="margin-top: 10;" @click="pickerShow('ld2')">
  142. <span style="color: black;">{{LDValue2.name}}</span>
  143. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  144. </view>
  145. </view>
  146. </view>
  147. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  148. <view class="uni-list-cell-left">单元</view>
  149. <view class="uni-list-cell-db">
  150. <view v-if="this.isEmpty(this.DYValue2.id)" style="margin-top: 10;"
  151. @click="pickerShow('dy2')">
  152. <span style="color: darkgray;">请选择单元</span>
  153. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  154. </view>
  155. <view v-else style="margin-top: 10;" @click="pickerShow('dy2')">
  156. <span style="color: black;">{{DYValue2.name}}</span>
  157. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. <image :src="loadImgSrc('lou-img-bg.png')" style="width: 110%;
  163. height: 121px;
  164. position: absolute;
  165. bottom: 15px;
  166. left: -5px;
  167. z-index: 1;
  168. "></image>
  169. <scroll-view :scroll-x="true" class="view_bg_build" v-if="roomList.length > 0">
  170. <view class="HuaDongBiao">
  171. <view class="NeiRong" v-for="(item,index) in roomList" :key="index">
  172. <view class="Fang" v-for="(item2, index2) in roomList[index]" :key="index2">
  173. <view v-if="item2.roomStatus=='施工中'" class="ShiGongZhong" @click="goHistory(item2)">
  174. {{ item2.roomName }}
  175. </view>
  176. <view v-else-if="item2.roomStatus=='未施工'" class="WeiShiGong">{{ item2.roomName }}
  177. </view>
  178. <view v-else class="JunGong" @click="goHistory(item2)">{{ item2.roomName }}</view>
  179. </view>
  180. </view>
  181. </view>
  182. <view style=" width: 48rpx;height: 63rpx;background: #C7EAFF; position:relative; left: 50%; transform:
  183. translateX(-50%); bottom: -10rpx;">
  184. </view>
  185. </scroll-view>
  186. <view v-if="roomList.length == 0" style="padding:50rpx;text-align: center;">暂无数据</view>
  187. <view style="align-items: center; margin-top: 20rpx;">
  188. <view style="display: flex;align-items: center;justify-content:center">
  189. <image class="block-iv" :src="loadImgSrc('ic_legend.png')"></image>
  190. <text style="margin-right: 20px;margin-left: 5px;">图例: </text>
  191. <div class="block-iv" style="background-color: #80d9ae;"></div>
  192. <text style="margin-right: 20px;margin-left: 5px;">竣工</text>
  193. <div class="block-iv" style="background-color: #5bd3ff;"></div>
  194. <text style="margin-right: 20px;margin-left: 5px;">施工中</text>
  195. <div class="block-iv" style="background-color: #ffc881;"></div>
  196. <text style="margin-right: 20px;margin-left: 5px;">未施工</text>
  197. </view>
  198. </view>
  199. </view>
  200. </scroll-view>
  201. </view>
  202. <view v-else-if="isLeader=='app_user'">
  203. <view class="background">
  204. <view>
  205. <view
  206. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  207. 筛选
  208. <image v-if="change==false" :src="loadImgSrc('icon_user_open.png')" @click='change1'
  209. style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  210. </image>
  211. <image v-if="change==true" :src="loadImgSrc('icon_user_close.png')" @click='change1'
  212. style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  213. </image>
  214. </view>
  215. </view>
  216. <view v-show="change" style="padding-right: 10px;">
  217. <view class="uni-list">
  218. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  219. <view class="uni-list-cell-left">
  220. 工程项
  221. </view>
  222. <view v-if="this.isEmpty(this.EngineeringValue)" class="uni-list-cell-db"
  223. style="margin-top: 10;" @click="pickerShow('gcx')">
  224. <span style="color: darkgray;">请选择工程项</span>
  225. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  226. </view>
  227. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gcx')">
  228. <span style="color: black;">{{EngineeringValue}}</span>
  229. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  230. </view>
  231. </view>
  232. </view>
  233. <view v-if="EngineeringValue=='民用工程'||EngineeringValue=='开栓'">
  234. <view class="uni-list">
  235. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  236. <view>
  237. 行政区
  238. </view>
  239. <view v-if="this.isEmpty(this.XZQValue3.dictValue)" style="margin-top: 10;"
  240. @click="pickerShow('xzq3')">
  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;"
  245. @click="pickerShow('xzq3')">
  246. <span style="color: black;">{{XZQValue3.dictLabel}}</span>
  247. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  248. </view>
  249. </view>
  250. </view>
  251. <view class="uni-list">
  252. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  253. <view>
  254. 小区
  255. </view>
  256. <view v-if="this.isEmpty(this.XQValue3.id)" class="uni-list-cell-db"
  257. style="margin-top: 10;" @click="pickerShow('xq3')">
  258. <span style="color: darkgray;">请选择小区</span>
  259. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  260. </view>
  261. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  262. @click="pickerShow('xq3')">
  263. <span style="color: black;">{{XQValue3.name}}</span>
  264. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  265. </view>
  266. </view>
  267. </view>
  268. <view class="uni-list">
  269. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  270. <view class="uni-list-cell-left">
  271. 楼栋
  272. </view>
  273. <view v-if="this.isEmpty(this.LDValue3.id)" class="uni-list-cell-db"
  274. style="margin-top: 10;" @click="pickerShow('ld3')">
  275. <span style="color: darkgray;">请选择楼栋</span>
  276. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  277. </view>
  278. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  279. @click="pickerShow('ld3')">
  280. <span style="color: black;">{{LDValue3.name}}</span>
  281. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  282. </view>
  283. </view>
  284. </view>
  285. <view class="uni-list" style="margin-top: 10;">
  286. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  287. <view class="uni-list-cell-left">
  288. 单元
  289. </view>
  290. <view v-if="this.isEmpty(this.DYValue3.id)" class="uni-list-cell-db"
  291. style="margin-top: 10;" @click="pickerShow('dy3')">
  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;"
  296. @click="pickerShow('dy3')">
  297. <span style="color: black;">{{DYValue3.name}}</span>
  298. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  299. </view>
  300. </view>
  301. </view>
  302. <view class="uni-list">
  303. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  304. <view class="uni-list-cell-left">
  305. 房间
  306. </view>
  307. <view v-if="this.isEmpty(this.FJValue3.id)" class="uni-list-cell-db"
  308. style="margin-top: 10;" @click="pickerShow('fj3')">
  309. <span style="color: darkgray;">请选择房间</span>
  310. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  311. </view>
  312. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  313. @click="pickerShow('fj3')">
  314. <span style="color: black;">{{FJValue3.name}}</span>
  315. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  316. </view>
  317. </view>
  318. </view>
  319. <view class="uni-list" v-if="EngineeringValue=='民用工程'">
  320. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  321. <view class="uni-list-cell-left">
  322. 工程类型
  323. </view>
  324. <view v-if="this.isEmpty(this.ProjectType.dictValue)" class="uni-list-cell-db"
  325. style="margin-top: 10;" @click="pickerShow('gclx')">
  326. <span style="color: darkgray;">请选择工程类型</span>
  327. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  328. </view>
  329. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  330. @click="pickerShow('gclx')">
  331. <span style="color: black;">{{ProjectType.dictLabel}}</span>
  332. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  333. </view>
  334. </view>
  335. </view>
  336. </view>
  337. <view v-if="EngineeringValue!='开栓'">
  338. <view class="container" style="border-bottom: 1px solid #f8f8f8;"
  339. v-if="EngineeringValue!='民用工程'">
  340. <view class="uni-list-cell-left">
  341. 工程名称
  342. </view>
  343. <view class="uni-list-cell-db" style="margin-top: 10;">
  344. <input class="uni-input" type="text" v-model="EngineeringName" maxlength="80"
  345. placeholder="请输入工程名称"
  346. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  347. </view>
  348. </view>
  349. <view class="uni-list"
  350. v-if="EngineeringValue=='工业工程'||EngineeringValue=='带气封堵施工'||EngineeringValue=='民用工程'">
  351. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  352. <view class="uni-list-cell-left">
  353. 工程分类
  354. </view>
  355. <view v-if="this.isEmpty(this.ProjectClassification.dictValue)" class="uni-list-cell-db"
  356. style="margin-top: 10;" @click="pickerShow('gcfl')">
  357. <span style="color: darkgray;">请选择工程分类</span>
  358. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  359. </view>
  360. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  361. @click="pickerShow('gcfl')">
  362. <span style="color: black;">{{ProjectClassification.dictLabel}}</span>
  363. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  364. </view>
  365. </view>
  366. </view>
  367. <view class="uni-list"
  368. v-if="EngineeringValue=='市政工程'||EngineeringValue=='顶管工程'||EngineeringValue=='民用工程'||EngineeringValue=='基建工程'">
  369. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  370. <view class="uni-list-cell-left">
  371. 工程步骤
  372. </view>
  373. <view v-if="this.isEmpty(this.ProjectSteps.dictValue)" class="uni-list-cell-db"
  374. style="margin-top: 10;" @click="pickerShow('gcbz')">
  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;"
  379. @click="pickerShow('gcbz')">
  380. <span style="color: black;">{{ProjectSteps.dictLabel}}</span>
  381. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  382. </view>
  383. </view>
  384. </view>
  385. </view>
  386. <view class="uni-list">
  387. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  388. <view class="uni-list-cell-left">
  389. 审核状态
  390. </view>
  391. <view v-if="this.isEmpty(this.ReviewStatus.dictValue)" class="uni-list-cell-db"
  392. style="margin-top: 10;" @click="pickerShow('shzt')">
  393. <span style="color: darkgray;">请选择审核状态</span>
  394. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  395. </view>
  396. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('shzt')">
  397. <span style="color: black;">{{ReviewStatus.dictLabel}}</span>
  398. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  399. </view>
  400. </view>
  401. </view>
  402. <button class="tj-btn" style="margin: 40rpx 90rpx;" @click="serch"> 搜索</button>
  403. </view>
  404. </view>
  405. <cc-pullScroolView class="pullScrollView" ref="pullScroll" :pullDown="pullDown" :isDownLoading="true">
  406. <view class="notice" v-for="(item,index) in list" :key="index">
  407. <view class="justify-content" @click="chooseNode(item)">
  408. <view v-if="EngineeringValue=='民用工程'">
  409. <view class="font-forty">
  410. {{item.areaName+item.buildingName+item.unitName+item.houseName+(item.enginType=='new_built'? '-新建':'-旧改')+'-'+item.enginClassificationName}}
  411. </view>
  412. <view class="font-twenty-eight gray" v-for="(state,stateIndex) in item.nodeReViewStateList"
  413. :key="stateIndex" v-if="state.Type!='开栓'">
  414. {{state.Type}}-{{state.state == 1 ? '审核通过': (state.content == '暂未审核' ? '暂未审核':'审核未通过')}}
  415. <view v-if="state.content != '暂未审核'">原因:{{state.content}}</view>
  416. </view>
  417. </view>
  418. <view v-if="EngineeringValue=='开栓'">
  419. <view class="font-forty">
  420. {{item.areaName+item.buildingName+item.unitName+item.houseName}}
  421. </view>
  422. <view class="font-twenty-eight gray">
  423. {{item.state == 0 ? '审核不通过': (item.state == 1?'审核通过':'未审核')}}
  424. </view>
  425. </view>
  426. <view
  427. v-if="EngineeringValue=='顶管工程'||EngineeringValue=='基建工程'||EngineeringValue=='危险工程'||EngineeringValue=='市政工程'||EngineeringValue=='工业工程'||EngineeringValue=='带气封堵施工'">
  428. <view class="font-forty">
  429. 工程名称:{{item.enginName}}
  430. </view>
  431. <view class="font-twenty-eight gray" v-for="(state,stateIndex) in item.status"
  432. :key="stateIndex">
  433. <view v-if="EngineeringValue=='工业工程'">{{state.reviewStatus}}</view>
  434. <view v-else>{{state.type}}-{{state.reviewStatus}}</view>
  435. </view>
  436. </view>
  437. <view class="font-twenty-eight gray">
  438. {{item.createTime}}
  439. </view>
  440. </view>
  441. </view>
  442. </cc-pullScroolView>
  443. </view>
  444. <view class="share">
  445. <view :class="{'share-box': shareState}" @click="handleHiddenShare">
  446. </view>
  447. <view class="share-item" :class="{'share-show': shareState}">
  448. <view class="share-to">
  449. <text>请选择</text>
  450. </view>
  451. <scroll-view scroll-y="true" class="scroll-Y">
  452. <view class="content">
  453. <view class="block" v-for="(item, index) in typeList" :key="index" @click="showTypeSheet(item)"
  454. v-if="item.Type!='开栓'">
  455. <text>{{item.Type}}</text>
  456. </view>
  457. </view>
  458. </scroll-view>
  459. <view class="cancel" @click.stop="handleHiddenShare">
  460. <text>取消</text>
  461. </view>
  462. </view>
  463. </view>
  464. <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
  465. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  466. subtitleKey="id" v-model="name"></SelectPicker>
  467. <SelectPicker :list="dictOptions" @change="changeSelect" v-if="openDict" @close="closeDict" titleKey="dictLabel"
  468. subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  469. </view>
  470. </template>
  471. <script>
  472. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  473. import bottomSheet from '../../components/bottomSheet/bottomSheet.vue'
  474. import CCBProjectList from '../../uni_modules/cc-pullScroolView/components/cc-pullScroolView/cc-pullScroolView.vue';
  475. import {
  476. gethistoryList,
  477. getKShistoryList,
  478. } from '@/api/common'
  479. import {
  480. getUserType,
  481. getUserRole
  482. } from '@/utils/auth';
  483. import {
  484. getDicts
  485. } from "@/api/system/dict/data";
  486. import user from '@/store/modules/user'
  487. import {
  488. getAreaList,
  489. getBuildingList,
  490. getUnitList,
  491. getHousesList,
  492. getEnginMaterialQualityList,
  493. getEnginSpecificationsList,
  494. getMunicipalStatisticsData,
  495. getObtainRoomcCompletionInformationList,
  496. getRoomProjectId,
  497. getRoomProjectList,
  498. getHistoryByUserList,
  499. } from '@/api/common'
  500. export default {
  501. components: {
  502. SelectPicker,
  503. CCBProjectList,
  504. bottomSheet
  505. },
  506. data() {
  507. return {
  508. historyList: {}, //历史数据
  509. userRole: getUserRole(),
  510. tabValue: ['旧改', '新建'],
  511. tabIndex: 0,
  512. isLeader: '',
  513. list: [],
  514. newlist: [],
  515. pageSize: 10,
  516. totalNum: '',
  517. pageNum: 1,
  518. typeList: '',
  519. villageIndex: 0,
  520. specificationIndex: 0,
  521. materialIndex: 0,
  522. villageIndex2: 0,
  523. buildIndex: 0,
  524. unitIndex: 0,
  525. open: false,
  526. openDict: false,
  527. selectList: [],
  528. dictOptions: [],
  529. XQList: [],
  530. LDList: [],
  531. DYList: [],
  532. projectValue: {
  533. 'dictValue': '0'
  534. },
  535. XZQValue: {},
  536. XQValue: {},
  537. XQList2: [],
  538. LDList2: [],
  539. DYList2: [],
  540. XQList3: [],
  541. LDList3: [],
  542. DYList3: [],
  543. FJList3: [],
  544. projectValue2: {
  545. 'dictValue': '0'
  546. },
  547. EngineeringValue: '',
  548. EngineeringName: '',
  549. EngineeringList: [],
  550. shareState: false,
  551. XZQValue2: {},
  552. XQValue2: {},
  553. LDValue2: {},
  554. DYValue2: {},
  555. XZQValue3: {},
  556. XQValue3: {},
  557. LDValue3: {},
  558. DYValue3: {},
  559. FJValue3: {},
  560. ProjectType: {},
  561. ProjectClassification: {},
  562. ProjectSteps: {},
  563. ReviewStatus: {},
  564. change: false,
  565. specificationValue: {},
  566. specificationList: [],
  567. materialValue: {},
  568. materialList: [],
  569. materialUsageList: [],
  570. roomList: [],
  571. roomCount: 4,
  572. nodeId: '',
  573. nodeType: '',
  574. roomItem: {},
  575. roomId: '',
  576. }
  577. },
  578. created() {},
  579. onLoad() {
  580. this.isLeader = getUserType()
  581. this.EngineeringValue = this.userRole[0];
  582. if (this.isLeader == 'app_user') {
  583. this.changeTab();
  584. }
  585. },
  586. // 上拉加载
  587. onReachBottom() {
  588. if (this.pageNum * 10 >= this.totalNum) {
  589. } else {
  590. this.$refs.pullScroll.showUpLoading();
  591. this.pageNum++;
  592. this.requestData();
  593. }
  594. },
  595. methods: {
  596. goHistory(item) {
  597. this.roomItem = item;
  598. getDicts(item.enginCycle + '_indoor_engin').then(response => {
  599. this.typeList = response.data;
  600. let result = JSON.parse(JSON.stringify(this.typeList).replace(/dictValue/g, 'Type'));
  601. this.typeList = result;
  602. this.handleShowSheet();
  603. });
  604. },
  605. serch() {
  606. this.changeTab();
  607. },
  608. change1() {
  609. this.change = !this.change
  610. },
  611. isEmpty(str) {
  612. return (!str || 0 === str.length);
  613. },
  614. handleShowSheet() {
  615. this.shareState = true;
  616. },
  617. handleHiddenShare() {
  618. this.shareState = false;
  619. },
  620. chooseNode(item) {
  621. if (this.EngineeringValue == '民用工程') {
  622. this.typeList = item.nodeReViewStateList
  623. this.nodeId = item.id;
  624. this.nodeType = item.enginClassification;
  625. this.roomId = item.houseId;
  626. if (this.nodeType == 'bottom_leg') { //底腿
  627. let obj = {
  628. id: this.nodeId,
  629. type: item.Type
  630. };
  631. uni.navigateTo({
  632. url: '/pages/statistics/history_details_bottom_leg?params=' + encodeURIComponent(JSON
  633. .stringify(
  634. obj))
  635. })
  636. } else {
  637. this.handleShowSheet();
  638. }
  639. } else if (this.EngineeringValue == '开栓') {
  640. this.nodeId = item.id;
  641. let obj = {
  642. type: 'edit',
  643. id: this.nodeId,
  644. };
  645. uni.navigateTo({
  646. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  647. .stringify(
  648. obj))
  649. })
  650. } else if (this.EngineeringValue == '市政工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  651. '顶管工程') {
  652. this.nodeId = item.id;
  653. let result = JSON.parse(JSON.stringify(item.status).replace(/type/g, 'Type'));
  654. this.typeList = result;
  655. this.handleShowSheet();
  656. } else if (this.EngineeringValue == '工业工程') {
  657. this.nodeId = item.id;
  658. let obj = {
  659. id: this.nodeId,
  660. type: '历史数据'
  661. };
  662. uni.navigateTo({
  663. url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  664. .stringify(
  665. obj))
  666. })
  667. } else if (this.EngineeringValue == '带气封堵施工') {
  668. this.nodeId = item.id;
  669. let obj = {
  670. id: this.nodeId,
  671. type: item.dictvalue
  672. };
  673. uni.navigateTo({
  674. url: '/pages/statistics/history_gas_sealing?params=' + encodeURIComponent(JSON
  675. .stringify(
  676. obj))
  677. })
  678. }
  679. },
  680. showHistoryList() {
  681. this.$refs.refShare.handleShowShare();
  682. },
  683. showTypeSheet(item) {
  684. if (this.isLeader == 'sys_user') {
  685. let param = {
  686. areaId: this.roomItem.areaId,
  687. buildingId: this.roomItem.buildingId,
  688. unitId: this.roomItem.unitId,
  689. houseId: this.roomItem.roomId,
  690. enginCycle: this.projectValue2.dictValue, // 工程周期
  691. enginType: this.roomItem.enginCycle,
  692. enginClassification: 'indoor_engin', //写死 室内
  693. }
  694. getRoomProjectId(param).then(res => {
  695. if (res.code == '200') {
  696. if (res.data != null) {
  697. getRoomProjectList(res.data.id, item.Type).then(res => {
  698. if (res.data.zEngineeringNodeBo != null) {
  699. this.historyList = res.data
  700. this.showHistoryList();
  701. } else {
  702. this.$modal.msg("暂无历史信息")
  703. }
  704. })
  705. } else {
  706. this.$modal.msg("暂无工程信息")
  707. }
  708. } else {
  709. this.$modal.msg(res.msg)
  710. }
  711. })
  712. } else {
  713. if (this.EngineeringValue == '民用工程') {
  714. let obj = {
  715. id: this.nodeId,
  716. type: item.Type,
  717. roomId: this.roomId,
  718. };
  719. this.handleHiddenShare();
  720. if (this.nodeType == 'indoor_engin') { //室内
  721. uni.navigateTo({
  722. url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
  723. .stringify(
  724. obj))
  725. })
  726. } else if (this.nodeType == 'overhead') { //架空
  727. uni.navigateTo({
  728. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  729. .stringify(
  730. obj))
  731. })
  732. } else if (this.nodeType == 'courtyard') { //庭院
  733. uni.navigateTo({
  734. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  735. .stringify(
  736. obj))
  737. })
  738. }
  739. } else if (this.EngineeringValue == '顶管工程') {
  740. let obj = {
  741. id: this.nodeId,
  742. type: item.Type,
  743. };
  744. uni.navigateTo({
  745. url: '/pages/statistics/historyDetailsTopTube?params=' + encodeURIComponent(JSON
  746. .stringify(
  747. obj))
  748. })
  749. this.handleHiddenShare();
  750. } else if (this.EngineeringValue == '基建工程') {
  751. let obj = {
  752. id: this.nodeId,
  753. type: item.Type,
  754. };
  755. uni.navigateTo({
  756. url: '/pages/statistics/historyDetailsInfrastructure?params=' + encodeURIComponent(JSON
  757. .stringify(
  758. obj))
  759. })
  760. this.handleHiddenShare();
  761. } else if (this.EngineeringValue == '市政工程') {
  762. let obj = {
  763. id: this.nodeId,
  764. type: item.Type,
  765. };
  766. uni.navigateTo({
  767. url: '/pages/statistics/historyDetailMunicipal?params=' + encodeURIComponent(JSON
  768. .stringify(
  769. obj))
  770. })
  771. this.handleHiddenShare();
  772. }
  773. }
  774. },
  775. pickerShow(e) {
  776. this.type = e;
  777. if (e == 'gcx') {
  778. this.open = true;
  779. this.EngineeringList = [];
  780. this.userRole.forEach((item, index) => {
  781. this.EngineeringList.push({
  782. 'id': index,
  783. 'name': item
  784. })
  785. });
  786. this.selectList = this.EngineeringList;
  787. } else if (e == 'gczq') {
  788. this.openDict = true;
  789. getDicts("engin_cycle").then(response => {
  790. this.dictOptions = response.data;
  791. });
  792. } else if (e == 'gclx') {
  793. this.openDict = true;
  794. getDicts('indoor_engin_type').then(response => {
  795. this.dictOptions = response.data;
  796. });
  797. } else if (e == 'gcfl') {
  798. if (this.isEmpty(this.ProjectType.dictValue)) {
  799. this.$modal.msg('请选择工程类型')
  800. } else {
  801. this.openDict = true;
  802. getDicts(this.ProjectType.dictValue).then(response => {
  803. this.dictOptions = response.data;
  804. });
  805. }
  806. } else if (e == 'gcbz') {
  807. if (this.isEmpty(this.ProjectClassification.dictValue)) {
  808. this.$modal.msg('请选择工程分类')
  809. } else {
  810. this.openDict = true;
  811. getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
  812. response => {
  813. this.dictOptions = response.data;
  814. });
  815. }
  816. } else if (e == 'shzt') {
  817. if (this.EngineeringValue == '民用工程') {
  818. if (this.isEmpty(this.ProjectSteps.dictValue)) {
  819. this.$modal.msg('请选择工程步骤')
  820. } else {
  821. this.openDict = true;
  822. getDicts('state_options').then(
  823. response => {
  824. this.dictOptions = response.data;
  825. });
  826. }
  827. } else {
  828. this.openDict = true;
  829. getDicts('state_options').then(
  830. response => {
  831. this.dictOptions = response.data;
  832. });
  833. }
  834. } else if (e == 'xzq') {
  835. if (this.isEmpty(this.projectValue.dictValue)) {
  836. this.$modal.msg('请选择工程周期')
  837. } else {
  838. this.openDict = true;
  839. getDicts("district").then(response => {
  840. this.dictOptions = response.data;
  841. });
  842. }
  843. } else if (e == 'xq') {
  844. if (this.isEmpty(this.XZQValue.dictValue)) {
  845. this.$modal.msg('请选择行政区')
  846. } else {
  847. this.open = true;
  848. this.selectList = this.XQList;
  849. }
  850. } else if (e == 'ld') {
  851. if (this.isEmpty(this.XQValue.id)) {
  852. this.$modal.msg('请选择小区')
  853. } else {
  854. this.open = true;
  855. this.selectList = this.LDList;
  856. }
  857. } else if (e == 'dy') {
  858. if (this.isEmpty(this.LDValue.id)) {
  859. this.$modal.msg('请选择楼栋')
  860. } else {
  861. this.open = true;
  862. this.selectList = this.DYList;
  863. }
  864. } else if (e == 'gczq2') {
  865. this.openDict = true;
  866. getDicts("engin_cycle").then(response => {
  867. this.dictOptions = response.data;
  868. });
  869. } else if (e == 'xzq2' || e == 'xzq3') {
  870. if (this.isEmpty(this.projectValue2.dictValue)) {
  871. this.$modal.msg('请选择工程周期')
  872. } else {
  873. this.openDict = true;
  874. getDicts("district").then(response => {
  875. this.dictOptions = response.data;
  876. });
  877. }
  878. } else if (e == 'xq2') {
  879. if (this.isEmpty(this.XZQValue2.dictValue)) {
  880. this.$modal.msg('请选择行政区')
  881. } else {
  882. this.open = true;
  883. this.selectList = this.XQList2;
  884. }
  885. } else if (e == 'ld2') {
  886. if (this.isEmpty(this.XQValue2.id)) {
  887. this.$modal.msg('请选择小区')
  888. } else {
  889. this.open = true;
  890. this.selectList = this.LDList2;
  891. }
  892. } else if (e == 'dy2') {
  893. if (this.isEmpty(this.LDValue2.id)) {
  894. this.$modal.msg('请选择楼栋')
  895. } else {
  896. this.open = true;
  897. this.selectList = this.DYList2;
  898. }
  899. } else if (e == 'xq3') {
  900. if (this.isEmpty(this.XZQValue3.dictValue)) {
  901. this.$modal.msg('请选择行政区')
  902. } else {
  903. this.open = true;
  904. this.selectList = this.XQList3;
  905. }
  906. } else if (e == 'ld3') {
  907. if (this.isEmpty(this.XQValue3.id)) {
  908. this.$modal.msg('请选择小区')
  909. } else {
  910. this.open = true;
  911. this.selectList = this.LDList3;
  912. }
  913. } else if (e == 'dy3') {
  914. if (this.isEmpty(this.LDValue2.id)) {
  915. this.$modal.msg('请选择楼栋')
  916. } else {
  917. this.open = true;
  918. this.selectList = this.DYList3;
  919. }
  920. } else if (e == 'fj3') {
  921. if (this.isEmpty(this.LDValue3.id)) {
  922. this.$modal.msg('请选择楼栋')
  923. } else {
  924. this.open = true;
  925. this.selectList = this.FJList3;
  926. }
  927. } else if (e == 'gg') {
  928. if (this.isEmpty(this.materialValue.id)) {
  929. this.$modal.msg('请选择材料')
  930. } else {
  931. this.open = true;
  932. this.selectList = this.materialList;
  933. }
  934. } else if (e == 'cz') {
  935. this.open = true;
  936. getEnginMaterialQualityList("民用工程").then(response => {
  937. this.selectList = response.data;
  938. });
  939. }
  940. },
  941. changeSelect(item, index) {
  942. this.open = false;
  943. this.openDict = false;
  944. if (this.type == 'gcx') {
  945. this.EngineeringValue = item.name
  946. this.changeTab();
  947. } else if (this.type == 'xzq') {
  948. this.XZQValue = item;
  949. this.XQValue = '';
  950. this.LDValue = '';
  951. this.DYValue = '';
  952. this.FJValue = '';
  953. getAreaList(item.dictValue).then(res => {
  954. this.XQList = res.data;
  955. })
  956. } else if (this.type == 'gczq') {
  957. this.projectValue = item
  958. } else if (this.type == 'gclx') {
  959. this.ProjectType = item
  960. this.ProjectClassification = '';
  961. this.ProjectSteps = '';
  962. this.ReviewStatus = '';
  963. } else if (this.type == 'gcfl') {
  964. this.ProjectClassification = item
  965. this.ProjectSteps = '';
  966. this.ReviewStatus = '';
  967. } else if (this.type == 'gcbz') {
  968. this.ProjectSteps = item
  969. this.ReviewStatus = '';
  970. } else if (this.type == 'shzt') {
  971. this.ReviewStatus = item
  972. } else if (this.type == 'xq') {
  973. this.XQValue = item;
  974. this.LDValue = '';
  975. this.DYValue = '';
  976. this.FJValue = '';
  977. this.queryMaterialsUsedList();
  978. } else if (this.type == 'ld') {
  979. this.LDValue = item;
  980. this.DYValue = '';
  981. this.FJValue = '';
  982. getUnitList(item.id).then(res => {
  983. this.DYList = res.data
  984. })
  985. } else if (this.type == 'dy') {
  986. this.DYValue = item;
  987. } else if (this.type == 'gczq2') {
  988. this.projectValue2 = item
  989. } else if (this.type == 'xzq2') {
  990. this.XZQValue2 = item;
  991. this.XQValue2 = '';
  992. this.LDValue2 = '';
  993. this.DYValue2 = '';
  994. this.FJValue2 = '';
  995. getAreaList(item.dictValue).then(res => {
  996. this.XQList2 = res.data;
  997. })
  998. } else if (this.type == 'xzq3') {
  999. this.XZQValue3 = item;
  1000. this.XQValue3 = '';
  1001. this.LDValue3 = '';
  1002. this.DYValue3 = '';
  1003. this.FJValue3 = '';
  1004. getAreaList(item.dictValue).then(res => {
  1005. this.XQList3 = res.data;
  1006. })
  1007. } else if (this.type == 'xq2') {
  1008. this.XQValue2 = item;
  1009. this.LDValue2 = '';
  1010. this.DYValue2 = '';
  1011. this.FJValue2 = '';
  1012. getBuildingList(item.id).then(res => {
  1013. this.LDList2 = res.data
  1014. })
  1015. } else if (this.type == 'xq3') {
  1016. this.XQValue3 = item;
  1017. this.LDValue3 = '';
  1018. this.DYValue3 = '';
  1019. this.FJValue3 = '';
  1020. getBuildingList(item.id).then(res => {
  1021. this.LDList3 = res.data
  1022. })
  1023. } else if (this.type == 'ld2') {
  1024. this.LDValue2 = item;
  1025. this.DYValue2 = '';
  1026. this.FJValue2 = '';
  1027. getUnitList(item.id).then(res => {
  1028. this.DYList2 = res.data
  1029. })
  1030. } else if (this.type == 'ld3') {
  1031. this.LDValue3 = item;
  1032. this.DYValue3 = '';
  1033. this.FJValue3 = '';
  1034. getUnitList(item.id).then(res => {
  1035. this.DYList3 = res.data
  1036. })
  1037. } else if (this.type == 'dy3') {
  1038. this.DYValue3 = item;
  1039. this.FJValue3 = '';
  1040. getHousesList(item.id).then(res => {
  1041. this.FJList3 = res.data
  1042. })
  1043. } else if (this.type == 'dy2') {
  1044. this.DYValue2 = item;
  1045. this.queryProjectStatisticsList();
  1046. } else if (this.type == 'gg') {
  1047. this.specificationValue = item;
  1048. this.queryMaterialsUsedList();
  1049. } else if (this.type == 'cz') {
  1050. this.materialValue = item;
  1051. this.specificationValue = '';
  1052. this.queryMaterialsUsedList();
  1053. getEnginSpecificationsList(item.id).then(res => {
  1054. this.materialList = res.data
  1055. })
  1056. }
  1057. },
  1058. close(e) {
  1059. this.open = false
  1060. },
  1061. closeDict(e) {
  1062. this.openDict = false
  1063. },
  1064. queryMaterialsUsedList() {
  1065. if (this.isEmpty(this.XQValue.id)) {
  1066. this.$modal.msg('请选择小区')
  1067. return;
  1068. }
  1069. let param = {
  1070. enginCycle: this.projectValue.dictValue, //工程周期
  1071. areaId: this.XQValue.id,
  1072. realityQuality: this.materialValue.id,
  1073. realitySpecifications: this.specificationValue.id,
  1074. };
  1075. getMunicipalStatisticsData(param).then(res => {
  1076. this.materialUsageList = res.data;
  1077. })
  1078. },
  1079. queryProjectStatisticsList() {
  1080. let param = {
  1081. enginCycle: this.projectValue.dictValue, //工程周期
  1082. areaId: this.XQValue2.id,
  1083. buildingId: this.LDValue2.id,
  1084. unitId: this.DYValue2.id,
  1085. };
  1086. getObtainRoomcCompletionInformationList(param).then(res => {
  1087. this.roomList = res.data[0].roomStatusVoList;
  1088. this.roomCount = res.data[0].roomStatusVoList.length;
  1089. })
  1090. },
  1091. getColorByStatus(status) {
  1092. if (this.isEmpty(status)) {
  1093. return "#fff";
  1094. }
  1095. if (status == '施工中') {
  1096. return "#5bd3ff";
  1097. } else if (status == '未施工') {
  1098. return "#ffc881";
  1099. } else if (status == '竣工') {
  1100. return "#80d9ae";
  1101. }
  1102. },
  1103. clearMaterialInfo() {
  1104. this.materialValue = '';
  1105. this.specificationValue = '';
  1106. this.queryMaterialsUsedList();
  1107. },
  1108. clearSpecificationInfo() {
  1109. this.specificationValue = '';
  1110. this.queryMaterialsUsedList();
  1111. },
  1112. pullDown(pullScroll) {
  1113. this.pageNum = 1;
  1114. setTimeout(() => {
  1115. this.requestData(pullScroll);
  1116. }, 1000);
  1117. },
  1118. getList() {
  1119. let myThis = this;
  1120. this.$nextTick(() => {
  1121. myThis.$refs.pullScroll.refresh();
  1122. });
  1123. },
  1124. changeTab() {
  1125. this.pageSize = 10;
  1126. this.totalNum = '';
  1127. this.pageNum = 1;
  1128. this.requestData();
  1129. },
  1130. requestData() {
  1131. uni.showLoading()
  1132. if (this.EngineeringValue == '民用工程') {
  1133. let type = ''
  1134. let param = {
  1135. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1136. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1137. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1138. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1139. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1140. enginType: this.ProjectType.dictValue == undefined ? '' : this.ProjectType.dictValue,
  1141. enginCycle: '0',
  1142. enginClassification: this.ProjectClassification.dictValue == undefined ? '' : this
  1143. .ProjectClassification.dictValue,
  1144. type: this.ProjectSteps.dictValue == undefined ? '' : this.ProjectSteps.dictValue,
  1145. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1146. createBy: user.state.name,
  1147. pageNum: this.pageNum,
  1148. pageSize: this.pageSize
  1149. }
  1150. gethistoryList(param).then(res => {
  1151. this.totalNum = res.total
  1152. if (res.code == '200') {
  1153. uni.hideLoading()
  1154. if (res.rows.length !== 0) {
  1155. if (this.pageNum == 1) {
  1156. this.list = [];
  1157. this.list = res.rows
  1158. } else {
  1159. this.list = this.list.concat(res.rows)
  1160. }
  1161. if (this.pageNum * 10 >= this.totalNum) {
  1162. this.$refs.pullScroll.finish();
  1163. } else {
  1164. this.$refs.pullScroll.success();
  1165. }
  1166. } else {
  1167. this.list = [];
  1168. this.$refs.pullScroll.empty();
  1169. }
  1170. } else {
  1171. this.$modal.msg(res.msg + "")
  1172. this.$refs.pullScroll.error();
  1173. }
  1174. })
  1175. } else if (this.EngineeringValue == '开栓') {
  1176. let type = ''
  1177. let param = {
  1178. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1179. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1180. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1181. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1182. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1183. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1184. createBy: user.state.name,
  1185. pageNum: this.pageNum,
  1186. pageSize: this.pageSize
  1187. }
  1188. getKShistoryList(param).then(res => {
  1189. this.totalNum = res.total
  1190. if (res.code == '200') {
  1191. uni.hideLoading()
  1192. if (res.rows.length !== 0) {
  1193. if (this.pageNum == 1) {
  1194. this.list = [];
  1195. this.list = res.rows
  1196. } else {
  1197. this.list = this.list.concat(res.rows)
  1198. }
  1199. if (this.pageNum * 10 >= this.totalNum) {
  1200. this.$refs.pullScroll.finish();
  1201. } else {
  1202. this.$refs.pullScroll.success();
  1203. }
  1204. } else {
  1205. this.list = [];
  1206. this.$refs.pullScroll.empty();
  1207. }
  1208. } else {
  1209. this.$modal.msg(res.msg + "")
  1210. this.$refs.pullScroll.error();
  1211. }
  1212. })
  1213. } else if (this.EngineeringValue == '顶管工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  1214. '危险作业工程' || this.EngineeringValue == '市政工程' || this.EngineeringValue == '工业工程' || this
  1215. .EngineeringValue == '带气封堵施工') {
  1216. //type 1 = 顶管, 2=基建 3=危险 4= 市政 5= 工业 type=6 是带气封堵
  1217. let chooseType = '';
  1218. switch (this.EngineeringValue) {
  1219. case '顶管工程':
  1220. chooseType = '1';
  1221. break
  1222. case '基建工程':
  1223. chooseType = '2';
  1224. break
  1225. case '危险作业工程':
  1226. chooseType = '3';
  1227. break
  1228. case '市政工程':
  1229. chooseType = '4';
  1230. break
  1231. case '工业工程':
  1232. chooseType = '5';
  1233. break
  1234. case '带气封堵施工':
  1235. chooseType = '6';
  1236. break
  1237. }
  1238. let param = {
  1239. type: chooseType,
  1240. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1241. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1242. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1243. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1244. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1245. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1246. createBy: user.state.name,
  1247. pageNum: this.pageNum,
  1248. pageSize: this.pageSize
  1249. }
  1250. getHistoryByUserList(param).then(res => {
  1251. this.totalNum = res.data.total
  1252. if (res.code == '200') {
  1253. uni.hideLoading()
  1254. if (res.data.rows.length !== 0) {
  1255. if (this.pageNum == 1) {
  1256. this.list = [];
  1257. this.list = res.data.rows
  1258. } else {
  1259. this.list = this.list.concat(res.data.rows)
  1260. }
  1261. if (this.pageNum * 10 >= this.totalNum) {
  1262. this.$refs.pullScroll.finish();
  1263. } else {
  1264. this.$refs.pullScroll.success();
  1265. }
  1266. } else {
  1267. this.list = [];
  1268. this.$refs.pullScroll.empty();
  1269. }
  1270. } else {
  1271. this.$modal.msg(res.msg + "")
  1272. this.$refs.pullScroll.error();
  1273. }
  1274. })
  1275. }
  1276. },
  1277. }
  1278. }
  1279. </script>
  1280. <style lang="scss">
  1281. .to-right-icon {
  1282. width: 15px;
  1283. height: 15px;
  1284. position: absolute;
  1285. top: 50%;
  1286. transform: translateY(-50%);
  1287. }
  1288. .uni-media-list {
  1289. width: 100%;
  1290. }
  1291. .no-click {
  1292. pointer-events: none;
  1293. }
  1294. .marginLeft5 {
  1295. margin-left: 5px;
  1296. }
  1297. .title-txt {
  1298. font-size: 15px;
  1299. font-weight: bold;
  1300. color: black;
  1301. padding: 20rpx 0;
  1302. }
  1303. .content-txt {
  1304. font-size: 10px;
  1305. font-weight: bold;
  1306. color: black;
  1307. }
  1308. .view-bg {
  1309. margin-left: 8px;
  1310. margin-right: 8px;
  1311. margin-top: 8px;
  1312. background-color: #fff;
  1313. border-radius: 5px;
  1314. padding: 20px;
  1315. display: flex;
  1316. flex-direction: column;
  1317. }
  1318. .uni-list {
  1319. background-color: #FFFFFF;
  1320. position: relative;
  1321. width: 100%;
  1322. display: flex;
  1323. flex-direction: column;
  1324. }
  1325. .uni-list-cell {
  1326. display: flex;
  1327. align-items: center;
  1328. justify-content: space-between;
  1329. padding: 10px 0;
  1330. position: relative;
  1331. }
  1332. .uni-list-cell-left {
  1333. white-space: nowrap;
  1334. font-size: 28rpx;
  1335. }
  1336. .centered {
  1337. text-align: center;
  1338. background-color: #e2f4ff;
  1339. }
  1340. .text {
  1341. background-color: #e2f4ff;
  1342. height: 20rpx;
  1343. }
  1344. .view_bg_build {
  1345. background-color: #e2f4ff;
  1346. padding: 10px 10px 0 10px;
  1347. margin: 0 auto;
  1348. border: 1px solid #5bd3ff;
  1349. white-space: nowrap;
  1350. position: relative;
  1351. z-index: 2;
  1352. }
  1353. .grid-text {
  1354. font-size: 14px;
  1355. color: #000000;
  1356. text-align: center;
  1357. padding-left: 30rpx;
  1358. padding-right: 30rpx;
  1359. padding-top: 20rpx;
  1360. padding-bottom: 20rpx;
  1361. }
  1362. .name {
  1363. flex: 0;
  1364. font-size: 14px;
  1365. color: #000000;
  1366. overflow: hidden;
  1367. text-overflow: ellipsis;
  1368. white-space: nowrap;
  1369. }
  1370. .table-item {
  1371. overflow: hidden;
  1372. text-overflow: ellipsis;
  1373. white-space: nowrap;
  1374. }
  1375. .block-iv {
  1376. width: 20px;
  1377. height: 20px;
  1378. }
  1379. .table {
  1380. width: 100%;
  1381. border-radius: 8rpx;
  1382. background: #FFFFFF;
  1383. /* border: 1rpx solid #EFEFEF; */
  1384. font-size: 28rpx;
  1385. margin-top: 40rpx;
  1386. }
  1387. .felx-row {
  1388. width: 100%;
  1389. display: flex;
  1390. justify-content: space-between;
  1391. align-items: center;
  1392. }
  1393. .h-tr {
  1394. box-sizing: border-box;
  1395. display: flex;
  1396. flex-direction: row;
  1397. flex-wrap: nowrap;
  1398. justify-content: center;
  1399. align-items: center;
  1400. align-content: center;
  1401. border-color: #ccc;
  1402. border-style: solid;
  1403. border-width: 0;
  1404. border-width: 1px;
  1405. color: #3d7dd7;
  1406. }
  1407. .h-td {
  1408. box-sizing: border-box;
  1409. padding: 3px;
  1410. word-break: break-all;
  1411. border-color: #ccc;
  1412. border-style: solid;
  1413. border-width: 1px;
  1414. border-right-width: 1px;
  1415. display: flex;
  1416. flex-direction: row;
  1417. flex-wrap: nowrap;
  1418. justify-content: center;
  1419. align-items: center;
  1420. align-content: center;
  1421. min-height: 64rpx;
  1422. }
  1423. .LouCeng {
  1424. font-size: 30rpx;
  1425. background-color: #4a4b52;
  1426. color: #FFEB3B;
  1427. font-weight: bold;
  1428. }
  1429. .Fang {
  1430. width: 100%;
  1431. display: inline-block;
  1432. line-height: 50rpx;
  1433. text-align: center;
  1434. margin-right: 10px;
  1435. margin-bottom: 10px;
  1436. background-color: red;
  1437. }
  1438. .HuaDongBiao {
  1439. display: flex;
  1440. flex-direction: column-reverse;
  1441. position: relative;
  1442. }
  1443. .NeiRong {
  1444. display: flex;
  1445. flex-wrap: nowrap;
  1446. }
  1447. .NeiRong :last-child {
  1448. margin-right: 0 !important;
  1449. }
  1450. .ShiGongZhong {
  1451. background-color: #5bd3ff;
  1452. color: #000;
  1453. }
  1454. .WeiShiGong {
  1455. background-color: #ffc881;
  1456. color: #000;
  1457. }
  1458. .JunGong {
  1459. background-color: #80d9ae;
  1460. color: #000;
  1461. }
  1462. .container {
  1463. display: flex;
  1464. margin-left: 10px;
  1465. width: 100%;
  1466. margin-top: 10px;
  1467. margin-right: 10px;
  1468. justify-content: space-between;
  1469. }
  1470. .notice {
  1471. margin: 20rpx;
  1472. padding: 20rpx;
  1473. background: #FFFFFF;
  1474. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  1475. border-radius: 10rpx;
  1476. }
  1477. .text {
  1478. border-left: 15rpx solid #3857F3;
  1479. padding-left: 20rpx;
  1480. }
  1481. .share {
  1482. width: 100%;
  1483. height: 100%;
  1484. }
  1485. .share-box {
  1486. width: 100%;
  1487. height: 100%;
  1488. position: fixed;
  1489. top: 0rpx;
  1490. left: 0rpx;
  1491. bottom: 0rpx;
  1492. right: 0rpx;
  1493. background-color: rgba(0, 0, 0, 0.4);
  1494. transition: .3s;
  1495. z-index: 999;
  1496. }
  1497. .share-show {
  1498. transition: all 0.3s ease;
  1499. transform: translateY(0%) !important;
  1500. }
  1501. .scroll-Y {
  1502. height: 350rpx;
  1503. }
  1504. .share-item {
  1505. position: fixed;
  1506. left: 0;
  1507. bottom: 0;
  1508. width: 100%;
  1509. height: auto;
  1510. background-color: #FFFFFF;
  1511. transition: all 0.3s ease;
  1512. transform: translateY(100%);
  1513. z-index: 1999;
  1514. border-top-left-radius: 40rpx;
  1515. border-top-right-radius: 40rpx;
  1516. .share-to {
  1517. width: 100%;
  1518. height: 3rem;
  1519. display: flex;
  1520. justify-content: center;
  1521. align-items: center;
  1522. &::after {
  1523. content: '';
  1524. width: 240rpx;
  1525. height: 0rpx;
  1526. border-top: 1px solid #E4E7ED;
  1527. -webkit-transform: scaleY(0.5);
  1528. transform: scaleY(0.5);
  1529. margin-left: 30rpx;
  1530. }
  1531. &::before {
  1532. content: '';
  1533. width: 240rpx;
  1534. height: 0rpx;
  1535. border-top: 1px solid #E4E7ED;
  1536. -webkit-transform: scaleY(0.5);
  1537. transform: scaleY(0.5);
  1538. margin-right: 30rpx;
  1539. }
  1540. }
  1541. .content {
  1542. width: 100%;
  1543. height: 50%;
  1544. display: flex;
  1545. flex-wrap: wrap;
  1546. .block {
  1547. width: 100%;
  1548. display: flex;
  1549. flex-direction: column;
  1550. justify-content: center;
  1551. align-items: center;
  1552. height: 80rpx;
  1553. text {
  1554. margin-top: 16rpx;
  1555. font-size: 28rpx;
  1556. color: #606266;
  1557. }
  1558. }
  1559. }
  1560. .cancel {
  1561. width: 100%;
  1562. height: 3rem;
  1563. display: flex;
  1564. justify-content: center;
  1565. align-items: center;
  1566. border-top: 1rpx solid #E4E7ED;
  1567. }
  1568. }
  1569. .background {
  1570. // border: 15px solid hsla(0, 0%, 100%, .5);
  1571. background: white;
  1572. background-clip: padding-box;
  1573. padding: 20rpx;
  1574. border-radius: 20rpx;
  1575. margin: 20rpx 10rpx;
  1576. /*从padding开始往外面裁剪背景*/
  1577. }
  1578. </style>