statistics.vue 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674
  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="uni-list">
  354. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  355. <view class="uni-list-cell-left">
  356. 工程分类
  357. </view>
  358. <view v-if="this.isEmpty(this.ProjectClassification.dictValue)" class="uni-list-cell-db"
  359. style="margin-top: 10;" @click="pickerShow('gcfl')">
  360. <span style="color: darkgray;">请选择工程分类</span>
  361. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  362. </view>
  363. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  364. @click="pickerShow('gcfl')">
  365. <span style="color: black;">{{ProjectClassification.dictLabel}}</span>
  366. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  367. </view>
  368. </view>
  369. </view>
  370. <view class="uni-list">
  371. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  372. <view class="uni-list-cell-left">
  373. 工程步骤
  374. </view>
  375. <view v-if="this.isEmpty(this.ProjectSteps.dictValue)" class="uni-list-cell-db"
  376. style="margin-top: 10;" @click="pickerShow('gcbz')">
  377. <span style="color: darkgray;">请选择工程步骤</span>
  378. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  379. </view>
  380. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  381. @click="pickerShow('gcbz')">
  382. <span style="color: black;">{{ProjectSteps.dictLabel}}</span>
  383. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  384. </view>
  385. </view>
  386. </view>
  387. <view class="uni-list">
  388. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  389. <view class="uni-list-cell-left">
  390. 审核状态
  391. </view>
  392. <view v-if="this.isEmpty(this.ReviewStatus.dictValue)" class="uni-list-cell-db"
  393. style="margin-top: 10;" @click="pickerShow('shzt')">
  394. <span style="color: darkgray;">请选择审核状态</span>
  395. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  396. </view>
  397. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  398. @click="pickerShow('shzt')">
  399. <span style="color: black;">{{ReviewStatus.dictLabel}}</span>
  400. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  401. </view>
  402. </view>
  403. </view>
  404. </view>
  405. <button class="tj-btn" style="margin: 40rpx 90rpx;" @click="serch"> 搜索</button>
  406. </view>
  407. </view>
  408. <cc-pullScroolView class="pullScrollView" ref="pullScroll" :pullDown="pullDown" :isDownLoading="true">
  409. <view class="notice" v-for="(item,index) in list" :key="index">
  410. <view class="justify-content" @click="chooseNode(item)">
  411. <view v-if="EngineeringValue=='民用工程'">
  412. <view class="font-forty">
  413. {{item.areaName+item.buildingName+item.unitName+item.houseName+(item.enginType=='new_built'? '-新建':'-旧改')+'-'+item.enginClassificationName}}
  414. </view>
  415. <view class="font-twenty-eight gray" v-for="(state,stateIndex) in item.nodeReViewStateList"
  416. :key="stateIndex" v-if="state.Type!='开栓'">
  417. {{state.Type}}-{{state.state == 1 ? '审核通过': (state.content == '暂未审核' ? '暂未审核':'审核未通过')}}
  418. <view v-if="state.content != '暂未审核'">原因:{{state.content}}</view>
  419. </view>
  420. </view>
  421. <view v-if="EngineeringValue=='开栓'">
  422. <view class="font-forty">
  423. {{item.areaName+item.buildingName+item.unitName+item.houseName}}
  424. </view>
  425. <view class="font-twenty-eight gray">
  426. {{item.state == 0 ? '未审核': (item.state == 1?'审核通过':'审核不通过')}}
  427. </view>
  428. </view>
  429. <view class="font-twenty-eight gray">
  430. {{item.createTime}}
  431. </view>
  432. </view>
  433. </view>
  434. </cc-pullScroolView>
  435. </view>
  436. <view class="share">
  437. <view :class="{'share-box': shareState}" @click="handleHiddenShare">
  438. </view>
  439. <view class="share-item" :class="{'share-show': shareState}">
  440. <view class="share-to">
  441. <text>请选择</text>
  442. </view>
  443. <scroll-view scroll-y="true" class="scroll-Y">
  444. <view class="content">
  445. <view class="block" v-for="(item, index) in typeList" :key="index" @click="showTypeSheet(item)"
  446. v-if="item.Type!='开栓'">
  447. <text>{{item.Type}}</text>
  448. </view>
  449. </view>
  450. </scroll-view>
  451. <view class="cancel" @click.stop="handleHiddenShare">
  452. <text>取消</text>
  453. </view>
  454. </view>
  455. </view>
  456. <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
  457. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  458. subtitleKey="id" v-model="name"></SelectPicker>
  459. <SelectPicker :list="dictOptions" @change="changeSelect" v-if="openDict" @close="closeDict" titleKey="dictLabel"
  460. subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  461. </view>
  462. </template>
  463. <script>
  464. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  465. import bottomSheet from '../../components/bottomSheet/bottomSheet.vue'
  466. import CCBProjectList from '../../uni_modules/cc-pullScroolView/components/cc-pullScroolView/cc-pullScroolView.vue';
  467. import {
  468. gethistoryList,
  469. getKShistoryList,
  470. } from '@/api/common'
  471. import {
  472. getUserType,
  473. getUserRole
  474. } from '@/utils/auth';
  475. import {
  476. getDicts
  477. } from "@/api/system/dict/data";
  478. import user from '@/store/modules/user'
  479. import {
  480. getAreaList,
  481. getBuildingList,
  482. getUnitList,
  483. getHousesList,
  484. getEnginMaterialQualityList,
  485. getEnginSpecificationsList,
  486. getMunicipalStatisticsData,
  487. getObtainRoomcCompletionInformationList,
  488. getRoomProjectId,
  489. getRoomProjectList,
  490. } from '@/api/common'
  491. export default {
  492. components: {
  493. SelectPicker,
  494. CCBProjectList,
  495. bottomSheet
  496. },
  497. data() {
  498. return {
  499. historyList: {}, //历史数据
  500. userRole: getUserRole(),
  501. tabValue: ['旧改', '新建'],
  502. tabIndex: 0,
  503. isLeader: '',
  504. list: [],
  505. newlist: [],
  506. pageSize: 10,
  507. totalNum: '',
  508. pageNum: 1,
  509. typeList: '',
  510. villageIndex: 0,
  511. specificationIndex: 0,
  512. materialIndex: 0,
  513. villageIndex2: 0,
  514. buildIndex: 0,
  515. unitIndex: 0,
  516. open: false,
  517. openDict: false,
  518. selectList: [],
  519. dictOptions: [],
  520. XQList: [],
  521. LDList: [],
  522. DYList: [],
  523. projectValue: {
  524. 'dictValue': '0'
  525. },
  526. XZQValue: {},
  527. XQValue: {},
  528. XQList2: [],
  529. LDList2: [],
  530. DYList2: [],
  531. XQList3: [],
  532. LDList3: [],
  533. DYList3: [],
  534. FJList3: [],
  535. projectValue2: {
  536. 'dictValue': '0'
  537. },
  538. EngineeringValue: '',
  539. EngineeringList: [],
  540. shareState: false,
  541. XZQValue2: {},
  542. XQValue2: {},
  543. LDValue2: {},
  544. DYValue2: {},
  545. XZQValue3: {},
  546. XQValue3: {},
  547. LDValue3: {},
  548. DYValue3: {},
  549. FJValue3: {},
  550. ProjectType: {},
  551. ProjectClassification: {},
  552. ProjectSteps: {},
  553. ReviewStatus: {},
  554. change: false,
  555. specificationValue: {},
  556. specificationList: [],
  557. materialValue: {},
  558. materialList: [],
  559. materialUsageList: [],
  560. roomList: [],
  561. roomCount: 4,
  562. nodeId: '',
  563. nodeType: '',
  564. roomItem: {},
  565. roomId: '',
  566. }
  567. },
  568. created() {},
  569. onLoad() {
  570. this.isLeader = getUserType()
  571. this.EngineeringValue = this.userRole[0];
  572. if (this.isLeader == 'app_user') {
  573. this.changeTab();
  574. }
  575. },
  576. // 上拉加载
  577. onReachBottom() {
  578. if (this.pageNum * 10 >= this.totalNum) {
  579. } else {
  580. this.$refs.pullScroll.showUpLoading();
  581. this.pageNum++;
  582. this.requestData();
  583. }
  584. },
  585. methods: {
  586. goHistory(item) {
  587. this.roomItem = item;
  588. getDicts(item.enginCycle + '_indoor_engin').then(response => {
  589. this.typeList = response.data;
  590. let result = JSON.parse(JSON.stringify(this.typeList).replace(/dictValue/g, 'Type'));
  591. this.typeList = result;
  592. this.handleShowSheet();
  593. });
  594. },
  595. serch() {
  596. this.changeTab();
  597. },
  598. change1() {
  599. this.change = !this.change
  600. },
  601. isEmpty(str) {
  602. return (!str || 0 === str.length);
  603. },
  604. handleShowSheet() {
  605. this.shareState = true;
  606. },
  607. handleHiddenShare() {
  608. this.shareState = false;
  609. },
  610. chooseNode(item) {
  611. if (this.EngineeringValue == '民用工程') {
  612. this.typeList = item.nodeReViewStateList
  613. this.nodeId = item.id;
  614. this.nodeType = item.enginClassification;
  615. this.roomId = item.houseId;
  616. if (this.nodeType == 'bottom_leg') { //底腿
  617. let obj = {
  618. id: this.nodeId,
  619. type: item.Type
  620. };
  621. uni.navigateTo({
  622. url: '/pages/statistics/history_details_bottom_leg?params=' + encodeURIComponent(JSON
  623. .stringify(
  624. obj))
  625. })
  626. } else {
  627. this.handleShowSheet();
  628. }
  629. } else if (this.EngineeringValue == '开栓') {
  630. this.nodeId = item.id;
  631. let obj = {
  632. type: 'edit',
  633. id: this.nodeId,
  634. };
  635. uni.navigateTo({
  636. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  637. .stringify(
  638. obj))
  639. })
  640. }
  641. },
  642. showHistoryList() {
  643. this.$refs.refShare.handleShowShare();
  644. },
  645. showTypeSheet(item) {
  646. if (this.isLeader == 'sys_user') {
  647. let param = {
  648. areaId: this.roomItem.areaId,
  649. buildingId: this.roomItem.buildingId,
  650. unitId: this.roomItem.unitId,
  651. houseId: this.roomItem.roomId,
  652. enginCycle: this.projectValue2.dictValue, // 工程周期
  653. enginType: this.roomItem.enginCycle,
  654. enginClassification: 'indoor_engin', //写死 室内
  655. }
  656. getRoomProjectId(param).then(res => {
  657. if (res.code == '200') {
  658. if (res.data != null) {
  659. getRoomProjectList(res.data.id, item.Type).then(res => {
  660. if (res.data.zEngineeringNodeBo != null) {
  661. this.historyList = res.data
  662. this.showHistoryList();
  663. } else {
  664. this.$modal.msg("暂无历史信息")
  665. }
  666. })
  667. } else {
  668. this.$modal.msg("暂无工程信息")
  669. }
  670. } else {
  671. this.$modal.msg(res.msg)
  672. }
  673. })
  674. } else {
  675. let obj = {
  676. id: this.nodeId,
  677. type: item.Type,
  678. roomId: this.roomId,
  679. };
  680. this.handleHiddenShare();
  681. if (this.nodeType == 'indoor_engin') { //室内
  682. uni.navigateTo({
  683. url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
  684. .stringify(
  685. obj))
  686. })
  687. } else if (this.nodeType == 'overhead') { //架空
  688. uni.navigateTo({
  689. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  690. .stringify(
  691. obj))
  692. })
  693. } else if (this.nodeType == 'courtyard') { //庭院
  694. uni.navigateTo({
  695. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  696. .stringify(
  697. obj))
  698. })
  699. }
  700. }
  701. },
  702. pickerShow(e) {
  703. this.type = e;
  704. if (e == 'gcx') {
  705. this.open = true;
  706. this.EngineeringList = [];
  707. this.userRole.forEach((item, index) => {
  708. this.EngineeringList.push({
  709. 'id': index,
  710. 'name': item
  711. })
  712. });
  713. this.selectList = this.EngineeringList;
  714. } else if (e == 'gczq') {
  715. this.openDict = true;
  716. getDicts("engin_cycle").then(response => {
  717. this.dictOptions = response.data;
  718. });
  719. } else if (e == 'gclx') {
  720. this.openDict = true;
  721. getDicts('indoor_engin_type').then(response => {
  722. this.dictOptions = response.data;
  723. });
  724. } else if (e == 'gcfl') {
  725. if (this.isEmpty(this.ProjectType.dictValue)) {
  726. this.$modal.msg('请选择工程类型')
  727. } else {
  728. this.openDict = true;
  729. getDicts(this.ProjectType.dictValue).then(response => {
  730. this.dictOptions = response.data;
  731. });
  732. }
  733. } else if (e == 'gcbz') {
  734. if (this.isEmpty(this.ProjectClassification.dictValue)) {
  735. this.$modal.msg('请选择工程分类')
  736. } else {
  737. this.openDict = true;
  738. getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
  739. response => {
  740. this.dictOptions = response.data;
  741. });
  742. }
  743. } else if (e == 'shzt') {
  744. if (this.isEmpty(this.ProjectSteps.dictValue)) {
  745. this.$modal.msg('请选择工程步骤')
  746. } else {
  747. this.openDict = true;
  748. getDicts('state_options').then(
  749. response => {
  750. this.dictOptions = response.data;
  751. });
  752. }
  753. } else if (e == 'xzq') {
  754. if (this.isEmpty(this.projectValue.dictValue)) {
  755. this.$modal.msg('请选择工程周期')
  756. } else {
  757. this.openDict = true;
  758. getDicts("district").then(response => {
  759. this.dictOptions = response.data;
  760. });
  761. }
  762. } else if (e == 'xq') {
  763. if (this.isEmpty(this.XZQValue.dictValue)) {
  764. this.$modal.msg('请选择行政区')
  765. } else {
  766. this.open = true;
  767. this.selectList = this.XQList;
  768. }
  769. } else if (e == 'ld') {
  770. if (this.isEmpty(this.XQValue.id)) {
  771. this.$modal.msg('请选择小区')
  772. } else {
  773. this.open = true;
  774. this.selectList = this.LDList;
  775. }
  776. } else if (e == 'dy') {
  777. if (this.isEmpty(this.LDValue.id)) {
  778. this.$modal.msg('请选择楼栋')
  779. } else {
  780. this.open = true;
  781. this.selectList = this.DYList;
  782. }
  783. } else if (e == 'gczq2') {
  784. this.openDict = true;
  785. getDicts("engin_cycle").then(response => {
  786. this.dictOptions = response.data;
  787. });
  788. } else if (e == 'xzq2' || e == 'xzq3') {
  789. if (this.isEmpty(this.projectValue2.dictValue)) {
  790. this.$modal.msg('请选择工程周期')
  791. } else {
  792. this.openDict = true;
  793. getDicts("district").then(response => {
  794. this.dictOptions = response.data;
  795. });
  796. }
  797. } else if (e == 'xq2') {
  798. if (this.isEmpty(this.XZQValue2.dictValue)) {
  799. this.$modal.msg('请选择行政区')
  800. } else {
  801. this.open = true;
  802. this.selectList = this.XQList2;
  803. }
  804. } else if (e == 'ld2') {
  805. if (this.isEmpty(this.XQValue2.id)) {
  806. this.$modal.msg('请选择小区')
  807. } else {
  808. this.open = true;
  809. this.selectList = this.LDList2;
  810. }
  811. } else if (e == 'dy2') {
  812. if (this.isEmpty(this.LDValue2.id)) {
  813. this.$modal.msg('请选择楼栋')
  814. } else {
  815. this.open = true;
  816. this.selectList = this.DYList2;
  817. }
  818. } else if (e == 'xq3') {
  819. if (this.isEmpty(this.XZQValue3.dictValue)) {
  820. this.$modal.msg('请选择行政区')
  821. } else {
  822. this.open = true;
  823. this.selectList = this.XQList3;
  824. }
  825. } else if (e == 'ld3') {
  826. if (this.isEmpty(this.XQValue3.id)) {
  827. this.$modal.msg('请选择小区')
  828. } else {
  829. this.open = true;
  830. this.selectList = this.LDList3;
  831. }
  832. } else if (e == 'dy3') {
  833. if (this.isEmpty(this.LDValue2.id)) {
  834. this.$modal.msg('请选择楼栋')
  835. } else {
  836. this.open = true;
  837. this.selectList = this.DYList3;
  838. }
  839. } else if (e == 'fj3') {
  840. if (this.isEmpty(this.LDValue3.id)) {
  841. this.$modal.msg('请选择楼栋')
  842. } else {
  843. this.open = true;
  844. this.selectList = this.FJList3;
  845. }
  846. } else if (e == 'gg') {
  847. if (this.isEmpty(this.materialValue.id)) {
  848. this.$modal.msg('请选择材料')
  849. } else {
  850. this.open = true;
  851. this.selectList = this.materialList;
  852. }
  853. } else if (e == 'cz') {
  854. this.open = true;
  855. getEnginMaterialQualityList("民用工程").then(response => {
  856. this.selectList = response.data;
  857. });
  858. }
  859. },
  860. changeSelect(item, index) {
  861. this.open = false;
  862. this.openDict = false;
  863. if (this.type == 'gcx') {
  864. this.EngineeringValue = item.name
  865. this.changeTab();
  866. } else if (this.type == 'xzq') {
  867. this.XZQValue = item;
  868. this.XQValue = '';
  869. this.LDValue = '';
  870. this.DYValue = '';
  871. this.FJValue = '';
  872. getAreaList(item.dictValue).then(res => {
  873. this.XQList = res.data;
  874. })
  875. } else if (this.type == 'gczq') {
  876. this.projectValue = item
  877. } else if (this.type == 'gclx') {
  878. this.ProjectType = item
  879. this.ProjectClassification = '';
  880. this.ProjectSteps = '';
  881. this.ReviewStatus = '';
  882. } else if (this.type == 'gcfl') {
  883. this.ProjectClassification = item
  884. this.ProjectSteps = '';
  885. this.ReviewStatus = '';
  886. } else if (this.type == 'gcbz') {
  887. this.ProjectSteps = item
  888. this.ReviewStatus = '';
  889. } else if (this.type == 'shzt') {
  890. this.ReviewStatus = item
  891. } else if (this.type == 'xq') {
  892. this.XQValue = item;
  893. this.LDValue = '';
  894. this.DYValue = '';
  895. this.FJValue = '';
  896. this.queryMaterialsUsedList();
  897. } else if (this.type == 'ld') {
  898. this.LDValue = item;
  899. this.DYValue = '';
  900. this.FJValue = '';
  901. getUnitList(item.id).then(res => {
  902. this.DYList = res.data
  903. })
  904. } else if (this.type == 'dy') {
  905. this.DYValue = item;
  906. } else if (this.type == 'gczq2') {
  907. this.projectValue2 = item
  908. } else if (this.type == 'xzq2') {
  909. this.XZQValue2 = item;
  910. this.XQValue2 = '';
  911. this.LDValue2 = '';
  912. this.DYValue2 = '';
  913. this.FJValue2 = '';
  914. getAreaList(item.dictValue).then(res => {
  915. this.XQList2 = res.data;
  916. })
  917. } else if (this.type == 'xzq3') {
  918. this.XZQValue3 = item;
  919. this.XQValue3 = '';
  920. this.LDValue3 = '';
  921. this.DYValue3 = '';
  922. this.FJValue3 = '';
  923. getAreaList(item.dictValue).then(res => {
  924. this.XQList3 = res.data;
  925. })
  926. } else if (this.type == 'xq2') {
  927. this.XQValue2 = item;
  928. this.LDValue2 = '';
  929. this.DYValue2 = '';
  930. this.FJValue2 = '';
  931. getBuildingList(item.id).then(res => {
  932. this.LDList2 = res.data
  933. })
  934. } else if (this.type == 'xq3') {
  935. this.XQValue3 = item;
  936. this.LDValue3 = '';
  937. this.DYValue3 = '';
  938. this.FJValue3 = '';
  939. getBuildingList(item.id).then(res => {
  940. this.LDList3 = res.data
  941. })
  942. } else if (this.type == 'ld2') {
  943. this.LDValue2 = item;
  944. this.DYValue2 = '';
  945. this.FJValue2 = '';
  946. getUnitList(item.id).then(res => {
  947. this.DYList2 = res.data
  948. })
  949. } else if (this.type == 'ld3') {
  950. this.LDValue3 = item;
  951. this.DYValue3 = '';
  952. this.FJValue3 = '';
  953. getUnitList(item.id).then(res => {
  954. this.DYList3 = res.data
  955. })
  956. } else if (this.type == 'dy3') {
  957. this.DYValue3 = item;
  958. this.FJValue3 = '';
  959. getHousesList(item.id).then(res => {
  960. this.FJList3 = res.data
  961. })
  962. } else if (this.type == 'dy2') {
  963. this.DYValue2 = item;
  964. this.queryProjectStatisticsList();
  965. } else if (this.type == 'gg') {
  966. this.specificationValue = item;
  967. this.queryMaterialsUsedList();
  968. } else if (this.type == 'cz') {
  969. this.materialValue = item;
  970. this.specificationValue = '';
  971. this.queryMaterialsUsedList();
  972. getEnginSpecificationsList(item.id).then(res => {
  973. this.materialList = res.data
  974. })
  975. }
  976. },
  977. close(e) {
  978. this.open = false
  979. },
  980. closeDict(e) {
  981. this.openDict = false
  982. },
  983. queryMaterialsUsedList() {
  984. if (this.isEmpty(this.XQValue.id)) {
  985. this.$modal.msg('请选择小区')
  986. return;
  987. }
  988. let param = {
  989. enginCycle: this.projectValue.dictValue, //工程周期
  990. areaId: this.XQValue.id,
  991. realityQuality: this.materialValue.id,
  992. realitySpecifications: this.specificationValue.id,
  993. };
  994. getMunicipalStatisticsData(param).then(res => {
  995. this.materialUsageList = res.data;
  996. })
  997. },
  998. queryProjectStatisticsList() {
  999. let param = {
  1000. enginCycle: this.projectValue.dictValue, //工程周期
  1001. areaId: this.XQValue2.id,
  1002. buildingId: this.LDValue2.id,
  1003. unitId: this.DYValue2.id,
  1004. };
  1005. getObtainRoomcCompletionInformationList(param).then(res => {
  1006. this.roomList = res.data[0].roomStatusVoList;
  1007. this.roomCount = res.data[0].roomStatusVoList.length;
  1008. })
  1009. },
  1010. getColorByStatus(status) {
  1011. if (this.isEmpty(status)) {
  1012. return "#fff";
  1013. }
  1014. if (status == '施工中') {
  1015. return "#5bd3ff";
  1016. } else if (status == '未施工') {
  1017. return "#ffc881";
  1018. } else if (status == '竣工') {
  1019. return "#80d9ae";
  1020. }
  1021. },
  1022. clearMaterialInfo() {
  1023. this.materialValue = '';
  1024. this.specificationValue = '';
  1025. this.queryMaterialsUsedList();
  1026. },
  1027. clearSpecificationInfo() {
  1028. this.specificationValue = '';
  1029. this.queryMaterialsUsedList();
  1030. },
  1031. pullDown(pullScroll) {
  1032. this.pageNum = 1;
  1033. setTimeout(() => {
  1034. this.requestData(pullScroll);
  1035. }, 1000);
  1036. },
  1037. getList() {
  1038. let myThis = this;
  1039. this.$nextTick(() => {
  1040. myThis.$refs.pullScroll.refresh();
  1041. });
  1042. },
  1043. changeTab() {
  1044. this.pageSize = 10;
  1045. this.totalNum = '';
  1046. this.pageNum = 1;
  1047. this.requestData();
  1048. },
  1049. requestData() {
  1050. uni.showLoading()
  1051. if (this.EngineeringValue == '民用工程') {
  1052. let type = ''
  1053. let param = {
  1054. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1055. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1056. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1057. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1058. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1059. enginType: this.ProjectType.dictValue == undefined ? '' : this.ProjectType.dictValue,
  1060. enginCycle: '0',
  1061. enginClassification: this.ProjectClassification.dictValue == undefined ? '' : this
  1062. .ProjectClassification.dictValue,
  1063. type: this.ProjectSteps.dictValue == undefined ? '' : this.ProjectSteps.dictValue,
  1064. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1065. createBy: user.state.name,
  1066. pageNum: this.pageNum,
  1067. pageSize: this.pageSize
  1068. }
  1069. gethistoryList(param).then(res => {
  1070. this.totalNum = res.total
  1071. if (res.code == '200') {
  1072. uni.hideLoading()
  1073. if (res.rows.length !== 0) {
  1074. if (this.pageNum == 1) {
  1075. this.list = [];
  1076. this.list = res.rows
  1077. } else {
  1078. this.list = this.list.concat(res.rows)
  1079. }
  1080. if (this.pageNum * 10 >= this.totalNum) {
  1081. this.$refs.pullScroll.finish();
  1082. } else {
  1083. this.$refs.pullScroll.success();
  1084. }
  1085. } else {
  1086. this.list = [];
  1087. this.$refs.pullScroll.empty();
  1088. }
  1089. } else {
  1090. this.$modal.msg(res.msg + "")
  1091. this.$refs.pullScroll.error();
  1092. }
  1093. })
  1094. } else if (this.EngineeringValue == '开栓') {
  1095. let type = ''
  1096. let param = {
  1097. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1098. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1099. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1100. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1101. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1102. createBy: user.state.name,
  1103. pageNum: this.pageNum,
  1104. pageSize: this.pageSize
  1105. }
  1106. getKShistoryList(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. }
  1132. },
  1133. }
  1134. }
  1135. </script>
  1136. <style lang="scss">
  1137. .to-right-icon {
  1138. width: 15px;
  1139. height: 15px;
  1140. position: absolute;
  1141. top: 50%;
  1142. transform: translateY(-50%);
  1143. }
  1144. .uni-media-list {
  1145. width: 100%;
  1146. }
  1147. .no-click {
  1148. pointer-events: none;
  1149. }
  1150. .marginLeft5 {
  1151. margin-left: 5px;
  1152. }
  1153. .title-txt {
  1154. font-size: 15px;
  1155. font-weight: bold;
  1156. color: black;
  1157. padding: 20rpx 0;
  1158. }
  1159. .content-txt {
  1160. font-size: 10px;
  1161. font-weight: bold;
  1162. color: black;
  1163. }
  1164. .view-bg {
  1165. margin-left: 8px;
  1166. margin-right: 8px;
  1167. margin-top: 8px;
  1168. background-color: #fff;
  1169. border-radius: 5px;
  1170. padding: 20px;
  1171. display: flex;
  1172. flex-direction: column;
  1173. }
  1174. .uni-list {
  1175. background-color: #FFFFFF;
  1176. position: relative;
  1177. width: 100%;
  1178. display: flex;
  1179. flex-direction: column;
  1180. }
  1181. .uni-list-cell {
  1182. display: flex;
  1183. align-items: center;
  1184. justify-content: space-between;
  1185. padding: 10px 0;
  1186. position: relative;
  1187. }
  1188. .uni-list-cell-left {
  1189. white-space: nowrap;
  1190. font-size: 28rpx;
  1191. }
  1192. .centered {
  1193. text-align: center;
  1194. background-color: #e2f4ff;
  1195. }
  1196. .text {
  1197. background-color: #e2f4ff;
  1198. height: 20rpx;
  1199. }
  1200. .view_bg_build {
  1201. background-color: #e2f4ff;
  1202. padding: 10px 10px 0 10px;
  1203. margin: 0 auto;
  1204. border: 1px solid #5bd3ff;
  1205. white-space: nowrap;
  1206. position: relative;
  1207. z-index: 2;
  1208. }
  1209. .grid-text {
  1210. font-size: 14px;
  1211. color: #000000;
  1212. text-align: center;
  1213. padding-left: 30rpx;
  1214. padding-right: 30rpx;
  1215. padding-top: 20rpx;
  1216. padding-bottom: 20rpx;
  1217. }
  1218. .name {
  1219. flex: 0;
  1220. font-size: 14px;
  1221. color: #000000;
  1222. overflow: hidden;
  1223. text-overflow: ellipsis;
  1224. white-space: nowrap;
  1225. }
  1226. .table-item {
  1227. overflow: hidden;
  1228. text-overflow: ellipsis;
  1229. white-space: nowrap;
  1230. }
  1231. .block-iv {
  1232. width: 20px;
  1233. height: 20px;
  1234. }
  1235. .table {
  1236. width: 100%;
  1237. border-radius: 8rpx;
  1238. background: #FFFFFF;
  1239. /* border: 1rpx solid #EFEFEF; */
  1240. font-size: 28rpx;
  1241. margin-top: 40rpx;
  1242. }
  1243. .felx-row {
  1244. width: 100%;
  1245. display: flex;
  1246. justify-content: space-between;
  1247. align-items: center;
  1248. }
  1249. .h-tr {
  1250. box-sizing: border-box;
  1251. display: flex;
  1252. flex-direction: row;
  1253. flex-wrap: nowrap;
  1254. justify-content: center;
  1255. align-items: center;
  1256. align-content: center;
  1257. border-color: #ccc;
  1258. border-style: solid;
  1259. border-width: 0;
  1260. border-width: 1px;
  1261. color: #3d7dd7;
  1262. }
  1263. .h-td {
  1264. box-sizing: border-box;
  1265. padding: 3px;
  1266. word-break: break-all;
  1267. border-color: #ccc;
  1268. border-style: solid;
  1269. border-width: 1px;
  1270. border-right-width: 1px;
  1271. display: flex;
  1272. flex-direction: row;
  1273. flex-wrap: nowrap;
  1274. justify-content: center;
  1275. align-items: center;
  1276. align-content: center;
  1277. min-height: 64rpx;
  1278. }
  1279. .LouCeng {
  1280. font-size: 30rpx;
  1281. background-color: #4a4b52;
  1282. color: #FFEB3B;
  1283. font-weight: bold;
  1284. }
  1285. .Fang {
  1286. width: 100%;
  1287. display: inline-block;
  1288. line-height: 50rpx;
  1289. text-align: center;
  1290. margin-right: 10px;
  1291. margin-bottom: 10px;
  1292. background-color: red;
  1293. }
  1294. .HuaDongBiao {
  1295. display: flex;
  1296. flex-direction: column-reverse;
  1297. position: relative;
  1298. }
  1299. .NeiRong {
  1300. display: flex;
  1301. flex-wrap: nowrap;
  1302. }
  1303. .NeiRong :last-child {
  1304. margin-right: 0 !important;
  1305. }
  1306. .ShiGongZhong {
  1307. background-color: #5bd3ff;
  1308. color: #000;
  1309. }
  1310. .WeiShiGong {
  1311. background-color: #ffc881;
  1312. color: #000;
  1313. }
  1314. .JunGong {
  1315. background-color: #80d9ae;
  1316. color: #000;
  1317. }
  1318. .container {
  1319. display: flex;
  1320. margin-left: 10px;
  1321. width: 100%;
  1322. margin-top: 10px;
  1323. margin-right: 10px;
  1324. justify-content: space-between;
  1325. }
  1326. .notice {
  1327. margin: 20rpx;
  1328. padding: 20rpx;
  1329. background: #FFFFFF;
  1330. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  1331. border-radius: 10rpx;
  1332. }
  1333. .text {
  1334. border-left: 15rpx solid #3857F3;
  1335. padding-left: 20rpx;
  1336. }
  1337. .share {
  1338. width: 100%;
  1339. height: 100%;
  1340. }
  1341. .share-box {
  1342. width: 100%;
  1343. height: 100%;
  1344. position: fixed;
  1345. top: 0rpx;
  1346. left: 0rpx;
  1347. bottom: 0rpx;
  1348. right: 0rpx;
  1349. background-color: rgba(0, 0, 0, 0.4);
  1350. transition: .3s;
  1351. z-index: 999;
  1352. }
  1353. .share-show {
  1354. transition: all 0.3s ease;
  1355. transform: translateY(0%) !important;
  1356. }
  1357. .scroll-Y {
  1358. height: 350rpx;
  1359. }
  1360. .share-item {
  1361. position: fixed;
  1362. left: 0;
  1363. bottom: 0;
  1364. width: 100%;
  1365. height: auto;
  1366. background-color: #FFFFFF;
  1367. transition: all 0.3s ease;
  1368. transform: translateY(100%);
  1369. z-index: 1999;
  1370. border-top-left-radius: 40rpx;
  1371. border-top-right-radius: 40rpx;
  1372. .share-to {
  1373. width: 100%;
  1374. height: 3rem;
  1375. display: flex;
  1376. justify-content: center;
  1377. align-items: center;
  1378. &::after {
  1379. content: '';
  1380. width: 240rpx;
  1381. height: 0rpx;
  1382. border-top: 1px solid #E4E7ED;
  1383. -webkit-transform: scaleY(0.5);
  1384. transform: scaleY(0.5);
  1385. margin-left: 30rpx;
  1386. }
  1387. &::before {
  1388. content: '';
  1389. width: 240rpx;
  1390. height: 0rpx;
  1391. border-top: 1px solid #E4E7ED;
  1392. -webkit-transform: scaleY(0.5);
  1393. transform: scaleY(0.5);
  1394. margin-right: 30rpx;
  1395. }
  1396. }
  1397. .content {
  1398. width: 100%;
  1399. height: 50%;
  1400. display: flex;
  1401. flex-wrap: wrap;
  1402. .block {
  1403. width: 100%;
  1404. display: flex;
  1405. flex-direction: column;
  1406. justify-content: center;
  1407. align-items: center;
  1408. height: 80rpx;
  1409. text {
  1410. margin-top: 16rpx;
  1411. font-size: 28rpx;
  1412. color: #606266;
  1413. }
  1414. }
  1415. }
  1416. .cancel {
  1417. width: 100%;
  1418. height: 3rem;
  1419. display: flex;
  1420. justify-content: center;
  1421. align-items: center;
  1422. border-top: 1rpx solid #E4E7ED;
  1423. }
  1424. }
  1425. .background {
  1426. // border: 15px solid hsla(0, 0%, 100%, .5);
  1427. background: white;
  1428. background-clip: padding-box;
  1429. padding: 20rpx;
  1430. border-radius: 20rpx;
  1431. margin: 20rpx 10rpx;
  1432. /*从padding开始往外面裁剪背景*/
  1433. }
  1434. </style>