statistics.vue 50 KB

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