statistics.vue 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281
  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">{{ 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. <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
  649. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  650. subtitleKey="id" v-model="name"></SelectPicker>
  651. <SelectPicker :list="dictOptions" @change="changeSelect" v-if="openDict" @close="closeDict" titleKey="dictLabel"
  652. subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  653. <SelectPicker :list="projectList" @change="changeSelectP" v-if="openP" @close="closeP" titleKey="name"
  654. subtitleKey="id" v-model="name"></SelectPicker>
  655. </view>
  656. </template>
  657. <script>
  658. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  659. import bottomSheet from '../../components/bottomSheet/bottomSheet.vue'
  660. import CCBProjectList from '../../uni_modules/cc-pullScroolView/components/cc-pullScroolView/cc-pullScroolView.vue';
  661. import {
  662. gethistoryList,
  663. getKShistoryList,
  664. getProjectStatisticsData
  665. } from '@/api/common'
  666. import {
  667. getUserType,
  668. getUserRole
  669. } from '@/utils/auth';
  670. import {
  671. getDicts
  672. } from "@/api/system/dict/data";
  673. import user from '@/store/modules/user'
  674. import {
  675. getAreaList,
  676. getBuildingList,
  677. getUnitList,
  678. getHousesList,
  679. getEnginMaterialQualityList,
  680. getEnginSpecificationsList,
  681. getMunicipalStatisticsData,
  682. getObtainRoomcCompletionInformationList,
  683. getRoomProjectId,
  684. getRoomProjectList,
  685. getHistoryByUserList,
  686. getByUserListAndDicts,
  687. getengineeringNameListNew,
  688. getengineeringNameList,
  689. getTopPipeNameList,
  690. getProjectName
  691. } from '@/api/common'
  692. export default {
  693. components: {
  694. SelectPicker,
  695. CCBProjectList,
  696. bottomSheet
  697. },
  698. data() {
  699. return {
  700. historyList: {}, //历史数据
  701. userRole: getUserRole(),
  702. tabValue: ['旧改', '新建'],
  703. tabIndex: 0,
  704. isLeader: '',
  705. list: [],
  706. newlist: [],
  707. pageSize: 10,
  708. totalNum: '',
  709. pageNum: 1,
  710. typeList: '',
  711. villageIndex: 0,
  712. specificationIndex: 0,
  713. materialIndex: 0,
  714. villageIndex2: 0,
  715. buildIndex: 0,
  716. unitIndex: 0,
  717. open: false,
  718. openDict: false,
  719. selectList: [],
  720. dictOptions: [],
  721. XQList: [],
  722. LDList: [],
  723. DYList: [],
  724. projectValue: {
  725. 'dictValue': '0'
  726. },
  727. XZQValue: {},
  728. XQValue: {},
  729. XQList2: [],
  730. LDList2: [],
  731. DYList2: [],
  732. XQList3: [],
  733. LDList3: [],
  734. DYList3: [],
  735. FJList3: [],
  736. projectValue2: {
  737. 'dictValue': '0'
  738. },
  739. EngineeringValue: '',
  740. EngineeringName: '',
  741. EngineeringList: [],
  742. shareState: false,
  743. XZQValue2: {},
  744. XQValue2: {},
  745. LDValue2: {},
  746. DYValue2: {},
  747. XZQValue3: {},
  748. XQValue3: {},
  749. LDValue3: {},
  750. DYValue3: {},
  751. FJValue3: {},
  752. ProjectType: {},
  753. ProjectClassification: {},
  754. ProjectSteps: {},
  755. ReviewStatus: {},
  756. change: false,
  757. specificationValue: {},
  758. specificationList: [],
  759. materialValue: {},
  760. materialList: [],
  761. materialUsageList: [],
  762. roomList: [],
  763. roomCount: 4,
  764. nodeId: '',
  765. nodeType: '',
  766. roomItem: {},
  767. roomId: '',
  768. projectList: [],
  769. projectBody01: {
  770. 'materialPercentagePE': {
  771. 'actuality': '',
  772. 'anticipation': '',
  773. 'percentage': ''
  774. },
  775. 'materialPercentageIron': {
  776. 'actuality': '',
  777. 'anticipation': '',
  778. 'percentage': ''
  779. }
  780. },
  781. projectBody02: {
  782. 'materialPercentagePE': {
  783. 'actuality': '',
  784. 'anticipation': '',
  785. 'percentage': ''
  786. },
  787. 'materialPercentageIron': {
  788. 'actuality': '',
  789. 'anticipation': '',
  790. 'percentage': ''
  791. }
  792. },
  793. projectBody03: {
  794. 'materialPercentagePE': {
  795. 'actuality': '',
  796. 'anticipation': '',
  797. 'percentage': ''
  798. },
  799. 'materialPercentageIron': {
  800. 'actuality': '',
  801. 'anticipation': '',
  802. 'percentage': ''
  803. }
  804. },
  805. projectBody04: {
  806. 'materialPercentagePE': {
  807. 'actuality': '',
  808. 'anticipation': '',
  809. 'percentage': ''
  810. },
  811. 'materialPercentageIron': {
  812. 'actuality': '',
  813. 'anticipation': '',
  814. 'percentage': ''
  815. }
  816. },
  817. projectObj01: {},
  818. projectObj02: {},
  819. projectObj03: {},
  820. projectObj04: {},
  821. openP: false,
  822. currentProjectType: ''
  823. }
  824. },
  825. created() {},
  826. onLoad() {
  827. this.isLeader = getUserType()
  828. this.EngineeringValue = this.userRole[0];
  829. if (this.isLeader == 'app_user') {
  830. this.changeTab();
  831. }
  832. },
  833. // 上拉加载
  834. onReachBottom() {
  835. if (this.pageNum * 10 >= this.totalNum) {
  836. } else {
  837. this.$refs.pullScroll.showUpLoading();
  838. this.pageNum++;
  839. this.requestData();
  840. }
  841. },
  842. methods: {
  843. changeSelectP(item, index) {
  844. this.openP = false;
  845. let type = this.currentProjectType;
  846. if (type == 'engineeringIndustry') { // 工业工程
  847. this.projectObj01 = item;
  848. } else if (type == 'engineeringMunicipal') { // 市政工程
  849. this.projectObj02 = item;
  850. } else if (type == 'engineeringPipeJacking') { // 顶管工程
  851. this.projectObj03 = item;
  852. } else if (type == 'touchOperationEngineering') { // 碰口作业
  853. this.projectObj04 = item;
  854. }
  855. this.getProjectData(item.id, type);
  856. },
  857. getProjectTypeList(type) {
  858. this.currentProjectType = type;
  859. if (type == 'engineeringIndustry') {
  860. this.projectList = null;
  861. getengineeringNameListNew("", "").then(res => {
  862. this.projectList = res.data;
  863. this.openP = true;
  864. })
  865. } else if (type == 'engineeringMunicipal') {
  866. this.projectList = null;
  867. getengineeringNameList("", "", "").then(res => {
  868. this.projectList = res.data;
  869. this.openP = true;
  870. })
  871. } else if (type == 'engineeringPipeJacking') {
  872. this.projectList = null;
  873. getTopPipeNameList("", "").then(res => {
  874. this.projectList = res.data;
  875. this.openP = true;
  876. })
  877. } else if (type == 'touchOperationEngineering') {
  878. this.projectList = null;
  879. getProjectName("", 1, 999999).then(res => {
  880. let result = JSON.parse(JSON.stringify(res.rows).replace(/enginName/g, 'name'));
  881. this.projectList = result;
  882. this.openP = true;
  883. })
  884. }
  885. },
  886. getProjectData(id, type) {
  887. getProjectStatisticsData(id, type).then(response => {
  888. if (type == 'engineeringIndustry') { // 工业工程
  889. this.projectBody01 = response.data;
  890. } else if (type == 'engineeringMunicipal') { // 市政工程
  891. this.projectBody02 = response.data;
  892. } else if (type == 'engineeringPipeJacking') { // 顶管工程
  893. this.projectBody03 = response.data;
  894. } else if (type == 'touchOperationEngineering') { // 碰口作业
  895. this.projectBody04 = response.data;
  896. }
  897. })
  898. },
  899. goHistory(item) {
  900. this.roomItem = item;
  901. getDicts(item.enginCycle + '_indoor_engin').then(response => {
  902. this.typeList = response.data;
  903. let result = JSON.parse(JSON.stringify(this.typeList).replace(/dictValue/g, 'Type'));
  904. this.typeList = result;
  905. this.handleShowSheet();
  906. });
  907. },
  908. serch() {
  909. this.changeTab();
  910. },
  911. change1() {
  912. this.change = !this.change
  913. },
  914. isEmpty(str) {
  915. return (!str || 0 === str.length);
  916. },
  917. handleShowSheet() {
  918. this.shareState = true;
  919. },
  920. handleHiddenShare() {
  921. this.shareState = false;
  922. },
  923. chooseNode(item) {
  924. if (this.EngineeringValue == '民用工程') {
  925. this.typeList = item.nodeReViewStateList
  926. this.nodeId = item.id;
  927. this.nodeType = item.enginClassification;
  928. this.roomId = item.houseId;
  929. if (this.nodeType == 'bottom_leg') { //底腿
  930. let obj = {
  931. id: this.nodeId,
  932. type: item.Type
  933. };
  934. uni.navigateTo({
  935. url: '/pages/statistics/history_details_bottom_leg?params=' + encodeURIComponent(JSON
  936. .stringify(
  937. obj))
  938. })
  939. } else {
  940. this.handleShowSheet();
  941. }
  942. } else if (this.EngineeringValue == '开栓') {
  943. this.nodeId = item.id;
  944. let obj = {
  945. type: 'edit',
  946. id: this.nodeId,
  947. };
  948. uni.navigateTo({
  949. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  950. .stringify(
  951. obj))
  952. })
  953. } else if (this.EngineeringValue == '市政工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  954. '顶管工程' || this.EngineeringValue == '工业工程' || this.EngineeringValue == '碰口作业') {
  955. this.nodeId = item.id;
  956. let result = JSON.parse(JSON.stringify(item.status).replace(/type/g, 'Type'));
  957. this.typeList = result;
  958. this.handleShowSheet();
  959. }
  960. // else if (this.EngineeringValue == '工业工程') {
  961. // this.nodeId = item.id;
  962. // let obj = {
  963. // id: this.nodeId,
  964. // type: '历史数据'
  965. // };
  966. // uni.navigateTo({
  967. // url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  968. // .stringify(
  969. // obj))
  970. // })
  971. // }
  972. else if (this.EngineeringValue == '带气封堵施工') {
  973. this.nodeId = item.id;
  974. let obj = {
  975. id: this.nodeId,
  976. type: item.dictvalue
  977. };
  978. uni.navigateTo({
  979. url: '/pages/statistics/history_gas_sealing?params=' + encodeURIComponent(JSON
  980. .stringify(
  981. obj))
  982. })
  983. }
  984. },
  985. showHistoryList() {
  986. this.$refs.refShare.handleShowShare();
  987. },
  988. showTypeSheet(item) {
  989. if (this.isLeader == 'sys_user') {
  990. let param = {
  991. areaId: this.roomItem.areaId,
  992. buildingId: this.roomItem.buildingId,
  993. unitId: this.roomItem.unitId,
  994. houseId: this.roomItem.roomId,
  995. enginCycle: this.projectValue2.dictValue, // 工程周期
  996. enginType: this.roomItem.enginCycle,
  997. enginClassification: 'indoor_engin', //写死 室内
  998. }
  999. getRoomProjectId(param).then(res => {
  1000. if (res.code == '200') {
  1001. if (res.data != null) {
  1002. getRoomProjectList(res.data.id, item.Type).then(res => {
  1003. if (res.data.zEngineeringNodeBo != null) {
  1004. this.historyList = res.data
  1005. this.showHistoryList();
  1006. } else {
  1007. this.$modal.msg("暂无历史信息")
  1008. }
  1009. })
  1010. } else {
  1011. this.$modal.msg("暂无工程信息")
  1012. }
  1013. } else {
  1014. this.$modal.msg(res.msg)
  1015. }
  1016. })
  1017. } else {
  1018. if (this.EngineeringValue == '民用工程') {
  1019. let obj = {
  1020. id: this.nodeId,
  1021. type: item.Type,
  1022. roomId: this.roomId,
  1023. };
  1024. this.handleHiddenShare();
  1025. if (this.nodeType == 'indoor_engin') { //室内
  1026. uni.navigateTo({
  1027. url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
  1028. .stringify(
  1029. obj))
  1030. })
  1031. } else if (this.nodeType == 'overhead') { //架空
  1032. uni.navigateTo({
  1033. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  1034. .stringify(
  1035. obj))
  1036. })
  1037. } else if (this.nodeType == 'courtyard') { //庭院
  1038. uni.navigateTo({
  1039. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  1040. .stringify(
  1041. obj))
  1042. })
  1043. }
  1044. } else if (this.EngineeringValue == '顶管工程') {
  1045. let obj = {
  1046. id: this.nodeId,
  1047. type: item.Type,
  1048. };
  1049. uni.navigateTo({
  1050. url: '/pages/statistics/historyDetailsTopTube?params=' + encodeURIComponent(JSON
  1051. .stringify(
  1052. obj))
  1053. })
  1054. this.handleHiddenShare();
  1055. } else if (this.EngineeringValue == '基建工程') {
  1056. let obj = {
  1057. id: this.nodeId,
  1058. type: item.Type,
  1059. };
  1060. uni.navigateTo({
  1061. url: '/pages/statistics/historyDetailsInfrastructure?params=' + encodeURIComponent(JSON
  1062. .stringify(
  1063. obj))
  1064. })
  1065. this.handleHiddenShare();
  1066. } else if (this.EngineeringValue == '市政工程') {
  1067. let obj = {
  1068. id: this.nodeId,
  1069. type: item.Type,
  1070. };
  1071. uni.navigateTo({
  1072. url: '/pages/statistics/historyDetailMunicipal?params=' + encodeURIComponent(JSON
  1073. .stringify(
  1074. obj))
  1075. })
  1076. this.handleHiddenShare();
  1077. } else if (this.EngineeringValue == '工业工程') {
  1078. let obj = {
  1079. id: this.nodeId,
  1080. type: item.Type,
  1081. };
  1082. uni.navigateTo({
  1083. url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  1084. .stringify(
  1085. obj))
  1086. })
  1087. this.handleHiddenShare();
  1088. } else if (this.EngineeringValue == '碰口作业') {
  1089. let obj = {
  1090. id: this.nodeId,
  1091. type: item.Type,
  1092. };
  1093. console.log("===", obj)
  1094. uni.navigateTo({
  1095. url: '/pages/statistics/historyDetailsMouth?params=' + encodeURIComponent(JSON
  1096. .stringify(
  1097. obj))
  1098. })
  1099. this.handleHiddenShare();
  1100. }
  1101. }
  1102. },
  1103. pickerShow(e) {
  1104. this.type = e;
  1105. if (e == 'gcx') {
  1106. this.open = true;
  1107. this.EngineeringList = [];
  1108. this.userRole.forEach((item, index) => {
  1109. // if (item != '危险作业工程') {
  1110. // console.log("===", item)
  1111. this.EngineeringList.push({
  1112. 'id': index,
  1113. 'name': item
  1114. })
  1115. //}
  1116. });
  1117. this.selectList = this.EngineeringList;
  1118. } else if (e == 'gczq') {
  1119. this.openDict = true;
  1120. getDicts("engin_cycle").then(response => {
  1121. this.dictOptions = response.data;
  1122. });
  1123. } else if (e == 'gclx') {
  1124. this.openDict = true;
  1125. getDicts('indoor_engin_type').then(response => {
  1126. this.dictOptions = response.data;
  1127. });
  1128. } else if (e == 'gcfl') {
  1129. if (this.EngineeringValue == '民用工程') {
  1130. if (this.isEmpty(this.ProjectType.dictValue)) {
  1131. this.$modal.msg('请选择工程类型')
  1132. } else {
  1133. this.openDict = true;
  1134. getDicts(this.ProjectType.dictValue).then(response => {
  1135. this.dictOptions = response.data;
  1136. });
  1137. }
  1138. } else {
  1139. //工业5 带起封堵施工3
  1140. let nodeType = '';
  1141. if (this.EngineeringValue == '工业工程') {
  1142. nodeType = '5';
  1143. } else if (this.EngineeringValue == '带气封堵施工') {
  1144. nodeType = '3';
  1145. }
  1146. this.openDict = true;
  1147. getByUserListAndDicts(nodeType).then(
  1148. response => {
  1149. this.dictOptions = response.data;
  1150. });
  1151. }
  1152. } else if (e == 'gcbz') {
  1153. if (this.EngineeringValue == '民用工程') {
  1154. if (this.isEmpty(this.ProjectClassification.dictValue)) {
  1155. this.$modal.msg('请选择工程分类')
  1156. } else {
  1157. this.openDict = true;
  1158. getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
  1159. response => {
  1160. this.dictOptions = response.data;
  1161. });
  1162. }
  1163. } else {
  1164. let nodeType = '';
  1165. if (this.EngineeringValue == '市政工程') {
  1166. nodeType = '4';
  1167. } else if (this.EngineeringValue == '基建工程') {
  1168. nodeType = '2';
  1169. } else if (this.EngineeringValue == '顶管工程') {
  1170. nodeType = '1';
  1171. }
  1172. this.openDict = true;
  1173. getByUserListAndDicts(nodeType).then(
  1174. response => {
  1175. this.dictOptions = response.data;
  1176. });
  1177. }
  1178. } else if (e == 'shzt') {
  1179. if (this.EngineeringValue == '民用工程') {
  1180. if (this.isEmpty(this.ProjectSteps.dictValue)) {
  1181. this.$modal.msg('请选择工程步骤')
  1182. } else {
  1183. this.openDict = true;
  1184. getDicts('state_options').then(
  1185. response => {
  1186. this.dictOptions = response.data;
  1187. });
  1188. }
  1189. } else {
  1190. this.openDict = true;
  1191. getDicts('state_options').then(
  1192. response => {
  1193. this.dictOptions = response.data;
  1194. });
  1195. }
  1196. } else if (e == 'xzq') {
  1197. if (this.isEmpty(this.projectValue.dictValue)) {
  1198. this.$modal.msg('请选择工程周期')
  1199. } else {
  1200. this.openDict = true;
  1201. getDicts("district").then(response => {
  1202. this.dictOptions = response.data;
  1203. });
  1204. }
  1205. } else if (e == 'xq') {
  1206. // if (this.isEmpty(this.XZQValue.dictValue)) {
  1207. // this.$modal.msg('请选择行政区')
  1208. //
  1209. // } else {
  1210. this.XQValue = '';
  1211. this.LDValue = '';
  1212. this.DYValue = '';
  1213. this.FJValue = '';
  1214. getAreaList('').then(res => {
  1215. this.XQList = res.data;
  1216. this.open = true;
  1217. this.selectList = this.XQList;
  1218. })
  1219. // }
  1220. } else if (e == 'ld') {
  1221. if (this.isEmpty(this.XQValue.id)) {
  1222. this.$modal.msg('请选择小区')
  1223. } else {
  1224. this.open = true;
  1225. this.selectList = this.LDList;
  1226. }
  1227. } else if (e == 'dy') {
  1228. if (this.isEmpty(this.LDValue.id)) {
  1229. this.$modal.msg('请选择楼栋')
  1230. } else {
  1231. this.open = true;
  1232. this.selectList = this.DYList;
  1233. }
  1234. } else if (e == 'gczq2') {
  1235. this.openDict = true;
  1236. getDicts("engin_cycle").then(response => {
  1237. this.dictOptions = response.data;
  1238. });
  1239. } else if (e == 'xzq2' || e == 'xzq3') {
  1240. if (this.isEmpty(this.projectValue2.dictValue)) {
  1241. this.$modal.msg('请选择工程周期')
  1242. } else {
  1243. this.openDict = true;
  1244. getDicts("district").then(response => {
  1245. this.dictOptions = response.data;
  1246. });
  1247. }
  1248. } else if (e == 'xq2') {
  1249. // if (this.isEmpty(this.XZQValue2.dictValue)) {
  1250. // this.$modal.msg('请选择行政区')
  1251. //
  1252. // } else {
  1253. this.XQValue2 = '';
  1254. this.LDValue2 = '';
  1255. this.DYValue2 = '';
  1256. this.FJValue2 = '';
  1257. getAreaList('').then(res => {
  1258. this.XQList2 = res.data;
  1259. this.open = true;
  1260. this.selectList = this.XQList2;
  1261. })
  1262. // }
  1263. } else if (e == 'ld2') {
  1264. if (this.isEmpty(this.XQValue2.id)) {
  1265. this.$modal.msg('请选择小区')
  1266. } else {
  1267. this.open = true;
  1268. this.selectList = this.LDList2;
  1269. }
  1270. } else if (e == 'dy2') {
  1271. if (this.isEmpty(this.LDValue2.id)) {
  1272. this.$modal.msg('请选择楼栋')
  1273. } else {
  1274. this.open = true;
  1275. this.selectList = this.DYList2;
  1276. }
  1277. } else if (e == 'xq3') {
  1278. // if (this.isEmpty(this.XZQValue3.dictValue)) {
  1279. // this.$modal.msg('请选择行政区')
  1280. //
  1281. // } else {
  1282. this.XQValue3 = '';
  1283. this.LDValue3 = '';
  1284. this.DYValue3 = '';
  1285. this.FJValue3 = '';
  1286. getAreaList('').then(res => {
  1287. this.XQList3 = res.data;
  1288. this.open = true;
  1289. this.selectList = this.XQList3;
  1290. })
  1291. // }
  1292. } else if (e == 'ld3') {
  1293. if (this.isEmpty(this.XQValue3.id)) {
  1294. this.$modal.msg('请选择小区')
  1295. } else {
  1296. this.open = true;
  1297. this.selectList = this.LDList3;
  1298. }
  1299. } else if (e == 'dy3') {
  1300. if (this.isEmpty(this.LDValue3.id)) {
  1301. this.$modal.msg('请选择楼栋')
  1302. } else {
  1303. this.open = true;
  1304. this.selectList = this.DYList3;
  1305. }
  1306. } else if (e == 'fj3') {
  1307. if (this.isEmpty(this.DYValue3.id)) {
  1308. this.$modal.msg('请选择单元')
  1309. } else {
  1310. this.open = true;
  1311. this.selectList = this.FJList3;
  1312. }
  1313. } else if (e == 'gg') {
  1314. if (this.isEmpty(this.materialValue.id)) {
  1315. this.$modal.msg('请选择材料')
  1316. } else {
  1317. this.open = true;
  1318. this.selectList = this.materialList;
  1319. }
  1320. } else if (e == 'cz') {
  1321. this.open = true;
  1322. getEnginMaterialQualityList("民用工程").then(response => {
  1323. this.selectList = response.data;
  1324. });
  1325. }
  1326. },
  1327. clear() {
  1328. //清空所有筛选项
  1329. this.XZQValue3 = '';
  1330. this.XQValue3 = '';
  1331. this.LDValue3 = '';
  1332. this.DYValue3 = '';
  1333. this.FJValue3 = '';
  1334. this.ProjectType = {
  1335. dictValue: '',
  1336. dictLabel: ''
  1337. };
  1338. this.ProjectClassification = {
  1339. dictValue: '',
  1340. dictLabel: ''
  1341. };
  1342. this.ProjectSteps = {
  1343. dictValue: '',
  1344. dictLabel: ''
  1345. };
  1346. this.ReviewStatus = {
  1347. dictValue: '',
  1348. dictLabel: ''
  1349. };
  1350. this.EngineeringName = '';
  1351. this.changeTab();
  1352. },
  1353. closeP(item, index) {
  1354. this.openP = false;
  1355. },
  1356. changeSelect(item, index) {
  1357. this.open = false;
  1358. this.openDict = false;
  1359. if (this.type == 'gcx') {
  1360. this.EngineeringValue = item.name
  1361. this.clear();
  1362. } else if (this.type == 'xzq') {
  1363. this.XZQValue = item;
  1364. this.XQValue = '';
  1365. this.LDValue = '';
  1366. this.DYValue = '';
  1367. this.FJValue = '';
  1368. getAreaList(item.dictValue).then(res => {
  1369. this.XQList = res.data;
  1370. })
  1371. } else if (this.type == 'gczq') {
  1372. this.projectValue = item
  1373. } else if (this.type == 'gclx') {
  1374. this.ProjectType = item
  1375. this.ProjectClassification = '';
  1376. this.ProjectSteps = '';
  1377. this.ReviewStatus = '';
  1378. } else if (this.type == 'gcfl') {
  1379. this.ProjectClassification = item
  1380. this.ProjectSteps = '';
  1381. this.ReviewStatus = '';
  1382. } else if (this.type == 'gcbz') {
  1383. this.ProjectSteps = item
  1384. this.ReviewStatus = '';
  1385. } else if (this.type == 'shzt') {
  1386. this.ReviewStatus = item
  1387. } else if (this.type == 'xq') {
  1388. this.XQValue = item;
  1389. this.LDValue = '';
  1390. this.DYValue = '';
  1391. this.FJValue = '';
  1392. this.queryMaterialsUsedList();
  1393. } else if (this.type == 'ld') {
  1394. this.LDValue = item;
  1395. this.DYValue = '';
  1396. this.FJValue = '';
  1397. getUnitList(item.id).then(res => {
  1398. this.DYList = res.data
  1399. })
  1400. } else if (this.type == 'dy') {
  1401. this.DYValue = item;
  1402. } else if (this.type == 'gczq2') {
  1403. this.projectValue2 = item
  1404. } else if (this.type == 'xzq2') {
  1405. this.XZQValue2 = item;
  1406. this.XQValue2 = '';
  1407. this.LDValue2 = '';
  1408. this.DYValue2 = '';
  1409. this.FJValue2 = '';
  1410. getAreaList(item.dictValue).then(res => {
  1411. this.XQList2 = res.data;
  1412. })
  1413. } else if (this.type == 'xzq3') {
  1414. this.XZQValue3 = item;
  1415. this.XQValue3 = '';
  1416. this.LDValue3 = '';
  1417. this.DYValue3 = '';
  1418. this.FJValue3 = '';
  1419. getAreaList(item.dictValue).then(res => {
  1420. this.XQList3 = res.data;
  1421. })
  1422. } else if (this.type == 'xq2') {
  1423. this.XZQValue2 = {
  1424. dictValue: item.district,
  1425. dictLabel: item.districtName
  1426. };
  1427. this.XQValue2 = item;
  1428. this.LDValue2 = '';
  1429. this.DYValue2 = '';
  1430. this.FJValue2 = '';
  1431. getBuildingList(item.id).then(res => {
  1432. this.LDList2 = res.data
  1433. })
  1434. } else if (this.type == 'xq3') {
  1435. this.XZQValue3 = {
  1436. dictValue: item.district,
  1437. dictLabel: item.districtName
  1438. };
  1439. this.XQValue3 = item;
  1440. this.LDValue3 = '';
  1441. this.DYValue3 = '';
  1442. this.FJValue3 = '';
  1443. getBuildingList(item.id).then(res => {
  1444. this.LDList3 = res.data
  1445. })
  1446. } else if (this.type == 'ld2') {
  1447. this.LDValue2 = item;
  1448. this.DYValue2 = '';
  1449. this.FJValue2 = '';
  1450. getUnitList(item.id).then(res => {
  1451. this.DYList2 = res.data
  1452. })
  1453. } else if (this.type == 'ld3') {
  1454. this.LDValue3 = item;
  1455. this.DYValue3 = '';
  1456. this.FJValue3 = '';
  1457. getUnitList(item.id).then(res => {
  1458. this.DYList3 = res.data
  1459. })
  1460. } else if (this.type == 'dy3') {
  1461. this.DYValue3 = item;
  1462. this.FJValue3 = '';
  1463. getHousesList(item.id).then(res => {
  1464. this.FJList3 = res.data
  1465. })
  1466. } else if (this.type == 'fj3') {
  1467. this.FJValue3 = item;
  1468. } else if (this.type == 'dy2') {
  1469. this.DYValue2 = item;
  1470. this.queryProjectStatisticsList();
  1471. } else if (this.type == 'gg') {
  1472. this.specificationValue = item;
  1473. this.queryMaterialsUsedList();
  1474. } else if (this.type == 'cz') {
  1475. this.materialValue = item;
  1476. this.specificationValue = '';
  1477. this.queryMaterialsUsedList();
  1478. getEnginSpecificationsList(item.id).then(res => {
  1479. this.materialList = res.data
  1480. })
  1481. }
  1482. },
  1483. close(e) {
  1484. this.open = false
  1485. },
  1486. closeDict(e) {
  1487. this.openDict = false
  1488. },
  1489. queryMaterialsUsedList() {
  1490. if (this.isEmpty(this.XQValue.id)) {
  1491. this.$modal.msg('请选择小区')
  1492. return;
  1493. }
  1494. let param = {
  1495. enginCycle: this.projectValue.dictValue, //工程周期
  1496. areaId: this.XQValue.id,
  1497. realityQuality: this.materialValue.id,
  1498. realitySpecifications: this.specificationValue.id,
  1499. };
  1500. this.XZQValue = {
  1501. dictValue: this.XQValue.district,
  1502. dictLabel: this.XQValue.districtName
  1503. };
  1504. getMunicipalStatisticsData(param).then(res => {
  1505. this.materialUsageList = res.data;
  1506. })
  1507. },
  1508. queryProjectStatisticsList() {
  1509. let param = {
  1510. enginCycle: this.projectValue.dictValue, //工程周期
  1511. areaId: this.XQValue2.id,
  1512. buildingId: this.LDValue2.id,
  1513. unitId: this.DYValue2.id,
  1514. };
  1515. getObtainRoomcCompletionInformationList(param).then(res => {
  1516. this.roomList = res.data[0].roomStatusVoList;
  1517. this.roomCount = res.data[0].roomStatusVoList.length;
  1518. })
  1519. },
  1520. getColorByStatus(status) {
  1521. if (this.isEmpty(status)) {
  1522. return "#fff";
  1523. }
  1524. if (status == '施工中') {
  1525. return "#5bd3ff";
  1526. } else if (status == '未施工') {
  1527. return "#ffc881";
  1528. } else if (status == '竣工') {
  1529. return "#80d9ae";
  1530. }
  1531. },
  1532. clearMaterialInfo() {
  1533. this.materialValue = '';
  1534. this.specificationValue = '';
  1535. this.queryMaterialsUsedList();
  1536. },
  1537. clearSpecificationInfo() {
  1538. this.specificationValue = '';
  1539. this.queryMaterialsUsedList();
  1540. },
  1541. pullDown(pullScroll) {
  1542. this.pageNum = 1;
  1543. setTimeout(() => {
  1544. this.requestData(pullScroll);
  1545. }, 1000);
  1546. },
  1547. getList() {
  1548. let myThis = this;
  1549. this.$nextTick(() => {
  1550. myThis.$refs.pullScroll.refresh();
  1551. });
  1552. },
  1553. changeTab() {
  1554. this.pageSize = 10;
  1555. this.totalNum = '';
  1556. this.pageNum = 1;
  1557. this.requestData();
  1558. },
  1559. requestData() {
  1560. uni.showLoading()
  1561. if (this.EngineeringValue == '民用工程') {
  1562. let type = ''
  1563. let param = {
  1564. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1565. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1566. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1567. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1568. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1569. enginType: this.ProjectType.dictValue == undefined ? '' : this.ProjectType.dictValue,
  1570. enginCycle: '0',
  1571. enginClassification: this.ProjectClassification.dictValue == undefined ? '' : this
  1572. .ProjectClassification.dictValue,
  1573. type: this.ProjectSteps.dictValue == undefined ? '' : this.ProjectSteps.dictValue,
  1574. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1575. createBy: user.state.name,
  1576. pageNum: this.pageNum,
  1577. pageSize: this.pageSize
  1578. }
  1579. gethistoryList(param).then(res => {
  1580. this.totalNum = res.total
  1581. if (res.code == '200') {
  1582. uni.hideLoading()
  1583. if (res.rows.length !== 0) {
  1584. if (this.pageNum == 1) {
  1585. this.list = [];
  1586. this.list = res.rows
  1587. } else {
  1588. this.list = this.list.concat(res.rows)
  1589. }
  1590. if (this.pageNum * 10 >= this.totalNum) {
  1591. this.$refs.pullScroll.finish();
  1592. } else {
  1593. this.$refs.pullScroll.success();
  1594. }
  1595. } else {
  1596. this.list = [];
  1597. this.$refs.pullScroll.empty();
  1598. }
  1599. } else {
  1600. this.$modal.msg(res.msg + "")
  1601. this.$refs.pullScroll.error();
  1602. }
  1603. })
  1604. } else if (this.EngineeringValue == '开栓') {
  1605. let type = ''
  1606. let param = {
  1607. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1608. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1609. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1610. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1611. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1612. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1613. createBy: user.state.name,
  1614. pageNum: this.pageNum,
  1615. pageSize: this.pageSize
  1616. }
  1617. getKShistoryList(param).then(res => {
  1618. this.totalNum = res.total
  1619. if (res.code == '200') {
  1620. uni.hideLoading()
  1621. if (res.rows.length !== 0) {
  1622. if (this.pageNum == 1) {
  1623. this.list = [];
  1624. this.list = res.rows
  1625. } else {
  1626. this.list = this.list.concat(res.rows)
  1627. }
  1628. if (this.pageNum * 10 >= this.totalNum) {
  1629. this.$refs.pullScroll.finish();
  1630. } else {
  1631. this.$refs.pullScroll.success();
  1632. }
  1633. } else {
  1634. this.list = [];
  1635. this.$refs.pullScroll.empty();
  1636. }
  1637. } else {
  1638. this.$modal.msg(res.msg + "")
  1639. this.$refs.pullScroll.error();
  1640. }
  1641. })
  1642. } else if (this.EngineeringValue == '顶管工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  1643. '碰口作业' || this.EngineeringValue == '市政工程' || this.EngineeringValue == '工业工程' || this
  1644. .EngineeringValue == '带气封堵施工') {
  1645. //type 1 = 顶管, 2=基建 3=危险 4= 市政 5= 工业 type=6 是带气封堵
  1646. let chooseType = '';
  1647. switch (this.EngineeringValue) {
  1648. case '顶管工程':
  1649. chooseType = '1';
  1650. break
  1651. case '基建工程':
  1652. chooseType = '2';
  1653. break
  1654. case '碰口作业':
  1655. chooseType = '7';
  1656. break
  1657. case '市政工程':
  1658. chooseType = '4';
  1659. break
  1660. case '工业工程':
  1661. chooseType = '5';
  1662. break
  1663. case '带气封堵施工':
  1664. chooseType = '6';
  1665. break
  1666. }
  1667. let param = {
  1668. type: chooseType,
  1669. enginName: this.EngineeringName,
  1670. enginType: this.ProjectClassification.dictValue == undefined ? '' : this
  1671. .ProjectClassification.dictValue,
  1672. nodeType: this.ProjectSteps.dictLabel == undefined ? '' : this.ProjectSteps.dictLabel,
  1673. enginStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1674. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1675. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1676. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1677. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1678. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1679. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1680. createBy: user.state.name,
  1681. pageNum: this.pageNum,
  1682. pageSize: this.pageSize
  1683. }
  1684. getHistoryByUserList(param).then(res => {
  1685. this.totalNum = res.data.total
  1686. if (res.code == '200') {
  1687. uni.hideLoading()
  1688. if (res.data.rows.length !== 0) {
  1689. if (this.pageNum == 1) {
  1690. this.list = [];
  1691. this.list = res.data.rows
  1692. } else {
  1693. this.list = this.list.concat(res.data.rows)
  1694. }
  1695. if (this.pageNum * 10 >= this.totalNum) {
  1696. this.$refs.pullScroll.finish();
  1697. } else {
  1698. this.$refs.pullScroll.success();
  1699. }
  1700. } else {
  1701. this.list = [];
  1702. this.$refs.pullScroll.empty();
  1703. }
  1704. } else {
  1705. this.$modal.msg(res.msg + "")
  1706. this.$refs.pullScroll.error();
  1707. }
  1708. })
  1709. }
  1710. },
  1711. }
  1712. }
  1713. </script>
  1714. <style lang="scss">
  1715. .to-right-icon {
  1716. width: 15px;
  1717. height: 15px;
  1718. position: absolute;
  1719. top: 50%;
  1720. transform: translateY(-50%);
  1721. }
  1722. .uni-media-list {
  1723. width: 100%;
  1724. }
  1725. .no-click {
  1726. pointer-events: none;
  1727. }
  1728. .marginLeft5 {
  1729. margin-left: 5px;
  1730. }
  1731. .title-txt {
  1732. font-size: 15px;
  1733. font-weight: bold;
  1734. color: black;
  1735. padding: 20rpx 0;
  1736. }
  1737. .content-txt {
  1738. font-size: 10px;
  1739. font-weight: bold;
  1740. color: black;
  1741. }
  1742. .view-bg {
  1743. margin-left: 8px;
  1744. margin-right: 8px;
  1745. margin-top: 8px;
  1746. background-color: #fff;
  1747. border-radius: 5px;
  1748. padding: 20px;
  1749. display: flex;
  1750. flex-direction: column;
  1751. }
  1752. .uni-list {
  1753. background-color: #FFFFFF;
  1754. position: relative;
  1755. width: 100%;
  1756. display: flex;
  1757. flex-direction: column;
  1758. }
  1759. .uni-list-cell {
  1760. display: flex;
  1761. align-items: center;
  1762. justify-content: space-between;
  1763. padding: 10px 0;
  1764. position: relative;
  1765. }
  1766. .uni-list-cell-left {
  1767. white-space: nowrap;
  1768. font-size: 28rpx;
  1769. }
  1770. .centered {
  1771. text-align: center;
  1772. background-color: #e2f4ff;
  1773. }
  1774. .text {
  1775. background-color: #e2f4ff;
  1776. height: 20rpx;
  1777. }
  1778. .view_bg_build {
  1779. background-color: #e2f4ff;
  1780. padding: 10px 10px 0 10px;
  1781. margin: 0 auto;
  1782. border: 1px solid #5bd3ff;
  1783. white-space: nowrap;
  1784. position: relative;
  1785. z-index: 2;
  1786. }
  1787. .grid-text {
  1788. font-size: 14px;
  1789. color: #000000;
  1790. text-align: center;
  1791. padding-left: 30rpx;
  1792. padding-right: 30rpx;
  1793. padding-top: 20rpx;
  1794. padding-bottom: 20rpx;
  1795. }
  1796. .name {
  1797. flex: 0;
  1798. font-size: 14px;
  1799. color: #000000;
  1800. overflow: hidden;
  1801. text-overflow: ellipsis;
  1802. white-space: nowrap;
  1803. }
  1804. .table-item {
  1805. overflow: hidden;
  1806. text-overflow: ellipsis;
  1807. white-space: nowrap;
  1808. }
  1809. .block-iv {
  1810. width: 20px;
  1811. height: 20px;
  1812. }
  1813. .table {
  1814. width: 100%;
  1815. border-radius: 8rpx;
  1816. background: #FFFFFF;
  1817. /* border: 1rpx solid #EFEFEF; */
  1818. font-size: 28rpx;
  1819. margin-top: 40rpx;
  1820. }
  1821. .felx-row {
  1822. width: 100%;
  1823. display: flex;
  1824. justify-content: space-between;
  1825. align-items: center;
  1826. }
  1827. .h-tr {
  1828. box-sizing: border-box;
  1829. display: flex;
  1830. flex-direction: row;
  1831. flex-wrap: nowrap;
  1832. justify-content: center;
  1833. align-items: center;
  1834. align-content: center;
  1835. border-color: #ccc;
  1836. border-style: solid;
  1837. border-width: 0;
  1838. border-width: 1px;
  1839. color: #3d7dd7;
  1840. }
  1841. .h-td {
  1842. box-sizing: border-box;
  1843. padding: 3px;
  1844. word-break: break-all;
  1845. border-color: #ccc;
  1846. border-style: solid;
  1847. border-width: 1px;
  1848. border-right-width: 1px;
  1849. display: flex;
  1850. flex-direction: row;
  1851. flex-wrap: nowrap;
  1852. justify-content: center;
  1853. align-items: center;
  1854. align-content: center;
  1855. min-height: 64rpx;
  1856. }
  1857. .LouCeng {
  1858. font-size: 30rpx;
  1859. background-color: #4a4b52;
  1860. color: #FFEB3B;
  1861. font-weight: bold;
  1862. }
  1863. .Fang {
  1864. width: 100%;
  1865. display: inline-block;
  1866. line-height: 50rpx;
  1867. text-align: center;
  1868. margin-right: 10px;
  1869. margin-bottom: 10px;
  1870. background-color: red;
  1871. }
  1872. .HuaDongBiao {
  1873. display: flex;
  1874. flex-direction: column-reverse;
  1875. position: relative;
  1876. }
  1877. .NeiRong {
  1878. display: flex;
  1879. flex-wrap: nowrap;
  1880. }
  1881. .NeiRong :last-child {
  1882. margin-right: 0 !important;
  1883. }
  1884. .ShiGongZhong {
  1885. background-color: #5bd3ff;
  1886. color: #000;
  1887. }
  1888. .WeiShiGong {
  1889. background-color: #ffc881;
  1890. color: #000;
  1891. }
  1892. .JunGong {
  1893. background-color: #80d9ae;
  1894. color: #000;
  1895. }
  1896. .container {
  1897. display: flex;
  1898. margin-left: 10px;
  1899. width: 100%;
  1900. margin-top: 10px;
  1901. margin-right: 10px;
  1902. justify-content: space-between;
  1903. }
  1904. .notice {
  1905. margin: 20rpx;
  1906. padding: 20rpx;
  1907. background: #FFFFFF;
  1908. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  1909. border-radius: 10rpx;
  1910. }
  1911. .text {
  1912. border-left: 15rpx solid #3857F3;
  1913. padding-left: 20rpx;
  1914. }
  1915. .share {
  1916. width: 100%;
  1917. height: 100%;
  1918. }
  1919. .share-box {
  1920. width: 100%;
  1921. height: 100%;
  1922. position: fixed;
  1923. top: 0rpx;
  1924. left: 0rpx;
  1925. bottom: 0rpx;
  1926. right: 0rpx;
  1927. background-color: rgba(0, 0, 0, 0.4);
  1928. transition: .3s;
  1929. z-index: 999;
  1930. }
  1931. .share-show {
  1932. transition: all 0.3s ease;
  1933. transform: translateY(0%) !important;
  1934. }
  1935. .scroll-Y {
  1936. height: 350rpx;
  1937. }
  1938. .share-item {
  1939. position: fixed;
  1940. left: 0;
  1941. bottom: 0;
  1942. width: 100%;
  1943. height: auto;
  1944. background-color: #FFFFFF;
  1945. transition: all 0.3s ease;
  1946. transform: translateY(100%);
  1947. z-index: 1999;
  1948. border-top-left-radius: 40rpx;
  1949. border-top-right-radius: 40rpx;
  1950. .share-to {
  1951. width: 100%;
  1952. height: 3rem;
  1953. display: flex;
  1954. justify-content: center;
  1955. align-items: center;
  1956. &::after {
  1957. content: '';
  1958. width: 240rpx;
  1959. height: 0rpx;
  1960. border-top: 1px solid #E4E7ED;
  1961. -webkit-transform: scaleY(0.5);
  1962. transform: scaleY(0.5);
  1963. margin-left: 30rpx;
  1964. }
  1965. &::before {
  1966. content: '';
  1967. width: 240rpx;
  1968. height: 0rpx;
  1969. border-top: 1px solid #E4E7ED;
  1970. -webkit-transform: scaleY(0.5);
  1971. transform: scaleY(0.5);
  1972. margin-right: 30rpx;
  1973. }
  1974. }
  1975. .content {
  1976. width: 100%;
  1977. height: 50%;
  1978. display: flex;
  1979. flex-wrap: wrap;
  1980. .block {
  1981. width: 100%;
  1982. display: flex;
  1983. flex-direction: column;
  1984. justify-content: center;
  1985. align-items: center;
  1986. height: 80rpx;
  1987. text {
  1988. margin-top: 16rpx;
  1989. font-size: 28rpx;
  1990. color: #606266;
  1991. }
  1992. }
  1993. }
  1994. .cancel {
  1995. width: 100%;
  1996. height: 3rem;
  1997. display: flex;
  1998. justify-content: center;
  1999. align-items: center;
  2000. border-top: 1rpx solid #E4E7ED;
  2001. }
  2002. }
  2003. .background {
  2004. // border: 15px solid hsla(0, 0%, 100%, .5);
  2005. background: white;
  2006. background-clip: padding-box;
  2007. padding: 20rpx;
  2008. border-radius: 20rpx;
  2009. margin: 20rpx 10rpx;
  2010. /*从padding开始往外面裁剪背景*/
  2011. }
  2012. </style>