statistics.vue 48 KB

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