statistics.vue 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816
  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. }
  668. },
  669. showHistoryList() {
  670. this.$refs.refShare.handleShowShare();
  671. },
  672. showTypeSheet(item) {
  673. if (this.isLeader == 'sys_user') {
  674. let param = {
  675. areaId: this.roomItem.areaId,
  676. buildingId: this.roomItem.buildingId,
  677. unitId: this.roomItem.unitId,
  678. houseId: this.roomItem.roomId,
  679. enginCycle: this.projectValue2.dictValue, // 工程周期
  680. enginType: this.roomItem.enginCycle,
  681. enginClassification: 'indoor_engin', //写死 室内
  682. }
  683. getRoomProjectId(param).then(res => {
  684. if (res.code == '200') {
  685. if (res.data != null) {
  686. getRoomProjectList(res.data.id, item.Type).then(res => {
  687. if (res.data.zEngineeringNodeBo != null) {
  688. this.historyList = res.data
  689. this.showHistoryList();
  690. } else {
  691. this.$modal.msg("暂无历史信息")
  692. }
  693. })
  694. } else {
  695. this.$modal.msg("暂无工程信息")
  696. }
  697. } else {
  698. this.$modal.msg(res.msg)
  699. }
  700. })
  701. } else {
  702. if (this.EngineeringValue == '民用工程') {
  703. let obj = {
  704. id: this.nodeId,
  705. type: item.Type,
  706. roomId: this.roomId,
  707. };
  708. this.handleHiddenShare();
  709. if (this.nodeType == 'indoor_engin') { //室内
  710. uni.navigateTo({
  711. url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
  712. .stringify(
  713. obj))
  714. })
  715. } else if (this.nodeType == 'overhead') { //架空
  716. uni.navigateTo({
  717. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  718. .stringify(
  719. obj))
  720. })
  721. } else if (this.nodeType == 'courtyard') { //庭院
  722. uni.navigateTo({
  723. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  724. .stringify(
  725. obj))
  726. })
  727. }
  728. } else if (this.EngineeringValue == '顶管工程') {
  729. let obj = {
  730. id: this.nodeId,
  731. type: item.Type,
  732. };
  733. uni.navigateTo({
  734. url: '/pages/statistics/historyDetailsTopTube?params=' + encodeURIComponent(JSON
  735. .stringify(
  736. obj))
  737. })
  738. this.handleHiddenShare();
  739. } else if (this.EngineeringValue == '基建工程') {
  740. let obj = {
  741. id: this.nodeId,
  742. type: item.Type,
  743. };
  744. uni.navigateTo({
  745. url: '/pages/statistics/historyDetailsInfrastructure?params=' + encodeURIComponent(JSON
  746. .stringify(
  747. obj))
  748. })
  749. this.handleHiddenShare();
  750. }
  751. }
  752. },
  753. pickerShow(e) {
  754. this.type = e;
  755. if (e == 'gcx') {
  756. this.open = true;
  757. this.EngineeringList = [];
  758. this.userRole.forEach((item, index) => {
  759. this.EngineeringList.push({
  760. 'id': index,
  761. 'name': item
  762. })
  763. });
  764. this.selectList = this.EngineeringList;
  765. } else if (e == 'gczq') {
  766. this.openDict = true;
  767. getDicts("engin_cycle").then(response => {
  768. this.dictOptions = response.data;
  769. });
  770. } else if (e == 'gclx') {
  771. this.openDict = true;
  772. getDicts('indoor_engin_type').then(response => {
  773. this.dictOptions = response.data;
  774. });
  775. } else if (e == 'gcfl') {
  776. if (this.isEmpty(this.ProjectType.dictValue)) {
  777. this.$modal.msg('请选择工程类型')
  778. } else {
  779. this.openDict = true;
  780. getDicts(this.ProjectType.dictValue).then(response => {
  781. this.dictOptions = response.data;
  782. });
  783. }
  784. } else if (e == 'gcbz') {
  785. if (this.isEmpty(this.ProjectClassification.dictValue)) {
  786. this.$modal.msg('请选择工程分类')
  787. } else {
  788. this.openDict = true;
  789. getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
  790. response => {
  791. this.dictOptions = response.data;
  792. });
  793. }
  794. } else if (e == 'shzt') {
  795. if (this.EngineeringValue == '民用工程') {
  796. if (this.isEmpty(this.ProjectSteps.dictValue)) {
  797. this.$modal.msg('请选择工程步骤')
  798. } else {
  799. this.openDict = true;
  800. getDicts('state_options').then(
  801. response => {
  802. this.dictOptions = response.data;
  803. });
  804. }
  805. } else {
  806. this.openDict = true;
  807. getDicts('state_options').then(
  808. response => {
  809. this.dictOptions = response.data;
  810. });
  811. }
  812. } else if (e == 'xzq') {
  813. if (this.isEmpty(this.projectValue.dictValue)) {
  814. this.$modal.msg('请选择工程周期')
  815. } else {
  816. this.openDict = true;
  817. getDicts("district").then(response => {
  818. this.dictOptions = response.data;
  819. });
  820. }
  821. } else if (e == 'xq') {
  822. if (this.isEmpty(this.XZQValue.dictValue)) {
  823. this.$modal.msg('请选择行政区')
  824. } else {
  825. this.open = true;
  826. this.selectList = this.XQList;
  827. }
  828. } else if (e == 'ld') {
  829. if (this.isEmpty(this.XQValue.id)) {
  830. this.$modal.msg('请选择小区')
  831. } else {
  832. this.open = true;
  833. this.selectList = this.LDList;
  834. }
  835. } else if (e == 'dy') {
  836. if (this.isEmpty(this.LDValue.id)) {
  837. this.$modal.msg('请选择楼栋')
  838. } else {
  839. this.open = true;
  840. this.selectList = this.DYList;
  841. }
  842. } else if (e == 'gczq2') {
  843. this.openDict = true;
  844. getDicts("engin_cycle").then(response => {
  845. this.dictOptions = response.data;
  846. });
  847. } else if (e == 'xzq2' || e == 'xzq3') {
  848. if (this.isEmpty(this.projectValue2.dictValue)) {
  849. this.$modal.msg('请选择工程周期')
  850. } else {
  851. this.openDict = true;
  852. getDicts("district").then(response => {
  853. this.dictOptions = response.data;
  854. });
  855. }
  856. } else if (e == 'xq2') {
  857. if (this.isEmpty(this.XZQValue2.dictValue)) {
  858. this.$modal.msg('请选择行政区')
  859. } else {
  860. this.open = true;
  861. this.selectList = this.XQList2;
  862. }
  863. } else if (e == 'ld2') {
  864. if (this.isEmpty(this.XQValue2.id)) {
  865. this.$modal.msg('请选择小区')
  866. } else {
  867. this.open = true;
  868. this.selectList = this.LDList2;
  869. }
  870. } else if (e == 'dy2') {
  871. if (this.isEmpty(this.LDValue2.id)) {
  872. this.$modal.msg('请选择楼栋')
  873. } else {
  874. this.open = true;
  875. this.selectList = this.DYList2;
  876. }
  877. } else if (e == 'xq3') {
  878. if (this.isEmpty(this.XZQValue3.dictValue)) {
  879. this.$modal.msg('请选择行政区')
  880. } else {
  881. this.open = true;
  882. this.selectList = this.XQList3;
  883. }
  884. } else if (e == 'ld3') {
  885. if (this.isEmpty(this.XQValue3.id)) {
  886. this.$modal.msg('请选择小区')
  887. } else {
  888. this.open = true;
  889. this.selectList = this.LDList3;
  890. }
  891. } else if (e == 'dy3') {
  892. if (this.isEmpty(this.LDValue2.id)) {
  893. this.$modal.msg('请选择楼栋')
  894. } else {
  895. this.open = true;
  896. this.selectList = this.DYList3;
  897. }
  898. } else if (e == 'fj3') {
  899. if (this.isEmpty(this.LDValue3.id)) {
  900. this.$modal.msg('请选择楼栋')
  901. } else {
  902. this.open = true;
  903. this.selectList = this.FJList3;
  904. }
  905. } else if (e == 'gg') {
  906. if (this.isEmpty(this.materialValue.id)) {
  907. this.$modal.msg('请选择材料')
  908. } else {
  909. this.open = true;
  910. this.selectList = this.materialList;
  911. }
  912. } else if (e == 'cz') {
  913. this.open = true;
  914. getEnginMaterialQualityList("民用工程").then(response => {
  915. this.selectList = response.data;
  916. });
  917. }
  918. },
  919. changeSelect(item, index) {
  920. this.open = false;
  921. this.openDict = false;
  922. if (this.type == 'gcx') {
  923. this.EngineeringValue = item.name
  924. this.changeTab();
  925. } else if (this.type == 'xzq') {
  926. this.XZQValue = item;
  927. this.XQValue = '';
  928. this.LDValue = '';
  929. this.DYValue = '';
  930. this.FJValue = '';
  931. getAreaList(item.dictValue).then(res => {
  932. this.XQList = res.data;
  933. })
  934. } else if (this.type == 'gczq') {
  935. this.projectValue = item
  936. } else if (this.type == 'gclx') {
  937. this.ProjectType = item
  938. this.ProjectClassification = '';
  939. this.ProjectSteps = '';
  940. this.ReviewStatus = '';
  941. } else if (this.type == 'gcfl') {
  942. this.ProjectClassification = item
  943. this.ProjectSteps = '';
  944. this.ReviewStatus = '';
  945. } else if (this.type == 'gcbz') {
  946. this.ProjectSteps = item
  947. this.ReviewStatus = '';
  948. } else if (this.type == 'shzt') {
  949. this.ReviewStatus = item
  950. } else if (this.type == 'xq') {
  951. this.XQValue = item;
  952. this.LDValue = '';
  953. this.DYValue = '';
  954. this.FJValue = '';
  955. this.queryMaterialsUsedList();
  956. } else if (this.type == 'ld') {
  957. this.LDValue = item;
  958. this.DYValue = '';
  959. this.FJValue = '';
  960. getUnitList(item.id).then(res => {
  961. this.DYList = res.data
  962. })
  963. } else if (this.type == 'dy') {
  964. this.DYValue = item;
  965. } else if (this.type == 'gczq2') {
  966. this.projectValue2 = item
  967. } else if (this.type == 'xzq2') {
  968. this.XZQValue2 = item;
  969. this.XQValue2 = '';
  970. this.LDValue2 = '';
  971. this.DYValue2 = '';
  972. this.FJValue2 = '';
  973. getAreaList(item.dictValue).then(res => {
  974. this.XQList2 = res.data;
  975. })
  976. } else if (this.type == 'xzq3') {
  977. this.XZQValue3 = item;
  978. this.XQValue3 = '';
  979. this.LDValue3 = '';
  980. this.DYValue3 = '';
  981. this.FJValue3 = '';
  982. getAreaList(item.dictValue).then(res => {
  983. this.XQList3 = res.data;
  984. })
  985. } else if (this.type == 'xq2') {
  986. this.XQValue2 = item;
  987. this.LDValue2 = '';
  988. this.DYValue2 = '';
  989. this.FJValue2 = '';
  990. getBuildingList(item.id).then(res => {
  991. this.LDList2 = res.data
  992. })
  993. } else if (this.type == 'xq3') {
  994. this.XQValue3 = item;
  995. this.LDValue3 = '';
  996. this.DYValue3 = '';
  997. this.FJValue3 = '';
  998. getBuildingList(item.id).then(res => {
  999. this.LDList3 = res.data
  1000. })
  1001. } else if (this.type == 'ld2') {
  1002. this.LDValue2 = item;
  1003. this.DYValue2 = '';
  1004. this.FJValue2 = '';
  1005. getUnitList(item.id).then(res => {
  1006. this.DYList2 = res.data
  1007. })
  1008. } else if (this.type == 'ld3') {
  1009. this.LDValue3 = item;
  1010. this.DYValue3 = '';
  1011. this.FJValue3 = '';
  1012. getUnitList(item.id).then(res => {
  1013. this.DYList3 = res.data
  1014. })
  1015. } else if (this.type == 'dy3') {
  1016. this.DYValue3 = item;
  1017. this.FJValue3 = '';
  1018. getHousesList(item.id).then(res => {
  1019. this.FJList3 = res.data
  1020. })
  1021. } else if (this.type == 'dy2') {
  1022. this.DYValue2 = item;
  1023. this.queryProjectStatisticsList();
  1024. } else if (this.type == 'gg') {
  1025. this.specificationValue = item;
  1026. this.queryMaterialsUsedList();
  1027. } else if (this.type == 'cz') {
  1028. this.materialValue = item;
  1029. this.specificationValue = '';
  1030. this.queryMaterialsUsedList();
  1031. getEnginSpecificationsList(item.id).then(res => {
  1032. this.materialList = res.data
  1033. })
  1034. }
  1035. },
  1036. close(e) {
  1037. this.open = false
  1038. },
  1039. closeDict(e) {
  1040. this.openDict = false
  1041. },
  1042. queryMaterialsUsedList() {
  1043. if (this.isEmpty(this.XQValue.id)) {
  1044. this.$modal.msg('请选择小区')
  1045. return;
  1046. }
  1047. let param = {
  1048. enginCycle: this.projectValue.dictValue, //工程周期
  1049. areaId: this.XQValue.id,
  1050. realityQuality: this.materialValue.id,
  1051. realitySpecifications: this.specificationValue.id,
  1052. };
  1053. getMunicipalStatisticsData(param).then(res => {
  1054. this.materialUsageList = res.data;
  1055. })
  1056. },
  1057. queryProjectStatisticsList() {
  1058. let param = {
  1059. enginCycle: this.projectValue.dictValue, //工程周期
  1060. areaId: this.XQValue2.id,
  1061. buildingId: this.LDValue2.id,
  1062. unitId: this.DYValue2.id,
  1063. };
  1064. getObtainRoomcCompletionInformationList(param).then(res => {
  1065. this.roomList = res.data[0].roomStatusVoList;
  1066. this.roomCount = res.data[0].roomStatusVoList.length;
  1067. })
  1068. },
  1069. getColorByStatus(status) {
  1070. if (this.isEmpty(status)) {
  1071. return "#fff";
  1072. }
  1073. if (status == '施工中') {
  1074. return "#5bd3ff";
  1075. } else if (status == '未施工') {
  1076. return "#ffc881";
  1077. } else if (status == '竣工') {
  1078. return "#80d9ae";
  1079. }
  1080. },
  1081. clearMaterialInfo() {
  1082. this.materialValue = '';
  1083. this.specificationValue = '';
  1084. this.queryMaterialsUsedList();
  1085. },
  1086. clearSpecificationInfo() {
  1087. this.specificationValue = '';
  1088. this.queryMaterialsUsedList();
  1089. },
  1090. pullDown(pullScroll) {
  1091. this.pageNum = 1;
  1092. setTimeout(() => {
  1093. this.requestData(pullScroll);
  1094. }, 1000);
  1095. },
  1096. getList() {
  1097. let myThis = this;
  1098. this.$nextTick(() => {
  1099. myThis.$refs.pullScroll.refresh();
  1100. });
  1101. },
  1102. changeTab() {
  1103. this.pageSize = 10;
  1104. this.totalNum = '';
  1105. this.pageNum = 1;
  1106. this.requestData();
  1107. },
  1108. requestData() {
  1109. uni.showLoading()
  1110. if (this.EngineeringValue == '民用工程') {
  1111. let type = ''
  1112. let param = {
  1113. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1114. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1115. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1116. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1117. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1118. enginType: this.ProjectType.dictValue == undefined ? '' : this.ProjectType.dictValue,
  1119. enginCycle: '0',
  1120. enginClassification: this.ProjectClassification.dictValue == undefined ? '' : this
  1121. .ProjectClassification.dictValue,
  1122. type: this.ProjectSteps.dictValue == undefined ? '' : this.ProjectSteps.dictValue,
  1123. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1124. createBy: user.state.name,
  1125. pageNum: this.pageNum,
  1126. pageSize: this.pageSize
  1127. }
  1128. gethistoryList(param).then(res => {
  1129. this.totalNum = res.total
  1130. if (res.code == '200') {
  1131. uni.hideLoading()
  1132. if (res.rows.length !== 0) {
  1133. if (this.pageNum == 1) {
  1134. this.list = [];
  1135. this.list = res.rows
  1136. } else {
  1137. this.list = this.list.concat(res.rows)
  1138. }
  1139. if (this.pageNum * 10 >= this.totalNum) {
  1140. this.$refs.pullScroll.finish();
  1141. } else {
  1142. this.$refs.pullScroll.success();
  1143. }
  1144. } else {
  1145. this.list = [];
  1146. this.$refs.pullScroll.empty();
  1147. }
  1148. } else {
  1149. this.$modal.msg(res.msg + "")
  1150. this.$refs.pullScroll.error();
  1151. }
  1152. })
  1153. } else if (this.EngineeringValue == '开栓') {
  1154. let type = ''
  1155. let param = {
  1156. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1157. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1158. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1159. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1160. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1161. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1162. createBy: user.state.name,
  1163. pageNum: this.pageNum,
  1164. pageSize: this.pageSize
  1165. }
  1166. getKShistoryList(param).then(res => {
  1167. this.totalNum = res.total
  1168. if (res.code == '200') {
  1169. uni.hideLoading()
  1170. if (res.rows.length !== 0) {
  1171. if (this.pageNum == 1) {
  1172. this.list = [];
  1173. this.list = res.rows
  1174. } else {
  1175. this.list = this.list.concat(res.rows)
  1176. }
  1177. if (this.pageNum * 10 >= this.totalNum) {
  1178. this.$refs.pullScroll.finish();
  1179. } else {
  1180. this.$refs.pullScroll.success();
  1181. }
  1182. } else {
  1183. this.list = [];
  1184. this.$refs.pullScroll.empty();
  1185. }
  1186. } else {
  1187. this.$modal.msg(res.msg + "")
  1188. this.$refs.pullScroll.error();
  1189. }
  1190. })
  1191. } else if (this.EngineeringValue == '顶管工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  1192. '危险作业工程' || this.EngineeringValue == '市政工程' || this.EngineeringValue == '工业工程' || this
  1193. .EngineeringValue == '带气封堵施工') {
  1194. //type 1 = 顶管, 2=基建 3=危险 4= 市政 5= 工业 type=6 是带气封堵
  1195. let chooseType = '';
  1196. switch (this.EngineeringValue) {
  1197. case '顶管工程':
  1198. chooseType = '1';
  1199. break
  1200. case '基建工程':
  1201. chooseType = '2';
  1202. break
  1203. case '危险作业工程':
  1204. chooseType = '3';
  1205. break
  1206. case '市政工程':
  1207. chooseType = '4';
  1208. break
  1209. case '工业工程':
  1210. chooseType = '5';
  1211. break
  1212. case '带气封堵施工':
  1213. chooseType = '6';
  1214. break
  1215. }
  1216. let param = {
  1217. type: chooseType,
  1218. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1219. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1220. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1221. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1222. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1223. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1224. createBy: user.state.name,
  1225. pageNum: this.pageNum,
  1226. pageSize: this.pageSize
  1227. }
  1228. getHistoryByUserList(param).then(res => {
  1229. this.totalNum = res.data.total
  1230. if (res.code == '200') {
  1231. uni.hideLoading()
  1232. if (res.data.rows.length !== 0) {
  1233. if (this.pageNum == 1) {
  1234. this.list = [];
  1235. this.list = res.data.rows
  1236. } else {
  1237. this.list = this.list.concat(res.data.rows)
  1238. }
  1239. if (this.pageNum * 10 >= this.totalNum) {
  1240. this.$refs.pullScroll.finish();
  1241. } else {
  1242. this.$refs.pullScroll.success();
  1243. }
  1244. } else {
  1245. this.list = [];
  1246. this.$refs.pullScroll.empty();
  1247. }
  1248. } else {
  1249. this.$modal.msg(res.msg + "")
  1250. this.$refs.pullScroll.error();
  1251. }
  1252. })
  1253. }
  1254. },
  1255. }
  1256. }
  1257. </script>
  1258. <style lang="scss">
  1259. .to-right-icon {
  1260. width: 15px;
  1261. height: 15px;
  1262. position: absolute;
  1263. top: 50%;
  1264. transform: translateY(-50%);
  1265. }
  1266. .uni-media-list {
  1267. width: 100%;
  1268. }
  1269. .no-click {
  1270. pointer-events: none;
  1271. }
  1272. .marginLeft5 {
  1273. margin-left: 5px;
  1274. }
  1275. .title-txt {
  1276. font-size: 15px;
  1277. font-weight: bold;
  1278. color: black;
  1279. padding: 20rpx 0;
  1280. }
  1281. .content-txt {
  1282. font-size: 10px;
  1283. font-weight: bold;
  1284. color: black;
  1285. }
  1286. .view-bg {
  1287. margin-left: 8px;
  1288. margin-right: 8px;
  1289. margin-top: 8px;
  1290. background-color: #fff;
  1291. border-radius: 5px;
  1292. padding: 20px;
  1293. display: flex;
  1294. flex-direction: column;
  1295. }
  1296. .uni-list {
  1297. background-color: #FFFFFF;
  1298. position: relative;
  1299. width: 100%;
  1300. display: flex;
  1301. flex-direction: column;
  1302. }
  1303. .uni-list-cell {
  1304. display: flex;
  1305. align-items: center;
  1306. justify-content: space-between;
  1307. padding: 10px 0;
  1308. position: relative;
  1309. }
  1310. .uni-list-cell-left {
  1311. white-space: nowrap;
  1312. font-size: 28rpx;
  1313. }
  1314. .centered {
  1315. text-align: center;
  1316. background-color: #e2f4ff;
  1317. }
  1318. .text {
  1319. background-color: #e2f4ff;
  1320. height: 20rpx;
  1321. }
  1322. .view_bg_build {
  1323. background-color: #e2f4ff;
  1324. padding: 10px 10px 0 10px;
  1325. margin: 0 auto;
  1326. border: 1px solid #5bd3ff;
  1327. white-space: nowrap;
  1328. position: relative;
  1329. z-index: 2;
  1330. }
  1331. .grid-text {
  1332. font-size: 14px;
  1333. color: #000000;
  1334. text-align: center;
  1335. padding-left: 30rpx;
  1336. padding-right: 30rpx;
  1337. padding-top: 20rpx;
  1338. padding-bottom: 20rpx;
  1339. }
  1340. .name {
  1341. flex: 0;
  1342. font-size: 14px;
  1343. color: #000000;
  1344. overflow: hidden;
  1345. text-overflow: ellipsis;
  1346. white-space: nowrap;
  1347. }
  1348. .table-item {
  1349. overflow: hidden;
  1350. text-overflow: ellipsis;
  1351. white-space: nowrap;
  1352. }
  1353. .block-iv {
  1354. width: 20px;
  1355. height: 20px;
  1356. }
  1357. .table {
  1358. width: 100%;
  1359. border-radius: 8rpx;
  1360. background: #FFFFFF;
  1361. /* border: 1rpx solid #EFEFEF; */
  1362. font-size: 28rpx;
  1363. margin-top: 40rpx;
  1364. }
  1365. .felx-row {
  1366. width: 100%;
  1367. display: flex;
  1368. justify-content: space-between;
  1369. align-items: center;
  1370. }
  1371. .h-tr {
  1372. box-sizing: border-box;
  1373. display: flex;
  1374. flex-direction: row;
  1375. flex-wrap: nowrap;
  1376. justify-content: center;
  1377. align-items: center;
  1378. align-content: center;
  1379. border-color: #ccc;
  1380. border-style: solid;
  1381. border-width: 0;
  1382. border-width: 1px;
  1383. color: #3d7dd7;
  1384. }
  1385. .h-td {
  1386. box-sizing: border-box;
  1387. padding: 3px;
  1388. word-break: break-all;
  1389. border-color: #ccc;
  1390. border-style: solid;
  1391. border-width: 1px;
  1392. border-right-width: 1px;
  1393. display: flex;
  1394. flex-direction: row;
  1395. flex-wrap: nowrap;
  1396. justify-content: center;
  1397. align-items: center;
  1398. align-content: center;
  1399. min-height: 64rpx;
  1400. }
  1401. .LouCeng {
  1402. font-size: 30rpx;
  1403. background-color: #4a4b52;
  1404. color: #FFEB3B;
  1405. font-weight: bold;
  1406. }
  1407. .Fang {
  1408. width: 100%;
  1409. display: inline-block;
  1410. line-height: 50rpx;
  1411. text-align: center;
  1412. margin-right: 10px;
  1413. margin-bottom: 10px;
  1414. background-color: red;
  1415. }
  1416. .HuaDongBiao {
  1417. display: flex;
  1418. flex-direction: column-reverse;
  1419. position: relative;
  1420. }
  1421. .NeiRong {
  1422. display: flex;
  1423. flex-wrap: nowrap;
  1424. }
  1425. .NeiRong :last-child {
  1426. margin-right: 0 !important;
  1427. }
  1428. .ShiGongZhong {
  1429. background-color: #5bd3ff;
  1430. color: #000;
  1431. }
  1432. .WeiShiGong {
  1433. background-color: #ffc881;
  1434. color: #000;
  1435. }
  1436. .JunGong {
  1437. background-color: #80d9ae;
  1438. color: #000;
  1439. }
  1440. .container {
  1441. display: flex;
  1442. margin-left: 10px;
  1443. width: 100%;
  1444. margin-top: 10px;
  1445. margin-right: 10px;
  1446. justify-content: space-between;
  1447. }
  1448. .notice {
  1449. margin: 20rpx;
  1450. padding: 20rpx;
  1451. background: #FFFFFF;
  1452. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  1453. border-radius: 10rpx;
  1454. }
  1455. .text {
  1456. border-left: 15rpx solid #3857F3;
  1457. padding-left: 20rpx;
  1458. }
  1459. .share {
  1460. width: 100%;
  1461. height: 100%;
  1462. }
  1463. .share-box {
  1464. width: 100%;
  1465. height: 100%;
  1466. position: fixed;
  1467. top: 0rpx;
  1468. left: 0rpx;
  1469. bottom: 0rpx;
  1470. right: 0rpx;
  1471. background-color: rgba(0, 0, 0, 0.4);
  1472. transition: .3s;
  1473. z-index: 999;
  1474. }
  1475. .share-show {
  1476. transition: all 0.3s ease;
  1477. transform: translateY(0%) !important;
  1478. }
  1479. .scroll-Y {
  1480. height: 350rpx;
  1481. }
  1482. .share-item {
  1483. position: fixed;
  1484. left: 0;
  1485. bottom: 0;
  1486. width: 100%;
  1487. height: auto;
  1488. background-color: #FFFFFF;
  1489. transition: all 0.3s ease;
  1490. transform: translateY(100%);
  1491. z-index: 1999;
  1492. border-top-left-radius: 40rpx;
  1493. border-top-right-radius: 40rpx;
  1494. .share-to {
  1495. width: 100%;
  1496. height: 3rem;
  1497. display: flex;
  1498. justify-content: center;
  1499. align-items: center;
  1500. &::after {
  1501. content: '';
  1502. width: 240rpx;
  1503. height: 0rpx;
  1504. border-top: 1px solid #E4E7ED;
  1505. -webkit-transform: scaleY(0.5);
  1506. transform: scaleY(0.5);
  1507. margin-left: 30rpx;
  1508. }
  1509. &::before {
  1510. content: '';
  1511. width: 240rpx;
  1512. height: 0rpx;
  1513. border-top: 1px solid #E4E7ED;
  1514. -webkit-transform: scaleY(0.5);
  1515. transform: scaleY(0.5);
  1516. margin-right: 30rpx;
  1517. }
  1518. }
  1519. .content {
  1520. width: 100%;
  1521. height: 50%;
  1522. display: flex;
  1523. flex-wrap: wrap;
  1524. .block {
  1525. width: 100%;
  1526. display: flex;
  1527. flex-direction: column;
  1528. justify-content: center;
  1529. align-items: center;
  1530. height: 80rpx;
  1531. text {
  1532. margin-top: 16rpx;
  1533. font-size: 28rpx;
  1534. color: #606266;
  1535. }
  1536. }
  1537. }
  1538. .cancel {
  1539. width: 100%;
  1540. height: 3rem;
  1541. display: flex;
  1542. justify-content: center;
  1543. align-items: center;
  1544. border-top: 1rpx solid #E4E7ED;
  1545. }
  1546. }
  1547. .background {
  1548. // border: 15px solid hsla(0, 0%, 100%, .5);
  1549. background: white;
  1550. background-clip: padding-box;
  1551. padding: 20rpx;
  1552. border-radius: 20rpx;
  1553. margin: 20rpx 10rpx;
  1554. /*从padding开始往外面裁剪背景*/
  1555. }
  1556. </style>