statistics.vue 49 KB

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