statistics.vue 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705
  1. <template>
  2. <view>
  3. <view v-if="isLeader=='sys_user'">
  4. <scroll-view>
  5. <view class="view-bg">
  6. <text class="title-txt">工程用料统计</text>
  7. <view>
  8. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  9. <view class="uni-list-cell-left">
  10. 行政区
  11. </view>
  12. <view class="uni-list-cell-db">
  13. <view v-if="this.isEmpty(this.XZQValue.dictValue)" style="margin-top: 10;"
  14. @click="pickerShow('xzq')">
  15. <span style="color: darkgray;">请选择行政区</span>
  16. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  17. </view>
  18. <view v-else style="margin-top: 10;" @click="pickerShow('xzq')">
  19. <span style="color: black;">{{XZQValue.dictLabel}}</span>
  20. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  25. <view class="uni-list-cell-left">
  26. 小区
  27. </view>
  28. <view class="uni-list-cell-db">
  29. <view v-if="this.isEmpty(this.XQValue.id)" style="margin-top: 10;"
  30. @click="pickerShow('xq')">
  31. <span style="color: darkgray;">请选择小区</span>
  32. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  33. </view>
  34. <view v-else style="margin-top: 10;" @click="pickerShow('xq')">
  35. <span style="color: black;">{{XQValue.name}}</span>
  36. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  41. <view class="uni-list-cell-left">
  42. 材料
  43. </view>
  44. <view class="uni-list-cell-db">
  45. <view v-if="this.isEmpty(this.materialValue.name)" style="margin-top: 10;"
  46. @click="pickerShow('cz')">
  47. <span style="color: darkgray;">请选择材料</span>
  48. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  49. </view>
  50. <view v-else style="display: flex;align-items: center; justify-content: flex-end;">
  51. <view style="margin-top: 10; " @click="pickerShow('cz')">
  52. <span style="color: black;">{{materialValue.name}}</span>
  53. <!-- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image> -->
  54. </view>
  55. <image :src="loadImgSrc('icon_close.png')"
  56. style=" width: 15px; height: 15px;margin-left:20rpx ;margin-right: -20rpx;"
  57. @click="clearMaterialInfo">
  58. </image>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  63. <view class="uni-list-cell-left">
  64. 规格
  65. </view>
  66. <view class="uni-list-cell-db">
  67. <view v-if="this.isEmpty(this.specificationValue.name)" style="margin-top: 10;"
  68. @click="pickerShow('gg')">
  69. <span style="color: darkgray;">请选择规格</span>
  70. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  71. </view>
  72. <view v-else style="display: flex;align-items: center; justify-content: flex-end;">
  73. <view style="margin-top: 10;" @click="pickerShow('gg')">
  74. <span style="color: black;">{{specificationValue.name}}</span>
  75. <!-- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image> -->
  76. </view>
  77. <image :src="loadImgSrc('icon_close.png')"
  78. style=" width: 15px; height: 15px;margin-left:20rpx ;margin-right: -20rpx;"
  79. @click="clearSpecificationInfo">
  80. </image>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="table">
  86. <view class="felx-row">
  87. <view class="h-tr" style="flex: 1">名称</view>
  88. <view class="h-tr" style="flex: 1">材料</view>
  89. <view class="h-tr" style="flex: 1;align-items: center;">预计用量</view>
  90. <view class="h-tr" style="flex: 1">实际用量</view>
  91. </view>
  92. </view>
  93. <view class="felx-row" v-for="(item, index) in materialUsageList" :key="index">
  94. <view class="h-td" style="flex: 1">{{ item.realityQuality }}</view>
  95. <view class="h-td" style="flex: 1">{{ item.realitySpecifications }}</view>
  96. <view class="h-td" style="flex: 1">{{ item.estimatedSize }}</view>
  97. <view class="h-td" style="flex: 1">{{ item.realitySize }}</view>
  98. </view>
  99. </view>
  100. <view class="view-bg" style="margin-bottom: 40rpx;">
  101. <text class="title-txt">工程进度统计</text>
  102. <view>
  103. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  104. <view class="uni-list-cell-left">
  105. 行政区
  106. </view>
  107. <view class="uni-list-cell-db">
  108. <view v-if="this.isEmpty(this.XZQValue2.dictValue)" style="margin-top: 10;"
  109. @click="pickerShow('xzq2')">
  110. <span style="color: darkgray;">请选择行政区</span>
  111. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  112. </view>
  113. <view v-else style="margin-top: 10;" @click="pickerShow('xzq2')">
  114. <span style="color: black;">{{XZQValue2.dictLabel}}</span>
  115. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  120. <view class="uni-list-cell-left"> 小区</view>
  121. <view class="uni-list-cell-db">
  122. <view v-if="this.isEmpty(this.XQValue2.id)" style="margin-top: 10;"
  123. @click="pickerShow('xq2')">
  124. <span style="color: darkgray;">请选择小区</span>
  125. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  126. </view>
  127. <view v-else style="margin-top: 10;" @click="pickerShow('xq2')">
  128. <span style="color: black;">{{XQValue2.name}}</span>
  129. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  130. </view>
  131. </view>
  132. </view>
  133. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  134. <view class="uni-list-cell-left">楼栋</view>
  135. <view class="uni-list-cell-db">
  136. <view v-if="this.isEmpty(this.LDValue2.id)" style="margin-top: 10;"
  137. @click="pickerShow('ld2')">
  138. <span style="color: darkgray;">请选择楼栋</span>
  139. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  140. </view>
  141. <view style="margin-top: 10;" @click="pickerShow('ld2')">
  142. <span style="color: black;">{{LDValue2.name}}</span>
  143. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  144. </view>
  145. </view>
  146. </view>
  147. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  148. <view class="uni-list-cell-left">单元</view>
  149. <view class="uni-list-cell-db">
  150. <view v-if="this.isEmpty(this.DYValue2.id)" style="margin-top: 10;"
  151. @click="pickerShow('dy2')">
  152. <span style="color: darkgray;">请选择单元</span>
  153. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  154. </view>
  155. <view v-else style="margin-top: 10;" @click="pickerShow('dy2')">
  156. <span style="color: black;">{{DYValue2.name}}</span>
  157. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. <image :src="loadImgSrc('lou-img-bg.png')" style="width: 110%;
  163. height: 121px;
  164. position: absolute;
  165. bottom: 15px;
  166. left: -5px;
  167. z-index: 1;
  168. "></image>
  169. <scroll-view :scroll-x="true" class="view_bg_build" v-if="roomList.length > 0">
  170. <view class="HuaDongBiao">
  171. <view class="NeiRong" v-for="(item,index) in roomList" :key="index">
  172. <view class="Fang" v-for="(item2, index2) in roomList[index]" :key="index2">
  173. <view v-if="item2.roomStatus=='施工中'" class="ShiGongZhong" @click="goHistory(item2)">
  174. {{ item2.roomName }}
  175. </view>
  176. <view v-else-if="item2.roomStatus=='未施工'" class="WeiShiGong">{{ item2.roomName }}
  177. </view>
  178. <view v-else class="JunGong" @click="goHistory(item2)">{{ item2.roomName }}</view>
  179. </view>
  180. </view>
  181. </view>
  182. <view style=" width: 48rpx;height: 63rpx;background: #C7EAFF; position:relative; left: 50%; transform:
  183. translateX(-50%); bottom: -10rpx;">
  184. </view>
  185. </scroll-view>
  186. <view v-if="roomList.length == 0" style="padding:50rpx;text-align: center;">暂无数据</view>
  187. <view style="align-items: center; margin-top: 20rpx;">
  188. <view style="display: flex;align-items: center;justify-content:center">
  189. <image class="block-iv" :src="loadImgSrc('ic_legend.png')"></image>
  190. <text style="margin-right: 20px;margin-left: 5px;">图例: </text>
  191. <div class="block-iv" style="background-color: #80d9ae;"></div>
  192. <text style="margin-right: 20px;margin-left: 5px;">竣工</text>
  193. <div class="block-iv" style="background-color: #5bd3ff;"></div>
  194. <text style="margin-right: 20px;margin-left: 5px;">施工中</text>
  195. <div class="block-iv" style="background-color: #ffc881;"></div>
  196. <text style="margin-right: 20px;margin-left: 5px;">未施工</text>
  197. </view>
  198. </view>
  199. </view>
  200. </scroll-view>
  201. </view>
  202. <view v-else-if="isLeader=='app_user'">
  203. <!-- <view class="grid-body">
  204. <view class="Grid">
  205. <view class="Grid-Item" v-for="item in List" :key="item.id" @click="changeTab(item.id)"
  206. hover-class="click-hover" hover-start-time="50" hover-stay-time="50"
  207. v-if="userRole.includes(item.title)">
  208. <button class="icon-item" v-if="item.title == '民用工程'">民用工程</button>
  209. <button class="icon-item" v-if="item.title == '工业工程'">工业工程</button>
  210. <button class="icon-item" v-if="item.title == '市政工程'">市政工程</button>
  211. <button class="icon-item" v-if="item.title == '危险作业工程'">危险作业工程</button>
  212. <button class="icon-item" v-if="item.title == '顶管工程'">顶管工程</button>
  213. <button class="icon-item" v-if="item.title == '基建工程'">基建工程</button>
  214. <button class="icon-item" v-if="item.title == '开栓'">开栓</button>
  215. </view>
  216. </view>
  217. </view> -->
  218. <view class="background">
  219. <view>
  220. <view
  221. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  222. 筛选
  223. <image v-if="change==false" :src="loadImgSrc('icon_user_open.png')" @click='change1'
  224. style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  225. </image>
  226. <image v-if="change==true" :src="loadImgSrc('icon_user_close.png')" @click='change1'
  227. style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  228. </image>
  229. </view>
  230. </view>
  231. <view v-show="change" style="padding-right: 10px;">
  232. <view class="uni-list">
  233. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  234. <view class="uni-list-cell-left">
  235. 工程项
  236. </view>
  237. <view v-if="this.isEmpty(this.EngineeringValue)" class="uni-list-cell-db"
  238. style="margin-top: 10;" @click="pickerShow('gcx')">
  239. <span style="color: darkgray;">请选择工程项</span>
  240. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  241. </view>
  242. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gcx')">
  243. <span style="color: black;">{{EngineeringValue}}</span>
  244. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  245. </view>
  246. </view>
  247. </view>
  248. <view v-if="EngineeringValue=='民用工程'||EngineeringValue=='开栓'">
  249. <view class="uni-list">
  250. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  251. <view>
  252. 行政区
  253. </view>
  254. <view v-if="this.isEmpty(this.XZQValue3.dictValue)" style="margin-top: 10;"
  255. @click="pickerShow('xzq3')">
  256. <span style="color: darkgray;">请选择行政区</span>
  257. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  258. </view>
  259. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  260. @click="pickerShow('xzq3')">
  261. <span style="color: black;">{{XZQValue3.dictLabel}}</span>
  262. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  263. </view>
  264. </view>
  265. </view>
  266. <view class="uni-list">
  267. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  268. <view>
  269. 小区
  270. </view>
  271. <view v-if="this.isEmpty(this.XQValue3.id)" class="uni-list-cell-db"
  272. style="margin-top: 10;" @click="pickerShow('xq3')">
  273. <span style="color: darkgray;">请选择小区</span>
  274. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  275. </view>
  276. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  277. @click="pickerShow('xq3')">
  278. <span style="color: black;">{{XQValue3.name}}</span>
  279. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  280. </view>
  281. </view>
  282. </view>
  283. <view class="uni-list">
  284. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  285. <view class="uni-list-cell-left">
  286. 楼栋
  287. </view>
  288. <view v-if="this.isEmpty(this.LDValue3.id)" class="uni-list-cell-db"
  289. style="margin-top: 10;" @click="pickerShow('ld3')">
  290. <span style="color: darkgray;">请选择楼栋</span>
  291. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  292. </view>
  293. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  294. @click="pickerShow('ld3')">
  295. <span style="color: black;">{{LDValue3.name}}</span>
  296. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  297. </view>
  298. </view>
  299. </view>
  300. <view class="uni-list" style="margin-top: 10;">
  301. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  302. <view class="uni-list-cell-left">
  303. 单元
  304. </view>
  305. <view v-if="this.isEmpty(this.DYValue3.id)" class="uni-list-cell-db"
  306. style="margin-top: 10;" @click="pickerShow('dy3')">
  307. <span style="color: darkgray;">请选择单元</span>
  308. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  309. </view>
  310. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  311. @click="pickerShow('dy3')">
  312. <span style="color: black;">{{DYValue3.name}}</span>
  313. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  314. </view>
  315. </view>
  316. </view>
  317. <view class="uni-list">
  318. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  319. <view class="uni-list-cell-left">
  320. 房间
  321. </view>
  322. <view v-if="this.isEmpty(this.FJValue3.id)" class="uni-list-cell-db"
  323. style="margin-top: 10;" @click="pickerShow('fj3')">
  324. <span style="color: darkgray;">请选择房间</span>
  325. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  326. </view>
  327. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  328. @click="pickerShow('fj3')">
  329. <span style="color: black;">{{FJValue3.name}}</span>
  330. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  331. </view>
  332. </view>
  333. </view>
  334. <view class="uni-list" v-if="EngineeringValue=='民用工程'">
  335. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  336. <view class="uni-list-cell-left">
  337. 工程类型
  338. </view>
  339. <view v-if="this.isEmpty(this.ProjectType.dictValue)" class="uni-list-cell-db"
  340. style="margin-top: 10;" @click="pickerShow('gclx')">
  341. <span style="color: darkgray;">请选择工程类型</span>
  342. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  343. </view>
  344. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  345. @click="pickerShow('gclx')">
  346. <span style="color: black;">{{ProjectType.dictLabel}}</span>
  347. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  348. </view>
  349. </view>
  350. </view>
  351. </view>
  352. <view v-if="EngineeringValue!='开栓'">
  353. <view class="container" style="border-bottom: 1px solid #f8f8f8;"
  354. v-if="EngineeringValue!='民用工程'">
  355. <view class="uni-list-cell-left">
  356. 工程名称
  357. </view>
  358. <view class="uni-list-cell-db" style="margin-top: 10;">
  359. <input class="uni-input" type="text" v-model="EngineeringName" maxlength="80"
  360. placeholder="请输入工程名称"
  361. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  362. </view>
  363. </view>
  364. <view class="uni-list"
  365. v-if="EngineeringValue=='工业工程'||EngineeringValue=='带气封堵施工'||EngineeringValue=='民用工程'">
  366. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  367. <view class="uni-list-cell-left">
  368. 工程分类
  369. </view>
  370. <view v-if="this.isEmpty(this.ProjectClassification.dictValue)" class="uni-list-cell-db"
  371. style="margin-top: 10;" @click="pickerShow('gcfl')">
  372. <span style="color: darkgray;">请选择工程分类</span>
  373. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  374. </view>
  375. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  376. @click="pickerShow('gcfl')">
  377. <span style="color: black;">{{ProjectClassification.dictLabel}}</span>
  378. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  379. </view>
  380. </view>
  381. </view>
  382. <view class="uni-list"
  383. v-if="EngineeringValue=='市政工程'||EngineeringValue=='顶管工程'||EngineeringValue=='民用工程'||EngineeringValue=='基建工程'">
  384. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  385. <view class="uni-list-cell-left">
  386. 工程步骤
  387. </view>
  388. <view v-if="this.isEmpty(this.ProjectSteps.dictValue)" class="uni-list-cell-db"
  389. style="margin-top: 10;" @click="pickerShow('gcbz')">
  390. <span style="color: darkgray;">请选择工程步骤</span>
  391. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  392. </view>
  393. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  394. @click="pickerShow('gcbz')">
  395. <span style="color: black;">{{ProjectSteps.dictLabel}}</span>
  396. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  397. </view>
  398. </view>
  399. </view>
  400. </view>
  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.ReviewStatus.dictValue)" class="uni-list-cell-db"
  407. style="margin-top: 10;" @click="pickerShow('shzt')">
  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('shzt')">
  412. <span style="color: black;">{{ReviewStatus.dictLabel}}</span>
  413. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  414. </view>
  415. </view>
  416. </view>
  417. <button class="tj-btn" style="margin: 40rpx 90rpx;" @click="serch"> 搜索</button>
  418. </view>
  419. </view>
  420. <cc-pullScroolView class="pullScrollView" ref="pullScroll" :pullDown="pullDown" :isDownLoading="true">
  421. <view class="notice" v-for="(item,index) in list" :key="index">
  422. <view class="justify-content" @click="chooseNode(item)">
  423. <view v-if="EngineeringValue=='民用工程'">
  424. <view class="font-forty">
  425. {{item.areaName+item.buildingName+item.unitName+item.houseName+(item.enginType=='new_built'? '-新建':'-旧改')+'-'+item.enginClassificationName}}
  426. </view>
  427. <view class="font-twenty-eight gray" v-for="(state,stateIndex) in item.nodeReViewStateList"
  428. :key="stateIndex" v-if="state.Type!='开栓'">
  429. {{state.Type}}-{{state.state == 1 ? '审核通过': (state.content == '暂未审核' ? '暂未审核':'审核未通过')}}
  430. <view v-if="state.content != '暂未审核'">原因:{{state.content}}</view>
  431. </view>
  432. </view>
  433. <view v-if="EngineeringValue=='开栓'">
  434. <view class="font-forty">
  435. {{item.areaName+item.buildingName+item.unitName+item.houseName}}
  436. </view>
  437. <view class="font-twenty-eight gray">
  438. {{item.state == 0 ? '审核不通过': (item.state == 1?'审核通过':'未审核')}}
  439. </view>
  440. </view>
  441. <view class="font-twenty-eight gray">
  442. {{item.createTime}}
  443. </view>
  444. </view>
  445. </view>
  446. </cc-pullScroolView>
  447. </view>
  448. <view class="share">
  449. <view :class="{'share-box': shareState}" @click="handleHiddenShare">
  450. </view>
  451. <view class="share-item" :class="{'share-show': shareState}">
  452. <view class="share-to">
  453. <text>请选择</text>
  454. </view>
  455. <scroll-view scroll-y="true" class="scroll-Y">
  456. <view class="content">
  457. <view class="block" v-for="(item, index) in typeList" :key="index" @click="showTypeSheet(item)"
  458. v-if="item.Type!='开栓'">
  459. <text>{{item.Type}}</text>
  460. </view>
  461. </view>
  462. </scroll-view>
  463. <view class="cancel" @click.stop="handleHiddenShare">
  464. <text>取消</text>
  465. </view>
  466. </view>
  467. </view>
  468. <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
  469. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  470. subtitleKey="id" v-model="name"></SelectPicker>
  471. <SelectPicker :list="dictOptions" @change="changeSelect" v-if="openDict" @close="closeDict" titleKey="dictLabel"
  472. subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  473. </view>
  474. </template>
  475. <script>
  476. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  477. import bottomSheet from '../../components/bottomSheet/bottomSheet.vue'
  478. import CCBProjectList from '../../uni_modules/cc-pullScroolView/components/cc-pullScroolView/cc-pullScroolView.vue';
  479. import {
  480. gethistoryList,
  481. getKShistoryList,
  482. } from '@/api/common'
  483. import {
  484. getUserType,
  485. getUserRole
  486. } from '@/utils/auth';
  487. import {
  488. getDicts
  489. } from "@/api/system/dict/data";
  490. import user from '@/store/modules/user'
  491. import {
  492. getAreaList,
  493. getBuildingList,
  494. getUnitList,
  495. getHousesList,
  496. getEnginMaterialQualityList,
  497. getEnginSpecificationsList,
  498. getMunicipalStatisticsData,
  499. getObtainRoomcCompletionInformationList,
  500. getRoomProjectId,
  501. getRoomProjectList,
  502. } from '@/api/common'
  503. export default {
  504. components: {
  505. SelectPicker,
  506. CCBProjectList,
  507. bottomSheet
  508. },
  509. data() {
  510. return {
  511. historyList: {}, //历史数据
  512. userRole: getUserRole(),
  513. tabValue: ['旧改', '新建'],
  514. tabIndex: 0,
  515. isLeader: '',
  516. list: [],
  517. newlist: [],
  518. pageSize: 10,
  519. totalNum: '',
  520. pageNum: 1,
  521. typeList: '',
  522. villageIndex: 0,
  523. specificationIndex: 0,
  524. materialIndex: 0,
  525. villageIndex2: 0,
  526. buildIndex: 0,
  527. unitIndex: 0,
  528. open: false,
  529. openDict: false,
  530. selectList: [],
  531. dictOptions: [],
  532. XQList: [],
  533. LDList: [],
  534. DYList: [],
  535. projectValue: {
  536. 'dictValue': '0'
  537. },
  538. XZQValue: {},
  539. XQValue: {},
  540. XQList2: [],
  541. LDList2: [],
  542. DYList2: [],
  543. XQList3: [],
  544. LDList3: [],
  545. DYList3: [],
  546. FJList3: [],
  547. projectValue2: {
  548. 'dictValue': '0'
  549. },
  550. EngineeringValue: '',
  551. EngineeringName: '',
  552. EngineeringList: [],
  553. shareState: false,
  554. XZQValue2: {},
  555. XQValue2: {},
  556. LDValue2: {},
  557. DYValue2: {},
  558. XZQValue3: {},
  559. XQValue3: {},
  560. LDValue3: {},
  561. DYValue3: {},
  562. FJValue3: {},
  563. ProjectType: {},
  564. ProjectClassification: {},
  565. ProjectSteps: {},
  566. ReviewStatus: {},
  567. change: false,
  568. specificationValue: {},
  569. specificationList: [],
  570. materialValue: {},
  571. materialList: [],
  572. materialUsageList: [],
  573. roomList: [],
  574. roomCount: 4,
  575. nodeId: '',
  576. nodeType: '',
  577. roomItem: {},
  578. roomId: '',
  579. }
  580. },
  581. created() {},
  582. onLoad() {
  583. this.isLeader = getUserType()
  584. this.EngineeringValue = this.userRole[0];
  585. if (this.isLeader == 'app_user') {
  586. this.changeTab();
  587. }
  588. },
  589. // 上拉加载
  590. onReachBottom() {
  591. if (this.pageNum * 10 >= this.totalNum) {
  592. } else {
  593. this.$refs.pullScroll.showUpLoading();
  594. this.pageNum++;
  595. this.requestData();
  596. }
  597. },
  598. methods: {
  599. goHistory(item) {
  600. this.roomItem = item;
  601. getDicts(item.enginCycle + '_indoor_engin').then(response => {
  602. this.typeList = response.data;
  603. let result = JSON.parse(JSON.stringify(this.typeList).replace(/dictValue/g, 'Type'));
  604. this.typeList = result;
  605. this.handleShowSheet();
  606. });
  607. },
  608. serch() {
  609. this.changeTab();
  610. },
  611. change1() {
  612. this.change = !this.change
  613. },
  614. isEmpty(str) {
  615. return (!str || 0 === str.length);
  616. },
  617. handleShowSheet() {
  618. this.shareState = true;
  619. },
  620. handleHiddenShare() {
  621. this.shareState = false;
  622. },
  623. chooseNode(item) {
  624. if (this.EngineeringValue == '民用工程') {
  625. this.typeList = item.nodeReViewStateList
  626. this.nodeId = item.id;
  627. this.nodeType = item.enginClassification;
  628. this.roomId = item.houseId;
  629. if (this.nodeType == 'bottom_leg') { //底腿
  630. let obj = {
  631. id: this.nodeId,
  632. type: item.Type
  633. };
  634. uni.navigateTo({
  635. url: '/pages/statistics/history_details_bottom_leg?params=' + encodeURIComponent(JSON
  636. .stringify(
  637. obj))
  638. })
  639. } else {
  640. this.handleShowSheet();
  641. }
  642. } else if (this.EngineeringValue == '开栓') {
  643. this.nodeId = item.id;
  644. let obj = {
  645. type: 'edit',
  646. id: this.nodeId,
  647. };
  648. uni.navigateTo({
  649. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  650. .stringify(
  651. obj))
  652. })
  653. }
  654. },
  655. showHistoryList() {
  656. this.$refs.refShare.handleShowShare();
  657. },
  658. showTypeSheet(item) {
  659. if (this.isLeader == 'sys_user') {
  660. let param = {
  661. areaId: this.roomItem.areaId,
  662. buildingId: this.roomItem.buildingId,
  663. unitId: this.roomItem.unitId,
  664. houseId: this.roomItem.roomId,
  665. enginCycle: this.projectValue2.dictValue, // 工程周期
  666. enginType: this.roomItem.enginCycle,
  667. enginClassification: 'indoor_engin', //写死 室内
  668. }
  669. getRoomProjectId(param).then(res => {
  670. if (res.code == '200') {
  671. if (res.data != null) {
  672. getRoomProjectList(res.data.id, item.Type).then(res => {
  673. if (res.data.zEngineeringNodeBo != null) {
  674. this.historyList = res.data
  675. this.showHistoryList();
  676. } else {
  677. this.$modal.msg("暂无历史信息")
  678. }
  679. })
  680. } else {
  681. this.$modal.msg("暂无工程信息")
  682. }
  683. } else {
  684. this.$modal.msg(res.msg)
  685. }
  686. })
  687. } else {
  688. let obj = {
  689. id: this.nodeId,
  690. type: item.Type,
  691. roomId: this.roomId,
  692. };
  693. this.handleHiddenShare();
  694. if (this.nodeType == 'indoor_engin') { //室内
  695. uni.navigateTo({
  696. url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
  697. .stringify(
  698. obj))
  699. })
  700. } else if (this.nodeType == 'overhead') { //架空
  701. uni.navigateTo({
  702. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  703. .stringify(
  704. obj))
  705. })
  706. } else if (this.nodeType == 'courtyard') { //庭院
  707. uni.navigateTo({
  708. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  709. .stringify(
  710. obj))
  711. })
  712. }
  713. }
  714. },
  715. pickerShow(e) {
  716. this.type = e;
  717. if (e == 'gcx') {
  718. this.open = true;
  719. this.EngineeringList = [];
  720. this.userRole.forEach((item, index) => {
  721. this.EngineeringList.push({
  722. 'id': index,
  723. 'name': item
  724. })
  725. });
  726. this.selectList = this.EngineeringList;
  727. } else if (e == 'gczq') {
  728. this.openDict = true;
  729. getDicts("engin_cycle").then(response => {
  730. this.dictOptions = response.data;
  731. });
  732. } else if (e == 'gclx') {
  733. this.openDict = true;
  734. getDicts('indoor_engin_type').then(response => {
  735. this.dictOptions = response.data;
  736. });
  737. } else if (e == 'gcfl') {
  738. if (this.isEmpty(this.ProjectType.dictValue)) {
  739. this.$modal.msg('请选择工程类型')
  740. } else {
  741. this.openDict = true;
  742. getDicts(this.ProjectType.dictValue).then(response => {
  743. this.dictOptions = response.data;
  744. });
  745. }
  746. } else if (e == 'gcbz') {
  747. if (this.isEmpty(this.ProjectClassification.dictValue)) {
  748. this.$modal.msg('请选择工程分类')
  749. } else {
  750. this.openDict = true;
  751. getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
  752. response => {
  753. this.dictOptions = response.data;
  754. });
  755. }
  756. } else if (e == 'shzt') {
  757. if (this.EngineeringValue == '民用工程') {
  758. if (this.isEmpty(this.ProjectSteps.dictValue)) {
  759. this.$modal.msg('请选择工程步骤')
  760. } else {
  761. this.openDict = true;
  762. getDicts('state_options').then(
  763. response => {
  764. this.dictOptions = response.data;
  765. });
  766. }
  767. } else {
  768. this.openDict = true;
  769. getDicts('state_options').then(
  770. response => {
  771. this.dictOptions = response.data;
  772. });
  773. }
  774. } else if (e == 'xzq') {
  775. if (this.isEmpty(this.projectValue.dictValue)) {
  776. this.$modal.msg('请选择工程周期')
  777. } else {
  778. this.openDict = true;
  779. getDicts("district").then(response => {
  780. this.dictOptions = response.data;
  781. });
  782. }
  783. } else if (e == 'xq') {
  784. if (this.isEmpty(this.XZQValue.dictValue)) {
  785. this.$modal.msg('请选择行政区')
  786. } else {
  787. this.open = true;
  788. this.selectList = this.XQList;
  789. }
  790. } else if (e == 'ld') {
  791. if (this.isEmpty(this.XQValue.id)) {
  792. this.$modal.msg('请选择小区')
  793. } else {
  794. this.open = true;
  795. this.selectList = this.LDList;
  796. }
  797. } else if (e == 'dy') {
  798. if (this.isEmpty(this.LDValue.id)) {
  799. this.$modal.msg('请选择楼栋')
  800. } else {
  801. this.open = true;
  802. this.selectList = this.DYList;
  803. }
  804. } else if (e == 'gczq2') {
  805. this.openDict = true;
  806. getDicts("engin_cycle").then(response => {
  807. this.dictOptions = response.data;
  808. });
  809. } else if (e == 'xzq2' || e == 'xzq3') {
  810. if (this.isEmpty(this.projectValue2.dictValue)) {
  811. this.$modal.msg('请选择工程周期')
  812. } else {
  813. this.openDict = true;
  814. getDicts("district").then(response => {
  815. this.dictOptions = response.data;
  816. });
  817. }
  818. } else if (e == 'xq2') {
  819. if (this.isEmpty(this.XZQValue2.dictValue)) {
  820. this.$modal.msg('请选择行政区')
  821. } else {
  822. this.open = true;
  823. this.selectList = this.XQList2;
  824. }
  825. } else if (e == 'ld2') {
  826. if (this.isEmpty(this.XQValue2.id)) {
  827. this.$modal.msg('请选择小区')
  828. } else {
  829. this.open = true;
  830. this.selectList = this.LDList2;
  831. }
  832. } else if (e == 'dy2') {
  833. if (this.isEmpty(this.LDValue2.id)) {
  834. this.$modal.msg('请选择楼栋')
  835. } else {
  836. this.open = true;
  837. this.selectList = this.DYList2;
  838. }
  839. } else if (e == 'xq3') {
  840. if (this.isEmpty(this.XZQValue3.dictValue)) {
  841. this.$modal.msg('请选择行政区')
  842. } else {
  843. this.open = true;
  844. this.selectList = this.XQList3;
  845. }
  846. } else if (e == 'ld3') {
  847. if (this.isEmpty(this.XQValue3.id)) {
  848. this.$modal.msg('请选择小区')
  849. } else {
  850. this.open = true;
  851. this.selectList = this.LDList3;
  852. }
  853. } else if (e == 'dy3') {
  854. if (this.isEmpty(this.LDValue2.id)) {
  855. this.$modal.msg('请选择楼栋')
  856. } else {
  857. this.open = true;
  858. this.selectList = this.DYList3;
  859. }
  860. } else if (e == 'fj3') {
  861. if (this.isEmpty(this.LDValue3.id)) {
  862. this.$modal.msg('请选择楼栋')
  863. } else {
  864. this.open = true;
  865. this.selectList = this.FJList3;
  866. }
  867. } else if (e == 'gg') {
  868. if (this.isEmpty(this.materialValue.id)) {
  869. this.$modal.msg('请选择材料')
  870. } else {
  871. this.open = true;
  872. this.selectList = this.materialList;
  873. }
  874. } else if (e == 'cz') {
  875. this.open = true;
  876. getEnginMaterialQualityList("民用工程").then(response => {
  877. this.selectList = response.data;
  878. });
  879. }
  880. },
  881. changeSelect(item, index) {
  882. this.open = false;
  883. this.openDict = false;
  884. if (this.type == 'gcx') {
  885. this.EngineeringValue = item.name
  886. this.changeTab();
  887. } else if (this.type == 'xzq') {
  888. this.XZQValue = item;
  889. this.XQValue = '';
  890. this.LDValue = '';
  891. this.DYValue = '';
  892. this.FJValue = '';
  893. getAreaList(item.dictValue).then(res => {
  894. this.XQList = res.data;
  895. })
  896. } else if (this.type == 'gczq') {
  897. this.projectValue = item
  898. } else if (this.type == 'gclx') {
  899. this.ProjectType = item
  900. this.ProjectClassification = '';
  901. this.ProjectSteps = '';
  902. this.ReviewStatus = '';
  903. } else if (this.type == 'gcfl') {
  904. this.ProjectClassification = item
  905. this.ProjectSteps = '';
  906. this.ReviewStatus = '';
  907. } else if (this.type == 'gcbz') {
  908. this.ProjectSteps = item
  909. this.ReviewStatus = '';
  910. } else if (this.type == 'shzt') {
  911. this.ReviewStatus = item
  912. } else if (this.type == 'xq') {
  913. this.XQValue = item;
  914. this.LDValue = '';
  915. this.DYValue = '';
  916. this.FJValue = '';
  917. this.queryMaterialsUsedList();
  918. } else if (this.type == 'ld') {
  919. this.LDValue = item;
  920. this.DYValue = '';
  921. this.FJValue = '';
  922. getUnitList(item.id).then(res => {
  923. this.DYList = res.data
  924. })
  925. } else if (this.type == 'dy') {
  926. this.DYValue = item;
  927. } else if (this.type == 'gczq2') {
  928. this.projectValue2 = item
  929. } else if (this.type == 'xzq2') {
  930. this.XZQValue2 = item;
  931. this.XQValue2 = '';
  932. this.LDValue2 = '';
  933. this.DYValue2 = '';
  934. this.FJValue2 = '';
  935. getAreaList(item.dictValue).then(res => {
  936. this.XQList2 = res.data;
  937. })
  938. } else if (this.type == 'xzq3') {
  939. this.XZQValue3 = item;
  940. this.XQValue3 = '';
  941. this.LDValue3 = '';
  942. this.DYValue3 = '';
  943. this.FJValue3 = '';
  944. getAreaList(item.dictValue).then(res => {
  945. this.XQList3 = res.data;
  946. })
  947. } else if (this.type == 'xq2') {
  948. this.XQValue2 = item;
  949. this.LDValue2 = '';
  950. this.DYValue2 = '';
  951. this.FJValue2 = '';
  952. getBuildingList(item.id).then(res => {
  953. this.LDList2 = res.data
  954. })
  955. } else if (this.type == 'xq3') {
  956. this.XQValue3 = item;
  957. this.LDValue3 = '';
  958. this.DYValue3 = '';
  959. this.FJValue3 = '';
  960. getBuildingList(item.id).then(res => {
  961. this.LDList3 = res.data
  962. })
  963. } else if (this.type == 'ld2') {
  964. this.LDValue2 = item;
  965. this.DYValue2 = '';
  966. this.FJValue2 = '';
  967. getUnitList(item.id).then(res => {
  968. this.DYList2 = res.data
  969. })
  970. } else if (this.type == 'ld3') {
  971. this.LDValue3 = item;
  972. this.DYValue3 = '';
  973. this.FJValue3 = '';
  974. getUnitList(item.id).then(res => {
  975. this.DYList3 = res.data
  976. })
  977. } else if (this.type == 'dy3') {
  978. this.DYValue3 = item;
  979. this.FJValue3 = '';
  980. getHousesList(item.id).then(res => {
  981. this.FJList3 = res.data
  982. })
  983. } else if (this.type == 'dy2') {
  984. this.DYValue2 = item;
  985. this.queryProjectStatisticsList();
  986. } else if (this.type == 'gg') {
  987. this.specificationValue = item;
  988. this.queryMaterialsUsedList();
  989. } else if (this.type == 'cz') {
  990. this.materialValue = item;
  991. this.specificationValue = '';
  992. this.queryMaterialsUsedList();
  993. getEnginSpecificationsList(item.id).then(res => {
  994. this.materialList = res.data
  995. })
  996. }
  997. },
  998. close(e) {
  999. this.open = false
  1000. },
  1001. closeDict(e) {
  1002. this.openDict = false
  1003. },
  1004. queryMaterialsUsedList() {
  1005. if (this.isEmpty(this.XQValue.id)) {
  1006. this.$modal.msg('请选择小区')
  1007. return;
  1008. }
  1009. let param = {
  1010. enginCycle: this.projectValue.dictValue, //工程周期
  1011. areaId: this.XQValue.id,
  1012. realityQuality: this.materialValue.id,
  1013. realitySpecifications: this.specificationValue.id,
  1014. };
  1015. getMunicipalStatisticsData(param).then(res => {
  1016. this.materialUsageList = res.data;
  1017. })
  1018. },
  1019. queryProjectStatisticsList() {
  1020. let param = {
  1021. enginCycle: this.projectValue.dictValue, //工程周期
  1022. areaId: this.XQValue2.id,
  1023. buildingId: this.LDValue2.id,
  1024. unitId: this.DYValue2.id,
  1025. };
  1026. getObtainRoomcCompletionInformationList(param).then(res => {
  1027. this.roomList = res.data[0].roomStatusVoList;
  1028. this.roomCount = res.data[0].roomStatusVoList.length;
  1029. })
  1030. },
  1031. getColorByStatus(status) {
  1032. if (this.isEmpty(status)) {
  1033. return "#fff";
  1034. }
  1035. if (status == '施工中') {
  1036. return "#5bd3ff";
  1037. } else if (status == '未施工') {
  1038. return "#ffc881";
  1039. } else if (status == '竣工') {
  1040. return "#80d9ae";
  1041. }
  1042. },
  1043. clearMaterialInfo() {
  1044. this.materialValue = '';
  1045. this.specificationValue = '';
  1046. this.queryMaterialsUsedList();
  1047. },
  1048. clearSpecificationInfo() {
  1049. this.specificationValue = '';
  1050. this.queryMaterialsUsedList();
  1051. },
  1052. pullDown(pullScroll) {
  1053. this.pageNum = 1;
  1054. setTimeout(() => {
  1055. this.requestData(pullScroll);
  1056. }, 1000);
  1057. },
  1058. getList() {
  1059. let myThis = this;
  1060. this.$nextTick(() => {
  1061. myThis.$refs.pullScroll.refresh();
  1062. });
  1063. },
  1064. changeTab() {
  1065. this.pageSize = 10;
  1066. this.totalNum = '';
  1067. this.pageNum = 1;
  1068. this.requestData();
  1069. },
  1070. requestData() {
  1071. uni.showLoading()
  1072. if (this.EngineeringValue == '民用工程') {
  1073. let type = ''
  1074. let param = {
  1075. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1076. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1077. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1078. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1079. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1080. enginType: this.ProjectType.dictValue == undefined ? '' : this.ProjectType.dictValue,
  1081. enginCycle: '0',
  1082. enginClassification: this.ProjectClassification.dictValue == undefined ? '' : this
  1083. .ProjectClassification.dictValue,
  1084. type: this.ProjectSteps.dictValue == undefined ? '' : this.ProjectSteps.dictValue,
  1085. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1086. createBy: user.state.name,
  1087. pageNum: this.pageNum,
  1088. pageSize: this.pageSize
  1089. }
  1090. gethistoryList(param).then(res => {
  1091. this.totalNum = res.total
  1092. if (res.code == '200') {
  1093. uni.hideLoading()
  1094. if (res.rows.length !== 0) {
  1095. if (this.pageNum == 1) {
  1096. this.list = [];
  1097. this.list = res.rows
  1098. } else {
  1099. this.list = this.list.concat(res.rows)
  1100. }
  1101. if (this.pageNum * 10 >= this.totalNum) {
  1102. this.$refs.pullScroll.finish();
  1103. } else {
  1104. this.$refs.pullScroll.success();
  1105. }
  1106. } else {
  1107. this.list = [];
  1108. this.$refs.pullScroll.empty();
  1109. }
  1110. } else {
  1111. this.$modal.msg(res.msg + "")
  1112. this.$refs.pullScroll.error();
  1113. }
  1114. })
  1115. } else if (this.EngineeringValue == '开栓') {
  1116. let type = ''
  1117. let param = {
  1118. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1119. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1120. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1121. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1122. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1123. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1124. createBy: user.state.name,
  1125. pageNum: this.pageNum,
  1126. pageSize: this.pageSize
  1127. }
  1128. getKShistoryList(param).then(res => {
  1129. this.totalNum = res.total
  1130. if (res.code == '200') {
  1131. uni.hideLoading()
  1132. if (res.rows.length !== 0) {
  1133. if (this.pageNum == 1) {
  1134. this.list = [];
  1135. this.list = res.rows
  1136. } else {
  1137. this.list = this.list.concat(res.rows)
  1138. }
  1139. if (this.pageNum * 10 >= this.totalNum) {
  1140. this.$refs.pullScroll.finish();
  1141. } else {
  1142. this.$refs.pullScroll.success();
  1143. }
  1144. } else {
  1145. this.list = [];
  1146. this.$refs.pullScroll.empty();
  1147. }
  1148. } else {
  1149. this.$modal.msg(res.msg + "")
  1150. this.$refs.pullScroll.error();
  1151. }
  1152. })
  1153. } else if (this.EngineeringValue == '顶管工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  1154. '危险工程' || this.EngineeringValue == '市政工程' || this.EngineeringValue == '工业工程') {
  1155. //type 1 = 顶管, 2=基建 3=危险 4= 市政 5= 工业
  1156. }
  1157. },
  1158. }
  1159. }
  1160. </script>
  1161. <style lang="scss">
  1162. .to-right-icon {
  1163. width: 15px;
  1164. height: 15px;
  1165. position: absolute;
  1166. top: 50%;
  1167. transform: translateY(-50%);
  1168. }
  1169. .uni-media-list {
  1170. width: 100%;
  1171. }
  1172. .no-click {
  1173. pointer-events: none;
  1174. }
  1175. .marginLeft5 {
  1176. margin-left: 5px;
  1177. }
  1178. .title-txt {
  1179. font-size: 15px;
  1180. font-weight: bold;
  1181. color: black;
  1182. padding: 20rpx 0;
  1183. }
  1184. .content-txt {
  1185. font-size: 10px;
  1186. font-weight: bold;
  1187. color: black;
  1188. }
  1189. .view-bg {
  1190. margin-left: 8px;
  1191. margin-right: 8px;
  1192. margin-top: 8px;
  1193. background-color: #fff;
  1194. border-radius: 5px;
  1195. padding: 20px;
  1196. display: flex;
  1197. flex-direction: column;
  1198. }
  1199. .uni-list {
  1200. background-color: #FFFFFF;
  1201. position: relative;
  1202. width: 100%;
  1203. display: flex;
  1204. flex-direction: column;
  1205. }
  1206. .uni-list-cell {
  1207. display: flex;
  1208. align-items: center;
  1209. justify-content: space-between;
  1210. padding: 10px 0;
  1211. position: relative;
  1212. }
  1213. .uni-list-cell-left {
  1214. white-space: nowrap;
  1215. font-size: 28rpx;
  1216. }
  1217. .centered {
  1218. text-align: center;
  1219. background-color: #e2f4ff;
  1220. }
  1221. .text {
  1222. background-color: #e2f4ff;
  1223. height: 20rpx;
  1224. }
  1225. .view_bg_build {
  1226. background-color: #e2f4ff;
  1227. padding: 10px 10px 0 10px;
  1228. margin: 0 auto;
  1229. border: 1px solid #5bd3ff;
  1230. white-space: nowrap;
  1231. position: relative;
  1232. z-index: 2;
  1233. }
  1234. .grid-text {
  1235. font-size: 14px;
  1236. color: #000000;
  1237. text-align: center;
  1238. padding-left: 30rpx;
  1239. padding-right: 30rpx;
  1240. padding-top: 20rpx;
  1241. padding-bottom: 20rpx;
  1242. }
  1243. .name {
  1244. flex: 0;
  1245. font-size: 14px;
  1246. color: #000000;
  1247. overflow: hidden;
  1248. text-overflow: ellipsis;
  1249. white-space: nowrap;
  1250. }
  1251. .table-item {
  1252. overflow: hidden;
  1253. text-overflow: ellipsis;
  1254. white-space: nowrap;
  1255. }
  1256. .block-iv {
  1257. width: 20px;
  1258. height: 20px;
  1259. }
  1260. .table {
  1261. width: 100%;
  1262. border-radius: 8rpx;
  1263. background: #FFFFFF;
  1264. /* border: 1rpx solid #EFEFEF; */
  1265. font-size: 28rpx;
  1266. margin-top: 40rpx;
  1267. }
  1268. .felx-row {
  1269. width: 100%;
  1270. display: flex;
  1271. justify-content: space-between;
  1272. align-items: center;
  1273. }
  1274. .h-tr {
  1275. box-sizing: border-box;
  1276. display: flex;
  1277. flex-direction: row;
  1278. flex-wrap: nowrap;
  1279. justify-content: center;
  1280. align-items: center;
  1281. align-content: center;
  1282. border-color: #ccc;
  1283. border-style: solid;
  1284. border-width: 0;
  1285. border-width: 1px;
  1286. color: #3d7dd7;
  1287. }
  1288. .h-td {
  1289. box-sizing: border-box;
  1290. padding: 3px;
  1291. word-break: break-all;
  1292. border-color: #ccc;
  1293. border-style: solid;
  1294. border-width: 1px;
  1295. border-right-width: 1px;
  1296. display: flex;
  1297. flex-direction: row;
  1298. flex-wrap: nowrap;
  1299. justify-content: center;
  1300. align-items: center;
  1301. align-content: center;
  1302. min-height: 64rpx;
  1303. }
  1304. .LouCeng {
  1305. font-size: 30rpx;
  1306. background-color: #4a4b52;
  1307. color: #FFEB3B;
  1308. font-weight: bold;
  1309. }
  1310. .Fang {
  1311. width: 100%;
  1312. display: inline-block;
  1313. line-height: 50rpx;
  1314. text-align: center;
  1315. margin-right: 10px;
  1316. margin-bottom: 10px;
  1317. background-color: red;
  1318. }
  1319. .HuaDongBiao {
  1320. display: flex;
  1321. flex-direction: column-reverse;
  1322. position: relative;
  1323. }
  1324. .NeiRong {
  1325. display: flex;
  1326. flex-wrap: nowrap;
  1327. }
  1328. .NeiRong :last-child {
  1329. margin-right: 0 !important;
  1330. }
  1331. .ShiGongZhong {
  1332. background-color: #5bd3ff;
  1333. color: #000;
  1334. }
  1335. .WeiShiGong {
  1336. background-color: #ffc881;
  1337. color: #000;
  1338. }
  1339. .JunGong {
  1340. background-color: #80d9ae;
  1341. color: #000;
  1342. }
  1343. .container {
  1344. display: flex;
  1345. margin-left: 10px;
  1346. width: 100%;
  1347. margin-top: 10px;
  1348. margin-right: 10px;
  1349. justify-content: space-between;
  1350. }
  1351. .notice {
  1352. margin: 20rpx;
  1353. padding: 20rpx;
  1354. background: #FFFFFF;
  1355. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  1356. border-radius: 10rpx;
  1357. }
  1358. .text {
  1359. border-left: 15rpx solid #3857F3;
  1360. padding-left: 20rpx;
  1361. }
  1362. .share {
  1363. width: 100%;
  1364. height: 100%;
  1365. }
  1366. .share-box {
  1367. width: 100%;
  1368. height: 100%;
  1369. position: fixed;
  1370. top: 0rpx;
  1371. left: 0rpx;
  1372. bottom: 0rpx;
  1373. right: 0rpx;
  1374. background-color: rgba(0, 0, 0, 0.4);
  1375. transition: .3s;
  1376. z-index: 999;
  1377. }
  1378. .share-show {
  1379. transition: all 0.3s ease;
  1380. transform: translateY(0%) !important;
  1381. }
  1382. .scroll-Y {
  1383. height: 350rpx;
  1384. }
  1385. .share-item {
  1386. position: fixed;
  1387. left: 0;
  1388. bottom: 0;
  1389. width: 100%;
  1390. height: auto;
  1391. background-color: #FFFFFF;
  1392. transition: all 0.3s ease;
  1393. transform: translateY(100%);
  1394. z-index: 1999;
  1395. border-top-left-radius: 40rpx;
  1396. border-top-right-radius: 40rpx;
  1397. .share-to {
  1398. width: 100%;
  1399. height: 3rem;
  1400. display: flex;
  1401. justify-content: center;
  1402. align-items: center;
  1403. &::after {
  1404. content: '';
  1405. width: 240rpx;
  1406. height: 0rpx;
  1407. border-top: 1px solid #E4E7ED;
  1408. -webkit-transform: scaleY(0.5);
  1409. transform: scaleY(0.5);
  1410. margin-left: 30rpx;
  1411. }
  1412. &::before {
  1413. content: '';
  1414. width: 240rpx;
  1415. height: 0rpx;
  1416. border-top: 1px solid #E4E7ED;
  1417. -webkit-transform: scaleY(0.5);
  1418. transform: scaleY(0.5);
  1419. margin-right: 30rpx;
  1420. }
  1421. }
  1422. .content {
  1423. width: 100%;
  1424. height: 50%;
  1425. display: flex;
  1426. flex-wrap: wrap;
  1427. .block {
  1428. width: 100%;
  1429. display: flex;
  1430. flex-direction: column;
  1431. justify-content: center;
  1432. align-items: center;
  1433. height: 80rpx;
  1434. text {
  1435. margin-top: 16rpx;
  1436. font-size: 28rpx;
  1437. color: #606266;
  1438. }
  1439. }
  1440. }
  1441. .cancel {
  1442. width: 100%;
  1443. height: 3rem;
  1444. display: flex;
  1445. justify-content: center;
  1446. align-items: center;
  1447. border-top: 1rpx solid #E4E7ED;
  1448. }
  1449. }
  1450. .background {
  1451. // border: 15px solid hsla(0, 0%, 100%, .5);
  1452. background: white;
  1453. background-clip: padding-box;
  1454. padding: 20rpx;
  1455. border-radius: 20rpx;
  1456. margin: 20rpx 10rpx;
  1457. /*从padding开始往外面裁剪背景*/
  1458. }
  1459. </style>