statistics.vue 49 KB

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