statistics.vue 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838
  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. </view>
  404. </view>
  405. <cc-pullScroolView class="pullScrollView" ref="pullScroll" :pullDown="pullDown" :isDownLoading="true">
  406. <view class="notice" v-for="(item,index) in list" :key="index">
  407. <view class="justify-content" @click="chooseNode(item)">
  408. <view v-if="EngineeringValue=='民用工程'">
  409. <view class="font-forty">
  410. {{item.areaName+item.buildingName+item.unitName+item.houseName+(item.enginType=='new_built'? '-新建':'-旧改')+'-'+item.enginClassificationName}}
  411. </view>
  412. <view class="font-twenty-eight gray" v-for="(state,stateIndex) in item.nodeReViewStateList"
  413. :key="stateIndex" v-if="state.Type!='开栓'">
  414. {{state.Type}}-{{state.state == 1 ? '审核通过': (state.content == '暂未审核' ? '暂未审核':'审核未通过')}}
  415. <view v-if="state.content != '暂未审核'">原因:{{state.content}}</view>
  416. </view>
  417. </view>
  418. <view v-if="EngineeringValue=='开栓'">
  419. <view class="font-forty">
  420. {{item.areaName+item.buildingName+item.unitName+item.houseName}}
  421. </view>
  422. <view class="font-twenty-eight gray">
  423. {{item.state == 0 ? '审核不通过': (item.state == 1?'审核通过':'未审核')}}
  424. </view>
  425. </view>
  426. <view
  427. v-if="EngineeringValue=='顶管工程'||EngineeringValue=='基建工程'||EngineeringValue=='危险工程'||EngineeringValue=='市政工程'||EngineeringValue=='工业工程'||EngineeringValue=='带气封堵施工'">
  428. <view class="font-forty">
  429. 工程名称:{{item.enginName}}
  430. </view>
  431. <view class="font-twenty-eight gray" v-for="(state,stateIndex) in item.status"
  432. :key="stateIndex">
  433. <view v-if="EngineeringValue=='工业工程'">{{state.reviewStatus}}</view>
  434. <view v-else>{{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. } from '@/api/common'
  500. export default {
  501. components: {
  502. SelectPicker,
  503. CCBProjectList,
  504. bottomSheet
  505. },
  506. data() {
  507. return {
  508. historyList: {}, //历史数据
  509. userRole: getUserRole(),
  510. tabValue: ['旧改', '新建'],
  511. tabIndex: 0,
  512. isLeader: '',
  513. list: [],
  514. newlist: [],
  515. pageSize: 10,
  516. totalNum: '',
  517. pageNum: 1,
  518. typeList: '',
  519. villageIndex: 0,
  520. specificationIndex: 0,
  521. materialIndex: 0,
  522. villageIndex2: 0,
  523. buildIndex: 0,
  524. unitIndex: 0,
  525. open: false,
  526. openDict: false,
  527. selectList: [],
  528. dictOptions: [],
  529. XQList: [],
  530. LDList: [],
  531. DYList: [],
  532. projectValue: {
  533. 'dictValue': '0'
  534. },
  535. XZQValue: {},
  536. XQValue: {},
  537. XQList2: [],
  538. LDList2: [],
  539. DYList2: [],
  540. XQList3: [],
  541. LDList3: [],
  542. DYList3: [],
  543. FJList3: [],
  544. projectValue2: {
  545. 'dictValue': '0'
  546. },
  547. EngineeringValue: '',
  548. EngineeringName: '',
  549. EngineeringList: [],
  550. shareState: false,
  551. XZQValue2: {},
  552. XQValue2: {},
  553. LDValue2: {},
  554. DYValue2: {},
  555. XZQValue3: {},
  556. XQValue3: {},
  557. LDValue3: {},
  558. DYValue3: {},
  559. FJValue3: {},
  560. ProjectType: {},
  561. ProjectClassification: {},
  562. ProjectSteps: {},
  563. ReviewStatus: {},
  564. change: false,
  565. specificationValue: {},
  566. specificationList: [],
  567. materialValue: {},
  568. materialList: [],
  569. materialUsageList: [],
  570. roomList: [],
  571. roomCount: 4,
  572. nodeId: '',
  573. nodeType: '',
  574. roomItem: {},
  575. roomId: '',
  576. }
  577. },
  578. created() {},
  579. onLoad() {
  580. this.isLeader = getUserType()
  581. this.EngineeringValue = this.userRole[0];
  582. if (this.isLeader == 'app_user') {
  583. this.changeTab();
  584. }
  585. },
  586. // 上拉加载
  587. onReachBottom() {
  588. if (this.pageNum * 10 >= this.totalNum) {
  589. } else {
  590. this.$refs.pullScroll.showUpLoading();
  591. this.pageNum++;
  592. this.requestData();
  593. }
  594. },
  595. methods: {
  596. goHistory(item) {
  597. this.roomItem = item;
  598. getDicts(item.enginCycle + '_indoor_engin').then(response => {
  599. this.typeList = response.data;
  600. let result = JSON.parse(JSON.stringify(this.typeList).replace(/dictValue/g, 'Type'));
  601. this.typeList = result;
  602. this.handleShowSheet();
  603. });
  604. },
  605. serch() {
  606. this.changeTab();
  607. },
  608. change1() {
  609. this.change = !this.change
  610. },
  611. isEmpty(str) {
  612. return (!str || 0 === str.length);
  613. },
  614. handleShowSheet() {
  615. this.shareState = true;
  616. },
  617. handleHiddenShare() {
  618. this.shareState = false;
  619. },
  620. chooseNode(item) {
  621. debugger
  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. '顶管工程') {
  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. } else if (this.EngineeringValue == '工业工程') {
  658. this.nodeId = item.id;
  659. let obj = {
  660. id: this.nodeId,
  661. type: '历史数据'
  662. };
  663. uni.navigateTo({
  664. url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  665. .stringify(
  666. obj))
  667. })
  668. } else if (this.EngineeringValue == '带气封堵施工') {
  669. this.nodeId = item.id;
  670. let obj = {
  671. id: this.nodeId,
  672. type: '历史数据'
  673. };
  674. uni.navigateTo({
  675. url: '/pages/statistics/history_gas_sealing?params=' + encodeURIComponent(JSON
  676. .stringify(
  677. obj))
  678. })
  679. }
  680. },
  681. showHistoryList() {
  682. this.$refs.refShare.handleShowShare();
  683. },
  684. showTypeSheet(item) {
  685. if (this.isLeader == 'sys_user') {
  686. let param = {
  687. areaId: this.roomItem.areaId,
  688. buildingId: this.roomItem.buildingId,
  689. unitId: this.roomItem.unitId,
  690. houseId: this.roomItem.roomId,
  691. enginCycle: this.projectValue2.dictValue, // 工程周期
  692. enginType: this.roomItem.enginCycle,
  693. enginClassification: 'indoor_engin', //写死 室内
  694. }
  695. getRoomProjectId(param).then(res => {
  696. if (res.code == '200') {
  697. if (res.data != null) {
  698. getRoomProjectList(res.data.id, item.Type).then(res => {
  699. if (res.data.zEngineeringNodeBo != null) {
  700. this.historyList = res.data
  701. this.showHistoryList();
  702. } else {
  703. this.$modal.msg("暂无历史信息")
  704. }
  705. })
  706. } else {
  707. this.$modal.msg("暂无工程信息")
  708. }
  709. } else {
  710. this.$modal.msg(res.msg)
  711. }
  712. })
  713. } else {
  714. if (this.EngineeringValue == '民用工程') {
  715. let obj = {
  716. id: this.nodeId,
  717. type: item.Type,
  718. roomId: this.roomId,
  719. };
  720. this.handleHiddenShare();
  721. if (this.nodeType == 'indoor_engin') { //室内
  722. uni.navigateTo({
  723. url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
  724. .stringify(
  725. obj))
  726. })
  727. } else if (this.nodeType == 'overhead') { //架空
  728. uni.navigateTo({
  729. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  730. .stringify(
  731. obj))
  732. })
  733. } else if (this.nodeType == 'courtyard') { //庭院
  734. uni.navigateTo({
  735. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  736. .stringify(
  737. obj))
  738. })
  739. }
  740. } else if (this.EngineeringValue == '顶管工程') {
  741. let obj = {
  742. id: this.nodeId,
  743. type: item.Type,
  744. };
  745. uni.navigateTo({
  746. url: '/pages/statistics/historyDetailsTopTube?params=' + encodeURIComponent(JSON
  747. .stringify(
  748. obj))
  749. })
  750. this.handleHiddenShare();
  751. } else if (this.EngineeringValue == '基建工程') {
  752. let obj = {
  753. id: this.nodeId,
  754. type: item.Type,
  755. };
  756. uni.navigateTo({
  757. url: '/pages/statistics/historyDetailsInfrastructure?params=' + encodeURIComponent(JSON
  758. .stringify(
  759. obj))
  760. })
  761. this.handleHiddenShare();
  762. } else if (this.EngineeringValue == '市政工程') {
  763. let obj = {
  764. id: this.nodeId,
  765. type: item.Type,
  766. };
  767. uni.navigateTo({
  768. url: '/pages/statistics/historyDetailMunicipal?params=' + encodeURIComponent(JSON
  769. .stringify(
  770. obj))
  771. })
  772. this.handleHiddenShare();
  773. }
  774. }
  775. },
  776. pickerShow(e) {
  777. this.type = e;
  778. if (e == 'gcx') {
  779. this.open = true;
  780. this.EngineeringList = [];
  781. this.userRole.forEach((item, index) => {
  782. this.EngineeringList.push({
  783. 'id': index,
  784. 'name': item
  785. })
  786. });
  787. this.selectList = this.EngineeringList;
  788. } else if (e == 'gczq') {
  789. this.openDict = true;
  790. getDicts("engin_cycle").then(response => {
  791. this.dictOptions = response.data;
  792. });
  793. } else if (e == 'gclx') {
  794. this.openDict = true;
  795. getDicts('indoor_engin_type').then(response => {
  796. this.dictOptions = response.data;
  797. });
  798. } else if (e == 'gcfl') {
  799. if (this.isEmpty(this.ProjectType.dictValue)) {
  800. this.$modal.msg('请选择工程类型')
  801. } else {
  802. this.openDict = true;
  803. getDicts(this.ProjectType.dictValue).then(response => {
  804. this.dictOptions = response.data;
  805. });
  806. }
  807. } else if (e == 'gcbz') {
  808. if (this.isEmpty(this.ProjectClassification.dictValue)) {
  809. this.$modal.msg('请选择工程分类')
  810. } else {
  811. this.openDict = true;
  812. getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
  813. response => {
  814. this.dictOptions = response.data;
  815. });
  816. }
  817. } else if (e == 'shzt') {
  818. if (this.EngineeringValue == '民用工程') {
  819. if (this.isEmpty(this.ProjectSteps.dictValue)) {
  820. this.$modal.msg('请选择工程步骤')
  821. } else {
  822. this.openDict = true;
  823. getDicts('state_options').then(
  824. response => {
  825. this.dictOptions = response.data;
  826. });
  827. }
  828. } else {
  829. this.openDict = true;
  830. getDicts('state_options').then(
  831. response => {
  832. this.dictOptions = response.data;
  833. });
  834. }
  835. } else if (e == 'xzq') {
  836. if (this.isEmpty(this.projectValue.dictValue)) {
  837. this.$modal.msg('请选择工程周期')
  838. } else {
  839. this.openDict = true;
  840. getDicts("district").then(response => {
  841. this.dictOptions = response.data;
  842. });
  843. }
  844. } else if (e == 'xq') {
  845. if (this.isEmpty(this.XZQValue.dictValue)) {
  846. this.$modal.msg('请选择行政区')
  847. } else {
  848. this.open = true;
  849. this.selectList = this.XQList;
  850. }
  851. } else if (e == 'ld') {
  852. if (this.isEmpty(this.XQValue.id)) {
  853. this.$modal.msg('请选择小区')
  854. } else {
  855. this.open = true;
  856. this.selectList = this.LDList;
  857. }
  858. } else if (e == 'dy') {
  859. if (this.isEmpty(this.LDValue.id)) {
  860. this.$modal.msg('请选择楼栋')
  861. } else {
  862. this.open = true;
  863. this.selectList = this.DYList;
  864. }
  865. } else if (e == 'gczq2') {
  866. this.openDict = true;
  867. getDicts("engin_cycle").then(response => {
  868. this.dictOptions = response.data;
  869. });
  870. } else if (e == 'xzq2' || e == 'xzq3') {
  871. if (this.isEmpty(this.projectValue2.dictValue)) {
  872. this.$modal.msg('请选择工程周期')
  873. } else {
  874. this.openDict = true;
  875. getDicts("district").then(response => {
  876. this.dictOptions = response.data;
  877. });
  878. }
  879. } else if (e == 'xq2') {
  880. if (this.isEmpty(this.XZQValue2.dictValue)) {
  881. this.$modal.msg('请选择行政区')
  882. } else {
  883. this.open = true;
  884. this.selectList = this.XQList2;
  885. }
  886. } else if (e == 'ld2') {
  887. if (this.isEmpty(this.XQValue2.id)) {
  888. this.$modal.msg('请选择小区')
  889. } else {
  890. this.open = true;
  891. this.selectList = this.LDList2;
  892. }
  893. } else if (e == 'dy2') {
  894. if (this.isEmpty(this.LDValue2.id)) {
  895. this.$modal.msg('请选择楼栋')
  896. } else {
  897. this.open = true;
  898. this.selectList = this.DYList2;
  899. }
  900. } else if (e == 'xq3') {
  901. if (this.isEmpty(this.XZQValue3.dictValue)) {
  902. this.$modal.msg('请选择行政区')
  903. } else {
  904. this.open = true;
  905. this.selectList = this.XQList3;
  906. }
  907. } else if (e == 'ld3') {
  908. if (this.isEmpty(this.XQValue3.id)) {
  909. this.$modal.msg('请选择小区')
  910. } else {
  911. this.open = true;
  912. this.selectList = this.LDList3;
  913. }
  914. } else if (e == 'dy3') {
  915. if (this.isEmpty(this.LDValue2.id)) {
  916. this.$modal.msg('请选择楼栋')
  917. } else {
  918. this.open = true;
  919. this.selectList = this.DYList3;
  920. }
  921. } else if (e == 'fj3') {
  922. if (this.isEmpty(this.LDValue3.id)) {
  923. this.$modal.msg('请选择楼栋')
  924. } else {
  925. this.open = true;
  926. this.selectList = this.FJList3;
  927. }
  928. } else if (e == 'gg') {
  929. if (this.isEmpty(this.materialValue.id)) {
  930. this.$modal.msg('请选择材料')
  931. } else {
  932. this.open = true;
  933. this.selectList = this.materialList;
  934. }
  935. } else if (e == 'cz') {
  936. this.open = true;
  937. getEnginMaterialQualityList("民用工程").then(response => {
  938. this.selectList = response.data;
  939. });
  940. }
  941. },
  942. changeSelect(item, index) {
  943. this.open = false;
  944. this.openDict = false;
  945. if (this.type == 'gcx') {
  946. this.EngineeringValue = item.name
  947. this.changeTab();
  948. } else if (this.type == 'xzq') {
  949. this.XZQValue = item;
  950. this.XQValue = '';
  951. this.LDValue = '';
  952. this.DYValue = '';
  953. this.FJValue = '';
  954. getAreaList(item.dictValue).then(res => {
  955. this.XQList = res.data;
  956. })
  957. } else if (this.type == 'gczq') {
  958. this.projectValue = item
  959. } else if (this.type == 'gclx') {
  960. this.ProjectType = item
  961. this.ProjectClassification = '';
  962. this.ProjectSteps = '';
  963. this.ReviewStatus = '';
  964. } else if (this.type == 'gcfl') {
  965. this.ProjectClassification = item
  966. this.ProjectSteps = '';
  967. this.ReviewStatus = '';
  968. } else if (this.type == 'gcbz') {
  969. this.ProjectSteps = item
  970. this.ReviewStatus = '';
  971. } else if (this.type == 'shzt') {
  972. this.ReviewStatus = item
  973. } else if (this.type == 'xq') {
  974. this.XQValue = item;
  975. this.LDValue = '';
  976. this.DYValue = '';
  977. this.FJValue = '';
  978. this.queryMaterialsUsedList();
  979. } else if (this.type == 'ld') {
  980. this.LDValue = item;
  981. this.DYValue = '';
  982. this.FJValue = '';
  983. getUnitList(item.id).then(res => {
  984. this.DYList = res.data
  985. })
  986. } else if (this.type == 'dy') {
  987. this.DYValue = item;
  988. } else if (this.type == 'gczq2') {
  989. this.projectValue2 = item
  990. } else if (this.type == 'xzq2') {
  991. this.XZQValue2 = item;
  992. this.XQValue2 = '';
  993. this.LDValue2 = '';
  994. this.DYValue2 = '';
  995. this.FJValue2 = '';
  996. getAreaList(item.dictValue).then(res => {
  997. this.XQList2 = res.data;
  998. })
  999. } else if (this.type == 'xzq3') {
  1000. this.XZQValue3 = item;
  1001. this.XQValue3 = '';
  1002. this.LDValue3 = '';
  1003. this.DYValue3 = '';
  1004. this.FJValue3 = '';
  1005. getAreaList(item.dictValue).then(res => {
  1006. this.XQList3 = res.data;
  1007. })
  1008. } else if (this.type == 'xq2') {
  1009. this.XQValue2 = item;
  1010. this.LDValue2 = '';
  1011. this.DYValue2 = '';
  1012. this.FJValue2 = '';
  1013. getBuildingList(item.id).then(res => {
  1014. this.LDList2 = res.data
  1015. })
  1016. } else if (this.type == 'xq3') {
  1017. this.XQValue3 = item;
  1018. this.LDValue3 = '';
  1019. this.DYValue3 = '';
  1020. this.FJValue3 = '';
  1021. getBuildingList(item.id).then(res => {
  1022. this.LDList3 = res.data
  1023. })
  1024. } else if (this.type == 'ld2') {
  1025. this.LDValue2 = item;
  1026. this.DYValue2 = '';
  1027. this.FJValue2 = '';
  1028. getUnitList(item.id).then(res => {
  1029. this.DYList2 = res.data
  1030. })
  1031. } else if (this.type == 'ld3') {
  1032. this.LDValue3 = item;
  1033. this.DYValue3 = '';
  1034. this.FJValue3 = '';
  1035. getUnitList(item.id).then(res => {
  1036. this.DYList3 = res.data
  1037. })
  1038. } else if (this.type == 'dy3') {
  1039. this.DYValue3 = item;
  1040. this.FJValue3 = '';
  1041. getHousesList(item.id).then(res => {
  1042. this.FJList3 = res.data
  1043. })
  1044. } else if (this.type == 'dy2') {
  1045. this.DYValue2 = item;
  1046. this.queryProjectStatisticsList();
  1047. } else if (this.type == 'gg') {
  1048. this.specificationValue = item;
  1049. this.queryMaterialsUsedList();
  1050. } else if (this.type == 'cz') {
  1051. this.materialValue = item;
  1052. this.specificationValue = '';
  1053. this.queryMaterialsUsedList();
  1054. getEnginSpecificationsList(item.id).then(res => {
  1055. this.materialList = res.data
  1056. })
  1057. }
  1058. },
  1059. close(e) {
  1060. this.open = false
  1061. },
  1062. closeDict(e) {
  1063. this.openDict = false
  1064. },
  1065. queryMaterialsUsedList() {
  1066. if (this.isEmpty(this.XQValue.id)) {
  1067. this.$modal.msg('请选择小区')
  1068. return;
  1069. }
  1070. let param = {
  1071. enginCycle: this.projectValue.dictValue, //工程周期
  1072. areaId: this.XQValue.id,
  1073. realityQuality: this.materialValue.id,
  1074. realitySpecifications: this.specificationValue.id,
  1075. };
  1076. getMunicipalStatisticsData(param).then(res => {
  1077. this.materialUsageList = res.data;
  1078. })
  1079. },
  1080. queryProjectStatisticsList() {
  1081. let param = {
  1082. enginCycle: this.projectValue.dictValue, //工程周期
  1083. areaId: this.XQValue2.id,
  1084. buildingId: this.LDValue2.id,
  1085. unitId: this.DYValue2.id,
  1086. };
  1087. getObtainRoomcCompletionInformationList(param).then(res => {
  1088. this.roomList = res.data[0].roomStatusVoList;
  1089. this.roomCount = res.data[0].roomStatusVoList.length;
  1090. })
  1091. },
  1092. getColorByStatus(status) {
  1093. if (this.isEmpty(status)) {
  1094. return "#fff";
  1095. }
  1096. if (status == '施工中') {
  1097. return "#5bd3ff";
  1098. } else if (status == '未施工') {
  1099. return "#ffc881";
  1100. } else if (status == '竣工') {
  1101. return "#80d9ae";
  1102. }
  1103. },
  1104. clearMaterialInfo() {
  1105. this.materialValue = '';
  1106. this.specificationValue = '';
  1107. this.queryMaterialsUsedList();
  1108. },
  1109. clearSpecificationInfo() {
  1110. this.specificationValue = '';
  1111. this.queryMaterialsUsedList();
  1112. },
  1113. pullDown(pullScroll) {
  1114. this.pageNum = 1;
  1115. setTimeout(() => {
  1116. this.requestData(pullScroll);
  1117. }, 1000);
  1118. },
  1119. getList() {
  1120. let myThis = this;
  1121. this.$nextTick(() => {
  1122. myThis.$refs.pullScroll.refresh();
  1123. });
  1124. },
  1125. changeTab() {
  1126. this.pageSize = 10;
  1127. this.totalNum = '';
  1128. this.pageNum = 1;
  1129. this.requestData();
  1130. },
  1131. requestData() {
  1132. uni.showLoading()
  1133. if (this.EngineeringValue == '民用工程') {
  1134. let type = ''
  1135. let param = {
  1136. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1137. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1138. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1139. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1140. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1141. enginType: this.ProjectType.dictValue == undefined ? '' : this.ProjectType.dictValue,
  1142. enginCycle: '0',
  1143. enginClassification: this.ProjectClassification.dictValue == undefined ? '' : this
  1144. .ProjectClassification.dictValue,
  1145. type: this.ProjectSteps.dictValue == undefined ? '' : this.ProjectSteps.dictValue,
  1146. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1147. createBy: user.state.name,
  1148. pageNum: this.pageNum,
  1149. pageSize: this.pageSize
  1150. }
  1151. gethistoryList(param).then(res => {
  1152. this.totalNum = res.total
  1153. if (res.code == '200') {
  1154. uni.hideLoading()
  1155. if (res.rows.length !== 0) {
  1156. if (this.pageNum == 1) {
  1157. this.list = [];
  1158. this.list = res.rows
  1159. } else {
  1160. this.list = this.list.concat(res.rows)
  1161. }
  1162. if (this.pageNum * 10 >= this.totalNum) {
  1163. this.$refs.pullScroll.finish();
  1164. } else {
  1165. this.$refs.pullScroll.success();
  1166. }
  1167. } else {
  1168. this.list = [];
  1169. this.$refs.pullScroll.empty();
  1170. }
  1171. } else {
  1172. this.$modal.msg(res.msg + "")
  1173. this.$refs.pullScroll.error();
  1174. }
  1175. })
  1176. } else if (this.EngineeringValue == '开栓') {
  1177. let type = ''
  1178. let param = {
  1179. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1180. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1181. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1182. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1183. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1184. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1185. createBy: user.state.name,
  1186. pageNum: this.pageNum,
  1187. pageSize: this.pageSize
  1188. }
  1189. getKShistoryList(param).then(res => {
  1190. this.totalNum = res.total
  1191. if (res.code == '200') {
  1192. uni.hideLoading()
  1193. if (res.rows.length !== 0) {
  1194. if (this.pageNum == 1) {
  1195. this.list = [];
  1196. this.list = res.rows
  1197. } else {
  1198. this.list = this.list.concat(res.rows)
  1199. }
  1200. if (this.pageNum * 10 >= this.totalNum) {
  1201. this.$refs.pullScroll.finish();
  1202. } else {
  1203. this.$refs.pullScroll.success();
  1204. }
  1205. } else {
  1206. this.list = [];
  1207. this.$refs.pullScroll.empty();
  1208. }
  1209. } else {
  1210. this.$modal.msg(res.msg + "")
  1211. this.$refs.pullScroll.error();
  1212. }
  1213. })
  1214. } else if (this.EngineeringValue == '顶管工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  1215. '危险作业工程' || this.EngineeringValue == '市政工程' || this.EngineeringValue == '工业工程' || this
  1216. .EngineeringValue == '带气封堵施工') {
  1217. //type 1 = 顶管, 2=基建 3=危险 4= 市政 5= 工业 type=6 是带气封堵
  1218. let chooseType = '';
  1219. switch (this.EngineeringValue) {
  1220. case '顶管工程':
  1221. chooseType = '1';
  1222. break
  1223. case '基建工程':
  1224. chooseType = '2';
  1225. break
  1226. case '危险作业工程':
  1227. chooseType = '3';
  1228. break
  1229. case '市政工程':
  1230. chooseType = '4';
  1231. break
  1232. case '工业工程':
  1233. chooseType = '5';
  1234. break
  1235. case '带气封堵施工':
  1236. chooseType = '6';
  1237. break
  1238. }
  1239. let param = {
  1240. type: chooseType,
  1241. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1242. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1243. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1244. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1245. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1246. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1247. createBy: user.state.name,
  1248. pageNum: this.pageNum,
  1249. pageSize: this.pageSize
  1250. }
  1251. getHistoryByUserList(param).then(res => {
  1252. debugger
  1253. this.totalNum = res.data.total
  1254. if (res.code == '200') {
  1255. uni.hideLoading()
  1256. if (res.data.rows.length !== 0) {
  1257. if (this.pageNum == 1) {
  1258. this.list = [];
  1259. this.list = res.data.rows
  1260. } else {
  1261. this.list = this.list.concat(res.data.rows)
  1262. }
  1263. if (this.pageNum * 10 >= this.totalNum) {
  1264. this.$refs.pullScroll.finish();
  1265. } else {
  1266. this.$refs.pullScroll.success();
  1267. }
  1268. } else {
  1269. this.list = [];
  1270. this.$refs.pullScroll.empty();
  1271. }
  1272. } else {
  1273. this.$modal.msg(res.msg + "")
  1274. this.$refs.pullScroll.error();
  1275. }
  1276. })
  1277. }
  1278. },
  1279. }
  1280. }
  1281. </script>
  1282. <style lang="scss">
  1283. .to-right-icon {
  1284. width: 15px;
  1285. height: 15px;
  1286. position: absolute;
  1287. top: 50%;
  1288. transform: translateY(-50%);
  1289. }
  1290. .uni-media-list {
  1291. width: 100%;
  1292. }
  1293. .no-click {
  1294. pointer-events: none;
  1295. }
  1296. .marginLeft5 {
  1297. margin-left: 5px;
  1298. }
  1299. .title-txt {
  1300. font-size: 15px;
  1301. font-weight: bold;
  1302. color: black;
  1303. padding: 20rpx 0;
  1304. }
  1305. .content-txt {
  1306. font-size: 10px;
  1307. font-weight: bold;
  1308. color: black;
  1309. }
  1310. .view-bg {
  1311. margin-left: 8px;
  1312. margin-right: 8px;
  1313. margin-top: 8px;
  1314. background-color: #fff;
  1315. border-radius: 5px;
  1316. padding: 20px;
  1317. display: flex;
  1318. flex-direction: column;
  1319. }
  1320. .uni-list {
  1321. background-color: #FFFFFF;
  1322. position: relative;
  1323. width: 100%;
  1324. display: flex;
  1325. flex-direction: column;
  1326. }
  1327. .uni-list-cell {
  1328. display: flex;
  1329. align-items: center;
  1330. justify-content: space-between;
  1331. padding: 10px 0;
  1332. position: relative;
  1333. }
  1334. .uni-list-cell-left {
  1335. white-space: nowrap;
  1336. font-size: 28rpx;
  1337. }
  1338. .centered {
  1339. text-align: center;
  1340. background-color: #e2f4ff;
  1341. }
  1342. .text {
  1343. background-color: #e2f4ff;
  1344. height: 20rpx;
  1345. }
  1346. .view_bg_build {
  1347. background-color: #e2f4ff;
  1348. padding: 10px 10px 0 10px;
  1349. margin: 0 auto;
  1350. border: 1px solid #5bd3ff;
  1351. white-space: nowrap;
  1352. position: relative;
  1353. z-index: 2;
  1354. }
  1355. .grid-text {
  1356. font-size: 14px;
  1357. color: #000000;
  1358. text-align: center;
  1359. padding-left: 30rpx;
  1360. padding-right: 30rpx;
  1361. padding-top: 20rpx;
  1362. padding-bottom: 20rpx;
  1363. }
  1364. .name {
  1365. flex: 0;
  1366. font-size: 14px;
  1367. color: #000000;
  1368. overflow: hidden;
  1369. text-overflow: ellipsis;
  1370. white-space: nowrap;
  1371. }
  1372. .table-item {
  1373. overflow: hidden;
  1374. text-overflow: ellipsis;
  1375. white-space: nowrap;
  1376. }
  1377. .block-iv {
  1378. width: 20px;
  1379. height: 20px;
  1380. }
  1381. .table {
  1382. width: 100%;
  1383. border-radius: 8rpx;
  1384. background: #FFFFFF;
  1385. /* border: 1rpx solid #EFEFEF; */
  1386. font-size: 28rpx;
  1387. margin-top: 40rpx;
  1388. }
  1389. .felx-row {
  1390. width: 100%;
  1391. display: flex;
  1392. justify-content: space-between;
  1393. align-items: center;
  1394. }
  1395. .h-tr {
  1396. box-sizing: border-box;
  1397. display: flex;
  1398. flex-direction: row;
  1399. flex-wrap: nowrap;
  1400. justify-content: center;
  1401. align-items: center;
  1402. align-content: center;
  1403. border-color: #ccc;
  1404. border-style: solid;
  1405. border-width: 0;
  1406. border-width: 1px;
  1407. color: #3d7dd7;
  1408. }
  1409. .h-td {
  1410. box-sizing: border-box;
  1411. padding: 3px;
  1412. word-break: break-all;
  1413. border-color: #ccc;
  1414. border-style: solid;
  1415. border-width: 1px;
  1416. border-right-width: 1px;
  1417. display: flex;
  1418. flex-direction: row;
  1419. flex-wrap: nowrap;
  1420. justify-content: center;
  1421. align-items: center;
  1422. align-content: center;
  1423. min-height: 64rpx;
  1424. }
  1425. .LouCeng {
  1426. font-size: 30rpx;
  1427. background-color: #4a4b52;
  1428. color: #FFEB3B;
  1429. font-weight: bold;
  1430. }
  1431. .Fang {
  1432. width: 100%;
  1433. display: inline-block;
  1434. line-height: 50rpx;
  1435. text-align: center;
  1436. margin-right: 10px;
  1437. margin-bottom: 10px;
  1438. background-color: red;
  1439. }
  1440. .HuaDongBiao {
  1441. display: flex;
  1442. flex-direction: column-reverse;
  1443. position: relative;
  1444. }
  1445. .NeiRong {
  1446. display: flex;
  1447. flex-wrap: nowrap;
  1448. }
  1449. .NeiRong :last-child {
  1450. margin-right: 0 !important;
  1451. }
  1452. .ShiGongZhong {
  1453. background-color: #5bd3ff;
  1454. color: #000;
  1455. }
  1456. .WeiShiGong {
  1457. background-color: #ffc881;
  1458. color: #000;
  1459. }
  1460. .JunGong {
  1461. background-color: #80d9ae;
  1462. color: #000;
  1463. }
  1464. .container {
  1465. display: flex;
  1466. margin-left: 10px;
  1467. width: 100%;
  1468. margin-top: 10px;
  1469. margin-right: 10px;
  1470. justify-content: space-between;
  1471. }
  1472. .notice {
  1473. margin: 20rpx;
  1474. padding: 20rpx;
  1475. background: #FFFFFF;
  1476. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  1477. border-radius: 10rpx;
  1478. }
  1479. .text {
  1480. border-left: 15rpx solid #3857F3;
  1481. padding-left: 20rpx;
  1482. }
  1483. .share {
  1484. width: 100%;
  1485. height: 100%;
  1486. }
  1487. .share-box {
  1488. width: 100%;
  1489. height: 100%;
  1490. position: fixed;
  1491. top: 0rpx;
  1492. left: 0rpx;
  1493. bottom: 0rpx;
  1494. right: 0rpx;
  1495. background-color: rgba(0, 0, 0, 0.4);
  1496. transition: .3s;
  1497. z-index: 999;
  1498. }
  1499. .share-show {
  1500. transition: all 0.3s ease;
  1501. transform: translateY(0%) !important;
  1502. }
  1503. .scroll-Y {
  1504. height: 350rpx;
  1505. }
  1506. .share-item {
  1507. position: fixed;
  1508. left: 0;
  1509. bottom: 0;
  1510. width: 100%;
  1511. height: auto;
  1512. background-color: #FFFFFF;
  1513. transition: all 0.3s ease;
  1514. transform: translateY(100%);
  1515. z-index: 1999;
  1516. border-top-left-radius: 40rpx;
  1517. border-top-right-radius: 40rpx;
  1518. .share-to {
  1519. width: 100%;
  1520. height: 3rem;
  1521. display: flex;
  1522. justify-content: center;
  1523. align-items: center;
  1524. &::after {
  1525. content: '';
  1526. width: 240rpx;
  1527. height: 0rpx;
  1528. border-top: 1px solid #E4E7ED;
  1529. -webkit-transform: scaleY(0.5);
  1530. transform: scaleY(0.5);
  1531. margin-left: 30rpx;
  1532. }
  1533. &::before {
  1534. content: '';
  1535. width: 240rpx;
  1536. height: 0rpx;
  1537. border-top: 1px solid #E4E7ED;
  1538. -webkit-transform: scaleY(0.5);
  1539. transform: scaleY(0.5);
  1540. margin-right: 30rpx;
  1541. }
  1542. }
  1543. .content {
  1544. width: 100%;
  1545. height: 50%;
  1546. display: flex;
  1547. flex-wrap: wrap;
  1548. .block {
  1549. width: 100%;
  1550. display: flex;
  1551. flex-direction: column;
  1552. justify-content: center;
  1553. align-items: center;
  1554. height: 80rpx;
  1555. text {
  1556. margin-top: 16rpx;
  1557. font-size: 28rpx;
  1558. color: #606266;
  1559. }
  1560. }
  1561. }
  1562. .cancel {
  1563. width: 100%;
  1564. height: 3rem;
  1565. display: flex;
  1566. justify-content: center;
  1567. align-items: center;
  1568. border-top: 1rpx solid #E4E7ED;
  1569. }
  1570. }
  1571. .background {
  1572. // border: 15px solid hsla(0, 0%, 100%, .5);
  1573. background: white;
  1574. background-clip: padding-box;
  1575. padding: 20rpx;
  1576. border-radius: 20rpx;
  1577. margin: 20rpx 10rpx;
  1578. /*从padding开始往外面裁剪背景*/
  1579. }
  1580. </style>