statistics.vue 67 KB

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