statistics.vue 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371
  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. <view class="felx-row" v-if="!isEmpty(XQValue2.id)" style="margin-top: 10px;">
  170. <view class="h-td" style="flex: 1;">规模(户)</view>
  171. <view class="h-td" style="flex: 1;">未施工(户)</view>
  172. <view class="h-td" style="flex: 1;">施工中(户)</view>
  173. <view class="h-td" style="flex: 1;">竣工(户)</view>
  174. </view>
  175. <view class="felx-row" v-for="(item, index) in areaData" :key="index" v-if="!isEmpty(XQValue2.id)">
  176. <view class="h-td" style="flex: 1">{{ item.scale }}</view>
  177. <view class="h-td" style="flex: 1">{{ item.notstart }}</view>
  178. <view class="h-td" style="flex: 1">{{ item.willDone }}</view>
  179. <view class="h-td" style="flex: 1">{{ item.done }}</view>
  180. </view>
  181. <scroll-view :scroll-x="true" class="view_bg_build" v-if="roomList.length > 0" style="margin-top: 10px;">
  182. <view class="HuaDongBiao">
  183. <view class="NeiRong" v-for="(item,index) in roomList" :key="index">
  184. <view class="Fang" v-for="(item2, index2) in roomList[index]" :key="index2">
  185. <view v-if="item2.roomStatus=='施工中'" class="ShiGongZhong" @click="goHistory(item2)">
  186. {{ item2.roomName }}
  187. </view>
  188. <view v-else-if="item2.roomStatus=='未施工'" class="WeiShiGong">{{ item2.roomName }}
  189. </view>
  190. <view v-else class="JunGong" @click="goHistory(item2)">{{ item2.roomName }}</view>
  191. </view>
  192. </view>
  193. </view>
  194. <view style=" width: 48rpx;height: 63rpx;background: #C7EAFF; position:relative; left: 50%; transform:
  195. translateX(-50%); bottom: -10rpx;">
  196. </view>
  197. </scroll-view>
  198. <view v-if="roomList.length == 0" style="padding:50rpx;text-align: center;">暂无数据</view>
  199. <view style="align-items: center; margin-top: 20rpx;">
  200. <view style="display: flex;align-items: center;justify-content:center">
  201. <image class="block-iv" :src="loadImgSrc('ic_legend.png')"></image>
  202. <text style="margin-right: 20px;margin-left: 5px;">图例: </text>
  203. <div class="block-iv" style="background-color: #80d9ae;"></div>
  204. <text style="margin-right: 20px;margin-left: 5px;">竣工</text>
  205. <div class="block-iv" style="background-color: #5bd3ff;"></div>
  206. <text style="margin-right: 20px;margin-left: 5px;">施工中</text>
  207. <div class="block-iv" style="background-color: #ffc881;"></div>
  208. <text style="margin-right: 20px;margin-left: 5px;">未施工</text>
  209. </view>
  210. </view>
  211. </view>
  212. <view class="view-bg" style="margin-bottom: 40rpx;">
  213. <text class="title-txt">工业工程</text>
  214. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  215. <view class="uni-list-cell-left">工程名称</view>
  216. <view class="uni-list-cell-db">
  217. <view v-if="isEmpty(projectObj01.name)" style="margin-top: 10;"
  218. @click="getProjectTypeList('engineeringIndustry')">
  219. <span style="color: darkgray;">请选择工程</span>
  220. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  221. </view>
  222. <view v-else style="margin-top: 10;" @click="getProjectTypeList('engineeringIndustry')">
  223. <span style="color: black;">{{projectObj01.name}}</span>
  224. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  225. </view>
  226. </view>
  227. </view>
  228. <view v-if="!isEmpty(projectObj01.name)">
  229. <!-- v-if="!isEmpty(projectObj01.id)" -->
  230. <!-- <view class="table">
  231. <view class="felx-row">
  232. <view class="h-tr" style="flex: 1">名称</view>
  233. <view class="h-tr" style="flex: 1">实际用料</view>
  234. <view class="h-tr" style="flex: 1;align-items: center;">预计用料</view>
  235. <view class="h-tr" style="flex: 1">占比</view>
  236. </view>
  237. </view>
  238. <view class="felx-row">
  239. <view class="h-td" style="flex: 1">PE材料</view>
  240. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentagePE.actuality }}</view>
  241. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentagePE.anticipation }}
  242. </view>
  243. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentagePE.percentage }}
  244. </view>
  245. </view>
  246. <view class="felx-row">
  247. <view class="h-td" style="flex: 1">钢材</view>
  248. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentageIron.actuality }}
  249. </view>
  250. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentageIron.anticipation }}
  251. </view>
  252. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentageIron.percentage }}
  253. </view>
  254. </view>
  255. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  256. <view class="uni-list-cell-left">工程进度</view>
  257. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;"></view>
  258. </view>
  259. <view class="felx-row" v-for="(item, index) in projectBody01.nodeCheck" :key="index">
  260. <view class="h-td" style="flex: 1">{{ item.name }}</view>
  261. <view class="h-td" style="flex: 1" @click="industryItemClick(item)">{{ item.value }}</view>
  262. </view> -->
  263. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  264. <view class="uni-list-cell-left">工程进度</view>
  265. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;"></view>
  266. </view>
  267. <view class="felx-row">
  268. <view class="h-td" style="flex: 1;">名称</view>
  269. <view class="h-td" style="flex: 1;">占比</view>
  270. </view>
  271. <view class="felx-row" v-for="(item, index) in projectBody01.nodeCheck" :key="index">
  272. <view class="h-td" style="flex: 1">{{ item.enginClassification }}</view>
  273. <view class="h-td" style="flex: 1">{{ item.percentage }}</view>
  274. </view>
  275. </view>
  276. </view>
  277. <view class="view-bg" style="margin-bottom: 40rpx;">
  278. <text class="title-txt">市政工程</text>
  279. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  280. <view class="uni-list-cell-left">工程名称</view>
  281. <view class="uni-list-cell-db">
  282. <view v-if="isEmpty(projectObj02.id)" style="margin-top: 10;"
  283. @click="getProjectTypeList('engineeringMunicipal')">
  284. <span style="color: darkgray;">请选择工程</span>
  285. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  286. </view>
  287. <view v-else style="margin-top: 10;" @click="getProjectTypeList('engineeringMunicipal')">
  288. <span style="color: black;">{{projectObj02.name}}</span>
  289. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  290. </view>
  291. </view>
  292. </view>
  293. <view v-if="!isEmpty(projectObj02.id)">
  294. <view class="table">
  295. <view class="felx-row">
  296. <view class="h-tr" style="flex: 1">名称</view>
  297. <view class="h-tr" style="flex: 1">实际用料</view>
  298. <view class="h-tr" style="flex: 1;align-items: center;">预计用料</view>
  299. <view class="h-tr" style="flex: 1">占比</view>
  300. </view>
  301. </view>
  302. <view class="felx-row">
  303. <view class="h-td" style="flex: 1">PE材料</view>
  304. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentagePE.actuality }}</view>
  305. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentagePE.anticipation }}
  306. </view>
  307. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentagePE.percentage }}
  308. </view>
  309. </view>
  310. <view class="felx-row">
  311. <view class="h-td" style="flex: 1">钢材</view>
  312. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentageIron.actuality }}
  313. </view>
  314. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentageIron.anticipation }}
  315. </view>
  316. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentageIron.percentage }}
  317. </view>
  318. </view>
  319. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  320. <view class="uni-list-cell-left">工程进度</view>
  321. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;"></view>
  322. </view>
  323. <view class="felx-row" v-for="(item, index) in projectBody02.nodeCheck" :key="index">
  324. <view class="h-td" style="flex: 1">{{ item.name }}</view>
  325. <view class="h-td" style="flex: 1" @click="municipalItemClick(item)">{{ item.value }}</view>
  326. </view>
  327. </view>
  328. </view>
  329. <view class="view-bg" style="margin-bottom: 40rpx;">
  330. <text class="title-txt">顶管工程</text>
  331. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  332. <view class="uni-list-cell-left">工程名称</view>
  333. <view class="uni-list-cell-db">
  334. <view v-if="isEmpty(projectObj03.id)" style="margin-top: 10;"
  335. @click="getProjectTypeList('engineeringPipeJacking')">
  336. <span style="color: darkgray;">请选择工程</span>
  337. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  338. </view>
  339. <view v-else style="margin-top: 10;" @click="getProjectTypeList('engineeringPipeJacking')">
  340. <span style="color: black;">{{projectObj03.name}}</span>
  341. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  342. </view>
  343. </view>
  344. </view>
  345. <view v-if="!isEmpty(projectObj03.id)">
  346. <view class="table">
  347. <view class="felx-row">
  348. <view class="h-tr" style="flex: 1">名称</view>
  349. <view class="h-tr" style="flex: 1">实际用料</view>
  350. <view class="h-tr" style="flex: 1;align-items: center;">预计用料</view>
  351. <view class="h-tr" style="flex: 1">占比</view>
  352. </view>
  353. </view>
  354. <view class="felx-row">
  355. <view class="h-td" style="flex: 1">PE材料</view>
  356. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentagePE.actuality }}</view>
  357. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentagePE.anticipation }}
  358. </view>
  359. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentagePE.percentage }}
  360. </view>
  361. </view>
  362. <view class="felx-row">
  363. <view class="h-td" style="flex: 1">钢材</view>
  364. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentageIron.actuality }}
  365. </view>
  366. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentageIron.anticipation }}
  367. </view>
  368. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentageIron.percentage }}
  369. </view>
  370. </view>
  371. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  372. <view class="uni-list-cell-left">工程进度</view>
  373. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;"></view>
  374. </view>
  375. <view class="felx-row" v-for="(item, index) in projectBody03.nodeCheck" :key="index">
  376. <view class="h-td" style="flex: 1">{{ item.name }}</view>
  377. <view class="h-td" style="flex: 1" @click="topTubeItemClick(item)">{{ item.value }}</view>
  378. </view>
  379. </view>
  380. </view>
  381. <view class="view-bg" style="margin-bottom: 40rpx;">
  382. <text class="title-txt">碰口工程</text>
  383. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  384. <view class="uni-list-cell-left">工程名称</view>
  385. <view class="uni-list-cell-db">
  386. <view v-if="isEmpty(projectObj04.id)" style="margin-top: 10;"
  387. @click="getProjectTypeList('touchOperationEngineering')">
  388. <span style="color: darkgray;">请选择工程</span>
  389. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  390. </view>
  391. <view v-else style="margin-top: 10;"
  392. @click="getProjectTypeList('touchOperationEngineering')">
  393. <span style="color: black;">{{projectObj04.name}}</span>
  394. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  395. </view>
  396. </view>
  397. </view>
  398. <view v-if="!isEmpty(projectObj04.id)">
  399. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  400. <view class="uni-list-cell-left">工程进度</view>
  401. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;"></view>
  402. </view>
  403. <view class="felx-row" v-for="(item, index) in projectBody04.nodeCheck" :key="index">
  404. <view class="h-td" style="flex: 1">{{ item.name }}</view>
  405. <view class="h-td" style="flex: 1" @click="collisionItemClick(item)">{{ item.value }}</view>
  406. </view>
  407. </view>
  408. </view>
  409. </scroll-view>
  410. </view>
  411. <view v-else-if="isLeader=='app_user'">
  412. <view class="background">
  413. <view>
  414. <view
  415. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  416. 筛选
  417. <image v-if="change==false" :src="loadImgSrc('icon_user_open.png')" @click='change1'
  418. style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  419. </image>
  420. <image v-if="change==true" :src="loadImgSrc('icon_user_close.png')" @click='change1'
  421. style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  422. </image>
  423. </view>
  424. </view>
  425. <view v-show="change" style="padding-right: 10px;">
  426. <view class="uni-list">
  427. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  428. <view class="uni-list-cell-left">
  429. 工程项
  430. </view>
  431. <view v-if="this.isEmpty(this.EngineeringValue)" class="uni-list-cell-db"
  432. style="margin-top: 10;" @click="pickerShow('gcx')">
  433. <span style="color: darkgray;">请选择工程项</span>
  434. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  435. </view>
  436. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gcx')">
  437. <span style="color: black;">{{EngineeringValue}}</span>
  438. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  439. </view>
  440. </view>
  441. </view>
  442. <view v-if="EngineeringValue=='民用工程'||EngineeringValue=='开栓'">
  443. <view class="uni-list">
  444. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  445. <view>
  446. 行政区
  447. </view>
  448. <view v-if="this.isEmpty(this.XZQValue3.dictValue)" style="margin-top: 10;"
  449. @click="pickerShow('xzq3')">
  450. <span style="color: darkgray;">请选择行政区</span>
  451. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  452. </view>
  453. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  454. @click="pickerShow('xzq3')">
  455. <span style="color: black;">{{XZQValue3.dictLabel}}</span>
  456. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  457. </view>
  458. </view>
  459. </view>
  460. <view class="uni-list">
  461. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  462. <view>
  463. 小区
  464. </view>
  465. <view v-if="this.isEmpty(this.XQValue3.id)" class="uni-list-cell-db"
  466. style="margin-top: 10;" @click="pickerShow('xq3')">
  467. <span style="color: darkgray;">请选择小区</span>
  468. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  469. </view>
  470. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  471. @click="pickerShow('xq3')">
  472. <span style="color: black;">{{XQValue3.name}}</span>
  473. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  474. </view>
  475. </view>
  476. </view>
  477. <view class="uni-list">
  478. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  479. <view class="uni-list-cell-left">
  480. 楼栋
  481. </view>
  482. <view v-if="this.isEmpty(this.LDValue3.id)" class="uni-list-cell-db"
  483. style="margin-top: 10;" @click="pickerShow('ld3')">
  484. <span style="color: darkgray;">请选择楼栋</span>
  485. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  486. </view>
  487. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  488. @click="pickerShow('ld3')">
  489. <span style="color: black;">{{LDValue3.name}}</span>
  490. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  491. </view>
  492. </view>
  493. </view>
  494. <view class="uni-list" style="margin-top: 10;">
  495. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  496. <view class="uni-list-cell-left">
  497. 单元
  498. </view>
  499. <view v-if="this.isEmpty(this.DYValue3.id)" class="uni-list-cell-db"
  500. style="margin-top: 10;" @click="pickerShow('dy3')">
  501. <span style="color: darkgray;">请选择单元</span>
  502. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  503. </view>
  504. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  505. @click="pickerShow('dy3')">
  506. <span style="color: black;">{{DYValue3.name}}</span>
  507. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  508. </view>
  509. </view>
  510. </view>
  511. <view class="uni-list">
  512. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  513. <view class="uni-list-cell-left">
  514. 房间
  515. </view>
  516. <view v-if="this.isEmpty(this.FJValue3.id)" class="uni-list-cell-db"
  517. style="margin-top: 10;" @click="pickerShow('fj3')">
  518. <span style="color: darkgray;">请选择房间</span>
  519. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  520. </view>
  521. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  522. @click="pickerShow('fj3')">
  523. <span style="color: black;">{{FJValue3.name}}</span>
  524. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  525. </view>
  526. </view>
  527. </view>
  528. <view class="uni-list" v-if="EngineeringValue=='民用工程'">
  529. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  530. <view class="uni-list-cell-left">
  531. 工程类型
  532. </view>
  533. <view v-if="this.isEmpty(this.ProjectType.dictValue)" class="uni-list-cell-db"
  534. style="margin-top: 10;" @click="pickerShow('gclx')">
  535. <span style="color: darkgray;">请选择工程类型</span>
  536. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  537. </view>
  538. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  539. @click="pickerShow('gclx')">
  540. <span style="color: black;">{{ProjectType.dictLabel}}</span>
  541. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  542. </view>
  543. </view>
  544. </view>
  545. </view>
  546. <view v-if="EngineeringValue!='开栓'">
  547. <view class="container" style="border-bottom: 1px solid #f8f8f8;"
  548. v-if="EngineeringValue!='民用工程'">
  549. <view class="uni-list-cell-left">
  550. 工程名称
  551. </view>
  552. <view class="uni-list-cell-db" style="margin-top: 10;">
  553. <input class="uni-input" type="text" v-model="EngineeringName" maxlength="80"
  554. placeholder="请输入工程名称"
  555. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  556. </view>
  557. </view>
  558. <view class="uni-list"
  559. v-if="EngineeringValue=='工业工程'||EngineeringValue=='带气封堵施工'||EngineeringValue=='民用工程'">
  560. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  561. <view class="uni-list-cell-left">
  562. 工程分类
  563. </view>
  564. <view v-if="this.isEmpty(this.ProjectClassification.dictValue)" class="uni-list-cell-db"
  565. style="margin-top: 10;" @click="pickerShow('gcfl')">
  566. <span style="color: darkgray;">请选择工程分类</span>
  567. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  568. </view>
  569. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  570. @click="pickerShow('gcfl')">
  571. <span style="color: black;">{{ProjectClassification.dictLabel}}</span>
  572. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  573. </view>
  574. </view>
  575. </view>
  576. <view class="uni-list"
  577. v-if="EngineeringValue=='市政工程'||EngineeringValue=='顶管工程'||EngineeringValue=='民用工程'||EngineeringValue=='基建工程'">
  578. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  579. <view class="uni-list-cell-left">
  580. 工程步骤
  581. </view>
  582. <view v-if="this.isEmpty(this.ProjectSteps.dictValue)" class="uni-list-cell-db"
  583. style="margin-top: 10;" @click="pickerShow('gcbz')">
  584. <span style="color: darkgray;">请选择工程步骤</span>
  585. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  586. </view>
  587. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  588. @click="pickerShow('gcbz')">
  589. <span style="color: black;">{{ProjectSteps.dictLabel}}</span>
  590. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  591. </view>
  592. </view>
  593. </view>
  594. </view>
  595. <view class="uni-list">
  596. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  597. <view class="uni-list-cell-left">
  598. 审核状态
  599. </view>
  600. <view v-if="this.isEmpty(this.ReviewStatus.dictValue)" class="uni-list-cell-db"
  601. style="margin-top: 10;" @click="pickerShow('shzt')">
  602. <span style="color: darkgray;">请选择审核状态</span>
  603. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  604. </view>
  605. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('shzt')">
  606. <span style="color: black;">{{ReviewStatus.dictLabel}}</span>
  607. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  608. </view>
  609. </view>
  610. </view>
  611. <button class="tj-btn" style="margin: 40rpx 90rpx;" @click="serch"> 搜索</button>
  612. <button class="sc-btn" style="margin: 40rpx 90rpx;" @click="clear">重置筛选</button>
  613. </view>
  614. </view>
  615. <cc-pullScroolView class="pullScrollView" ref="pullScroll" :pullDown="pullDown" :isDownLoading="true">
  616. <view class="notice" v-for="(item,index) in list" :key="index">
  617. <view class="justify-content" @click="chooseNode(item)">
  618. <view v-if="EngineeringValue=='民用工程'">
  619. <view class="font-forty">
  620. {{item.areaName+item.buildingName+item.unitName+item.houseName+(item.enginType=='new_built'? '-新建':'-旧改')+'-'+item.enginClassificationName}}
  621. </view>
  622. <view class="font-twenty-eight gray" v-for="(state,stateIndex) in item.nodeReViewStateList"
  623. :key="stateIndex" v-if="state.Type!='开栓'">
  624. {{state.Type}}-{{state.state == 1 ? '审核通过': (state.content == '暂未审核' ? '暂未审核':'审核未通过')}}
  625. <view v-if="state.content != '暂未审核'">原因:{{state.content}}</view>
  626. </view>
  627. </view>
  628. <view v-if="EngineeringValue=='开栓'">
  629. <view class="font-forty">
  630. {{item.areaName+item.buildingName+item.unitName+item.houseName}}
  631. </view>
  632. <view class="font-twenty-eight gray">
  633. {{item.state == 0 ? '审核不通过': (item.state == 1?'审核通过':'未审核')}}
  634. </view>
  635. </view>
  636. <view
  637. v-if="EngineeringValue=='顶管工程'||EngineeringValue=='基建工程'||EngineeringValue=='碰口作业'||EngineeringValue=='市政工程'||EngineeringValue=='工业工程'||EngineeringValue=='带气封堵施工'">
  638. <view class="font-forty">
  639. 工程名称:{{item.enginName}}
  640. </view>
  641. <view class="font-twenty-eight gray" v-for="(state,stateIndex) in item.status"
  642. :key="stateIndex">
  643. <view>{{state.type}}-{{state.reviewStatus}}</view>
  644. </view>
  645. </view>
  646. <view class="font-twenty-eight gray">
  647. {{item.createTime}}
  648. </view>
  649. </view>
  650. </view>
  651. </cc-pullScroolView>
  652. </view>
  653. <view class="share">
  654. <view :class="{'share-box': shareState}" @click="handleHiddenShare">
  655. </view>
  656. <view class="share-item" :class="{'share-show': shareState}">
  657. <view class="share-to">
  658. <text>请选择</text>
  659. </view>
  660. <scroll-view scroll-y="true" class="scroll-Y">
  661. <view class="content">
  662. <view class="block" v-for="(item, index) in typeList" :key="index" @click="showTypeSheet(item)"
  663. v-if="item.Type!='开栓'">
  664. <text>{{item.Type}}</text>
  665. </view>
  666. </view>
  667. </scroll-view>
  668. <view class="cancel" @click.stop="handleHiddenShare">
  669. <text>取消</text>
  670. </view>
  671. </view>
  672. </view>
  673. <bottomSheet ref="refShare" :data="historyList"></bottomSheet>
  674. <BottomSheetNew ref="refShareNew" :data="historyListNew" :TitleType="bottomSheetTitle"></BottomSheetNew>
  675. <bottomSheetMore ref="refShareMore" :data="historyListMore" :TitleType="bottomSheetTitle"></bottomSheetMore>
  676. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  677. subtitleKey="id" v-model="name"></SelectPicker>
  678. <SelectPicker :list="dictOptions" @change="changeSelect" v-if="openDict" @close="closeDict" titleKey="dictLabel"
  679. subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  680. <SelectPicker :list="projectList" @change="changeSelectP" v-if="openP" @close="closeP" titleKey="name"
  681. subtitleKey="id" v-model="name"></SelectPicker>
  682. </view>
  683. </template>
  684. <script>
  685. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  686. import bottomSheet from '../../components/bottomSheet/bottomSheet.vue'
  687. import CCBProjectList from '../../uni_modules/cc-pullScroolView/components/cc-pullScroolView/cc-pullScroolView.vue';
  688. import bottomSheetNew from '../../components/bottomSheet/bottomSheetMoreNew.vue'
  689. import bottomSheetMore from '../../components/bottomSheet/bottomSheetMore.vue'
  690. import {
  691. gethistoryList,
  692. getKShistoryList,
  693. getProjectStatisticsData
  694. } from '@/api/common'
  695. import {
  696. getUserType,
  697. getUserRole
  698. } from '@/utils/auth';
  699. import {
  700. getDicts
  701. } from "@/api/system/dict/data";
  702. import user from '@/store/modules/user'
  703. import {
  704. getAreaList,
  705. getBuildingList,
  706. getUnitList,
  707. getHousesList,
  708. getEnginMaterialQualityList,
  709. getEnginSpecificationsList,
  710. getMunicipalStatisticsData,
  711. getObtainRoomcCompletionInformationList,
  712. getRoomProjectId,
  713. getRoomProjectList,
  714. getHistoryByUserList,
  715. getByUserListAndDicts,
  716. getEnginProjectList,
  717. getengineeringNameList,
  718. getTopPipeNameList,
  719. getProjectName,
  720. getIndustryProjectScheduleDetails,
  721. getMunicipalProjectScheduleDetails,
  722. getTopTubeProjectScheduleDetails,
  723. getCollisionProjectScheduleDetails,
  724. getAreaCompletionInformationList
  725. } from '@/api/common'
  726. export default {
  727. components: {
  728. SelectPicker,
  729. CCBProjectList,
  730. bottomSheet,
  731. bottomSheetNew,
  732. bottomSheetMore
  733. },
  734. data() {
  735. return {
  736. bottomSheetTitle: "",
  737. historyList: {}, //历史数据
  738. historyListNew: {}, //历史数据
  739. historyListMore: {}, //历史数据
  740. userRole: getUserRole(),
  741. tabValue: ['旧改', '新建'],
  742. tabIndex: 0,
  743. isLeader: '',
  744. list: [],
  745. newlist: [],
  746. pageSize: 10,
  747. totalNum: '',
  748. pageNum: 1,
  749. typeList: '',
  750. villageIndex: 0,
  751. specificationIndex: 0,
  752. materialIndex: 0,
  753. villageIndex2: 0,
  754. buildIndex: 0,
  755. unitIndex: 0,
  756. open: false,
  757. openDict: false,
  758. selectList: [],
  759. dictOptions: [],
  760. XQList: [],
  761. LDList: [],
  762. DYList: [],
  763. projectValue: {
  764. 'dictValue': '0'
  765. },
  766. XZQValue: {},
  767. XQValue: {},
  768. XQList2: [],
  769. LDList2: [],
  770. DYList2: [],
  771. XQList3: [],
  772. LDList3: [],
  773. DYList3: [],
  774. FJList3: [],
  775. projectValue2: {
  776. 'dictValue': '0'
  777. },
  778. EngineeringValue: '',
  779. EngineeringName: '',
  780. EngineeringList: [],
  781. shareState: false,
  782. XZQValue2: {},
  783. XQValue2: {},
  784. LDValue2: {},
  785. DYValue2: {},
  786. XZQValue3: {},
  787. XQValue3: {},
  788. LDValue3: {},
  789. DYValue3: {},
  790. FJValue3: {},
  791. ProjectType: {},
  792. ProjectClassification: {},
  793. ProjectSteps: {},
  794. ReviewStatus: {},
  795. change: false,
  796. specificationValue: {},
  797. specificationList: [],
  798. materialValue: {},
  799. materialList: [],
  800. materialUsageList: [],
  801. roomList: [],
  802. roomCount: 4,
  803. nodeId: '',
  804. nodeType: '',
  805. roomItem: {},
  806. roomId: '',
  807. projectList: [],
  808. projectBody01: {},
  809. projectBody02: {
  810. 'materialPercentagePE': {
  811. 'actuality': '',
  812. 'anticipation': '',
  813. 'percentage': ''
  814. },
  815. 'materialPercentageIron': {
  816. 'actuality': '',
  817. 'anticipation': '',
  818. 'percentage': ''
  819. }
  820. },
  821. projectBody03: {
  822. 'materialPercentagePE': {
  823. 'actuality': '',
  824. 'anticipation': '',
  825. 'percentage': ''
  826. },
  827. 'materialPercentageIron': {
  828. 'actuality': '',
  829. 'anticipation': '',
  830. 'percentage': ''
  831. }
  832. },
  833. projectBody04: {
  834. 'materialPercentagePE': {
  835. 'actuality': '',
  836. 'anticipation': '',
  837. 'percentage': ''
  838. },
  839. 'materialPercentageIron': {
  840. 'actuality': '',
  841. 'anticipation': '',
  842. 'percentage': ''
  843. }
  844. },
  845. projectObj01: {},
  846. projectObj02: {},
  847. projectObj03: {},
  848. projectObj04: {},
  849. openP: false,
  850. currentProjectType: '',
  851. areaData: [],
  852. }
  853. },
  854. created() {},
  855. onLoad() {
  856. this.isLeader = getUserType()
  857. this.EngineeringValue = this.userRole[0];
  858. if (this.isLeader == 'app_user') {
  859. this.changeTab();
  860. }
  861. },
  862. // 上拉加载
  863. onReachBottom() {
  864. if (this.pageNum * 10 >= this.totalNum) {} else {
  865. this.$refs.pullScroll.showUpLoading();
  866. this.pageNum++;
  867. this.requestData();
  868. }
  869. },
  870. methods: {
  871. industryItemClick(item) {
  872. if ("未上传" == item.value) {
  873. return;
  874. }
  875. getIndustryProjectScheduleDetails(this.projectObj01.id, item.name).then(res => {
  876. this.historyListNew = res.data;
  877. this.bottomSheetTitle = res.data.zEngineeringNodeBo.type;
  878. this.showHistoryNewList();
  879. })
  880. },
  881. municipalItemClick(item) {
  882. if ("未上传" == item.value) {
  883. return;
  884. }
  885. getMunicipalProjectScheduleDetails(this.projectObj02.id, item.name).then(res => {
  886. this.historyListNew = res.data;
  887. this.bottomSheetTitle = res.data.zEngineeringNodeBo.type;
  888. this.showHistoryNewList();
  889. })
  890. },
  891. topTubeItemClick(item) {
  892. if ("未上传" == item.value) {
  893. return;
  894. }
  895. getTopTubeProjectScheduleDetails(this.projectObj03.id, item.name).then(res => {
  896. this.historyListMore = res.data;
  897. this.bottomSheetTitle = res.data.zEngineeringNodeBo.type;
  898. this.showHistoryMoreList();
  899. })
  900. },
  901. collisionItemClick(item) {
  902. if ("未上传" == item.value) {
  903. return;
  904. }
  905. getCollisionProjectScheduleDetails(this.projectObj04.id, item.name).then(res => {
  906. this.historyListNew = res.data;
  907. this.bottomSheetTitle = res.data.zEngineeringNodeBo.type;
  908. this.showHistoryNewList();
  909. })
  910. },
  911. changeSelectP(item, index) {
  912. this.openP = false;
  913. let type = this.currentProjectType;
  914. if (type == 'engineeringIndustry') { // 工业工程
  915. this.projectObj01 = item;
  916. this.getProjectData(item.name, type);
  917. } else if (type == 'engineeringMunicipal') { // 市政工程
  918. this.projectObj02 = item;
  919. this.getProjectData(item.id, type);
  920. } else if (type == 'engineeringPipeJacking') { // 顶管工程
  921. this.projectObj03 = item;
  922. this.getProjectData(item.id, type);
  923. } else if (type == 'touchOperationEngineering') { // 碰口作业
  924. this.projectObj04 = item;
  925. this.getProjectData(item.id, type);
  926. }
  927. },
  928. getProjectTypeList(type) {
  929. this.currentProjectType = type;
  930. if (type == 'engineeringIndustry') {
  931. this.projectList = null;
  932. getEnginProjectList().then(res => {
  933. this.projectList = res.data;
  934. this.openP = true;
  935. })
  936. } else if (type == 'engineeringMunicipal') {
  937. this.projectList = null;
  938. getengineeringNameList("", "", "").then(res => {
  939. this.projectList = res.data;
  940. this.openP = true;
  941. })
  942. } else if (type == 'engineeringPipeJacking') {
  943. this.projectList = null;
  944. getTopPipeNameList("", "").then(res => {
  945. this.projectList = res.data;
  946. this.openP = true;
  947. })
  948. } else if (type == 'touchOperationEngineering') {
  949. this.projectList = null;
  950. getProjectName("", 999999).then(res => {
  951. let result = JSON.parse(JSON.stringify(res.rows).replace(/enginName/g, 'name'));
  952. this.projectList = result;
  953. this.openP = true;
  954. })
  955. }
  956. },
  957. getProjectData(id, type) {
  958. getProjectStatisticsData(id, type).then(response => {
  959. if (type == 'engineeringIndustry') { // 工业工程
  960. this.projectBody01 = response.data;
  961. } else if (type == 'engineeringMunicipal') { // 市政工程
  962. this.projectBody02 = response.data;
  963. } else if (type == 'engineeringPipeJacking') { // 顶管工程
  964. this.projectBody03 = response.data;
  965. } else if (type == 'touchOperationEngineering') { // 碰口作业
  966. this.projectBody04 = response.data;
  967. }
  968. })
  969. },
  970. goHistory(item) {
  971. this.roomItem = item;
  972. getDicts(item.enginCycle + '_indoor_engin').then(response => {
  973. this.typeList = response.data;
  974. let result = JSON.parse(JSON.stringify(this.typeList).replace(/dictValue/g, 'Type'));
  975. this.typeList = result;
  976. this.handleShowSheet();
  977. });
  978. },
  979. serch() {
  980. this.changeTab();
  981. },
  982. change1() {
  983. this.change = !this.change
  984. },
  985. isEmpty(str) {
  986. return (!str || 0 === str.length);
  987. },
  988. handleShowSheet() {
  989. this.shareState = true;
  990. },
  991. handleHiddenShare() {
  992. this.shareState = false;
  993. },
  994. chooseNode(item) {
  995. if (this.EngineeringValue == '民用工程') {
  996. this.typeList = item.nodeReViewStateList
  997. this.nodeId = item.id;
  998. this.nodeType = item.enginClassification;
  999. this.roomId = item.houseId;
  1000. if (this.nodeType == 'bottom_leg') { //底腿
  1001. let obj = {
  1002. id: this.nodeId,
  1003. type: item.Type
  1004. };
  1005. uni.navigateTo({
  1006. url: '/pages/statistics/history_details_bottom_leg?params=' + encodeURIComponent(JSON
  1007. .stringify(
  1008. obj))
  1009. })
  1010. }
  1011. // else if (this.nodeType == 'pressure_regulating') { //调压柜
  1012. // let obj = {
  1013. // id: this.nodeId,
  1014. // type: item.enginClassificationName
  1015. // };
  1016. // uni.navigateTo({
  1017. // url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(
  1018. // JSON
  1019. // .stringify(
  1020. // obj))
  1021. // })
  1022. // }
  1023. else {
  1024. this.handleShowSheet();
  1025. }
  1026. } else if (this.EngineeringValue == '开栓') {
  1027. this.nodeId = item.id;
  1028. let obj = {
  1029. type: 'edit',
  1030. id: this.nodeId,
  1031. };
  1032. uni.navigateTo({
  1033. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  1034. .stringify(
  1035. obj))
  1036. })
  1037. } else if (this.EngineeringValue == '市政工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  1038. '顶管工程' || this.EngineeringValue == '工业工程' || this.EngineeringValue == '碰口作业') {
  1039. console.log("=====", item)
  1040. this.nodeId = item.id;
  1041. let result = JSON.parse(JSON.stringify(item.status).replace(/type/g, 'Type'));
  1042. this.typeList = result;
  1043. if (item.enginClassification == '调压柜') {
  1044. let obj = {
  1045. id: this.nodeId,
  1046. type: '调压柜',
  1047. };
  1048. console.log("===", obj)
  1049. uni.navigateTo({
  1050. url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  1051. .stringify(
  1052. obj))
  1053. })
  1054. } else {
  1055. this.handleShowSheet();
  1056. }
  1057. }
  1058. // else if (this.EngineeringValue == '工业工程') {
  1059. // this.nodeId = item.id;
  1060. // let obj = {
  1061. // id: this.nodeId,
  1062. // type: '历史数据'
  1063. // };
  1064. // uni.navigateTo({
  1065. // url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  1066. // .stringify(
  1067. // obj))
  1068. // })
  1069. // }
  1070. else if (this.EngineeringValue == '带气封堵施工') {
  1071. this.nodeId = item.id;
  1072. let obj = {
  1073. id: this.nodeId,
  1074. type: item.dictvalue
  1075. };
  1076. uni.navigateTo({
  1077. url: '/pages/statistics/history_gas_sealing?params=' + encodeURIComponent(JSON
  1078. .stringify(
  1079. obj))
  1080. })
  1081. }
  1082. },
  1083. showHistoryList() {
  1084. this.$refs.refShare.handleShowShare();
  1085. },
  1086. showHistoryNewList() {
  1087. this.$refs.refShareNew.handleShowShare();
  1088. },
  1089. showHistoryMoreList() {
  1090. this.$refs.refShareMore.handleShowShare();
  1091. },
  1092. showTypeSheet(item) {
  1093. if (this.isLeader == 'sys_user') {
  1094. let param = {
  1095. areaId: this.roomItem.areaId,
  1096. buildingId: this.roomItem.buildingId,
  1097. unitId: this.roomItem.unitId,
  1098. houseId: this.roomItem.roomId,
  1099. enginCycle: this.projectValue2.dictValue, // 工程周期
  1100. enginType: this.roomItem.enginCycle,
  1101. enginClassification: 'indoor_engin', //写死 室内
  1102. }
  1103. getRoomProjectId(param).then(res => {
  1104. if (res.code == '200') {
  1105. if (res.data != null) {
  1106. getRoomProjectList(res.data.id, item.Type).then(res => {
  1107. if (res.data.zEngineeringNodeBo != null) {
  1108. this.historyList = res.data
  1109. this.showHistoryList();
  1110. } else {
  1111. this.$modal.msg("暂无历史信息")
  1112. }
  1113. })
  1114. } else {
  1115. this.$modal.msg("暂无工程信息")
  1116. }
  1117. } else {
  1118. this.$modal.msg(res.msg)
  1119. }
  1120. })
  1121. } else {
  1122. if (this.EngineeringValue == '民用工程') {
  1123. let obj = {
  1124. id: this.nodeId,
  1125. type: item.Type,
  1126. roomId: this.roomId,
  1127. };
  1128. this.handleHiddenShare();
  1129. if (this.nodeType == 'indoor_engin') { //室内
  1130. uni.navigateTo({
  1131. url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
  1132. .stringify(
  1133. obj))
  1134. })
  1135. } else if (this.nodeType == 'overhead') { //架空
  1136. uni.navigateTo({
  1137. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  1138. .stringify(
  1139. obj))
  1140. })
  1141. } else if (this.nodeType == 'courtyard') { //庭院
  1142. uni.navigateTo({
  1143. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  1144. .stringify(
  1145. obj))
  1146. })
  1147. }
  1148. } else if (this.EngineeringValue == '顶管工程') {
  1149. let obj = {
  1150. id: this.nodeId,
  1151. type: item.Type,
  1152. };
  1153. uni.navigateTo({
  1154. url: '/pages/statistics/historyDetailsTopTube?params=' + encodeURIComponent(JSON
  1155. .stringify(
  1156. obj))
  1157. })
  1158. this.handleHiddenShare();
  1159. } else if (this.EngineeringValue == '基建工程') {
  1160. let obj = {
  1161. id: this.nodeId,
  1162. type: item.Type,
  1163. };
  1164. uni.navigateTo({
  1165. url: '/pages/statistics/historyDetailsInfrastructure?params=' + encodeURIComponent(JSON
  1166. .stringify(
  1167. obj))
  1168. })
  1169. this.handleHiddenShare();
  1170. } else if (this.EngineeringValue == '市政工程') {
  1171. let obj = {
  1172. id: this.nodeId,
  1173. type: item.Type,
  1174. };
  1175. uni.navigateTo({
  1176. url: '/pages/statistics/historyDetailMunicipal?params=' + encodeURIComponent(JSON
  1177. .stringify(
  1178. obj))
  1179. })
  1180. this.handleHiddenShare();
  1181. } else if (this.EngineeringValue == '工业工程') {
  1182. let obj = {
  1183. id: this.nodeId,
  1184. type: item.Type,
  1185. };
  1186. uni.navigateTo({
  1187. url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  1188. .stringify(
  1189. obj))
  1190. })
  1191. this.handleHiddenShare();
  1192. } else if (this.EngineeringValue == '碰口作业') {
  1193. let obj = {
  1194. id: this.nodeId,
  1195. type: item.Type,
  1196. };
  1197. console.log("===", obj)
  1198. uni.navigateTo({
  1199. url: '/pages/statistics/historyDetailsMouth?params=' + encodeURIComponent(JSON
  1200. .stringify(
  1201. obj))
  1202. })
  1203. this.handleHiddenShare();
  1204. }
  1205. }
  1206. },
  1207. pickerShow(e) {
  1208. this.type = e;
  1209. if (e == 'gcx') {
  1210. this.open = true;
  1211. this.EngineeringList = [];
  1212. this.userRole.forEach((item, index) => {
  1213. // if (item != '危险作业工程') {
  1214. // console.log("===", item)
  1215. this.EngineeringList.push({
  1216. 'id': index,
  1217. 'name': item
  1218. })
  1219. //}
  1220. });
  1221. this.selectList = this.EngineeringList;
  1222. } else if (e == 'gczq') {
  1223. this.openDict = true;
  1224. getDicts("engin_cycle").then(response => {
  1225. this.dictOptions = response.data;
  1226. });
  1227. } else if (e == 'gclx') {
  1228. this.openDict = true;
  1229. getDicts('indoor_engin_type').then(response => {
  1230. this.dictOptions = response.data;
  1231. });
  1232. } else if (e == 'gcfl') {
  1233. if (this.EngineeringValue == '民用工程') {
  1234. if (this.isEmpty(this.ProjectType.dictValue)) {
  1235. this.$modal.msg('请选择工程类型')
  1236. } else {
  1237. this.openDict = true;
  1238. getDicts(this.ProjectType.dictValue).then(response => {
  1239. this.dictOptions = response.data;
  1240. });
  1241. }
  1242. } else {
  1243. //工业5 带起封堵施工3
  1244. let nodeType = '';
  1245. if (this.EngineeringValue == '工业工程') {
  1246. nodeType = '5';
  1247. } else if (this.EngineeringValue == '带气封堵施工') {
  1248. nodeType = '3';
  1249. }
  1250. this.openDict = true;
  1251. getByUserListAndDicts(nodeType).then(
  1252. response => {
  1253. this.dictOptions = response.data;
  1254. });
  1255. }
  1256. } else if (e == 'gcbz') {
  1257. if (this.EngineeringValue == '民用工程') {
  1258. if (this.isEmpty(this.ProjectClassification.dictValue)) {
  1259. this.$modal.msg('请选择工程分类')
  1260. } else {
  1261. this.openDict = true;
  1262. getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
  1263. response => {
  1264. this.dictOptions = response.data;
  1265. });
  1266. }
  1267. } else {
  1268. let nodeType = '';
  1269. if (this.EngineeringValue == '市政工程') {
  1270. nodeType = '4';
  1271. } else if (this.EngineeringValue == '基建工程') {
  1272. nodeType = '2';
  1273. } else if (this.EngineeringValue == '顶管工程') {
  1274. nodeType = '1';
  1275. }
  1276. this.openDict = true;
  1277. getByUserListAndDicts(nodeType).then(
  1278. response => {
  1279. this.dictOptions = response.data;
  1280. });
  1281. }
  1282. } else if (e == 'shzt') {
  1283. if (this.EngineeringValue == '民用工程') {
  1284. if (this.isEmpty(this.ProjectSteps.dictValue)) {
  1285. this.$modal.msg('请选择工程步骤')
  1286. } else {
  1287. this.openDict = true;
  1288. getDicts('state_options').then(
  1289. response => {
  1290. this.dictOptions = response.data;
  1291. });
  1292. }
  1293. } else {
  1294. this.openDict = true;
  1295. getDicts('state_options').then(
  1296. response => {
  1297. this.dictOptions = response.data;
  1298. });
  1299. }
  1300. } else if (e == 'xzq') {
  1301. if (this.isEmpty(this.projectValue.dictValue)) {
  1302. this.$modal.msg('请选择工程周期')
  1303. } else {
  1304. this.openDict = true;
  1305. getDicts("district").then(response => {
  1306. this.dictOptions = response.data;
  1307. });
  1308. }
  1309. } else if (e == 'xq') {
  1310. if (this.isEmpty(this.XZQValue.dictValue)) {
  1311. getAreaList('').then(res => {
  1312. this.XQList = res.data;
  1313. this.open = true;
  1314. this.selectList = this.XQList;
  1315. })
  1316. } else {
  1317. this.open = true;
  1318. this.selectList = this.XQList;
  1319. }
  1320. } else if (e == 'ld') {
  1321. if (this.isEmpty(this.XQValue.id)) {
  1322. this.$modal.msg('请选择小区')
  1323. } else {
  1324. this.open = true;
  1325. this.selectList = this.LDList;
  1326. }
  1327. } else if (e == 'dy') {
  1328. if (this.isEmpty(this.LDValue.id)) {
  1329. this.$modal.msg('请选择楼栋')
  1330. } else {
  1331. this.open = true;
  1332. this.selectList = this.DYList;
  1333. }
  1334. } else if (e == 'gczq2') {
  1335. this.openDict = true;
  1336. getDicts("engin_cycle").then(response => {
  1337. this.dictOptions = response.data;
  1338. });
  1339. } else if (e == 'xzq2' || e == 'xzq3') {
  1340. if (this.isEmpty(this.projectValue2.dictValue)) {
  1341. this.$modal.msg('请选择工程周期')
  1342. } else {
  1343. this.openDict = true;
  1344. getDicts("district").then(response => {
  1345. this.dictOptions = response.data;
  1346. });
  1347. }
  1348. } else if (e == 'xq2') {
  1349. if (this.isEmpty(this.XZQValue2.dictValue)) {
  1350. getAreaList('').then(res => {
  1351. this.XQList2 = res.data;
  1352. this.open = true;
  1353. this.selectList = this.XQList2;
  1354. })
  1355. } else {
  1356. this.open = true;
  1357. this.selectList = this.XQList2;
  1358. }
  1359. } else if (e == 'ld2') {
  1360. if (this.isEmpty(this.XQValue2.id)) {
  1361. this.$modal.msg('请选择小区')
  1362. } else {
  1363. this.open = true;
  1364. this.selectList = this.LDList2;
  1365. }
  1366. } else if (e == 'dy2') {
  1367. if (this.isEmpty(this.LDValue2.id)) {
  1368. this.$modal.msg('请选择楼栋')
  1369. } else {
  1370. this.open = true;
  1371. this.selectList = this.DYList2;
  1372. }
  1373. } else if (e == 'xq3') {
  1374. if (this.isEmpty(this.XZQValue3.dictValue)) {
  1375. getAreaList('').then(res => {
  1376. this.XQList3 = res.data;
  1377. this.open = true;
  1378. this.selectList = this.XQList3;
  1379. })
  1380. } else {
  1381. this.open = true;
  1382. this.selectList = this.XQList3;
  1383. }
  1384. } else if (e == 'ld3') {
  1385. if (this.isEmpty(this.XQValue3.id)) {
  1386. this.$modal.msg('请选择小区')
  1387. } else {
  1388. this.open = true;
  1389. this.selectList = this.LDList3;
  1390. }
  1391. } else if (e == 'dy3') {
  1392. if (this.isEmpty(this.LDValue3.id)) {
  1393. this.$modal.msg('请选择楼栋')
  1394. } else {
  1395. this.open = true;
  1396. this.selectList = this.DYList3;
  1397. }
  1398. } else if (e == 'fj3') {
  1399. if (this.isEmpty(this.DYValue3.id)) {
  1400. this.$modal.msg('请选择单元')
  1401. } else {
  1402. this.open = true;
  1403. this.selectList = this.FJList3;
  1404. }
  1405. } else if (e == 'gg') {
  1406. if (this.isEmpty(this.materialValue.id)) {
  1407. this.$modal.msg('请选择材料')
  1408. } else {
  1409. this.open = true;
  1410. this.selectList = this.materialList;
  1411. }
  1412. } else if (e == 'cz') {
  1413. this.open = true;
  1414. getEnginMaterialQualityList("民用工程").then(response => {
  1415. this.selectList = response.data;
  1416. });
  1417. }
  1418. },
  1419. clear() {
  1420. //清空所有筛选项
  1421. this.XZQValue3 = '';
  1422. this.XQValue3 = '';
  1423. this.LDValue3 = '';
  1424. this.DYValue3 = '';
  1425. this.FJValue3 = '';
  1426. this.ProjectType = {
  1427. dictValue: '',
  1428. dictLabel: ''
  1429. };
  1430. this.ProjectClassification = {
  1431. dictValue: '',
  1432. dictLabel: ''
  1433. };
  1434. this.ProjectSteps = {
  1435. dictValue: '',
  1436. dictLabel: ''
  1437. };
  1438. this.ReviewStatus = {
  1439. dictValue: '',
  1440. dictLabel: ''
  1441. };
  1442. this.EngineeringName = '';
  1443. this.changeTab();
  1444. },
  1445. closeP(item, index) {
  1446. this.openP = false;
  1447. },
  1448. changeSelect(item, index) {
  1449. this.open = false;
  1450. this.openDict = false;
  1451. if (this.type == 'gcx') {
  1452. this.EngineeringValue = item.name
  1453. this.clear();
  1454. } else if (this.type == 'xzq') {
  1455. this.XZQValue = item;
  1456. this.XQValue = '';
  1457. this.LDValue = '';
  1458. this.DYValue = '';
  1459. this.FJValue = '';
  1460. getAreaList(item.dictValue).then(res => {
  1461. this.XQList = res.data;
  1462. })
  1463. } else if (this.type == 'gczq') {
  1464. this.projectValue = item
  1465. } else if (this.type == 'gclx') {
  1466. this.ProjectType = item
  1467. this.ProjectClassification = '';
  1468. this.ProjectSteps = '';
  1469. this.ReviewStatus = '';
  1470. } else if (this.type == 'gcfl') {
  1471. this.ProjectClassification = item
  1472. this.ProjectSteps = '';
  1473. this.ReviewStatus = '';
  1474. } else if (this.type == 'gcbz') {
  1475. this.ProjectSteps = item
  1476. this.ReviewStatus = '';
  1477. } else if (this.type == 'shzt') {
  1478. this.ReviewStatus = item
  1479. } else if (this.type == 'xq') {
  1480. this.XQValue = item;
  1481. this.LDValue = '';
  1482. this.DYValue = '';
  1483. this.FJValue = '';
  1484. this.queryMaterialsUsedList();
  1485. } else if (this.type == 'ld') {
  1486. this.LDValue = item;
  1487. this.DYValue = '';
  1488. this.FJValue = '';
  1489. getUnitList(item.id).then(res => {
  1490. this.DYList = res.data
  1491. })
  1492. } else if (this.type == 'dy') {
  1493. this.DYValue = item;
  1494. } else if (this.type == 'gczq2') {
  1495. this.projectValue2 = item
  1496. } else if (this.type == 'xzq2') {
  1497. this.XZQValue2 = item;
  1498. this.XQValue2 = '';
  1499. this.LDValue2 = '';
  1500. this.DYValue2 = '';
  1501. this.FJValue2 = '';
  1502. getAreaList(item.dictValue).then(res => {
  1503. this.XQList2 = res.data;
  1504. })
  1505. } else if (this.type == 'xzq3') {
  1506. this.XZQValue3 = item;
  1507. this.XQValue3 = '';
  1508. this.LDValue3 = '';
  1509. this.DYValue3 = '';
  1510. this.FJValue3 = '';
  1511. getAreaList(item.dictValue).then(res => {
  1512. this.XQList3 = res.data;
  1513. })
  1514. } else if (this.type == 'xq2') {
  1515. this.XZQValue2 = {
  1516. dictValue: item.district,
  1517. dictLabel: item.districtName
  1518. };
  1519. this.XQValue2 = item;
  1520. this.LDValue2 = '';
  1521. this.DYValue2 = '';
  1522. this.FJValue2 = '';
  1523. getBuildingList(item.id).then(res => {
  1524. this.LDList2 = res.data
  1525. })
  1526. getAreaCompletionInformationList(item.id, 0).then(res => {
  1527. this.areaData = res.rows;
  1528. })
  1529. } else if (this.type == 'xq3') {
  1530. this.XZQValue3 = {
  1531. dictValue: item.district,
  1532. dictLabel: item.districtName
  1533. };
  1534. this.XQValue3 = item;
  1535. this.LDValue3 = '';
  1536. this.DYValue3 = '';
  1537. this.FJValue3 = '';
  1538. getBuildingList(item.id).then(res => {
  1539. this.LDList3 = res.data
  1540. })
  1541. } else if (this.type == 'ld2') {
  1542. this.LDValue2 = item;
  1543. this.DYValue2 = '';
  1544. this.FJValue2 = '';
  1545. getUnitList(item.id).then(res => {
  1546. this.DYList2 = res.data
  1547. })
  1548. } else if (this.type == 'ld3') {
  1549. this.LDValue3 = item;
  1550. this.DYValue3 = '';
  1551. this.FJValue3 = '';
  1552. getUnitList(item.id).then(res => {
  1553. this.DYList3 = res.data
  1554. })
  1555. } else if (this.type == 'dy3') {
  1556. this.DYValue3 = item;
  1557. this.FJValue3 = '';
  1558. getHousesList(item.id).then(res => {
  1559. this.FJList3 = res.data
  1560. })
  1561. } else if (this.type == 'fj3') {
  1562. this.FJValue3 = item;
  1563. } else if (this.type == 'dy2') {
  1564. this.DYValue2 = item;
  1565. this.queryProjectStatisticsList();
  1566. } else if (this.type == 'gg') {
  1567. this.specificationValue = item;
  1568. this.queryMaterialsUsedList();
  1569. } else if (this.type == 'cz') {
  1570. this.materialValue = item;
  1571. this.specificationValue = '';
  1572. this.queryMaterialsUsedList();
  1573. getEnginSpecificationsList(item.id).then(res => {
  1574. this.materialList = res.data
  1575. })
  1576. }
  1577. },
  1578. close(e) {
  1579. this.open = false
  1580. },
  1581. closeDict(e) {
  1582. this.openDict = false
  1583. },
  1584. queryMaterialsUsedList() {
  1585. if (this.isEmpty(this.XQValue.id)) {
  1586. this.$modal.msg('请选择小区')
  1587. return;
  1588. }
  1589. let param = {
  1590. enginCycle: this.projectValue.dictValue, //工程周期
  1591. areaId: this.XQValue.id,
  1592. realityQuality: this.materialValue.id,
  1593. realitySpecifications: this.specificationValue.id,
  1594. };
  1595. this.XZQValue = {
  1596. dictValue: this.XQValue.district,
  1597. dictLabel: this.XQValue.districtName
  1598. };
  1599. getMunicipalStatisticsData(param).then(res => {
  1600. this.materialUsageList = res.data;
  1601. })
  1602. },
  1603. queryProjectStatisticsList() {
  1604. let param = {
  1605. enginCycle: this.projectValue.dictValue, //工程周期
  1606. areaId: this.XQValue2.id,
  1607. buildingId: this.LDValue2.id,
  1608. unitId: this.DYValue2.id,
  1609. };
  1610. getObtainRoomcCompletionInformationList(param).then(res => {
  1611. this.roomList = res.data[0].roomStatusVoList;
  1612. this.roomCount = res.data[0].roomStatusVoList.length;
  1613. })
  1614. },
  1615. getColorByStatus(status) {
  1616. if (this.isEmpty(status)) {
  1617. return "#fff";
  1618. }
  1619. if (status == '施工中') {
  1620. return "#5bd3ff";
  1621. } else if (status == '未施工') {
  1622. return "#ffc881";
  1623. } else if (status == '竣工') {
  1624. return "#80d9ae";
  1625. }
  1626. },
  1627. clearMaterialInfo() {
  1628. this.materialValue = '';
  1629. this.specificationValue = '';
  1630. this.queryMaterialsUsedList();
  1631. },
  1632. clearSpecificationInfo() {
  1633. this.specificationValue = '';
  1634. this.queryMaterialsUsedList();
  1635. },
  1636. pullDown(pullScroll) {
  1637. this.pageNum = 1;
  1638. setTimeout(() => {
  1639. this.requestData(pullScroll);
  1640. }, 1000);
  1641. },
  1642. getList() {
  1643. let myThis = this;
  1644. this.$nextTick(() => {
  1645. myThis.$refs.pullScroll.refresh();
  1646. });
  1647. },
  1648. changeTab() {
  1649. this.pageSize = 10;
  1650. this.totalNum = '';
  1651. this.pageNum = 1;
  1652. this.requestData();
  1653. },
  1654. requestData() {
  1655. uni.showLoading()
  1656. if (this.EngineeringValue == '民用工程') {
  1657. let type = ''
  1658. let param = {
  1659. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1660. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1661. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1662. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1663. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1664. enginType: this.ProjectType.dictValue == undefined ? '' : this.ProjectType.dictValue,
  1665. enginCycle: '0',
  1666. enginClassification: this.ProjectClassification.dictValue == undefined ? '' : this
  1667. .ProjectClassification.dictValue,
  1668. type: this.ProjectSteps.dictValue == undefined ? '' : this.ProjectSteps.dictValue,
  1669. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1670. createBy: user.state.name,
  1671. pageNum: this.pageNum,
  1672. pageSize: this.pageSize
  1673. }
  1674. gethistoryList(param).then(res => {
  1675. this.totalNum = res.total
  1676. if (res.code == '200') {
  1677. uni.hideLoading()
  1678. if (res.rows.length !== 0) {
  1679. if (this.pageNum == 1) {
  1680. this.list = [];
  1681. this.list = res.rows
  1682. } else {
  1683. this.list = this.list.concat(res.rows)
  1684. }
  1685. if (this.pageNum * 10 >= this.totalNum) {
  1686. this.$refs.pullScroll.finish();
  1687. } else {
  1688. this.$refs.pullScroll.success();
  1689. }
  1690. } else {
  1691. this.list = [];
  1692. this.$refs.pullScroll.empty();
  1693. }
  1694. } else {
  1695. this.$modal.msg(res.msg + "")
  1696. this.$refs.pullScroll.error();
  1697. }
  1698. })
  1699. } else if (this.EngineeringValue == '开栓') {
  1700. let type = ''
  1701. let param = {
  1702. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1703. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1704. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1705. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1706. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1707. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1708. createBy: user.state.name,
  1709. pageNum: this.pageNum,
  1710. pageSize: this.pageSize
  1711. }
  1712. getKShistoryList(param).then(res => {
  1713. this.totalNum = res.total
  1714. if (res.code == '200') {
  1715. uni.hideLoading()
  1716. if (res.rows.length !== 0) {
  1717. if (this.pageNum == 1) {
  1718. this.list = [];
  1719. this.list = res.rows
  1720. } else {
  1721. this.list = this.list.concat(res.rows)
  1722. }
  1723. if (this.pageNum * 10 >= this.totalNum) {
  1724. this.$refs.pullScroll.finish();
  1725. } else {
  1726. this.$refs.pullScroll.success();
  1727. }
  1728. } else {
  1729. this.list = [];
  1730. this.$refs.pullScroll.empty();
  1731. }
  1732. } else {
  1733. this.$modal.msg(res.msg + "")
  1734. this.$refs.pullScroll.error();
  1735. }
  1736. })
  1737. } else if (this.EngineeringValue == '顶管工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  1738. '碰口作业' || this.EngineeringValue == '市政工程' || this.EngineeringValue == '工业工程' || this
  1739. .EngineeringValue == '带气封堵施工') {
  1740. //type 1 = 顶管, 2=基建 3=危险 4= 市政 5= 工业 type=6 是带气封堵
  1741. let chooseType = '';
  1742. switch (this.EngineeringValue) {
  1743. case '顶管工程':
  1744. chooseType = '1';
  1745. break
  1746. case '基建工程':
  1747. chooseType = '2';
  1748. break
  1749. case '碰口作业':
  1750. chooseType = '7';
  1751. break
  1752. case '市政工程':
  1753. chooseType = '4';
  1754. break
  1755. case '工业工程':
  1756. chooseType = '5';
  1757. break
  1758. case '带气封堵施工':
  1759. chooseType = '6';
  1760. break
  1761. }
  1762. let param = {
  1763. type: chooseType,
  1764. enginName: this.EngineeringName,
  1765. enginType: this.ProjectClassification.dictValue == undefined ? '' : this
  1766. .ProjectClassification.dictValue,
  1767. nodeType: this.ProjectSteps.dictLabel == undefined ? '' : this.ProjectSteps.dictLabel,
  1768. enginStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1769. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1770. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1771. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1772. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1773. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1774. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1775. createBy: user.state.name,
  1776. pageNum: this.pageNum,
  1777. pageSize: this.pageSize
  1778. }
  1779. getHistoryByUserList(param).then(res => {
  1780. this.totalNum = res.data.total
  1781. if (res.code == '200') {
  1782. uni.hideLoading()
  1783. if (res.data.rows.length !== 0) {
  1784. if (this.pageNum == 1) {
  1785. this.list = [];
  1786. this.list = res.data.rows
  1787. } else {
  1788. this.list = this.list.concat(res.data.rows)
  1789. }
  1790. if (this.pageNum * 10 >= this.totalNum) {
  1791. this.$refs.pullScroll.finish();
  1792. } else {
  1793. this.$refs.pullScroll.success();
  1794. }
  1795. } else {
  1796. this.list = [];
  1797. this.$refs.pullScroll.empty();
  1798. }
  1799. } else {
  1800. this.$modal.msg(res.msg + "")
  1801. this.$refs.pullScroll.error();
  1802. }
  1803. })
  1804. }
  1805. },
  1806. }
  1807. }
  1808. </script>
  1809. <style lang="scss">
  1810. .to-right-icon {
  1811. width: 15px;
  1812. height: 15px;
  1813. position: absolute;
  1814. top: 50%;
  1815. transform: translateY(-50%);
  1816. }
  1817. .uni-media-list {
  1818. width: 100%;
  1819. }
  1820. .no-click {
  1821. pointer-events: none;
  1822. }
  1823. .marginLeft5 {
  1824. margin-left: 5px;
  1825. }
  1826. .title-txt {
  1827. font-size: 15px;
  1828. font-weight: bold;
  1829. color: black;
  1830. padding: 20rpx 0;
  1831. }
  1832. .content-txt {
  1833. font-size: 10px;
  1834. font-weight: bold;
  1835. color: black;
  1836. }
  1837. .view-bg {
  1838. margin-left: 8px;
  1839. margin-right: 8px;
  1840. margin-top: 8px;
  1841. background-color: #fff;
  1842. border-radius: 5px;
  1843. padding: 20px;
  1844. display: flex;
  1845. flex-direction: column;
  1846. }
  1847. .uni-list {
  1848. background-color: #FFFFFF;
  1849. position: relative;
  1850. width: 100%;
  1851. display: flex;
  1852. flex-direction: column;
  1853. }
  1854. .uni-list-cell {
  1855. display: flex;
  1856. align-items: center;
  1857. justify-content: space-between;
  1858. padding: 10px 0;
  1859. position: relative;
  1860. }
  1861. .uni-list-cell-left {
  1862. white-space: nowrap;
  1863. font-size: 28rpx;
  1864. }
  1865. .centered {
  1866. text-align: center;
  1867. background-color: #e2f4ff;
  1868. }
  1869. .text {
  1870. background-color: #e2f4ff;
  1871. height: 20rpx;
  1872. }
  1873. .view_bg_build {
  1874. background-color: #e2f4ff;
  1875. padding: 10px 10px 0 10px;
  1876. margin: 0 auto;
  1877. border: 1px solid #5bd3ff;
  1878. white-space: nowrap;
  1879. position: relative;
  1880. z-index: 2;
  1881. }
  1882. .grid-text {
  1883. font-size: 14px;
  1884. color: #000000;
  1885. text-align: center;
  1886. padding-left: 30rpx;
  1887. padding-right: 30rpx;
  1888. padding-top: 20rpx;
  1889. padding-bottom: 20rpx;
  1890. }
  1891. .name {
  1892. flex: 0;
  1893. font-size: 14px;
  1894. color: #000000;
  1895. overflow: hidden;
  1896. text-overflow: ellipsis;
  1897. white-space: nowrap;
  1898. }
  1899. .table-item {
  1900. overflow: hidden;
  1901. text-overflow: ellipsis;
  1902. white-space: nowrap;
  1903. }
  1904. .block-iv {
  1905. width: 20px;
  1906. height: 20px;
  1907. }
  1908. .table {
  1909. width: 100%;
  1910. border-radius: 8rpx;
  1911. background: #FFFFFF;
  1912. /* border: 1rpx solid #EFEFEF; */
  1913. font-size: 28rpx;
  1914. margin-top: 40rpx;
  1915. }
  1916. .felx-row {
  1917. width: 100%;
  1918. display: flex;
  1919. justify-content: space-between;
  1920. align-items: center;
  1921. }
  1922. .h-tr {
  1923. box-sizing: border-box;
  1924. display: flex;
  1925. flex-direction: row;
  1926. flex-wrap: nowrap;
  1927. justify-content: center;
  1928. align-items: center;
  1929. align-content: center;
  1930. border-color: #ccc;
  1931. border-style: solid;
  1932. border-width: 0;
  1933. border-width: 1px;
  1934. color: #3d7dd7;
  1935. }
  1936. .h-td {
  1937. box-sizing: border-box;
  1938. padding: 3px;
  1939. word-break: break-all;
  1940. border-color: #ccc;
  1941. border-style: solid;
  1942. border-width: 1px;
  1943. border-right-width: 1px;
  1944. display: flex;
  1945. flex-direction: row;
  1946. flex-wrap: nowrap;
  1947. justify-content: center;
  1948. align-items: center;
  1949. align-content: center;
  1950. min-height: 64rpx;
  1951. }
  1952. .LouCeng {
  1953. font-size: 30rpx;
  1954. background-color: #4a4b52;
  1955. color: #FFEB3B;
  1956. font-weight: bold;
  1957. }
  1958. .Fang {
  1959. width: 100%;
  1960. display: inline-block;
  1961. line-height: 50rpx;
  1962. text-align: center;
  1963. margin-right: 10px;
  1964. margin-bottom: 10px;
  1965. background-color: red;
  1966. }
  1967. .HuaDongBiao {
  1968. display: flex;
  1969. flex-direction: column-reverse;
  1970. position: relative;
  1971. }
  1972. .NeiRong {
  1973. display: flex;
  1974. flex-wrap: nowrap;
  1975. }
  1976. .NeiRong :last-child {
  1977. margin-right: 0 !important;
  1978. }
  1979. .ShiGongZhong {
  1980. background-color: #5bd3ff;
  1981. color: #000;
  1982. }
  1983. .WeiShiGong {
  1984. background-color: #ffc881;
  1985. color: #000;
  1986. }
  1987. .JunGong {
  1988. background-color: #80d9ae;
  1989. color: #000;
  1990. }
  1991. .container {
  1992. display: flex;
  1993. margin-left: 10px;
  1994. width: 100%;
  1995. margin-top: 10px;
  1996. margin-right: 10px;
  1997. justify-content: space-between;
  1998. }
  1999. .notice {
  2000. margin: 20rpx;
  2001. padding: 20rpx;
  2002. background: #FFFFFF;
  2003. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  2004. border-radius: 10rpx;
  2005. }
  2006. .text {
  2007. border-left: 15rpx solid #3857F3;
  2008. padding-left: 20rpx;
  2009. }
  2010. .share {
  2011. width: 100%;
  2012. height: 100%;
  2013. }
  2014. .share-box {
  2015. width: 100%;
  2016. height: 100%;
  2017. position: fixed;
  2018. top: 0rpx;
  2019. left: 0rpx;
  2020. bottom: 0rpx;
  2021. right: 0rpx;
  2022. background-color: rgba(0, 0, 0, 0.4);
  2023. transition: .3s;
  2024. z-index: 999;
  2025. }
  2026. .share-show {
  2027. transition: all 0.3s ease;
  2028. transform: translateY(0%) !important;
  2029. }
  2030. .scroll-Y {
  2031. height: 350rpx;
  2032. }
  2033. .share-item {
  2034. position: fixed;
  2035. left: 0;
  2036. bottom: 0;
  2037. width: 100%;
  2038. height: auto;
  2039. background-color: #FFFFFF;
  2040. transition: all 0.3s ease;
  2041. transform: translateY(100%);
  2042. z-index: 1999;
  2043. border-top-left-radius: 40rpx;
  2044. border-top-right-radius: 40rpx;
  2045. .share-to {
  2046. width: 100%;
  2047. height: 3rem;
  2048. display: flex;
  2049. justify-content: center;
  2050. align-items: center;
  2051. &::after {
  2052. content: '';
  2053. width: 240rpx;
  2054. height: 0rpx;
  2055. border-top: 1px solid #E4E7ED;
  2056. -webkit-transform: scaleY(0.5);
  2057. transform: scaleY(0.5);
  2058. margin-left: 30rpx;
  2059. }
  2060. &::before {
  2061. content: '';
  2062. width: 240rpx;
  2063. height: 0rpx;
  2064. border-top: 1px solid #E4E7ED;
  2065. -webkit-transform: scaleY(0.5);
  2066. transform: scaleY(0.5);
  2067. margin-right: 30rpx;
  2068. }
  2069. }
  2070. .content {
  2071. width: 100%;
  2072. height: 50%;
  2073. display: flex;
  2074. flex-wrap: wrap;
  2075. .block {
  2076. width: 100%;
  2077. display: flex;
  2078. flex-direction: column;
  2079. justify-content: center;
  2080. align-items: center;
  2081. height: 80rpx;
  2082. text {
  2083. margin-top: 16rpx;
  2084. font-size: 28rpx;
  2085. color: #606266;
  2086. }
  2087. }
  2088. }
  2089. .cancel {
  2090. width: 100%;
  2091. height: 3rem;
  2092. display: flex;
  2093. justify-content: center;
  2094. align-items: center;
  2095. border-top: 1rpx solid #E4E7ED;
  2096. }
  2097. }
  2098. .background {
  2099. // border: 15px solid hsla(0, 0%, 100%, .5);
  2100. background: white;
  2101. background-clip: padding-box;
  2102. padding: 20rpx;
  2103. border-radius: 20rpx;
  2104. margin: 20rpx 10rpx;
  2105. /*从padding开始往外面裁剪背景*/
  2106. }
  2107. </style>