statistics.vue 49 KB

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