statistics.vue 68 KB

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