statistics.vue 90 KB

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