statistics.vue 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900
  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. getByUserListAndDicts,
  500. } from '@/api/common'
  501. export default {
  502. components: {
  503. SelectPicker,
  504. CCBProjectList,
  505. bottomSheet
  506. },
  507. data() {
  508. return {
  509. historyList: {}, //历史数据
  510. userRole: getUserRole(),
  511. tabValue: ['旧改', '新建'],
  512. tabIndex: 0,
  513. isLeader: '',
  514. list: [],
  515. newlist: [],
  516. pageSize: 10,
  517. totalNum: '',
  518. pageNum: 1,
  519. typeList: '',
  520. villageIndex: 0,
  521. specificationIndex: 0,
  522. materialIndex: 0,
  523. villageIndex2: 0,
  524. buildIndex: 0,
  525. unitIndex: 0,
  526. open: false,
  527. openDict: false,
  528. selectList: [],
  529. dictOptions: [],
  530. XQList: [],
  531. LDList: [],
  532. DYList: [],
  533. projectValue: {
  534. 'dictValue': '0'
  535. },
  536. XZQValue: {},
  537. XQValue: {},
  538. XQList2: [],
  539. LDList2: [],
  540. DYList2: [],
  541. XQList3: [],
  542. LDList3: [],
  543. DYList3: [],
  544. FJList3: [],
  545. projectValue2: {
  546. 'dictValue': '0'
  547. },
  548. EngineeringValue: '',
  549. EngineeringName: '',
  550. EngineeringList: [],
  551. shareState: false,
  552. XZQValue2: {},
  553. XQValue2: {},
  554. LDValue2: {},
  555. DYValue2: {},
  556. XZQValue3: {},
  557. XQValue3: {},
  558. LDValue3: {},
  559. DYValue3: {},
  560. FJValue3: {},
  561. ProjectType: {},
  562. ProjectClassification: {},
  563. ProjectSteps: {},
  564. ReviewStatus: {},
  565. change: false,
  566. specificationValue: {},
  567. specificationList: [],
  568. materialValue: {},
  569. materialList: [],
  570. materialUsageList: [],
  571. roomList: [],
  572. roomCount: 4,
  573. nodeId: '',
  574. nodeType: '',
  575. roomItem: {},
  576. roomId: '',
  577. }
  578. },
  579. created() {},
  580. onLoad() {
  581. this.isLeader = getUserType()
  582. this.EngineeringValue = this.userRole[0];
  583. if (this.isLeader == 'app_user') {
  584. this.changeTab();
  585. }
  586. },
  587. // 上拉加载
  588. onReachBottom() {
  589. if (this.pageNum * 10 >= this.totalNum) {
  590. } else {
  591. this.$refs.pullScroll.showUpLoading();
  592. this.pageNum++;
  593. this.requestData();
  594. }
  595. },
  596. methods: {
  597. goHistory(item) {
  598. this.roomItem = item;
  599. getDicts(item.enginCycle + '_indoor_engin').then(response => {
  600. this.typeList = response.data;
  601. let result = JSON.parse(JSON.stringify(this.typeList).replace(/dictValue/g, 'Type'));
  602. this.typeList = result;
  603. this.handleShowSheet();
  604. });
  605. },
  606. serch() {
  607. this.changeTab();
  608. },
  609. change1() {
  610. this.change = !this.change
  611. },
  612. isEmpty(str) {
  613. return (!str || 0 === str.length);
  614. },
  615. handleShowSheet() {
  616. this.shareState = true;
  617. },
  618. handleHiddenShare() {
  619. this.shareState = false;
  620. },
  621. chooseNode(item) {
  622. if (this.EngineeringValue == '民用工程') {
  623. this.typeList = item.nodeReViewStateList
  624. this.nodeId = item.id;
  625. this.nodeType = item.enginClassification;
  626. this.roomId = item.houseId;
  627. if (this.nodeType == 'bottom_leg') { //底腿
  628. let obj = {
  629. id: this.nodeId,
  630. type: item.Type
  631. };
  632. uni.navigateTo({
  633. url: '/pages/statistics/history_details_bottom_leg?params=' + encodeURIComponent(JSON
  634. .stringify(
  635. obj))
  636. })
  637. } else {
  638. this.handleShowSheet();
  639. }
  640. } else if (this.EngineeringValue == '开栓') {
  641. this.nodeId = item.id;
  642. let obj = {
  643. type: 'edit',
  644. id: this.nodeId,
  645. };
  646. uni.navigateTo({
  647. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  648. .stringify(
  649. obj))
  650. })
  651. } else if (this.EngineeringValue == '市政工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  652. '顶管工程') {
  653. this.nodeId = item.id;
  654. let result = JSON.parse(JSON.stringify(item.status).replace(/type/g, 'Type'));
  655. this.typeList = result;
  656. this.handleShowSheet();
  657. } else if (this.EngineeringValue == '工业工程') {
  658. this.nodeId = item.id;
  659. let obj = {
  660. id: this.nodeId,
  661. type: '历史数据'
  662. };
  663. uni.navigateTo({
  664. url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  665. .stringify(
  666. obj))
  667. })
  668. } else if (this.EngineeringValue == '带气封堵施工') {
  669. this.nodeId = item.id;
  670. let obj = {
  671. id: this.nodeId,
  672. type: item.dictvalue
  673. };
  674. uni.navigateTo({
  675. url: '/pages/statistics/history_gas_sealing?params=' + encodeURIComponent(JSON
  676. .stringify(
  677. obj))
  678. })
  679. }
  680. },
  681. showHistoryList() {
  682. this.$refs.refShare.handleShowShare();
  683. },
  684. showTypeSheet(item) {
  685. if (this.isLeader == 'sys_user') {
  686. let param = {
  687. areaId: this.roomItem.areaId,
  688. buildingId: this.roomItem.buildingId,
  689. unitId: this.roomItem.unitId,
  690. houseId: this.roomItem.roomId,
  691. enginCycle: this.projectValue2.dictValue, // 工程周期
  692. enginType: this.roomItem.enginCycle,
  693. enginClassification: 'indoor_engin', //写死 室内
  694. }
  695. getRoomProjectId(param).then(res => {
  696. if (res.code == '200') {
  697. if (res.data != null) {
  698. getRoomProjectList(res.data.id, item.Type).then(res => {
  699. if (res.data.zEngineeringNodeBo != null) {
  700. this.historyList = res.data
  701. this.showHistoryList();
  702. } else {
  703. this.$modal.msg("暂无历史信息")
  704. }
  705. })
  706. } else {
  707. this.$modal.msg("暂无工程信息")
  708. }
  709. } else {
  710. this.$modal.msg(res.msg)
  711. }
  712. })
  713. } else {
  714. if (this.EngineeringValue == '民用工程') {
  715. let obj = {
  716. id: this.nodeId,
  717. type: item.Type,
  718. roomId: this.roomId,
  719. };
  720. this.handleHiddenShare();
  721. if (this.nodeType == 'indoor_engin') { //室内
  722. uni.navigateTo({
  723. url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
  724. .stringify(
  725. obj))
  726. })
  727. } else if (this.nodeType == 'overhead') { //架空
  728. uni.navigateTo({
  729. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  730. .stringify(
  731. obj))
  732. })
  733. } else if (this.nodeType == 'courtyard') { //庭院
  734. uni.navigateTo({
  735. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  736. .stringify(
  737. obj))
  738. })
  739. }
  740. } else if (this.EngineeringValue == '顶管工程') {
  741. let obj = {
  742. id: this.nodeId,
  743. type: item.Type,
  744. };
  745. uni.navigateTo({
  746. url: '/pages/statistics/historyDetailsTopTube?params=' + encodeURIComponent(JSON
  747. .stringify(
  748. obj))
  749. })
  750. this.handleHiddenShare();
  751. } else if (this.EngineeringValue == '基建工程') {
  752. let obj = {
  753. id: this.nodeId,
  754. type: item.Type,
  755. };
  756. uni.navigateTo({
  757. url: '/pages/statistics/historyDetailsInfrastructure?params=' + encodeURIComponent(JSON
  758. .stringify(
  759. obj))
  760. })
  761. this.handleHiddenShare();
  762. } else if (this.EngineeringValue == '市政工程') {
  763. let obj = {
  764. id: this.nodeId,
  765. type: item.Type,
  766. };
  767. uni.navigateTo({
  768. url: '/pages/statistics/historyDetailMunicipal?params=' + encodeURIComponent(JSON
  769. .stringify(
  770. obj))
  771. })
  772. this.handleHiddenShare();
  773. }
  774. }
  775. },
  776. pickerShow(e) {
  777. this.type = e;
  778. if (e == 'gcx') {
  779. this.open = true;
  780. this.EngineeringList = [];
  781. this.userRole.forEach((item, index) => {
  782. if (item != '危险作业工程') {
  783. console.log("===", item)
  784. this.EngineeringList.push({
  785. 'id': index,
  786. 'name': item
  787. })
  788. }
  789. });
  790. this.selectList = this.EngineeringList;
  791. } else if (e == 'gczq') {
  792. this.openDict = true;
  793. getDicts("engin_cycle").then(response => {
  794. this.dictOptions = response.data;
  795. });
  796. } else if (e == 'gclx') {
  797. this.openDict = true;
  798. getDicts('indoor_engin_type').then(response => {
  799. this.dictOptions = response.data;
  800. });
  801. } else if (e == 'gcfl') {
  802. if (this.EngineeringValue == '民用工程') {
  803. if (this.isEmpty(this.ProjectType.dictValue)) {
  804. this.$modal.msg('请选择工程类型')
  805. } else {
  806. this.openDict = true;
  807. getDicts(this.ProjectType.dictValue).then(response => {
  808. this.dictOptions = response.data;
  809. });
  810. }
  811. } else {
  812. //工业5 带起封堵施工3
  813. let nodeType = '';
  814. if (this.EngineeringValue == '工业工程') {
  815. nodeType = '5';
  816. } else if (this.EngineeringValue == '带气封堵施工') {
  817. nodeType = '3';
  818. }
  819. this.openDict = true;
  820. getByUserListAndDicts(nodeType).then(
  821. response => {
  822. this.dictOptions = response.data;
  823. });
  824. }
  825. } else if (e == 'gcbz') {
  826. if (this.EngineeringValue == '民用工程') {
  827. if (this.isEmpty(this.ProjectClassification.dictValue)) {
  828. this.$modal.msg('请选择工程分类')
  829. } else {
  830. this.openDict = true;
  831. getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
  832. response => {
  833. this.dictOptions = response.data;
  834. });
  835. }
  836. } else {
  837. let nodeType = '';
  838. if (this.EngineeringValue == '市政工程') {
  839. nodeType = '4';
  840. } else if (this.EngineeringValue == '基建工程') {
  841. nodeType = '2';
  842. } else if (this.EngineeringValue == '顶管工程') {
  843. nodeType = '1';
  844. }
  845. this.openDict = true;
  846. getByUserListAndDicts(nodeType).then(
  847. response => {
  848. this.dictOptions = response.data;
  849. });
  850. }
  851. } else if (e == 'shzt') {
  852. if (this.EngineeringValue == '民用工程') {
  853. if (this.isEmpty(this.ProjectSteps.dictValue)) {
  854. this.$modal.msg('请选择工程步骤')
  855. } else {
  856. this.openDict = true;
  857. getDicts('state_options').then(
  858. response => {
  859. this.dictOptions = response.data;
  860. });
  861. }
  862. } else {
  863. this.openDict = true;
  864. getDicts('state_options').then(
  865. response => {
  866. this.dictOptions = response.data;
  867. });
  868. }
  869. } else if (e == 'xzq') {
  870. if (this.isEmpty(this.projectValue.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 == 'xq') {
  879. if (this.isEmpty(this.XZQValue.dictValue)) {
  880. this.$modal.msg('请选择行政区')
  881. } else {
  882. this.open = true;
  883. this.selectList = this.XQList;
  884. }
  885. } else if (e == 'ld') {
  886. if (this.isEmpty(this.XQValue.id)) {
  887. this.$modal.msg('请选择小区')
  888. } else {
  889. this.open = true;
  890. this.selectList = this.LDList;
  891. }
  892. } else if (e == 'dy') {
  893. if (this.isEmpty(this.LDValue.id)) {
  894. this.$modal.msg('请选择楼栋')
  895. } else {
  896. this.open = true;
  897. this.selectList = this.DYList;
  898. }
  899. } else if (e == 'gczq2') {
  900. this.openDict = true;
  901. getDicts("engin_cycle").then(response => {
  902. this.dictOptions = response.data;
  903. });
  904. } else if (e == 'xzq2' || e == 'xzq3') {
  905. if (this.isEmpty(this.projectValue2.dictValue)) {
  906. this.$modal.msg('请选择工程周期')
  907. } else {
  908. this.openDict = true;
  909. getDicts("district").then(response => {
  910. this.dictOptions = response.data;
  911. });
  912. }
  913. } else if (e == 'xq2') {
  914. if (this.isEmpty(this.XZQValue2.dictValue)) {
  915. this.$modal.msg('请选择行政区')
  916. } else {
  917. this.open = true;
  918. this.selectList = this.XQList2;
  919. }
  920. } else if (e == 'ld2') {
  921. if (this.isEmpty(this.XQValue2.id)) {
  922. this.$modal.msg('请选择小区')
  923. } else {
  924. this.open = true;
  925. this.selectList = this.LDList2;
  926. }
  927. } else if (e == 'dy2') {
  928. if (this.isEmpty(this.LDValue2.id)) {
  929. this.$modal.msg('请选择楼栋')
  930. } else {
  931. this.open = true;
  932. this.selectList = this.DYList2;
  933. }
  934. } else if (e == 'xq3') {
  935. if (this.isEmpty(this.XZQValue3.dictValue)) {
  936. this.$modal.msg('请选择行政区')
  937. } else {
  938. this.open = true;
  939. this.selectList = this.XQList3;
  940. }
  941. } else if (e == 'ld3') {
  942. if (this.isEmpty(this.XQValue3.id)) {
  943. this.$modal.msg('请选择小区')
  944. } else {
  945. this.open = true;
  946. this.selectList = this.LDList3;
  947. }
  948. } else if (e == 'dy3') {
  949. if (this.isEmpty(this.LDValue2.id)) {
  950. this.$modal.msg('请选择楼栋')
  951. } else {
  952. this.open = true;
  953. this.selectList = this.DYList3;
  954. }
  955. } else if (e == 'fj3') {
  956. if (this.isEmpty(this.LDValue3.id)) {
  957. this.$modal.msg('请选择楼栋')
  958. } else {
  959. this.open = true;
  960. this.selectList = this.FJList3;
  961. }
  962. } else if (e == 'gg') {
  963. if (this.isEmpty(this.materialValue.id)) {
  964. this.$modal.msg('请选择材料')
  965. } else {
  966. this.open = true;
  967. this.selectList = this.materialList;
  968. }
  969. } else if (e == 'cz') {
  970. this.open = true;
  971. getEnginMaterialQualityList("民用工程").then(response => {
  972. this.selectList = response.data;
  973. });
  974. }
  975. },
  976. clear() {
  977. //清空所有筛选项
  978. this.XZQValue3 = '';
  979. this.XQValue3 = '';
  980. this.LDValue3 = '';
  981. this.DYValue3 = '';
  982. this.FJValue3 = '';
  983. this.ProjectType = {
  984. dictValue: '',
  985. dictLabel: ''
  986. };
  987. this.ProjectClassification = {
  988. dictValue: '',
  989. dictLabel: ''
  990. };
  991. this.ProjectSteps = {
  992. dictValue: '',
  993. dictLabel: ''
  994. };
  995. this.ReviewStatus = {
  996. dictValue: '',
  997. dictLabel: ''
  998. };
  999. this.EngineeringName='';
  1000. },
  1001. changeSelect(item, index) {
  1002. this.open = false;
  1003. this.openDict = false;
  1004. if (this.type == 'gcx') {
  1005. this.EngineeringValue = item.name
  1006. this.changeTab();
  1007. this.clear();
  1008. } else if (this.type == 'xzq') {
  1009. this.XZQValue = item;
  1010. this.XQValue = '';
  1011. this.LDValue = '';
  1012. this.DYValue = '';
  1013. this.FJValue = '';
  1014. getAreaList(item.dictValue).then(res => {
  1015. this.XQList = res.data;
  1016. })
  1017. } else if (this.type == 'gczq') {
  1018. this.projectValue = item
  1019. } else if (this.type == 'gclx') {
  1020. this.ProjectType = item
  1021. this.ProjectClassification = '';
  1022. this.ProjectSteps = '';
  1023. this.ReviewStatus = '';
  1024. } else if (this.type == 'gcfl') {
  1025. this.ProjectClassification = item
  1026. this.ProjectSteps = '';
  1027. this.ReviewStatus = '';
  1028. } else if (this.type == 'gcbz') {
  1029. this.ProjectSteps = item
  1030. this.ReviewStatus = '';
  1031. } else if (this.type == 'shzt') {
  1032. this.ReviewStatus = item
  1033. } else if (this.type == 'xq') {
  1034. this.XQValue = item;
  1035. this.LDValue = '';
  1036. this.DYValue = '';
  1037. this.FJValue = '';
  1038. this.queryMaterialsUsedList();
  1039. } else if (this.type == 'ld') {
  1040. this.LDValue = item;
  1041. this.DYValue = '';
  1042. this.FJValue = '';
  1043. getUnitList(item.id).then(res => {
  1044. this.DYList = res.data
  1045. })
  1046. } else if (this.type == 'dy') {
  1047. this.DYValue = item;
  1048. } else if (this.type == 'gczq2') {
  1049. this.projectValue2 = item
  1050. } else if (this.type == 'xzq2') {
  1051. this.XZQValue2 = item;
  1052. this.XQValue2 = '';
  1053. this.LDValue2 = '';
  1054. this.DYValue2 = '';
  1055. this.FJValue2 = '';
  1056. getAreaList(item.dictValue).then(res => {
  1057. this.XQList2 = res.data;
  1058. })
  1059. } else if (this.type == 'xzq3') {
  1060. this.XZQValue3 = item;
  1061. this.XQValue3 = '';
  1062. this.LDValue3 = '';
  1063. this.DYValue3 = '';
  1064. this.FJValue3 = '';
  1065. getAreaList(item.dictValue).then(res => {
  1066. this.XQList3 = res.data;
  1067. })
  1068. } else if (this.type == 'xq2') {
  1069. this.XQValue2 = item;
  1070. this.LDValue2 = '';
  1071. this.DYValue2 = '';
  1072. this.FJValue2 = '';
  1073. getBuildingList(item.id).then(res => {
  1074. this.LDList2 = res.data
  1075. })
  1076. } else if (this.type == 'xq3') {
  1077. this.XQValue3 = item;
  1078. this.LDValue3 = '';
  1079. this.DYValue3 = '';
  1080. this.FJValue3 = '';
  1081. getBuildingList(item.id).then(res => {
  1082. this.LDList3 = res.data
  1083. })
  1084. } else if (this.type == 'ld2') {
  1085. this.LDValue2 = item;
  1086. this.DYValue2 = '';
  1087. this.FJValue2 = '';
  1088. getUnitList(item.id).then(res => {
  1089. this.DYList2 = res.data
  1090. })
  1091. } else if (this.type == 'ld3') {
  1092. this.LDValue3 = item;
  1093. this.DYValue3 = '';
  1094. this.FJValue3 = '';
  1095. getUnitList(item.id).then(res => {
  1096. this.DYList3 = res.data
  1097. })
  1098. } else if (this.type == 'dy3') {
  1099. this.DYValue3 = item;
  1100. this.FJValue3 = '';
  1101. getHousesList(item.id).then(res => {
  1102. this.FJList3 = res.data
  1103. })
  1104. } else if (this.type == 'dy2') {
  1105. this.DYValue2 = item;
  1106. this.queryProjectStatisticsList();
  1107. } else if (this.type == 'gg') {
  1108. this.specificationValue = item;
  1109. this.queryMaterialsUsedList();
  1110. } else if (this.type == 'cz') {
  1111. this.materialValue = item;
  1112. this.specificationValue = '';
  1113. this.queryMaterialsUsedList();
  1114. getEnginSpecificationsList(item.id).then(res => {
  1115. this.materialList = res.data
  1116. })
  1117. }
  1118. },
  1119. close(e) {
  1120. this.open = false
  1121. },
  1122. closeDict(e) {
  1123. this.openDict = false
  1124. },
  1125. queryMaterialsUsedList() {
  1126. if (this.isEmpty(this.XQValue.id)) {
  1127. this.$modal.msg('请选择小区')
  1128. return;
  1129. }
  1130. let param = {
  1131. enginCycle: this.projectValue.dictValue, //工程周期
  1132. areaId: this.XQValue.id,
  1133. realityQuality: this.materialValue.id,
  1134. realitySpecifications: this.specificationValue.id,
  1135. };
  1136. getMunicipalStatisticsData(param).then(res => {
  1137. this.materialUsageList = res.data;
  1138. })
  1139. },
  1140. queryProjectStatisticsList() {
  1141. let param = {
  1142. enginCycle: this.projectValue.dictValue, //工程周期
  1143. areaId: this.XQValue2.id,
  1144. buildingId: this.LDValue2.id,
  1145. unitId: this.DYValue2.id,
  1146. };
  1147. getObtainRoomcCompletionInformationList(param).then(res => {
  1148. this.roomList = res.data[0].roomStatusVoList;
  1149. this.roomCount = res.data[0].roomStatusVoList.length;
  1150. })
  1151. },
  1152. getColorByStatus(status) {
  1153. if (this.isEmpty(status)) {
  1154. return "#fff";
  1155. }
  1156. if (status == '施工中') {
  1157. return "#5bd3ff";
  1158. } else if (status == '未施工') {
  1159. return "#ffc881";
  1160. } else if (status == '竣工') {
  1161. return "#80d9ae";
  1162. }
  1163. },
  1164. clearMaterialInfo() {
  1165. this.materialValue = '';
  1166. this.specificationValue = '';
  1167. this.queryMaterialsUsedList();
  1168. },
  1169. clearSpecificationInfo() {
  1170. this.specificationValue = '';
  1171. this.queryMaterialsUsedList();
  1172. },
  1173. pullDown(pullScroll) {
  1174. this.pageNum = 1;
  1175. setTimeout(() => {
  1176. this.requestData(pullScroll);
  1177. }, 1000);
  1178. },
  1179. getList() {
  1180. let myThis = this;
  1181. this.$nextTick(() => {
  1182. myThis.$refs.pullScroll.refresh();
  1183. });
  1184. },
  1185. changeTab() {
  1186. this.pageSize = 10;
  1187. this.totalNum = '';
  1188. this.pageNum = 1;
  1189. this.requestData();
  1190. },
  1191. requestData() {
  1192. uni.showLoading()
  1193. if (this.EngineeringValue == '民用工程') {
  1194. let type = ''
  1195. let param = {
  1196. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1197. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1198. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1199. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1200. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1201. enginType: this.ProjectType.dictValue == undefined ? '' : this.ProjectType.dictValue,
  1202. enginCycle: '0',
  1203. enginClassification: this.ProjectClassification.dictValue == undefined ? '' : this
  1204. .ProjectClassification.dictValue,
  1205. type: this.ProjectSteps.dictValue == undefined ? '' : this.ProjectSteps.dictValue,
  1206. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1207. createBy: user.state.name,
  1208. pageNum: this.pageNum,
  1209. pageSize: this.pageSize
  1210. }
  1211. gethistoryList(param).then(res => {
  1212. this.totalNum = res.total
  1213. if (res.code == '200') {
  1214. uni.hideLoading()
  1215. if (res.rows.length !== 0) {
  1216. if (this.pageNum == 1) {
  1217. this.list = [];
  1218. this.list = res.rows
  1219. } else {
  1220. this.list = this.list.concat(res.rows)
  1221. }
  1222. if (this.pageNum * 10 >= this.totalNum) {
  1223. this.$refs.pullScroll.finish();
  1224. } else {
  1225. this.$refs.pullScroll.success();
  1226. }
  1227. } else {
  1228. this.list = [];
  1229. this.$refs.pullScroll.empty();
  1230. }
  1231. } else {
  1232. this.$modal.msg(res.msg + "")
  1233. this.$refs.pullScroll.error();
  1234. }
  1235. })
  1236. } else if (this.EngineeringValue == '开栓') {
  1237. let type = ''
  1238. let param = {
  1239. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1240. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1241. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1242. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1243. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1244. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1245. createBy: user.state.name,
  1246. pageNum: this.pageNum,
  1247. pageSize: this.pageSize
  1248. }
  1249. getKShistoryList(param).then(res => {
  1250. this.totalNum = res.total
  1251. if (res.code == '200') {
  1252. uni.hideLoading()
  1253. if (res.rows.length !== 0) {
  1254. if (this.pageNum == 1) {
  1255. this.list = [];
  1256. this.list = res.rows
  1257. } else {
  1258. this.list = this.list.concat(res.rows)
  1259. }
  1260. if (this.pageNum * 10 >= this.totalNum) {
  1261. this.$refs.pullScroll.finish();
  1262. } else {
  1263. this.$refs.pullScroll.success();
  1264. }
  1265. } else {
  1266. this.list = [];
  1267. this.$refs.pullScroll.empty();
  1268. }
  1269. } else {
  1270. this.$modal.msg(res.msg + "")
  1271. this.$refs.pullScroll.error();
  1272. }
  1273. })
  1274. } else if (this.EngineeringValue == '顶管工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  1275. '危险作业工程' || this.EngineeringValue == '市政工程' || this.EngineeringValue == '工业工程' || this
  1276. .EngineeringValue == '带气封堵施工') {
  1277. //type 1 = 顶管, 2=基建 3=危险 4= 市政 5= 工业 type=6 是带气封堵
  1278. let chooseType = '';
  1279. switch (this.EngineeringValue) {
  1280. case '顶管工程':
  1281. chooseType = '1';
  1282. break
  1283. case '基建工程':
  1284. chooseType = '2';
  1285. break
  1286. case '危险作业工程':
  1287. chooseType = '3';
  1288. break
  1289. case '市政工程':
  1290. chooseType = '4';
  1291. break
  1292. case '工业工程':
  1293. chooseType = '5';
  1294. break
  1295. case '带气封堵施工':
  1296. chooseType = '6';
  1297. break
  1298. }
  1299. let param = {
  1300. type: chooseType,
  1301. enginName: this.EngineeringName,
  1302. enginType: this.ProjectClassification.dictValue == undefined ? '' : this
  1303. .ProjectClassification.dictValue,
  1304. nodeType: this.ProjectSteps.dictLabel == undefined ? '' : this.ProjectSteps.dictLabel,
  1305. enginStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1306. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1307. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1308. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1309. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1310. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1311. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1312. createBy: user.state.name,
  1313. pageNum: this.pageNum,
  1314. pageSize: this.pageSize
  1315. }
  1316. getHistoryByUserList(param).then(res => {
  1317. this.totalNum = res.data.total
  1318. if (res.code == '200') {
  1319. uni.hideLoading()
  1320. if (res.data.rows.length !== 0) {
  1321. if (this.pageNum == 1) {
  1322. this.list = [];
  1323. this.list = res.data.rows
  1324. } else {
  1325. this.list = this.list.concat(res.data.rows)
  1326. }
  1327. if (this.pageNum * 10 >= this.totalNum) {
  1328. this.$refs.pullScroll.finish();
  1329. } else {
  1330. this.$refs.pullScroll.success();
  1331. }
  1332. } else {
  1333. this.list = [];
  1334. this.$refs.pullScroll.empty();
  1335. }
  1336. } else {
  1337. this.$modal.msg(res.msg + "")
  1338. this.$refs.pullScroll.error();
  1339. }
  1340. })
  1341. }
  1342. },
  1343. }
  1344. }
  1345. </script>
  1346. <style lang="scss">
  1347. .to-right-icon {
  1348. width: 15px;
  1349. height: 15px;
  1350. position: absolute;
  1351. top: 50%;
  1352. transform: translateY(-50%);
  1353. }
  1354. .uni-media-list {
  1355. width: 100%;
  1356. }
  1357. .no-click {
  1358. pointer-events: none;
  1359. }
  1360. .marginLeft5 {
  1361. margin-left: 5px;
  1362. }
  1363. .title-txt {
  1364. font-size: 15px;
  1365. font-weight: bold;
  1366. color: black;
  1367. padding: 20rpx 0;
  1368. }
  1369. .content-txt {
  1370. font-size: 10px;
  1371. font-weight: bold;
  1372. color: black;
  1373. }
  1374. .view-bg {
  1375. margin-left: 8px;
  1376. margin-right: 8px;
  1377. margin-top: 8px;
  1378. background-color: #fff;
  1379. border-radius: 5px;
  1380. padding: 20px;
  1381. display: flex;
  1382. flex-direction: column;
  1383. }
  1384. .uni-list {
  1385. background-color: #FFFFFF;
  1386. position: relative;
  1387. width: 100%;
  1388. display: flex;
  1389. flex-direction: column;
  1390. }
  1391. .uni-list-cell {
  1392. display: flex;
  1393. align-items: center;
  1394. justify-content: space-between;
  1395. padding: 10px 0;
  1396. position: relative;
  1397. }
  1398. .uni-list-cell-left {
  1399. white-space: nowrap;
  1400. font-size: 28rpx;
  1401. }
  1402. .centered {
  1403. text-align: center;
  1404. background-color: #e2f4ff;
  1405. }
  1406. .text {
  1407. background-color: #e2f4ff;
  1408. height: 20rpx;
  1409. }
  1410. .view_bg_build {
  1411. background-color: #e2f4ff;
  1412. padding: 10px 10px 0 10px;
  1413. margin: 0 auto;
  1414. border: 1px solid #5bd3ff;
  1415. white-space: nowrap;
  1416. position: relative;
  1417. z-index: 2;
  1418. }
  1419. .grid-text {
  1420. font-size: 14px;
  1421. color: #000000;
  1422. text-align: center;
  1423. padding-left: 30rpx;
  1424. padding-right: 30rpx;
  1425. padding-top: 20rpx;
  1426. padding-bottom: 20rpx;
  1427. }
  1428. .name {
  1429. flex: 0;
  1430. font-size: 14px;
  1431. color: #000000;
  1432. overflow: hidden;
  1433. text-overflow: ellipsis;
  1434. white-space: nowrap;
  1435. }
  1436. .table-item {
  1437. overflow: hidden;
  1438. text-overflow: ellipsis;
  1439. white-space: nowrap;
  1440. }
  1441. .block-iv {
  1442. width: 20px;
  1443. height: 20px;
  1444. }
  1445. .table {
  1446. width: 100%;
  1447. border-radius: 8rpx;
  1448. background: #FFFFFF;
  1449. /* border: 1rpx solid #EFEFEF; */
  1450. font-size: 28rpx;
  1451. margin-top: 40rpx;
  1452. }
  1453. .felx-row {
  1454. width: 100%;
  1455. display: flex;
  1456. justify-content: space-between;
  1457. align-items: center;
  1458. }
  1459. .h-tr {
  1460. box-sizing: border-box;
  1461. display: flex;
  1462. flex-direction: row;
  1463. flex-wrap: nowrap;
  1464. justify-content: center;
  1465. align-items: center;
  1466. align-content: center;
  1467. border-color: #ccc;
  1468. border-style: solid;
  1469. border-width: 0;
  1470. border-width: 1px;
  1471. color: #3d7dd7;
  1472. }
  1473. .h-td {
  1474. box-sizing: border-box;
  1475. padding: 3px;
  1476. word-break: break-all;
  1477. border-color: #ccc;
  1478. border-style: solid;
  1479. border-width: 1px;
  1480. border-right-width: 1px;
  1481. display: flex;
  1482. flex-direction: row;
  1483. flex-wrap: nowrap;
  1484. justify-content: center;
  1485. align-items: center;
  1486. align-content: center;
  1487. min-height: 64rpx;
  1488. }
  1489. .LouCeng {
  1490. font-size: 30rpx;
  1491. background-color: #4a4b52;
  1492. color: #FFEB3B;
  1493. font-weight: bold;
  1494. }
  1495. .Fang {
  1496. width: 100%;
  1497. display: inline-block;
  1498. line-height: 50rpx;
  1499. text-align: center;
  1500. margin-right: 10px;
  1501. margin-bottom: 10px;
  1502. background-color: red;
  1503. }
  1504. .HuaDongBiao {
  1505. display: flex;
  1506. flex-direction: column-reverse;
  1507. position: relative;
  1508. }
  1509. .NeiRong {
  1510. display: flex;
  1511. flex-wrap: nowrap;
  1512. }
  1513. .NeiRong :last-child {
  1514. margin-right: 0 !important;
  1515. }
  1516. .ShiGongZhong {
  1517. background-color: #5bd3ff;
  1518. color: #000;
  1519. }
  1520. .WeiShiGong {
  1521. background-color: #ffc881;
  1522. color: #000;
  1523. }
  1524. .JunGong {
  1525. background-color: #80d9ae;
  1526. color: #000;
  1527. }
  1528. .container {
  1529. display: flex;
  1530. margin-left: 10px;
  1531. width: 100%;
  1532. margin-top: 10px;
  1533. margin-right: 10px;
  1534. justify-content: space-between;
  1535. }
  1536. .notice {
  1537. margin: 20rpx;
  1538. padding: 20rpx;
  1539. background: #FFFFFF;
  1540. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  1541. border-radius: 10rpx;
  1542. }
  1543. .text {
  1544. border-left: 15rpx solid #3857F3;
  1545. padding-left: 20rpx;
  1546. }
  1547. .share {
  1548. width: 100%;
  1549. height: 100%;
  1550. }
  1551. .share-box {
  1552. width: 100%;
  1553. height: 100%;
  1554. position: fixed;
  1555. top: 0rpx;
  1556. left: 0rpx;
  1557. bottom: 0rpx;
  1558. right: 0rpx;
  1559. background-color: rgba(0, 0, 0, 0.4);
  1560. transition: .3s;
  1561. z-index: 999;
  1562. }
  1563. .share-show {
  1564. transition: all 0.3s ease;
  1565. transform: translateY(0%) !important;
  1566. }
  1567. .scroll-Y {
  1568. height: 350rpx;
  1569. }
  1570. .share-item {
  1571. position: fixed;
  1572. left: 0;
  1573. bottom: 0;
  1574. width: 100%;
  1575. height: auto;
  1576. background-color: #FFFFFF;
  1577. transition: all 0.3s ease;
  1578. transform: translateY(100%);
  1579. z-index: 1999;
  1580. border-top-left-radius: 40rpx;
  1581. border-top-right-radius: 40rpx;
  1582. .share-to {
  1583. width: 100%;
  1584. height: 3rem;
  1585. display: flex;
  1586. justify-content: center;
  1587. align-items: center;
  1588. &::after {
  1589. content: '';
  1590. width: 240rpx;
  1591. height: 0rpx;
  1592. border-top: 1px solid #E4E7ED;
  1593. -webkit-transform: scaleY(0.5);
  1594. transform: scaleY(0.5);
  1595. margin-left: 30rpx;
  1596. }
  1597. &::before {
  1598. content: '';
  1599. width: 240rpx;
  1600. height: 0rpx;
  1601. border-top: 1px solid #E4E7ED;
  1602. -webkit-transform: scaleY(0.5);
  1603. transform: scaleY(0.5);
  1604. margin-right: 30rpx;
  1605. }
  1606. }
  1607. .content {
  1608. width: 100%;
  1609. height: 50%;
  1610. display: flex;
  1611. flex-wrap: wrap;
  1612. .block {
  1613. width: 100%;
  1614. display: flex;
  1615. flex-direction: column;
  1616. justify-content: center;
  1617. align-items: center;
  1618. height: 80rpx;
  1619. text {
  1620. margin-top: 16rpx;
  1621. font-size: 28rpx;
  1622. color: #606266;
  1623. }
  1624. }
  1625. }
  1626. .cancel {
  1627. width: 100%;
  1628. height: 3rem;
  1629. display: flex;
  1630. justify-content: center;
  1631. align-items: center;
  1632. border-top: 1rpx solid #E4E7ED;
  1633. }
  1634. }
  1635. .background {
  1636. // border: 15px solid hsla(0, 0%, 100%, .5);
  1637. background: white;
  1638. background-clip: padding-box;
  1639. padding: 20rpx;
  1640. border-radius: 20rpx;
  1641. margin: 20rpx 10rpx;
  1642. /*从padding开始往外面裁剪背景*/
  1643. }
  1644. </style>