statistics.vue 53 KB

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