statistics.vue 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964
  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. if (this.EngineeringValue == '民用工程') {
  623. this.typeList = item.nodeReViewStateList
  624. this.nodeId = item.id;
  625. this.nodeType = item.enginClassification;
  626. this.roomId = item.houseId;
  627. if (this.nodeType == 'bottom_leg') { //底腿
  628. let obj = {
  629. id: this.nodeId,
  630. type: item.Type
  631. };
  632. uni.navigateTo({
  633. url: '/pages/statistics/history_details_bottom_leg?params=' + encodeURIComponent(JSON
  634. .stringify(
  635. obj))
  636. })
  637. } else {
  638. this.handleShowSheet();
  639. }
  640. } else if (this.EngineeringValue == '开栓') {
  641. this.nodeId = item.id;
  642. let obj = {
  643. type: 'edit',
  644. id: this.nodeId,
  645. };
  646. uni.navigateTo({
  647. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  648. .stringify(
  649. obj))
  650. })
  651. } else if (this.EngineeringValue == '市政工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  652. '顶管工程' || this.EngineeringValue == '工业工程'|| this.EngineeringValue == '碰口作业') {
  653. this.nodeId = item.id;
  654. let result = JSON.parse(JSON.stringify(item.status).replace(/type/g, 'Type'));
  655. this.typeList = result;
  656. this.handleShowSheet();
  657. }
  658. // else if (this.EngineeringValue == '工业工程') {
  659. // this.nodeId = item.id;
  660. // let obj = {
  661. // id: this.nodeId,
  662. // type: '历史数据'
  663. // };
  664. // uni.navigateTo({
  665. // url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  666. // .stringify(
  667. // obj))
  668. // })
  669. // }
  670. else if (this.EngineeringValue == '带气封堵施工') {
  671. this.nodeId = item.id;
  672. let obj = {
  673. id: this.nodeId,
  674. type: item.dictvalue
  675. };
  676. uni.navigateTo({
  677. url: '/pages/statistics/history_gas_sealing?params=' + encodeURIComponent(JSON
  678. .stringify(
  679. obj))
  680. })
  681. }
  682. },
  683. showHistoryList() {
  684. this.$refs.refShare.handleShowShare();
  685. },
  686. showTypeSheet(item) {
  687. if (this.isLeader == 'sys_user') {
  688. let param = {
  689. areaId: this.roomItem.areaId,
  690. buildingId: this.roomItem.buildingId,
  691. unitId: this.roomItem.unitId,
  692. houseId: this.roomItem.roomId,
  693. enginCycle: this.projectValue2.dictValue, // 工程周期
  694. enginType: this.roomItem.enginCycle,
  695. enginClassification: 'indoor_engin', //写死 室内
  696. }
  697. getRoomProjectId(param).then(res => {
  698. if (res.code == '200') {
  699. if (res.data != null) {
  700. getRoomProjectList(res.data.id, item.Type).then(res => {
  701. if (res.data.zEngineeringNodeBo != null) {
  702. this.historyList = res.data
  703. this.showHistoryList();
  704. } else {
  705. this.$modal.msg("暂无历史信息")
  706. }
  707. })
  708. } else {
  709. this.$modal.msg("暂无工程信息")
  710. }
  711. } else {
  712. this.$modal.msg(res.msg)
  713. }
  714. })
  715. } else {
  716. if (this.EngineeringValue == '民用工程') {
  717. let obj = {
  718. id: this.nodeId,
  719. type: item.Type,
  720. roomId: this.roomId,
  721. };
  722. this.handleHiddenShare();
  723. if (this.nodeType == 'indoor_engin') { //室内
  724. uni.navigateTo({
  725. url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
  726. .stringify(
  727. obj))
  728. })
  729. } else if (this.nodeType == 'overhead') { //架空
  730. uni.navigateTo({
  731. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  732. .stringify(
  733. obj))
  734. })
  735. } else if (this.nodeType == 'courtyard') { //庭院
  736. uni.navigateTo({
  737. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  738. .stringify(
  739. obj))
  740. })
  741. }
  742. } else if (this.EngineeringValue == '顶管工程') {
  743. let obj = {
  744. id: this.nodeId,
  745. type: item.Type,
  746. };
  747. uni.navigateTo({
  748. url: '/pages/statistics/historyDetailsTopTube?params=' + encodeURIComponent(JSON
  749. .stringify(
  750. obj))
  751. })
  752. this.handleHiddenShare();
  753. } else if (this.EngineeringValue == '基建工程') {
  754. let obj = {
  755. id: this.nodeId,
  756. type: item.Type,
  757. };
  758. uni.navigateTo({
  759. url: '/pages/statistics/historyDetailsInfrastructure?params=' + encodeURIComponent(JSON
  760. .stringify(
  761. obj))
  762. })
  763. this.handleHiddenShare();
  764. } else if (this.EngineeringValue == '市政工程') {
  765. let obj = {
  766. id: this.nodeId,
  767. type: item.Type,
  768. };
  769. uni.navigateTo({
  770. url: '/pages/statistics/historyDetailMunicipal?params=' + encodeURIComponent(JSON
  771. .stringify(
  772. obj))
  773. })
  774. this.handleHiddenShare();
  775. } else if (this.EngineeringValue == '工业工程') {
  776. let obj = {
  777. id: this.nodeId,
  778. type: item.Type,
  779. };
  780. uni.navigateTo({
  781. url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  782. .stringify(
  783. obj))
  784. })
  785. this.handleHiddenShare();
  786. } else if (this.EngineeringValue == '碰口作业') {
  787. let obj = {
  788. id: this.nodeId,
  789. type: item.Type,
  790. };
  791. console.log("===",obj)
  792. uni.navigateTo({
  793. url: '/pages/statistics/historyDetailsMouth?params=' + encodeURIComponent(JSON
  794. .stringify(
  795. obj))
  796. })
  797. this.handleHiddenShare();
  798. }
  799. }
  800. },
  801. pickerShow(e) {
  802. this.type = e;
  803. if (e == 'gcx') {
  804. this.open = true;
  805. this.EngineeringList = [];
  806. this.userRole.forEach((item, index) => {
  807. // if (item != '危险作业工程') {
  808. // console.log("===", item)
  809. this.EngineeringList.push({
  810. 'id': index,
  811. 'name': item
  812. })
  813. //}
  814. });
  815. this.selectList = this.EngineeringList;
  816. } else if (e == 'gczq') {
  817. this.openDict = true;
  818. getDicts("engin_cycle").then(response => {
  819. this.dictOptions = response.data;
  820. });
  821. } else if (e == 'gclx') {
  822. this.openDict = true;
  823. getDicts('indoor_engin_type').then(response => {
  824. this.dictOptions = response.data;
  825. });
  826. } else if (e == 'gcfl') {
  827. if (this.EngineeringValue == '民用工程') {
  828. if (this.isEmpty(this.ProjectType.dictValue)) {
  829. this.$modal.msg('请选择工程类型')
  830. } else {
  831. this.openDict = true;
  832. getDicts(this.ProjectType.dictValue).then(response => {
  833. this.dictOptions = response.data;
  834. });
  835. }
  836. } else {
  837. //工业5 带起封堵施工3
  838. let nodeType = '';
  839. if (this.EngineeringValue == '工业工程') {
  840. nodeType = '5';
  841. } else if (this.EngineeringValue == '带气封堵施工') {
  842. nodeType = '3';
  843. }
  844. this.openDict = true;
  845. getByUserListAndDicts(nodeType).then(
  846. response => {
  847. this.dictOptions = response.data;
  848. });
  849. }
  850. } else if (e == 'gcbz') {
  851. if (this.EngineeringValue == '民用工程') {
  852. if (this.isEmpty(this.ProjectClassification.dictValue)) {
  853. this.$modal.msg('请选择工程分类')
  854. } else {
  855. this.openDict = true;
  856. getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
  857. response => {
  858. this.dictOptions = response.data;
  859. });
  860. }
  861. } else {
  862. let nodeType = '';
  863. if (this.EngineeringValue == '市政工程') {
  864. nodeType = '4';
  865. } else if (this.EngineeringValue == '基建工程') {
  866. nodeType = '2';
  867. } else if (this.EngineeringValue == '顶管工程') {
  868. nodeType = '1';
  869. }
  870. this.openDict = true;
  871. getByUserListAndDicts(nodeType).then(
  872. response => {
  873. this.dictOptions = response.data;
  874. });
  875. }
  876. } else if (e == 'shzt') {
  877. if (this.EngineeringValue == '民用工程') {
  878. if (this.isEmpty(this.ProjectSteps.dictValue)) {
  879. this.$modal.msg('请选择工程步骤')
  880. } else {
  881. this.openDict = true;
  882. getDicts('state_options').then(
  883. response => {
  884. this.dictOptions = response.data;
  885. });
  886. }
  887. } else {
  888. this.openDict = true;
  889. getDicts('state_options').then(
  890. response => {
  891. this.dictOptions = response.data;
  892. });
  893. }
  894. } else if (e == 'xzq') {
  895. if (this.isEmpty(this.projectValue.dictValue)) {
  896. this.$modal.msg('请选择工程周期')
  897. } else {
  898. this.openDict = true;
  899. getDicts("district").then(response => {
  900. this.dictOptions = response.data;
  901. });
  902. }
  903. } else if (e == 'xq') {
  904. // if (this.isEmpty(this.XZQValue.dictValue)) {
  905. // this.$modal.msg('请选择行政区')
  906. //
  907. // } else {
  908. this.XQValue = '';
  909. this.LDValue = '';
  910. this.DYValue = '';
  911. this.FJValue = '';
  912. getAreaList('').then(res => {
  913. this.XQList = res.data;
  914. this.open = true;
  915. this.selectList = this.XQList;
  916. })
  917. // }
  918. } else if (e == 'ld') {
  919. if (this.isEmpty(this.XQValue.id)) {
  920. this.$modal.msg('请选择小区')
  921. } else {
  922. this.open = true;
  923. this.selectList = this.LDList;
  924. }
  925. } else if (e == 'dy') {
  926. if (this.isEmpty(this.LDValue.id)) {
  927. this.$modal.msg('请选择楼栋')
  928. } else {
  929. this.open = true;
  930. this.selectList = this.DYList;
  931. }
  932. } else if (e == 'gczq2') {
  933. this.openDict = true;
  934. getDicts("engin_cycle").then(response => {
  935. this.dictOptions = response.data;
  936. });
  937. } else if (e == 'xzq2' || e == 'xzq3') {
  938. if (this.isEmpty(this.projectValue2.dictValue)) {
  939. this.$modal.msg('请选择工程周期')
  940. } else {
  941. this.openDict = true;
  942. getDicts("district").then(response => {
  943. this.dictOptions = response.data;
  944. });
  945. }
  946. } else if (e == 'xq2') {
  947. // if (this.isEmpty(this.XZQValue2.dictValue)) {
  948. // this.$modal.msg('请选择行政区')
  949. //
  950. // } else {
  951. this.XQValue2 = '';
  952. this.LDValue2 = '';
  953. this.DYValue2 = '';
  954. this.FJValue2 = '';
  955. getAreaList('').then(res => {
  956. this.XQList2 = res.data;
  957. this.open = true;
  958. this.selectList = this.XQList2;
  959. })
  960. // }
  961. } else if (e == 'ld2') {
  962. if (this.isEmpty(this.XQValue2.id)) {
  963. this.$modal.msg('请选择小区')
  964. } else {
  965. this.open = true;
  966. this.selectList = this.LDList2;
  967. }
  968. } else if (e == 'dy2') {
  969. if (this.isEmpty(this.LDValue2.id)) {
  970. this.$modal.msg('请选择楼栋')
  971. } else {
  972. this.open = true;
  973. this.selectList = this.DYList2;
  974. }
  975. } else if (e == 'xq3') {
  976. // if (this.isEmpty(this.XZQValue3.dictValue)) {
  977. // this.$modal.msg('请选择行政区')
  978. //
  979. // } else {
  980. this.XQValue3 = '';
  981. this.LDValue3 = '';
  982. this.DYValue3 = '';
  983. this.FJValue3 = '';
  984. getAreaList('').then(res => {
  985. this.XQList3 = res.data;
  986. this.open = true;
  987. this.selectList = this.XQList3;
  988. })
  989. // }
  990. } else if (e == 'ld3') {
  991. if (this.isEmpty(this.XQValue3.id)) {
  992. this.$modal.msg('请选择小区')
  993. } else {
  994. this.open = true;
  995. this.selectList = this.LDList3;
  996. }
  997. } else if (e == 'dy3') {
  998. if (this.isEmpty(this.LDValue3.id)) {
  999. this.$modal.msg('请选择楼栋')
  1000. } else {
  1001. this.open = true;
  1002. this.selectList = this.DYList3;
  1003. }
  1004. } else if (e == 'fj3') {
  1005. if (this.isEmpty(this.DYValue3.id)) {
  1006. this.$modal.msg('请选择单元')
  1007. } else {
  1008. this.open = true;
  1009. this.selectList = this.FJList3;
  1010. }
  1011. } else if (e == 'gg') {
  1012. if (this.isEmpty(this.materialValue.id)) {
  1013. this.$modal.msg('请选择材料')
  1014. } else {
  1015. this.open = true;
  1016. this.selectList = this.materialList;
  1017. }
  1018. } else if (e == 'cz') {
  1019. this.open = true;
  1020. getEnginMaterialQualityList("民用工程").then(response => {
  1021. this.selectList = response.data;
  1022. });
  1023. }
  1024. },
  1025. clear() {
  1026. //清空所有筛选项
  1027. this.XZQValue3 = '';
  1028. this.XQValue3 = '';
  1029. this.LDValue3 = '';
  1030. this.DYValue3 = '';
  1031. this.FJValue3 = '';
  1032. this.ProjectType = {
  1033. dictValue: '',
  1034. dictLabel: ''
  1035. };
  1036. this.ProjectClassification = {
  1037. dictValue: '',
  1038. dictLabel: ''
  1039. };
  1040. this.ProjectSteps = {
  1041. dictValue: '',
  1042. dictLabel: ''
  1043. };
  1044. this.ReviewStatus = {
  1045. dictValue: '',
  1046. dictLabel: ''
  1047. };
  1048. this.EngineeringName = '';
  1049. this.changeTab();
  1050. },
  1051. changeSelect(item, index) {
  1052. this.open = false;
  1053. this.openDict = false;
  1054. if (this.type == 'gcx') {
  1055. this.EngineeringValue = item.name
  1056. this.clear();
  1057. } else if (this.type == 'xzq') {
  1058. this.XZQValue = item;
  1059. this.XQValue = '';
  1060. this.LDValue = '';
  1061. this.DYValue = '';
  1062. this.FJValue = '';
  1063. getAreaList(item.dictValue).then(res => {
  1064. this.XQList = res.data;
  1065. })
  1066. } else if (this.type == 'gczq') {
  1067. this.projectValue = item
  1068. } else if (this.type == 'gclx') {
  1069. this.ProjectType = item
  1070. this.ProjectClassification = '';
  1071. this.ProjectSteps = '';
  1072. this.ReviewStatus = '';
  1073. } else if (this.type == 'gcfl') {
  1074. this.ProjectClassification = item
  1075. this.ProjectSteps = '';
  1076. this.ReviewStatus = '';
  1077. } else if (this.type == 'gcbz') {
  1078. this.ProjectSteps = item
  1079. this.ReviewStatus = '';
  1080. } else if (this.type == 'shzt') {
  1081. this.ReviewStatus = item
  1082. } else if (this.type == 'xq') {
  1083. this.XQValue = item;
  1084. this.LDValue = '';
  1085. this.DYValue = '';
  1086. this.FJValue = '';
  1087. this.queryMaterialsUsedList();
  1088. } else if (this.type == 'ld') {
  1089. this.LDValue = item;
  1090. this.DYValue = '';
  1091. this.FJValue = '';
  1092. getUnitList(item.id).then(res => {
  1093. this.DYList = res.data
  1094. })
  1095. } else if (this.type == 'dy') {
  1096. this.DYValue = item;
  1097. } else if (this.type == 'gczq2') {
  1098. this.projectValue2 = item
  1099. } else if (this.type == 'xzq2') {
  1100. this.XZQValue2 = item;
  1101. this.XQValue2 = '';
  1102. this.LDValue2 = '';
  1103. this.DYValue2 = '';
  1104. this.FJValue2 = '';
  1105. getAreaList(item.dictValue).then(res => {
  1106. this.XQList2 = res.data;
  1107. })
  1108. } else if (this.type == 'xzq3') {
  1109. this.XZQValue3 = item;
  1110. this.XQValue3 = '';
  1111. this.LDValue3 = '';
  1112. this.DYValue3 = '';
  1113. this.FJValue3 = '';
  1114. getAreaList(item.dictValue).then(res => {
  1115. this.XQList3 = res.data;
  1116. })
  1117. } else if (this.type == 'xq2') {
  1118. this.XZQValue2 = {
  1119. dictValue: item.district,
  1120. dictLabel: item.districtName
  1121. };
  1122. this.XQValue2 = item;
  1123. this.LDValue2 = '';
  1124. this.DYValue2 = '';
  1125. this.FJValue2 = '';
  1126. getBuildingList(item.id).then(res => {
  1127. this.LDList2 = res.data
  1128. })
  1129. } else if (this.type == 'xq3') {
  1130. this.XZQValue3 = {
  1131. dictValue: item.district,
  1132. dictLabel: item.districtName
  1133. };
  1134. this.XQValue3 = item;
  1135. this.LDValue3 = '';
  1136. this.DYValue3 = '';
  1137. this.FJValue3 = '';
  1138. getBuildingList(item.id).then(res => {
  1139. this.LDList3 = res.data
  1140. })
  1141. } else if (this.type == 'ld2') {
  1142. this.LDValue2 = item;
  1143. this.DYValue2 = '';
  1144. this.FJValue2 = '';
  1145. getUnitList(item.id).then(res => {
  1146. this.DYList2 = res.data
  1147. })
  1148. } else if (this.type == 'ld3') {
  1149. this.LDValue3 = item;
  1150. this.DYValue3 = '';
  1151. this.FJValue3 = '';
  1152. getUnitList(item.id).then(res => {
  1153. this.DYList3 = res.data
  1154. })
  1155. } else if (this.type == 'dy3') {
  1156. this.DYValue3 = item;
  1157. this.FJValue3 = '';
  1158. getHousesList(item.id).then(res => {
  1159. this.FJList3 = res.data
  1160. })
  1161. } else if (this.type == 'fj3') {
  1162. this.FJValue3 = item;
  1163. } else if (this.type == 'dy2') {
  1164. this.DYValue2 = item;
  1165. this.queryProjectStatisticsList();
  1166. } else if (this.type == 'gg') {
  1167. this.specificationValue = item;
  1168. this.queryMaterialsUsedList();
  1169. } else if (this.type == 'cz') {
  1170. this.materialValue = item;
  1171. this.specificationValue = '';
  1172. this.queryMaterialsUsedList();
  1173. getEnginSpecificationsList(item.id).then(res => {
  1174. this.materialList = res.data
  1175. })
  1176. }
  1177. },
  1178. close(e) {
  1179. this.open = false
  1180. },
  1181. closeDict(e) {
  1182. this.openDict = false
  1183. },
  1184. queryMaterialsUsedList() {
  1185. if (this.isEmpty(this.XQValue.id)) {
  1186. this.$modal.msg('请选择小区')
  1187. return;
  1188. }
  1189. let param = {
  1190. enginCycle: this.projectValue.dictValue, //工程周期
  1191. areaId: this.XQValue.id,
  1192. realityQuality: this.materialValue.id,
  1193. realitySpecifications: this.specificationValue.id,
  1194. };
  1195. this.XZQValue = {
  1196. dictValue: this.XQValue.district,
  1197. dictLabel: this.XQValue.districtName
  1198. };
  1199. getMunicipalStatisticsData(param).then(res => {
  1200. this.materialUsageList = res.data;
  1201. })
  1202. },
  1203. queryProjectStatisticsList() {
  1204. let param = {
  1205. enginCycle: this.projectValue.dictValue, //工程周期
  1206. areaId: this.XQValue2.id,
  1207. buildingId: this.LDValue2.id,
  1208. unitId: this.DYValue2.id,
  1209. };
  1210. getObtainRoomcCompletionInformationList(param).then(res => {
  1211. this.roomList = res.data[0].roomStatusVoList;
  1212. this.roomCount = res.data[0].roomStatusVoList.length;
  1213. })
  1214. },
  1215. getColorByStatus(status) {
  1216. if (this.isEmpty(status)) {
  1217. return "#fff";
  1218. }
  1219. if (status == '施工中') {
  1220. return "#5bd3ff";
  1221. } else if (status == '未施工') {
  1222. return "#ffc881";
  1223. } else if (status == '竣工') {
  1224. return "#80d9ae";
  1225. }
  1226. },
  1227. clearMaterialInfo() {
  1228. this.materialValue = '';
  1229. this.specificationValue = '';
  1230. this.queryMaterialsUsedList();
  1231. },
  1232. clearSpecificationInfo() {
  1233. this.specificationValue = '';
  1234. this.queryMaterialsUsedList();
  1235. },
  1236. pullDown(pullScroll) {
  1237. this.pageNum = 1;
  1238. setTimeout(() => {
  1239. this.requestData(pullScroll);
  1240. }, 1000);
  1241. },
  1242. getList() {
  1243. let myThis = this;
  1244. this.$nextTick(() => {
  1245. myThis.$refs.pullScroll.refresh();
  1246. });
  1247. },
  1248. changeTab() {
  1249. this.pageSize = 10;
  1250. this.totalNum = '';
  1251. this.pageNum = 1;
  1252. this.requestData();
  1253. },
  1254. requestData() {
  1255. uni.showLoading()
  1256. if (this.EngineeringValue == '民用工程') {
  1257. let type = ''
  1258. let param = {
  1259. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1260. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1261. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1262. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1263. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1264. enginType: this.ProjectType.dictValue == undefined ? '' : this.ProjectType.dictValue,
  1265. enginCycle: '0',
  1266. enginClassification: this.ProjectClassification.dictValue == undefined ? '' : this
  1267. .ProjectClassification.dictValue,
  1268. type: this.ProjectSteps.dictValue == undefined ? '' : this.ProjectSteps.dictValue,
  1269. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1270. createBy: user.state.name,
  1271. pageNum: this.pageNum,
  1272. pageSize: this.pageSize
  1273. }
  1274. gethistoryList(param).then(res => {
  1275. this.totalNum = res.total
  1276. if (res.code == '200') {
  1277. uni.hideLoading()
  1278. if (res.rows.length !== 0) {
  1279. if (this.pageNum == 1) {
  1280. this.list = [];
  1281. this.list = res.rows
  1282. } else {
  1283. this.list = this.list.concat(res.rows)
  1284. }
  1285. if (this.pageNum * 10 >= this.totalNum) {
  1286. this.$refs.pullScroll.finish();
  1287. } else {
  1288. this.$refs.pullScroll.success();
  1289. }
  1290. } else {
  1291. this.list = [];
  1292. this.$refs.pullScroll.empty();
  1293. }
  1294. } else {
  1295. this.$modal.msg(res.msg + "")
  1296. this.$refs.pullScroll.error();
  1297. }
  1298. })
  1299. } else if (this.EngineeringValue == '开栓') {
  1300. let type = ''
  1301. let param = {
  1302. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1303. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1304. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1305. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1306. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1307. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1308. createBy: user.state.name,
  1309. pageNum: this.pageNum,
  1310. pageSize: this.pageSize
  1311. }
  1312. getKShistoryList(param).then(res => {
  1313. this.totalNum = res.total
  1314. if (res.code == '200') {
  1315. uni.hideLoading()
  1316. if (res.rows.length !== 0) {
  1317. if (this.pageNum == 1) {
  1318. this.list = [];
  1319. this.list = res.rows
  1320. } else {
  1321. this.list = this.list.concat(res.rows)
  1322. }
  1323. if (this.pageNum * 10 >= this.totalNum) {
  1324. this.$refs.pullScroll.finish();
  1325. } else {
  1326. this.$refs.pullScroll.success();
  1327. }
  1328. } else {
  1329. this.list = [];
  1330. this.$refs.pullScroll.empty();
  1331. }
  1332. } else {
  1333. this.$modal.msg(res.msg + "")
  1334. this.$refs.pullScroll.error();
  1335. }
  1336. })
  1337. } else if (this.EngineeringValue == '顶管工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  1338. '碰口作业' || this.EngineeringValue == '市政工程' || this.EngineeringValue == '工业工程' || this
  1339. .EngineeringValue == '带气封堵施工') {
  1340. //type 1 = 顶管, 2=基建 3=危险 4= 市政 5= 工业 type=6 是带气封堵
  1341. let chooseType = '';
  1342. switch (this.EngineeringValue) {
  1343. case '顶管工程':
  1344. chooseType = '1';
  1345. break
  1346. case '基建工程':
  1347. chooseType = '2';
  1348. break
  1349. case '碰口作业':
  1350. chooseType = '7';
  1351. break
  1352. case '市政工程':
  1353. chooseType = '4';
  1354. break
  1355. case '工业工程':
  1356. chooseType = '5';
  1357. break
  1358. case '带气封堵施工':
  1359. chooseType = '6';
  1360. break
  1361. }
  1362. let param = {
  1363. type: chooseType,
  1364. enginName: this.EngineeringName,
  1365. enginType: this.ProjectClassification.dictValue == undefined ? '' : this
  1366. .ProjectClassification.dictValue,
  1367. nodeType: this.ProjectSteps.dictLabel == undefined ? '' : this.ProjectSteps.dictLabel,
  1368. enginStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1369. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1370. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1371. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1372. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1373. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1374. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1375. createBy: user.state.name,
  1376. pageNum: this.pageNum,
  1377. pageSize: this.pageSize
  1378. }
  1379. getHistoryByUserList(param).then(res => {
  1380. this.totalNum = res.data.total
  1381. if (res.code == '200') {
  1382. uni.hideLoading()
  1383. if (res.data.rows.length !== 0) {
  1384. if (this.pageNum == 1) {
  1385. this.list = [];
  1386. this.list = res.data.rows
  1387. } else {
  1388. this.list = this.list.concat(res.data.rows)
  1389. }
  1390. if (this.pageNum * 10 >= this.totalNum) {
  1391. this.$refs.pullScroll.finish();
  1392. } else {
  1393. this.$refs.pullScroll.success();
  1394. }
  1395. } else {
  1396. this.list = [];
  1397. this.$refs.pullScroll.empty();
  1398. }
  1399. } else {
  1400. this.$modal.msg(res.msg + "")
  1401. this.$refs.pullScroll.error();
  1402. }
  1403. })
  1404. }
  1405. },
  1406. }
  1407. }
  1408. </script>
  1409. <style lang="scss">
  1410. .to-right-icon {
  1411. width: 15px;
  1412. height: 15px;
  1413. position: absolute;
  1414. top: 50%;
  1415. transform: translateY(-50%);
  1416. }
  1417. .uni-media-list {
  1418. width: 100%;
  1419. }
  1420. .no-click {
  1421. pointer-events: none;
  1422. }
  1423. .marginLeft5 {
  1424. margin-left: 5px;
  1425. }
  1426. .title-txt {
  1427. font-size: 15px;
  1428. font-weight: bold;
  1429. color: black;
  1430. padding: 20rpx 0;
  1431. }
  1432. .content-txt {
  1433. font-size: 10px;
  1434. font-weight: bold;
  1435. color: black;
  1436. }
  1437. .view-bg {
  1438. margin-left: 8px;
  1439. margin-right: 8px;
  1440. margin-top: 8px;
  1441. background-color: #fff;
  1442. border-radius: 5px;
  1443. padding: 20px;
  1444. display: flex;
  1445. flex-direction: column;
  1446. }
  1447. .uni-list {
  1448. background-color: #FFFFFF;
  1449. position: relative;
  1450. width: 100%;
  1451. display: flex;
  1452. flex-direction: column;
  1453. }
  1454. .uni-list-cell {
  1455. display: flex;
  1456. align-items: center;
  1457. justify-content: space-between;
  1458. padding: 10px 0;
  1459. position: relative;
  1460. }
  1461. .uni-list-cell-left {
  1462. white-space: nowrap;
  1463. font-size: 28rpx;
  1464. }
  1465. .centered {
  1466. text-align: center;
  1467. background-color: #e2f4ff;
  1468. }
  1469. .text {
  1470. background-color: #e2f4ff;
  1471. height: 20rpx;
  1472. }
  1473. .view_bg_build {
  1474. background-color: #e2f4ff;
  1475. padding: 10px 10px 0 10px;
  1476. margin: 0 auto;
  1477. border: 1px solid #5bd3ff;
  1478. white-space: nowrap;
  1479. position: relative;
  1480. z-index: 2;
  1481. }
  1482. .grid-text {
  1483. font-size: 14px;
  1484. color: #000000;
  1485. text-align: center;
  1486. padding-left: 30rpx;
  1487. padding-right: 30rpx;
  1488. padding-top: 20rpx;
  1489. padding-bottom: 20rpx;
  1490. }
  1491. .name {
  1492. flex: 0;
  1493. font-size: 14px;
  1494. color: #000000;
  1495. overflow: hidden;
  1496. text-overflow: ellipsis;
  1497. white-space: nowrap;
  1498. }
  1499. .table-item {
  1500. overflow: hidden;
  1501. text-overflow: ellipsis;
  1502. white-space: nowrap;
  1503. }
  1504. .block-iv {
  1505. width: 20px;
  1506. height: 20px;
  1507. }
  1508. .table {
  1509. width: 100%;
  1510. border-radius: 8rpx;
  1511. background: #FFFFFF;
  1512. /* border: 1rpx solid #EFEFEF; */
  1513. font-size: 28rpx;
  1514. margin-top: 40rpx;
  1515. }
  1516. .felx-row {
  1517. width: 100%;
  1518. display: flex;
  1519. justify-content: space-between;
  1520. align-items: center;
  1521. }
  1522. .h-tr {
  1523. box-sizing: border-box;
  1524. display: flex;
  1525. flex-direction: row;
  1526. flex-wrap: nowrap;
  1527. justify-content: center;
  1528. align-items: center;
  1529. align-content: center;
  1530. border-color: #ccc;
  1531. border-style: solid;
  1532. border-width: 0;
  1533. border-width: 1px;
  1534. color: #3d7dd7;
  1535. }
  1536. .h-td {
  1537. box-sizing: border-box;
  1538. padding: 3px;
  1539. word-break: break-all;
  1540. border-color: #ccc;
  1541. border-style: solid;
  1542. border-width: 1px;
  1543. border-right-width: 1px;
  1544. display: flex;
  1545. flex-direction: row;
  1546. flex-wrap: nowrap;
  1547. justify-content: center;
  1548. align-items: center;
  1549. align-content: center;
  1550. min-height: 64rpx;
  1551. }
  1552. .LouCeng {
  1553. font-size: 30rpx;
  1554. background-color: #4a4b52;
  1555. color: #FFEB3B;
  1556. font-weight: bold;
  1557. }
  1558. .Fang {
  1559. width: 100%;
  1560. display: inline-block;
  1561. line-height: 50rpx;
  1562. text-align: center;
  1563. margin-right: 10px;
  1564. margin-bottom: 10px;
  1565. background-color: red;
  1566. }
  1567. .HuaDongBiao {
  1568. display: flex;
  1569. flex-direction: column-reverse;
  1570. position: relative;
  1571. }
  1572. .NeiRong {
  1573. display: flex;
  1574. flex-wrap: nowrap;
  1575. }
  1576. .NeiRong :last-child {
  1577. margin-right: 0 !important;
  1578. }
  1579. .ShiGongZhong {
  1580. background-color: #5bd3ff;
  1581. color: #000;
  1582. }
  1583. .WeiShiGong {
  1584. background-color: #ffc881;
  1585. color: #000;
  1586. }
  1587. .JunGong {
  1588. background-color: #80d9ae;
  1589. color: #000;
  1590. }
  1591. .container {
  1592. display: flex;
  1593. margin-left: 10px;
  1594. width: 100%;
  1595. margin-top: 10px;
  1596. margin-right: 10px;
  1597. justify-content: space-between;
  1598. }
  1599. .notice {
  1600. margin: 20rpx;
  1601. padding: 20rpx;
  1602. background: #FFFFFF;
  1603. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  1604. border-radius: 10rpx;
  1605. }
  1606. .text {
  1607. border-left: 15rpx solid #3857F3;
  1608. padding-left: 20rpx;
  1609. }
  1610. .share {
  1611. width: 100%;
  1612. height: 100%;
  1613. }
  1614. .share-box {
  1615. width: 100%;
  1616. height: 100%;
  1617. position: fixed;
  1618. top: 0rpx;
  1619. left: 0rpx;
  1620. bottom: 0rpx;
  1621. right: 0rpx;
  1622. background-color: rgba(0, 0, 0, 0.4);
  1623. transition: .3s;
  1624. z-index: 999;
  1625. }
  1626. .share-show {
  1627. transition: all 0.3s ease;
  1628. transform: translateY(0%) !important;
  1629. }
  1630. .scroll-Y {
  1631. height: 350rpx;
  1632. }
  1633. .share-item {
  1634. position: fixed;
  1635. left: 0;
  1636. bottom: 0;
  1637. width: 100%;
  1638. height: auto;
  1639. background-color: #FFFFFF;
  1640. transition: all 0.3s ease;
  1641. transform: translateY(100%);
  1642. z-index: 1999;
  1643. border-top-left-radius: 40rpx;
  1644. border-top-right-radius: 40rpx;
  1645. .share-to {
  1646. width: 100%;
  1647. height: 3rem;
  1648. display: flex;
  1649. justify-content: center;
  1650. align-items: center;
  1651. &::after {
  1652. content: '';
  1653. width: 240rpx;
  1654. height: 0rpx;
  1655. border-top: 1px solid #E4E7ED;
  1656. -webkit-transform: scaleY(0.5);
  1657. transform: scaleY(0.5);
  1658. margin-left: 30rpx;
  1659. }
  1660. &::before {
  1661. content: '';
  1662. width: 240rpx;
  1663. height: 0rpx;
  1664. border-top: 1px solid #E4E7ED;
  1665. -webkit-transform: scaleY(0.5);
  1666. transform: scaleY(0.5);
  1667. margin-right: 30rpx;
  1668. }
  1669. }
  1670. .content {
  1671. width: 100%;
  1672. height: 50%;
  1673. display: flex;
  1674. flex-wrap: wrap;
  1675. .block {
  1676. width: 100%;
  1677. display: flex;
  1678. flex-direction: column;
  1679. justify-content: center;
  1680. align-items: center;
  1681. height: 80rpx;
  1682. text {
  1683. margin-top: 16rpx;
  1684. font-size: 28rpx;
  1685. color: #606266;
  1686. }
  1687. }
  1688. }
  1689. .cancel {
  1690. width: 100%;
  1691. height: 3rem;
  1692. display: flex;
  1693. justify-content: center;
  1694. align-items: center;
  1695. border-top: 1rpx solid #E4E7ED;
  1696. }
  1697. }
  1698. .background {
  1699. // border: 15px solid hsla(0, 0%, 100%, .5);
  1700. background: white;
  1701. background-clip: padding-box;
  1702. padding: 20rpx;
  1703. border-radius: 20rpx;
  1704. margin: 20rpx 10rpx;
  1705. /*从padding开始往外面裁剪背景*/
  1706. }
  1707. </style>