statistics.vue 87 KB

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