statistics.vue 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331
  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. <view class="view-bg" style="margin-bottom: 40rpx;">
  201. <text class="title-txt">工业工程</text>
  202. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  203. <view class="uni-list-cell-left">工程名称</view>
  204. <view class="uni-list-cell-db">
  205. <view v-if="isEmpty(projectObj01.id)" style="margin-top: 10;"
  206. @click="getProjectTypeList('engineeringIndustry')">
  207. <span style="color: darkgray;">请选择工程</span>
  208. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  209. </view>
  210. <view v-else style="margin-top: 10;" @click="getProjectTypeList('engineeringIndustry')">
  211. <span style="color: black;">{{projectObj01.name}}</span>
  212. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  213. </view>
  214. </view>
  215. </view>
  216. <view v-if="!isEmpty(projectObj01.id)">
  217. <view class="table">
  218. <view class="felx-row">
  219. <view class="h-tr" style="flex: 1">名称</view>
  220. <view class="h-tr" style="flex: 1">实际用料</view>
  221. <view class="h-tr" style="flex: 1;align-items: center;">预计用料</view>
  222. <view class="h-tr" style="flex: 1">占比</view>
  223. </view>
  224. </view>
  225. <view class="felx-row">
  226. <view class="h-td" style="flex: 1">PE材料</view>
  227. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentagePE.actuality }}</view>
  228. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentagePE.anticipation }}
  229. </view>
  230. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentagePE.percentage }}
  231. </view>
  232. </view>
  233. <view class="felx-row">
  234. <view class="h-td" style="flex: 1">钢材</view>
  235. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentageIron.actuality }}
  236. </view>
  237. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentageIron.anticipation }}
  238. </view>
  239. <view class="h-td" style="flex: 1">{{ projectBody01.materialPercentageIron.percentage }}
  240. </view>
  241. </view>
  242. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  243. <view class="uni-list-cell-left">工程进度</view>
  244. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;"></view>
  245. </view>
  246. <view class="felx-row" v-for="(item, index) in projectBody01.nodeCheck" :key="index">
  247. <view class="h-td" style="flex: 1">{{ item.name }}</view>
  248. <view class="h-td" style="flex: 1" @click="industryItemClick(item)">{{ item.value }}</view>
  249. </view>
  250. </view>
  251. </view>
  252. <view class="view-bg" style="margin-bottom: 40rpx;">
  253. <text class="title-txt">市政工程</text>
  254. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  255. <view class="uni-list-cell-left">工程名称</view>
  256. <view class="uni-list-cell-db">
  257. <view v-if="isEmpty(projectObj02.id)" style="margin-top: 10;"
  258. @click="getProjectTypeList('engineeringMunicipal')">
  259. <span style="color: darkgray;">请选择工程</span>
  260. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  261. </view>
  262. <view v-else style="margin-top: 10;" @click="getProjectTypeList('engineeringMunicipal')">
  263. <span style="color: black;">{{projectObj02.name}}</span>
  264. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  265. </view>
  266. </view>
  267. </view>
  268. <view v-if="!isEmpty(projectObj02.id)">
  269. <view class="table">
  270. <view class="felx-row">
  271. <view class="h-tr" style="flex: 1">名称</view>
  272. <view class="h-tr" style="flex: 1">实际用料</view>
  273. <view class="h-tr" style="flex: 1;align-items: center;">预计用料</view>
  274. <view class="h-tr" style="flex: 1">占比</view>
  275. </view>
  276. </view>
  277. <view class="felx-row">
  278. <view class="h-td" style="flex: 1">PE材料</view>
  279. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentagePE.actuality }}</view>
  280. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentagePE.anticipation }}
  281. </view>
  282. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentagePE.percentage }}
  283. </view>
  284. </view>
  285. <view class="felx-row">
  286. <view class="h-td" style="flex: 1">钢材</view>
  287. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentageIron.actuality }}
  288. </view>
  289. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentageIron.anticipation }}
  290. </view>
  291. <view class="h-td" style="flex: 1">{{ projectBody02.materialPercentageIron.percentage }}
  292. </view>
  293. </view>
  294. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  295. <view class="uni-list-cell-left">工程进度</view>
  296. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;"></view>
  297. </view>
  298. <view class="felx-row" v-for="(item, index) in projectBody02.nodeCheck" :key="index">
  299. <view class="h-td" style="flex: 1">{{ item.name }}</view>
  300. <view class="h-td" style="flex: 1" @click="municipalItemClick(item)">{{ item.value }}</view>
  301. </view>
  302. </view>
  303. </view>
  304. <view class="view-bg" style="margin-bottom: 40rpx;">
  305. <text class="title-txt">顶管工程</text>
  306. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  307. <view class="uni-list-cell-left">工程名称</view>
  308. <view class="uni-list-cell-db">
  309. <view v-if="isEmpty(projectObj03.id)" style="margin-top: 10;"
  310. @click="getProjectTypeList('engineeringPipeJacking')">
  311. <span style="color: darkgray;">请选择工程</span>
  312. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  313. </view>
  314. <view v-else style="margin-top: 10;" @click="getProjectTypeList('engineeringPipeJacking')">
  315. <span style="color: black;">{{projectObj03.name}}</span>
  316. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  317. </view>
  318. </view>
  319. </view>
  320. <view v-if="!isEmpty(projectObj03.id)">
  321. <view class="table">
  322. <view class="felx-row">
  323. <view class="h-tr" style="flex: 1">名称</view>
  324. <view class="h-tr" style="flex: 1">实际用料</view>
  325. <view class="h-tr" style="flex: 1;align-items: center;">预计用料</view>
  326. <view class="h-tr" style="flex: 1">占比</view>
  327. </view>
  328. </view>
  329. <view class="felx-row">
  330. <view class="h-td" style="flex: 1">PE材料</view>
  331. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentagePE.actuality }}</view>
  332. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentagePE.anticipation }}
  333. </view>
  334. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentagePE.percentage }}
  335. </view>
  336. </view>
  337. <view class="felx-row">
  338. <view class="h-td" style="flex: 1">钢材</view>
  339. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentageIron.actuality }}
  340. </view>
  341. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentageIron.anticipation }}
  342. </view>
  343. <view class="h-td" style="flex: 1">{{ projectBody03.materialPercentageIron.percentage }}
  344. </view>
  345. </view>
  346. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  347. <view class="uni-list-cell-left">工程进度</view>
  348. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;"></view>
  349. </view>
  350. <view class="felx-row" v-for="(item, index) in projectBody03.nodeCheck" :key="index">
  351. <view class="h-td" style="flex: 1">{{ item.name }}</view>
  352. <view class="h-td" style="flex: 1" @click="topTubeItemClick(item)">{{ item.value }}</view>
  353. </view>
  354. </view>
  355. </view>
  356. <view class="view-bg" style="margin-bottom: 40rpx;">
  357. <text class="title-txt">碰口工程</text>
  358. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  359. <view class="uni-list-cell-left">工程名称</view>
  360. <view class="uni-list-cell-db">
  361. <view v-if="isEmpty(projectObj04.id)" style="margin-top: 10;"
  362. @click="getProjectTypeList('touchOperationEngineering')">
  363. <span style="color: darkgray;">请选择工程</span>
  364. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  365. </view>
  366. <view v-else style="margin-top: 10;"
  367. @click="getProjectTypeList('touchOperationEngineering')">
  368. <span style="color: black;">{{projectObj04.name}}</span>
  369. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  370. </view>
  371. </view>
  372. </view>
  373. <view v-if="!isEmpty(projectObj04.id)">
  374. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  375. <view class="uni-list-cell-left">工程进度</view>
  376. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;"></view>
  377. </view>
  378. <view class="felx-row" v-for="(item, index) in projectBody04.nodeCheck" :key="index">
  379. <view class="h-td" style="flex: 1">{{ item.name }}</view>
  380. <view class="h-td" style="flex: 1" @click="collisionItemClick(item)">{{ item.value }}</view>
  381. </view>
  382. </view>
  383. </view>
  384. </scroll-view>
  385. </view>
  386. <view v-else-if="isLeader=='app_user'">
  387. <view class="background">
  388. <view>
  389. <view
  390. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  391. 筛选
  392. <image v-if="change==false" :src="loadImgSrc('icon_user_open.png')" @click='change1'
  393. style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  394. </image>
  395. <image v-if="change==true" :src="loadImgSrc('icon_user_close.png')" @click='change1'
  396. style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  397. </image>
  398. </view>
  399. </view>
  400. <view v-show="change" style="padding-right: 10px;">
  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.EngineeringValue)" class="uni-list-cell-db"
  407. style="margin-top: 10;" @click="pickerShow('gcx')">
  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('gcx')">
  412. <span style="color: black;">{{EngineeringValue}}</span>
  413. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  414. </view>
  415. </view>
  416. </view>
  417. <view v-if="EngineeringValue=='民用工程'||EngineeringValue=='开栓'">
  418. <view class="uni-list">
  419. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  420. <view>
  421. 行政区
  422. </view>
  423. <view v-if="this.isEmpty(this.XZQValue3.dictValue)" style="margin-top: 10;"
  424. @click="pickerShow('xzq3')">
  425. <span style="color: darkgray;">请选择行政区</span>
  426. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  427. </view>
  428. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  429. @click="pickerShow('xzq3')">
  430. <span style="color: black;">{{XZQValue3.dictLabel}}</span>
  431. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  432. </view>
  433. </view>
  434. </view>
  435. <view class="uni-list">
  436. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  437. <view>
  438. 小区
  439. </view>
  440. <view v-if="this.isEmpty(this.XQValue3.id)" class="uni-list-cell-db"
  441. style="margin-top: 10;" @click="pickerShow('xq3')">
  442. <span style="color: darkgray;">请选择小区</span>
  443. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  444. </view>
  445. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  446. @click="pickerShow('xq3')">
  447. <span style="color: black;">{{XQValue3.name}}</span>
  448. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  449. </view>
  450. </view>
  451. </view>
  452. <view class="uni-list">
  453. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  454. <view class="uni-list-cell-left">
  455. 楼栋
  456. </view>
  457. <view v-if="this.isEmpty(this.LDValue3.id)" class="uni-list-cell-db"
  458. style="margin-top: 10;" @click="pickerShow('ld3')">
  459. <span style="color: darkgray;">请选择楼栋</span>
  460. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  461. </view>
  462. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  463. @click="pickerShow('ld3')">
  464. <span style="color: black;">{{LDValue3.name}}</span>
  465. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  466. </view>
  467. </view>
  468. </view>
  469. <view class="uni-list" style="margin-top: 10;">
  470. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  471. <view class="uni-list-cell-left">
  472. 单元
  473. </view>
  474. <view v-if="this.isEmpty(this.DYValue3.id)" class="uni-list-cell-db"
  475. style="margin-top: 10;" @click="pickerShow('dy3')">
  476. <span style="color: darkgray;">请选择单元</span>
  477. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  478. </view>
  479. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  480. @click="pickerShow('dy3')">
  481. <span style="color: black;">{{DYValue3.name}}</span>
  482. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  483. </view>
  484. </view>
  485. </view>
  486. <view class="uni-list">
  487. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  488. <view class="uni-list-cell-left">
  489. 房间
  490. </view>
  491. <view v-if="this.isEmpty(this.FJValue3.id)" class="uni-list-cell-db"
  492. style="margin-top: 10;" @click="pickerShow('fj3')">
  493. <span style="color: darkgray;">请选择房间</span>
  494. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  495. </view>
  496. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  497. @click="pickerShow('fj3')">
  498. <span style="color: black;">{{FJValue3.name}}</span>
  499. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  500. </view>
  501. </view>
  502. </view>
  503. <view class="uni-list" v-if="EngineeringValue=='民用工程'">
  504. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  505. <view class="uni-list-cell-left">
  506. 工程类型
  507. </view>
  508. <view v-if="this.isEmpty(this.ProjectType.dictValue)" class="uni-list-cell-db"
  509. style="margin-top: 10;" @click="pickerShow('gclx')">
  510. <span style="color: darkgray;">请选择工程类型</span>
  511. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  512. </view>
  513. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  514. @click="pickerShow('gclx')">
  515. <span style="color: black;">{{ProjectType.dictLabel}}</span>
  516. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  517. </view>
  518. </view>
  519. </view>
  520. </view>
  521. <view v-if="EngineeringValue!='开栓'">
  522. <view class="container" style="border-bottom: 1px solid #f8f8f8;"
  523. v-if="EngineeringValue!='民用工程'">
  524. <view class="uni-list-cell-left">
  525. 工程名称
  526. </view>
  527. <view class="uni-list-cell-db" style="margin-top: 10;">
  528. <input class="uni-input" type="text" v-model="EngineeringName" maxlength="80"
  529. placeholder="请输入工程名称"
  530. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  531. </view>
  532. </view>
  533. <view class="uni-list"
  534. v-if="EngineeringValue=='工业工程'||EngineeringValue=='带气封堵施工'||EngineeringValue=='民用工程'">
  535. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  536. <view class="uni-list-cell-left">
  537. 工程分类
  538. </view>
  539. <view v-if="this.isEmpty(this.ProjectClassification.dictValue)" class="uni-list-cell-db"
  540. style="margin-top: 10;" @click="pickerShow('gcfl')">
  541. <span style="color: darkgray;">请选择工程分类</span>
  542. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  543. </view>
  544. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  545. @click="pickerShow('gcfl')">
  546. <span style="color: black;">{{ProjectClassification.dictLabel}}</span>
  547. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  548. </view>
  549. </view>
  550. </view>
  551. <view class="uni-list"
  552. v-if="EngineeringValue=='市政工程'||EngineeringValue=='顶管工程'||EngineeringValue=='民用工程'||EngineeringValue=='基建工程'">
  553. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  554. <view class="uni-list-cell-left">
  555. 工程步骤
  556. </view>
  557. <view v-if="this.isEmpty(this.ProjectSteps.dictValue)" class="uni-list-cell-db"
  558. style="margin-top: 10;" @click="pickerShow('gcbz')">
  559. <span style="color: darkgray;">请选择工程步骤</span>
  560. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  561. </view>
  562. <view v-else class="uni-list-cell-db" style="margin-top: 10;"
  563. @click="pickerShow('gcbz')">
  564. <span style="color: black;">{{ProjectSteps.dictLabel}}</span>
  565. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  566. </view>
  567. </view>
  568. </view>
  569. </view>
  570. <view class="uni-list">
  571. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  572. <view class="uni-list-cell-left">
  573. 审核状态
  574. </view>
  575. <view v-if="this.isEmpty(this.ReviewStatus.dictValue)" class="uni-list-cell-db"
  576. style="margin-top: 10;" @click="pickerShow('shzt')">
  577. <span style="color: darkgray;">请选择审核状态</span>
  578. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  579. </view>
  580. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('shzt')">
  581. <span style="color: black;">{{ReviewStatus.dictLabel}}</span>
  582. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  583. </view>
  584. </view>
  585. </view>
  586. <button class="tj-btn" style="margin: 40rpx 90rpx;" @click="serch"> 搜索</button>
  587. <button class="sc-btn" style="margin: 40rpx 90rpx;" @click="clear">重置筛选</button>
  588. </view>
  589. </view>
  590. <cc-pullScroolView class="pullScrollView" ref="pullScroll" :pullDown="pullDown" :isDownLoading="true">
  591. <view class="notice" v-for="(item,index) in list" :key="index">
  592. <view class="justify-content" @click="chooseNode(item)">
  593. <view v-if="EngineeringValue=='民用工程'">
  594. <view class="font-forty">
  595. {{item.areaName+item.buildingName+item.unitName+item.houseName+(item.enginType=='new_built'? '-新建':'-旧改')+'-'+item.enginClassificationName}}
  596. </view>
  597. <view class="font-twenty-eight gray" v-for="(state,stateIndex) in item.nodeReViewStateList"
  598. :key="stateIndex" v-if="state.Type!='开栓'">
  599. {{state.Type}}-{{state.state == 1 ? '审核通过': (state.content == '暂未审核' ? '暂未审核':'审核未通过')}}
  600. <view v-if="state.content != '暂未审核'">原因:{{state.content}}</view>
  601. </view>
  602. </view>
  603. <view v-if="EngineeringValue=='开栓'">
  604. <view class="font-forty">
  605. {{item.areaName+item.buildingName+item.unitName+item.houseName}}
  606. </view>
  607. <view class="font-twenty-eight gray">
  608. {{item.state == 0 ? '审核不通过': (item.state == 1?'审核通过':'未审核')}}
  609. </view>
  610. </view>
  611. <view
  612. v-if="EngineeringValue=='顶管工程'||EngineeringValue=='基建工程'||EngineeringValue=='碰口作业'||EngineeringValue=='市政工程'||EngineeringValue=='工业工程'||EngineeringValue=='带气封堵施工'">
  613. <view class="font-forty">
  614. 工程名称:{{item.enginName}}
  615. </view>
  616. <view class="font-twenty-eight gray" v-for="(state,stateIndex) in item.status"
  617. :key="stateIndex">
  618. <view>{{state.type}}-{{state.reviewStatus}}</view>
  619. </view>
  620. </view>
  621. <view class="font-twenty-eight gray">
  622. {{item.createTime}}
  623. </view>
  624. </view>
  625. </view>
  626. </cc-pullScroolView>
  627. </view>
  628. <view class="share">
  629. <view :class="{'share-box': shareState}" @click="handleHiddenShare">
  630. </view>
  631. <view class="share-item" :class="{'share-show': shareState}">
  632. <view class="share-to">
  633. <text>请选择</text>
  634. </view>
  635. <scroll-view scroll-y="true" class="scroll-Y">
  636. <view class="content">
  637. <view class="block" v-for="(item, index) in typeList" :key="index" @click="showTypeSheet(item)"
  638. v-if="item.Type!='开栓'">
  639. <text>{{item.Type}}</text>
  640. </view>
  641. </view>
  642. </scroll-view>
  643. <view class="cancel" @click.stop="handleHiddenShare">
  644. <text>取消</text>
  645. </view>
  646. </view>
  647. </view>
  648. <bottomSheet ref="refShare" :data="historyList"></bottomSheet>
  649. <BottomSheetNew ref="refShareNew" :data="historyListNew" :TitleType="bottomSheetTitle"></BottomSheetNew>
  650. <bottomSheetMore ref="refShareMore" :data="historyListMore" :TitleType="bottomSheetTitle"></bottomSheetMore>
  651. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  652. subtitleKey="id" v-model="name"></SelectPicker>
  653. <SelectPicker :list="dictOptions" @change="changeSelect" v-if="openDict" @close="closeDict" titleKey="dictLabel"
  654. subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  655. <SelectPicker :list="projectList" @change="changeSelectP" v-if="openP" @close="closeP" titleKey="name"
  656. subtitleKey="id" v-model="name"></SelectPicker>
  657. </view>
  658. </template>
  659. <script>
  660. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  661. import bottomSheet from '../../components/bottomSheet/bottomSheet.vue'
  662. import CCBProjectList from '../../uni_modules/cc-pullScroolView/components/cc-pullScroolView/cc-pullScroolView.vue';
  663. import bottomSheetNew from '../../components/bottomSheet/bottomSheetMoreNew.vue'
  664. import bottomSheetMore from '../../components/bottomSheet/bottomSheetMore.vue'
  665. import {
  666. gethistoryList,
  667. getKShistoryList,
  668. getProjectStatisticsData
  669. } from '@/api/common'
  670. import {
  671. getUserType,
  672. getUserRole
  673. } from '@/utils/auth';
  674. import {
  675. getDicts
  676. } from "@/api/system/dict/data";
  677. import user from '@/store/modules/user'
  678. import {
  679. getAreaList,
  680. getBuildingList,
  681. getUnitList,
  682. getHousesList,
  683. getEnginMaterialQualityList,
  684. getEnginSpecificationsList,
  685. getMunicipalStatisticsData,
  686. getObtainRoomcCompletionInformationList,
  687. getRoomProjectId,
  688. getRoomProjectList,
  689. getHistoryByUserList,
  690. getByUserListAndDicts,
  691. getengineeringNameListNew,
  692. getengineeringNameList,
  693. getTopPipeNameList,
  694. getProjectName,
  695. getIndustryProjectScheduleDetails,
  696. getMunicipalProjectScheduleDetails,
  697. getTopTubeProjectScheduleDetails,
  698. getCollisionProjectScheduleDetails
  699. } from '@/api/common'
  700. export default {
  701. components: {
  702. SelectPicker,
  703. CCBProjectList,
  704. bottomSheet,
  705. bottomSheetNew,
  706. bottomSheetMore
  707. },
  708. data() {
  709. return {
  710. bottomSheetTitle: "",
  711. historyList: {}, //历史数据
  712. historyListNew: {}, //历史数据
  713. historyListMore: {}, //历史数据
  714. userRole: getUserRole(),
  715. tabValue: ['旧改', '新建'],
  716. tabIndex: 0,
  717. isLeader: '',
  718. list: [],
  719. newlist: [],
  720. pageSize: 10,
  721. totalNum: '',
  722. pageNum: 1,
  723. typeList: '',
  724. villageIndex: 0,
  725. specificationIndex: 0,
  726. materialIndex: 0,
  727. villageIndex2: 0,
  728. buildIndex: 0,
  729. unitIndex: 0,
  730. open: false,
  731. openDict: false,
  732. selectList: [],
  733. dictOptions: [],
  734. XQList: [],
  735. LDList: [],
  736. DYList: [],
  737. projectValue: {
  738. 'dictValue': '0'
  739. },
  740. XZQValue: {},
  741. XQValue: {},
  742. XQList2: [],
  743. LDList2: [],
  744. DYList2: [],
  745. XQList3: [],
  746. LDList3: [],
  747. DYList3: [],
  748. FJList3: [],
  749. projectValue2: {
  750. 'dictValue': '0'
  751. },
  752. EngineeringValue: '',
  753. EngineeringName: '',
  754. EngineeringList: [],
  755. shareState: false,
  756. XZQValue2: {},
  757. XQValue2: {},
  758. LDValue2: {},
  759. DYValue2: {},
  760. XZQValue3: {},
  761. XQValue3: {},
  762. LDValue3: {},
  763. DYValue3: {},
  764. FJValue3: {},
  765. ProjectType: {},
  766. ProjectClassification: {},
  767. ProjectSteps: {},
  768. ReviewStatus: {},
  769. change: false,
  770. specificationValue: {},
  771. specificationList: [],
  772. materialValue: {},
  773. materialList: [],
  774. materialUsageList: [],
  775. roomList: [],
  776. roomCount: 4,
  777. nodeId: '',
  778. nodeType: '',
  779. roomItem: {},
  780. roomId: '',
  781. projectList: [],
  782. projectBody01: {
  783. 'materialPercentagePE': {
  784. 'actuality': '',
  785. 'anticipation': '',
  786. 'percentage': ''
  787. },
  788. 'materialPercentageIron': {
  789. 'actuality': '',
  790. 'anticipation': '',
  791. 'percentage': ''
  792. }
  793. },
  794. projectBody02: {
  795. 'materialPercentagePE': {
  796. 'actuality': '',
  797. 'anticipation': '',
  798. 'percentage': ''
  799. },
  800. 'materialPercentageIron': {
  801. 'actuality': '',
  802. 'anticipation': '',
  803. 'percentage': ''
  804. }
  805. },
  806. projectBody03: {
  807. 'materialPercentagePE': {
  808. 'actuality': '',
  809. 'anticipation': '',
  810. 'percentage': ''
  811. },
  812. 'materialPercentageIron': {
  813. 'actuality': '',
  814. 'anticipation': '',
  815. 'percentage': ''
  816. }
  817. },
  818. projectBody04: {
  819. 'materialPercentagePE': {
  820. 'actuality': '',
  821. 'anticipation': '',
  822. 'percentage': ''
  823. },
  824. 'materialPercentageIron': {
  825. 'actuality': '',
  826. 'anticipation': '',
  827. 'percentage': ''
  828. }
  829. },
  830. projectObj01: {},
  831. projectObj02: {},
  832. projectObj03: {},
  833. projectObj04: {},
  834. openP: false,
  835. currentProjectType: ''
  836. }
  837. },
  838. created() {},
  839. onLoad() {
  840. this.isLeader = getUserType()
  841. this.EngineeringValue = this.userRole[0];
  842. if (this.isLeader == 'app_user') {
  843. this.changeTab();
  844. }
  845. },
  846. // 上拉加载
  847. onReachBottom() {
  848. if (this.pageNum * 10 >= this.totalNum) {} else {
  849. this.$refs.pullScroll.showUpLoading();
  850. this.pageNum++;
  851. this.requestData();
  852. }
  853. },
  854. methods: {
  855. industryItemClick(item) {
  856. if ("未上传" == item.value) {
  857. return;
  858. }
  859. getIndustryProjectScheduleDetails(this.projectObj01.id, item.name).then(res => {
  860. this.historyListNew = res.data;
  861. this.bottomSheetTitle = res.data.zEngineeringNodeBo.type;
  862. this.showHistoryNewList();
  863. })
  864. },
  865. municipalItemClick(item) {
  866. if ("未上传" == item.value) {
  867. return;
  868. }
  869. getMunicipalProjectScheduleDetails(this.projectObj02.id, item.name).then(res => {
  870. this.historyListNew = res.data;
  871. this.bottomSheetTitle = res.data.zEngineeringNodeBo.type;
  872. this.showHistoryNewList();
  873. })
  874. },
  875. topTubeItemClick(item) {
  876. if ("未上传" == item.value) {
  877. return;
  878. }
  879. getTopTubeProjectScheduleDetails(this.projectObj03.id, item.name).then(res => {
  880. this.historyListMore = res.data;
  881. this.bottomSheetTitle = res.data.zEngineeringNodeBo.type;
  882. this.showHistoryMoreList();
  883. })
  884. },
  885. collisionItemClick(item) {
  886. if ("未上传" == item.value) {
  887. return;
  888. }
  889. getCollisionProjectScheduleDetails(this.projectObj04.id, item.name).then(res => {
  890. this.historyListNew = res.data;
  891. this.bottomSheetTitle = res.data.zEngineeringNodeBo.type;
  892. this.showHistoryNewList();
  893. })
  894. },
  895. changeSelectP(item, index) {
  896. this.openP = false;
  897. let type = this.currentProjectType;
  898. if (type == 'engineeringIndustry') { // 工业工程
  899. this.projectObj01 = item;
  900. } else if (type == 'engineeringMunicipal') { // 市政工程
  901. this.projectObj02 = item;
  902. } else if (type == 'engineeringPipeJacking') { // 顶管工程
  903. this.projectObj03 = item;
  904. } else if (type == 'touchOperationEngineering') { // 碰口作业
  905. this.projectObj04 = item;
  906. }
  907. this.getProjectData(item.id, type);
  908. },
  909. getProjectTypeList(type) {
  910. this.currentProjectType = type;
  911. if (type == 'engineeringIndustry') {
  912. this.projectList = null;
  913. getengineeringNameListNew("", "").then(res => {
  914. this.projectList = res.data;
  915. this.openP = true;
  916. })
  917. } else if (type == 'engineeringMunicipal') {
  918. this.projectList = null;
  919. getengineeringNameList("", "", "").then(res => {
  920. this.projectList = res.data;
  921. this.openP = true;
  922. })
  923. } else if (type == 'engineeringPipeJacking') {
  924. this.projectList = null;
  925. getTopPipeNameList("", "").then(res => {
  926. this.projectList = res.data;
  927. this.openP = true;
  928. })
  929. } else if (type == 'touchOperationEngineering') {
  930. this.projectList = null;
  931. getProjectName("", 1, 999999).then(res => {
  932. let result = JSON.parse(JSON.stringify(res.rows).replace(/enginName/g, 'name'));
  933. this.projectList = result;
  934. this.openP = true;
  935. })
  936. }
  937. },
  938. getProjectData(id, type) {
  939. getProjectStatisticsData(id, type).then(response => {
  940. if (type == 'engineeringIndustry') { // 工业工程
  941. this.projectBody01 = response.data;
  942. } else if (type == 'engineeringMunicipal') { // 市政工程
  943. this.projectBody02 = response.data;
  944. } else if (type == 'engineeringPipeJacking') { // 顶管工程
  945. this.projectBody03 = response.data;
  946. } else if (type == 'touchOperationEngineering') { // 碰口作业
  947. this.projectBody04 = response.data;
  948. }
  949. })
  950. },
  951. goHistory(item) {
  952. this.roomItem = item;
  953. getDicts(item.enginCycle + '_indoor_engin').then(response => {
  954. this.typeList = response.data;
  955. let result = JSON.parse(JSON.stringify(this.typeList).replace(/dictValue/g, 'Type'));
  956. this.typeList = result;
  957. this.handleShowSheet();
  958. });
  959. },
  960. serch() {
  961. this.changeTab();
  962. },
  963. change1() {
  964. this.change = !this.change
  965. },
  966. isEmpty(str) {
  967. return (!str || 0 === str.length);
  968. },
  969. handleShowSheet() {
  970. this.shareState = true;
  971. },
  972. handleHiddenShare() {
  973. this.shareState = false;
  974. },
  975. chooseNode(item) {
  976. if (this.EngineeringValue == '民用工程') {
  977. this.typeList = item.nodeReViewStateList
  978. this.nodeId = item.id;
  979. this.nodeType = item.enginClassification;
  980. this.roomId = item.houseId;
  981. if (this.nodeType == 'bottom_leg') { //底腿
  982. let obj = {
  983. id: this.nodeId,
  984. type: item.Type
  985. };
  986. uni.navigateTo({
  987. url: '/pages/statistics/history_details_bottom_leg?params=' + encodeURIComponent(JSON
  988. .stringify(
  989. obj))
  990. })
  991. } else {
  992. this.handleShowSheet();
  993. }
  994. } else if (this.EngineeringValue == '开栓') {
  995. this.nodeId = item.id;
  996. let obj = {
  997. type: 'edit',
  998. id: this.nodeId,
  999. };
  1000. uni.navigateTo({
  1001. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  1002. .stringify(
  1003. obj))
  1004. })
  1005. } else if (this.EngineeringValue == '市政工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  1006. '顶管工程' || this.EngineeringValue == '工业工程' || this.EngineeringValue == '碰口作业') {
  1007. this.nodeId = item.id;
  1008. let result = JSON.parse(JSON.stringify(item.status).replace(/type/g, 'Type'));
  1009. this.typeList = result;
  1010. this.handleShowSheet();
  1011. }
  1012. // else if (this.EngineeringValue == '工业工程') {
  1013. // this.nodeId = item.id;
  1014. // let obj = {
  1015. // id: this.nodeId,
  1016. // type: '历史数据'
  1017. // };
  1018. // uni.navigateTo({
  1019. // url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  1020. // .stringify(
  1021. // obj))
  1022. // })
  1023. // }
  1024. else if (this.EngineeringValue == '带气封堵施工') {
  1025. this.nodeId = item.id;
  1026. let obj = {
  1027. id: this.nodeId,
  1028. type: item.dictvalue
  1029. };
  1030. uni.navigateTo({
  1031. url: '/pages/statistics/history_gas_sealing?params=' + encodeURIComponent(JSON
  1032. .stringify(
  1033. obj))
  1034. })
  1035. }
  1036. },
  1037. showHistoryList() {
  1038. this.$refs.refShare.handleShowShare();
  1039. },
  1040. showHistoryNewList() {
  1041. this.$refs.refShareNew.handleShowShare();
  1042. },
  1043. showHistoryMoreList() {
  1044. this.$refs.refShareMore.handleShowShare();
  1045. },
  1046. showTypeSheet(item) {
  1047. if (this.isLeader == 'sys_user') {
  1048. let param = {
  1049. areaId: this.roomItem.areaId,
  1050. buildingId: this.roomItem.buildingId,
  1051. unitId: this.roomItem.unitId,
  1052. houseId: this.roomItem.roomId,
  1053. enginCycle: this.projectValue2.dictValue, // 工程周期
  1054. enginType: this.roomItem.enginCycle,
  1055. enginClassification: 'indoor_engin', //写死 室内
  1056. }
  1057. getRoomProjectId(param).then(res => {
  1058. if (res.code == '200') {
  1059. if (res.data != null) {
  1060. getRoomProjectList(res.data.id, item.Type).then(res => {
  1061. if (res.data.zEngineeringNodeBo != null) {
  1062. this.historyList = res.data
  1063. this.showHistoryList();
  1064. } else {
  1065. this.$modal.msg("暂无历史信息")
  1066. }
  1067. })
  1068. } else {
  1069. this.$modal.msg("暂无工程信息")
  1070. }
  1071. } else {
  1072. this.$modal.msg(res.msg)
  1073. }
  1074. })
  1075. } else {
  1076. if (this.EngineeringValue == '民用工程') {
  1077. let obj = {
  1078. id: this.nodeId,
  1079. type: item.Type,
  1080. roomId: this.roomId,
  1081. };
  1082. this.handleHiddenShare();
  1083. if (this.nodeType == 'indoor_engin') { //室内
  1084. uni.navigateTo({
  1085. url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
  1086. .stringify(
  1087. obj))
  1088. })
  1089. } else if (this.nodeType == 'overhead') { //架空
  1090. uni.navigateTo({
  1091. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  1092. .stringify(
  1093. obj))
  1094. })
  1095. } else if (this.nodeType == 'courtyard') { //庭院
  1096. uni.navigateTo({
  1097. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
  1098. .stringify(
  1099. obj))
  1100. })
  1101. } else if (this.nodeType == 'pressure_regulating') { //调压柜
  1102. uni.navigateTo({
  1103. url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(
  1104. JSON
  1105. .stringify(
  1106. obj))
  1107. })
  1108. this.handleHiddenShare();
  1109. }
  1110. } else if (this.EngineeringValue == '顶管工程') {
  1111. let obj = {
  1112. id: this.nodeId,
  1113. type: item.Type,
  1114. };
  1115. uni.navigateTo({
  1116. url: '/pages/statistics/historyDetailsTopTube?params=' + encodeURIComponent(JSON
  1117. .stringify(
  1118. obj))
  1119. })
  1120. this.handleHiddenShare();
  1121. } else if (this.EngineeringValue == '基建工程') {
  1122. let obj = {
  1123. id: this.nodeId,
  1124. type: item.Type,
  1125. };
  1126. uni.navigateTo({
  1127. url: '/pages/statistics/historyDetailsInfrastructure?params=' + encodeURIComponent(JSON
  1128. .stringify(
  1129. obj))
  1130. })
  1131. this.handleHiddenShare();
  1132. } else if (this.EngineeringValue == '市政工程') {
  1133. let obj = {
  1134. id: this.nodeId,
  1135. type: item.Type,
  1136. };
  1137. uni.navigateTo({
  1138. url: '/pages/statistics/historyDetailMunicipal?params=' + encodeURIComponent(JSON
  1139. .stringify(
  1140. obj))
  1141. })
  1142. this.handleHiddenShare();
  1143. } else if (this.EngineeringValue == '工业工程') {
  1144. let obj = {
  1145. id: this.nodeId,
  1146. type: item.Type,
  1147. };
  1148. uni.navigateTo({
  1149. url: '/pages/statistics/historyDetailsEnginproject?params=' + encodeURIComponent(JSON
  1150. .stringify(
  1151. obj))
  1152. })
  1153. this.handleHiddenShare();
  1154. } else if (this.EngineeringValue == '碰口作业') {
  1155. let obj = {
  1156. id: this.nodeId,
  1157. type: item.Type,
  1158. };
  1159. console.log("===", obj)
  1160. uni.navigateTo({
  1161. url: '/pages/statistics/historyDetailsMouth?params=' + encodeURIComponent(JSON
  1162. .stringify(
  1163. obj))
  1164. })
  1165. this.handleHiddenShare();
  1166. }
  1167. }
  1168. },
  1169. pickerShow(e) {
  1170. this.type = e;
  1171. if (e == 'gcx') {
  1172. this.open = true;
  1173. this.EngineeringList = [];
  1174. this.userRole.forEach((item, index) => {
  1175. // if (item != '危险作业工程') {
  1176. // console.log("===", item)
  1177. this.EngineeringList.push({
  1178. 'id': index,
  1179. 'name': item
  1180. })
  1181. //}
  1182. });
  1183. this.selectList = this.EngineeringList;
  1184. } else if (e == 'gczq') {
  1185. this.openDict = true;
  1186. getDicts("engin_cycle").then(response => {
  1187. this.dictOptions = response.data;
  1188. });
  1189. } else if (e == 'gclx') {
  1190. this.openDict = true;
  1191. getDicts('indoor_engin_type').then(response => {
  1192. this.dictOptions = response.data;
  1193. });
  1194. } else if (e == 'gcfl') {
  1195. if (this.EngineeringValue == '民用工程') {
  1196. if (this.isEmpty(this.ProjectType.dictValue)) {
  1197. this.$modal.msg('请选择工程类型')
  1198. } else {
  1199. this.openDict = true;
  1200. getDicts(this.ProjectType.dictValue).then(response => {
  1201. this.dictOptions = response.data;
  1202. });
  1203. }
  1204. } else {
  1205. //工业5 带起封堵施工3
  1206. let nodeType = '';
  1207. if (this.EngineeringValue == '工业工程') {
  1208. nodeType = '5';
  1209. } else if (this.EngineeringValue == '带气封堵施工') {
  1210. nodeType = '3';
  1211. }
  1212. this.openDict = true;
  1213. getByUserListAndDicts(nodeType).then(
  1214. response => {
  1215. this.dictOptions = response.data;
  1216. });
  1217. }
  1218. } else if (e == 'gcbz') {
  1219. if (this.EngineeringValue == '民用工程') {
  1220. if (this.isEmpty(this.ProjectClassification.dictValue)) {
  1221. this.$modal.msg('请选择工程分类')
  1222. } else {
  1223. this.openDict = true;
  1224. getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
  1225. response => {
  1226. this.dictOptions = response.data;
  1227. });
  1228. }
  1229. } else {
  1230. let nodeType = '';
  1231. if (this.EngineeringValue == '市政工程') {
  1232. nodeType = '4';
  1233. } else if (this.EngineeringValue == '基建工程') {
  1234. nodeType = '2';
  1235. } else if (this.EngineeringValue == '顶管工程') {
  1236. nodeType = '1';
  1237. }
  1238. this.openDict = true;
  1239. getByUserListAndDicts(nodeType).then(
  1240. response => {
  1241. this.dictOptions = response.data;
  1242. });
  1243. }
  1244. } else if (e == 'shzt') {
  1245. if (this.EngineeringValue == '民用工程') {
  1246. if (this.isEmpty(this.ProjectSteps.dictValue)) {
  1247. this.$modal.msg('请选择工程步骤')
  1248. } else {
  1249. this.openDict = true;
  1250. getDicts('state_options').then(
  1251. response => {
  1252. this.dictOptions = response.data;
  1253. });
  1254. }
  1255. } else {
  1256. this.openDict = true;
  1257. getDicts('state_options').then(
  1258. response => {
  1259. this.dictOptions = response.data;
  1260. });
  1261. }
  1262. } else if (e == 'xzq') {
  1263. if (this.isEmpty(this.projectValue.dictValue)) {
  1264. this.$modal.msg('请选择工程周期')
  1265. } else {
  1266. this.openDict = true;
  1267. getDicts("district").then(response => {
  1268. this.dictOptions = response.data;
  1269. });
  1270. }
  1271. } else if (e == 'xq') {
  1272. if (this.isEmpty(this.XZQValue.dictValue)) {
  1273. getAreaList('').then(res => {
  1274. this.XQList = res.data;
  1275. this.open = true;
  1276. this.selectList = this.XQList;
  1277. })
  1278. } else {
  1279. this.open = true;
  1280. this.selectList = this.XQList;
  1281. }
  1282. } else if (e == 'ld') {
  1283. if (this.isEmpty(this.XQValue.id)) {
  1284. this.$modal.msg('请选择小区')
  1285. } else {
  1286. this.open = true;
  1287. this.selectList = this.LDList;
  1288. }
  1289. } else if (e == 'dy') {
  1290. if (this.isEmpty(this.LDValue.id)) {
  1291. this.$modal.msg('请选择楼栋')
  1292. } else {
  1293. this.open = true;
  1294. this.selectList = this.DYList;
  1295. }
  1296. } else if (e == 'gczq2') {
  1297. this.openDict = true;
  1298. getDicts("engin_cycle").then(response => {
  1299. this.dictOptions = response.data;
  1300. });
  1301. } else if (e == 'xzq2' || e == 'xzq3') {
  1302. if (this.isEmpty(this.projectValue2.dictValue)) {
  1303. this.$modal.msg('请选择工程周期')
  1304. } else {
  1305. this.openDict = true;
  1306. getDicts("district").then(response => {
  1307. this.dictOptions = response.data;
  1308. });
  1309. }
  1310. } else if (e == 'xq2') {
  1311. if (this.isEmpty(this.XZQValue2.dictValue)) {
  1312. getAreaList('').then(res => {
  1313. this.XQList2 = res.data;
  1314. this.open = true;
  1315. this.selectList = this.XQList2;
  1316. })
  1317. } else {
  1318. this.open = true;
  1319. this.selectList = this.XQList2;
  1320. }
  1321. } else if (e == 'ld2') {
  1322. if (this.isEmpty(this.XQValue2.id)) {
  1323. this.$modal.msg('请选择小区')
  1324. } else {
  1325. this.open = true;
  1326. this.selectList = this.LDList2;
  1327. }
  1328. } else if (e == 'dy2') {
  1329. if (this.isEmpty(this.LDValue2.id)) {
  1330. this.$modal.msg('请选择楼栋')
  1331. } else {
  1332. this.open = true;
  1333. this.selectList = this.DYList2;
  1334. }
  1335. } else if (e == 'xq3') {
  1336. if (this.isEmpty(this.XZQValue3.dictValue)) {
  1337. getAreaList('').then(res => {
  1338. this.XQList3 = res.data;
  1339. this.open = true;
  1340. this.selectList = this.XQList3;
  1341. })
  1342. } else {
  1343. this.open = true;
  1344. this.selectList = this.XQList3;
  1345. }
  1346. } else if (e == 'ld3') {
  1347. if (this.isEmpty(this.XQValue3.id)) {
  1348. this.$modal.msg('请选择小区')
  1349. } else {
  1350. this.open = true;
  1351. this.selectList = this.LDList3;
  1352. }
  1353. } else if (e == 'dy3') {
  1354. if (this.isEmpty(this.LDValue3.id)) {
  1355. this.$modal.msg('请选择楼栋')
  1356. } else {
  1357. this.open = true;
  1358. this.selectList = this.DYList3;
  1359. }
  1360. } else if (e == 'fj3') {
  1361. if (this.isEmpty(this.DYValue3.id)) {
  1362. this.$modal.msg('请选择单元')
  1363. } else {
  1364. this.open = true;
  1365. this.selectList = this.FJList3;
  1366. }
  1367. } else if (e == 'gg') {
  1368. if (this.isEmpty(this.materialValue.id)) {
  1369. this.$modal.msg('请选择材料')
  1370. } else {
  1371. this.open = true;
  1372. this.selectList = this.materialList;
  1373. }
  1374. } else if (e == 'cz') {
  1375. this.open = true;
  1376. getEnginMaterialQualityList("民用工程").then(response => {
  1377. this.selectList = response.data;
  1378. });
  1379. }
  1380. },
  1381. clear() {
  1382. //清空所有筛选项
  1383. this.XZQValue3 = '';
  1384. this.XQValue3 = '';
  1385. this.LDValue3 = '';
  1386. this.DYValue3 = '';
  1387. this.FJValue3 = '';
  1388. this.ProjectType = {
  1389. dictValue: '',
  1390. dictLabel: ''
  1391. };
  1392. this.ProjectClassification = {
  1393. dictValue: '',
  1394. dictLabel: ''
  1395. };
  1396. this.ProjectSteps = {
  1397. dictValue: '',
  1398. dictLabel: ''
  1399. };
  1400. this.ReviewStatus = {
  1401. dictValue: '',
  1402. dictLabel: ''
  1403. };
  1404. this.EngineeringName = '';
  1405. this.changeTab();
  1406. },
  1407. closeP(item, index) {
  1408. this.openP = false;
  1409. },
  1410. changeSelect(item, index) {
  1411. this.open = false;
  1412. this.openDict = false;
  1413. if (this.type == 'gcx') {
  1414. this.EngineeringValue = item.name
  1415. this.clear();
  1416. } else if (this.type == 'xzq') {
  1417. this.XZQValue = item;
  1418. this.XQValue = '';
  1419. this.LDValue = '';
  1420. this.DYValue = '';
  1421. this.FJValue = '';
  1422. getAreaList(item.dictValue).then(res => {
  1423. this.XQList = res.data;
  1424. })
  1425. } else if (this.type == 'gczq') {
  1426. this.projectValue = item
  1427. } else if (this.type == 'gclx') {
  1428. this.ProjectType = item
  1429. this.ProjectClassification = '';
  1430. this.ProjectSteps = '';
  1431. this.ReviewStatus = '';
  1432. } else if (this.type == 'gcfl') {
  1433. this.ProjectClassification = item
  1434. this.ProjectSteps = '';
  1435. this.ReviewStatus = '';
  1436. } else if (this.type == 'gcbz') {
  1437. this.ProjectSteps = item
  1438. this.ReviewStatus = '';
  1439. } else if (this.type == 'shzt') {
  1440. this.ReviewStatus = item
  1441. } else if (this.type == 'xq') {
  1442. this.XQValue = item;
  1443. this.LDValue = '';
  1444. this.DYValue = '';
  1445. this.FJValue = '';
  1446. this.queryMaterialsUsedList();
  1447. } else if (this.type == 'ld') {
  1448. this.LDValue = item;
  1449. this.DYValue = '';
  1450. this.FJValue = '';
  1451. getUnitList(item.id).then(res => {
  1452. this.DYList = res.data
  1453. })
  1454. } else if (this.type == 'dy') {
  1455. this.DYValue = item;
  1456. } else if (this.type == 'gczq2') {
  1457. this.projectValue2 = item
  1458. } else if (this.type == 'xzq2') {
  1459. this.XZQValue2 = item;
  1460. this.XQValue2 = '';
  1461. this.LDValue2 = '';
  1462. this.DYValue2 = '';
  1463. this.FJValue2 = '';
  1464. getAreaList(item.dictValue).then(res => {
  1465. this.XQList2 = res.data;
  1466. })
  1467. } else if (this.type == 'xzq3') {
  1468. this.XZQValue3 = item;
  1469. this.XQValue3 = '';
  1470. this.LDValue3 = '';
  1471. this.DYValue3 = '';
  1472. this.FJValue3 = '';
  1473. getAreaList(item.dictValue).then(res => {
  1474. this.XQList3 = res.data;
  1475. })
  1476. } else if (this.type == 'xq2') {
  1477. this.XZQValue2 = {
  1478. dictValue: item.district,
  1479. dictLabel: item.districtName
  1480. };
  1481. this.XQValue2 = item;
  1482. this.LDValue2 = '';
  1483. this.DYValue2 = '';
  1484. this.FJValue2 = '';
  1485. getBuildingList(item.id).then(res => {
  1486. this.LDList2 = res.data
  1487. })
  1488. } else if (this.type == 'xq3') {
  1489. this.XZQValue3 = {
  1490. dictValue: item.district,
  1491. dictLabel: item.districtName
  1492. };
  1493. this.XQValue3 = item;
  1494. this.LDValue3 = '';
  1495. this.DYValue3 = '';
  1496. this.FJValue3 = '';
  1497. getBuildingList(item.id).then(res => {
  1498. this.LDList3 = res.data
  1499. })
  1500. } else if (this.type == 'ld2') {
  1501. this.LDValue2 = item;
  1502. this.DYValue2 = '';
  1503. this.FJValue2 = '';
  1504. getUnitList(item.id).then(res => {
  1505. this.DYList2 = res.data
  1506. })
  1507. } else if (this.type == 'ld3') {
  1508. this.LDValue3 = item;
  1509. this.DYValue3 = '';
  1510. this.FJValue3 = '';
  1511. getUnitList(item.id).then(res => {
  1512. this.DYList3 = res.data
  1513. })
  1514. } else if (this.type == 'dy3') {
  1515. this.DYValue3 = item;
  1516. this.FJValue3 = '';
  1517. getHousesList(item.id).then(res => {
  1518. this.FJList3 = res.data
  1519. })
  1520. } else if (this.type == 'fj3') {
  1521. this.FJValue3 = item;
  1522. } else if (this.type == 'dy2') {
  1523. this.DYValue2 = item;
  1524. this.queryProjectStatisticsList();
  1525. } else if (this.type == 'gg') {
  1526. this.specificationValue = item;
  1527. this.queryMaterialsUsedList();
  1528. } else if (this.type == 'cz') {
  1529. this.materialValue = item;
  1530. this.specificationValue = '';
  1531. this.queryMaterialsUsedList();
  1532. getEnginSpecificationsList(item.id).then(res => {
  1533. this.materialList = res.data
  1534. })
  1535. }
  1536. },
  1537. close(e) {
  1538. this.open = false
  1539. },
  1540. closeDict(e) {
  1541. this.openDict = false
  1542. },
  1543. queryMaterialsUsedList() {
  1544. if (this.isEmpty(this.XQValue.id)) {
  1545. this.$modal.msg('请选择小区')
  1546. return;
  1547. }
  1548. let param = {
  1549. enginCycle: this.projectValue.dictValue, //工程周期
  1550. areaId: this.XQValue.id,
  1551. realityQuality: this.materialValue.id,
  1552. realitySpecifications: this.specificationValue.id,
  1553. };
  1554. this.XZQValue = {
  1555. dictValue: this.XQValue.district,
  1556. dictLabel: this.XQValue.districtName
  1557. };
  1558. getMunicipalStatisticsData(param).then(res => {
  1559. this.materialUsageList = res.data;
  1560. })
  1561. },
  1562. queryProjectStatisticsList() {
  1563. let param = {
  1564. enginCycle: this.projectValue.dictValue, //工程周期
  1565. areaId: this.XQValue2.id,
  1566. buildingId: this.LDValue2.id,
  1567. unitId: this.DYValue2.id,
  1568. };
  1569. getObtainRoomcCompletionInformationList(param).then(res => {
  1570. this.roomList = res.data[0].roomStatusVoList;
  1571. this.roomCount = res.data[0].roomStatusVoList.length;
  1572. })
  1573. },
  1574. getColorByStatus(status) {
  1575. if (this.isEmpty(status)) {
  1576. return "#fff";
  1577. }
  1578. if (status == '施工中') {
  1579. return "#5bd3ff";
  1580. } else if (status == '未施工') {
  1581. return "#ffc881";
  1582. } else if (status == '竣工') {
  1583. return "#80d9ae";
  1584. }
  1585. },
  1586. clearMaterialInfo() {
  1587. this.materialValue = '';
  1588. this.specificationValue = '';
  1589. this.queryMaterialsUsedList();
  1590. },
  1591. clearSpecificationInfo() {
  1592. this.specificationValue = '';
  1593. this.queryMaterialsUsedList();
  1594. },
  1595. pullDown(pullScroll) {
  1596. this.pageNum = 1;
  1597. setTimeout(() => {
  1598. this.requestData(pullScroll);
  1599. }, 1000);
  1600. },
  1601. getList() {
  1602. let myThis = this;
  1603. this.$nextTick(() => {
  1604. myThis.$refs.pullScroll.refresh();
  1605. });
  1606. },
  1607. changeTab() {
  1608. this.pageSize = 10;
  1609. this.totalNum = '';
  1610. this.pageNum = 1;
  1611. this.requestData();
  1612. },
  1613. requestData() {
  1614. uni.showLoading()
  1615. if (this.EngineeringValue == '民用工程') {
  1616. let type = ''
  1617. let param = {
  1618. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1619. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1620. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1621. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1622. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1623. enginType: this.ProjectType.dictValue == undefined ? '' : this.ProjectType.dictValue,
  1624. enginCycle: '0',
  1625. enginClassification: this.ProjectClassification.dictValue == undefined ? '' : this
  1626. .ProjectClassification.dictValue,
  1627. type: this.ProjectSteps.dictValue == undefined ? '' : this.ProjectSteps.dictValue,
  1628. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1629. createBy: user.state.name,
  1630. pageNum: this.pageNum,
  1631. pageSize: this.pageSize
  1632. }
  1633. gethistoryList(param).then(res => {
  1634. this.totalNum = res.total
  1635. if (res.code == '200') {
  1636. uni.hideLoading()
  1637. if (res.rows.length !== 0) {
  1638. if (this.pageNum == 1) {
  1639. this.list = [];
  1640. this.list = res.rows
  1641. } else {
  1642. this.list = this.list.concat(res.rows)
  1643. }
  1644. if (this.pageNum * 10 >= this.totalNum) {
  1645. this.$refs.pullScroll.finish();
  1646. } else {
  1647. this.$refs.pullScroll.success();
  1648. }
  1649. } else {
  1650. this.list = [];
  1651. this.$refs.pullScroll.empty();
  1652. }
  1653. } else {
  1654. this.$modal.msg(res.msg + "")
  1655. this.$refs.pullScroll.error();
  1656. }
  1657. })
  1658. } else if (this.EngineeringValue == '开栓') {
  1659. let type = ''
  1660. let param = {
  1661. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1662. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1663. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1664. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1665. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1666. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1667. createBy: user.state.name,
  1668. pageNum: this.pageNum,
  1669. pageSize: this.pageSize
  1670. }
  1671. getKShistoryList(param).then(res => {
  1672. this.totalNum = res.total
  1673. if (res.code == '200') {
  1674. uni.hideLoading()
  1675. if (res.rows.length !== 0) {
  1676. if (this.pageNum == 1) {
  1677. this.list = [];
  1678. this.list = res.rows
  1679. } else {
  1680. this.list = this.list.concat(res.rows)
  1681. }
  1682. if (this.pageNum * 10 >= this.totalNum) {
  1683. this.$refs.pullScroll.finish();
  1684. } else {
  1685. this.$refs.pullScroll.success();
  1686. }
  1687. } else {
  1688. this.list = [];
  1689. this.$refs.pullScroll.empty();
  1690. }
  1691. } else {
  1692. this.$modal.msg(res.msg + "")
  1693. this.$refs.pullScroll.error();
  1694. }
  1695. })
  1696. } else if (this.EngineeringValue == '顶管工程' || this.EngineeringValue == '基建工程' || this.EngineeringValue ==
  1697. '碰口作业' || this.EngineeringValue == '市政工程' || this.EngineeringValue == '工业工程' || this
  1698. .EngineeringValue == '带气封堵施工') {
  1699. //type 1 = 顶管, 2=基建 3=危险 4= 市政 5= 工业 type=6 是带气封堵
  1700. let chooseType = '';
  1701. switch (this.EngineeringValue) {
  1702. case '顶管工程':
  1703. chooseType = '1';
  1704. break
  1705. case '基建工程':
  1706. chooseType = '2';
  1707. break
  1708. case '碰口作业':
  1709. chooseType = '7';
  1710. break
  1711. case '市政工程':
  1712. chooseType = '4';
  1713. break
  1714. case '工业工程':
  1715. chooseType = '5';
  1716. break
  1717. case '带气封堵施工':
  1718. chooseType = '6';
  1719. break
  1720. }
  1721. let param = {
  1722. type: chooseType,
  1723. enginName: this.EngineeringName,
  1724. enginType: this.ProjectClassification.dictValue == undefined ? '' : this
  1725. .ProjectClassification.dictValue,
  1726. nodeType: this.ProjectSteps.dictLabel == undefined ? '' : this.ProjectSteps.dictLabel,
  1727. enginStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1728. district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
  1729. areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
  1730. buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
  1731. unitId: this.DYValue3.id == undefined ? '' : this.DYValue3.id,
  1732. houseId: this.FJValue3.id == undefined ? '' : this.FJValue3.id,
  1733. completionStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
  1734. createBy: user.state.name,
  1735. pageNum: this.pageNum,
  1736. pageSize: this.pageSize
  1737. }
  1738. getHistoryByUserList(param).then(res => {
  1739. this.totalNum = res.data.total
  1740. if (res.code == '200') {
  1741. uni.hideLoading()
  1742. if (res.data.rows.length !== 0) {
  1743. if (this.pageNum == 1) {
  1744. this.list = [];
  1745. this.list = res.data.rows
  1746. } else {
  1747. this.list = this.list.concat(res.data.rows)
  1748. }
  1749. if (this.pageNum * 10 >= this.totalNum) {
  1750. this.$refs.pullScroll.finish();
  1751. } else {
  1752. this.$refs.pullScroll.success();
  1753. }
  1754. } else {
  1755. this.list = [];
  1756. this.$refs.pullScroll.empty();
  1757. }
  1758. } else {
  1759. this.$modal.msg(res.msg + "")
  1760. this.$refs.pullScroll.error();
  1761. }
  1762. })
  1763. }
  1764. },
  1765. }
  1766. }
  1767. </script>
  1768. <style lang="scss">
  1769. .to-right-icon {
  1770. width: 15px;
  1771. height: 15px;
  1772. position: absolute;
  1773. top: 50%;
  1774. transform: translateY(-50%);
  1775. }
  1776. .uni-media-list {
  1777. width: 100%;
  1778. }
  1779. .no-click {
  1780. pointer-events: none;
  1781. }
  1782. .marginLeft5 {
  1783. margin-left: 5px;
  1784. }
  1785. .title-txt {
  1786. font-size: 15px;
  1787. font-weight: bold;
  1788. color: black;
  1789. padding: 20rpx 0;
  1790. }
  1791. .content-txt {
  1792. font-size: 10px;
  1793. font-weight: bold;
  1794. color: black;
  1795. }
  1796. .view-bg {
  1797. margin-left: 8px;
  1798. margin-right: 8px;
  1799. margin-top: 8px;
  1800. background-color: #fff;
  1801. border-radius: 5px;
  1802. padding: 20px;
  1803. display: flex;
  1804. flex-direction: column;
  1805. }
  1806. .uni-list {
  1807. background-color: #FFFFFF;
  1808. position: relative;
  1809. width: 100%;
  1810. display: flex;
  1811. flex-direction: column;
  1812. }
  1813. .uni-list-cell {
  1814. display: flex;
  1815. align-items: center;
  1816. justify-content: space-between;
  1817. padding: 10px 0;
  1818. position: relative;
  1819. }
  1820. .uni-list-cell-left {
  1821. white-space: nowrap;
  1822. font-size: 28rpx;
  1823. }
  1824. .centered {
  1825. text-align: center;
  1826. background-color: #e2f4ff;
  1827. }
  1828. .text {
  1829. background-color: #e2f4ff;
  1830. height: 20rpx;
  1831. }
  1832. .view_bg_build {
  1833. background-color: #e2f4ff;
  1834. padding: 10px 10px 0 10px;
  1835. margin: 0 auto;
  1836. border: 1px solid #5bd3ff;
  1837. white-space: nowrap;
  1838. position: relative;
  1839. z-index: 2;
  1840. }
  1841. .grid-text {
  1842. font-size: 14px;
  1843. color: #000000;
  1844. text-align: center;
  1845. padding-left: 30rpx;
  1846. padding-right: 30rpx;
  1847. padding-top: 20rpx;
  1848. padding-bottom: 20rpx;
  1849. }
  1850. .name {
  1851. flex: 0;
  1852. font-size: 14px;
  1853. color: #000000;
  1854. overflow: hidden;
  1855. text-overflow: ellipsis;
  1856. white-space: nowrap;
  1857. }
  1858. .table-item {
  1859. overflow: hidden;
  1860. text-overflow: ellipsis;
  1861. white-space: nowrap;
  1862. }
  1863. .block-iv {
  1864. width: 20px;
  1865. height: 20px;
  1866. }
  1867. .table {
  1868. width: 100%;
  1869. border-radius: 8rpx;
  1870. background: #FFFFFF;
  1871. /* border: 1rpx solid #EFEFEF; */
  1872. font-size: 28rpx;
  1873. margin-top: 40rpx;
  1874. }
  1875. .felx-row {
  1876. width: 100%;
  1877. display: flex;
  1878. justify-content: space-between;
  1879. align-items: center;
  1880. }
  1881. .h-tr {
  1882. box-sizing: border-box;
  1883. display: flex;
  1884. flex-direction: row;
  1885. flex-wrap: nowrap;
  1886. justify-content: center;
  1887. align-items: center;
  1888. align-content: center;
  1889. border-color: #ccc;
  1890. border-style: solid;
  1891. border-width: 0;
  1892. border-width: 1px;
  1893. color: #3d7dd7;
  1894. }
  1895. .h-td {
  1896. box-sizing: border-box;
  1897. padding: 3px;
  1898. word-break: break-all;
  1899. border-color: #ccc;
  1900. border-style: solid;
  1901. border-width: 1px;
  1902. border-right-width: 1px;
  1903. display: flex;
  1904. flex-direction: row;
  1905. flex-wrap: nowrap;
  1906. justify-content: center;
  1907. align-items: center;
  1908. align-content: center;
  1909. min-height: 64rpx;
  1910. }
  1911. .LouCeng {
  1912. font-size: 30rpx;
  1913. background-color: #4a4b52;
  1914. color: #FFEB3B;
  1915. font-weight: bold;
  1916. }
  1917. .Fang {
  1918. width: 100%;
  1919. display: inline-block;
  1920. line-height: 50rpx;
  1921. text-align: center;
  1922. margin-right: 10px;
  1923. margin-bottom: 10px;
  1924. background-color: red;
  1925. }
  1926. .HuaDongBiao {
  1927. display: flex;
  1928. flex-direction: column-reverse;
  1929. position: relative;
  1930. }
  1931. .NeiRong {
  1932. display: flex;
  1933. flex-wrap: nowrap;
  1934. }
  1935. .NeiRong :last-child {
  1936. margin-right: 0 !important;
  1937. }
  1938. .ShiGongZhong {
  1939. background-color: #5bd3ff;
  1940. color: #000;
  1941. }
  1942. .WeiShiGong {
  1943. background-color: #ffc881;
  1944. color: #000;
  1945. }
  1946. .JunGong {
  1947. background-color: #80d9ae;
  1948. color: #000;
  1949. }
  1950. .container {
  1951. display: flex;
  1952. margin-left: 10px;
  1953. width: 100%;
  1954. margin-top: 10px;
  1955. margin-right: 10px;
  1956. justify-content: space-between;
  1957. }
  1958. .notice {
  1959. margin: 20rpx;
  1960. padding: 20rpx;
  1961. background: #FFFFFF;
  1962. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  1963. border-radius: 10rpx;
  1964. }
  1965. .text {
  1966. border-left: 15rpx solid #3857F3;
  1967. padding-left: 20rpx;
  1968. }
  1969. .share {
  1970. width: 100%;
  1971. height: 100%;
  1972. }
  1973. .share-box {
  1974. width: 100%;
  1975. height: 100%;
  1976. position: fixed;
  1977. top: 0rpx;
  1978. left: 0rpx;
  1979. bottom: 0rpx;
  1980. right: 0rpx;
  1981. background-color: rgba(0, 0, 0, 0.4);
  1982. transition: .3s;
  1983. z-index: 999;
  1984. }
  1985. .share-show {
  1986. transition: all 0.3s ease;
  1987. transform: translateY(0%) !important;
  1988. }
  1989. .scroll-Y {
  1990. height: 350rpx;
  1991. }
  1992. .share-item {
  1993. position: fixed;
  1994. left: 0;
  1995. bottom: 0;
  1996. width: 100%;
  1997. height: auto;
  1998. background-color: #FFFFFF;
  1999. transition: all 0.3s ease;
  2000. transform: translateY(100%);
  2001. z-index: 1999;
  2002. border-top-left-radius: 40rpx;
  2003. border-top-right-radius: 40rpx;
  2004. .share-to {
  2005. width: 100%;
  2006. height: 3rem;
  2007. display: flex;
  2008. justify-content: center;
  2009. align-items: center;
  2010. &::after {
  2011. content: '';
  2012. width: 240rpx;
  2013. height: 0rpx;
  2014. border-top: 1px solid #E4E7ED;
  2015. -webkit-transform: scaleY(0.5);
  2016. transform: scaleY(0.5);
  2017. margin-left: 30rpx;
  2018. }
  2019. &::before {
  2020. content: '';
  2021. width: 240rpx;
  2022. height: 0rpx;
  2023. border-top: 1px solid #E4E7ED;
  2024. -webkit-transform: scaleY(0.5);
  2025. transform: scaleY(0.5);
  2026. margin-right: 30rpx;
  2027. }
  2028. }
  2029. .content {
  2030. width: 100%;
  2031. height: 50%;
  2032. display: flex;
  2033. flex-wrap: wrap;
  2034. .block {
  2035. width: 100%;
  2036. display: flex;
  2037. flex-direction: column;
  2038. justify-content: center;
  2039. align-items: center;
  2040. height: 80rpx;
  2041. text {
  2042. margin-top: 16rpx;
  2043. font-size: 28rpx;
  2044. color: #606266;
  2045. }
  2046. }
  2047. }
  2048. .cancel {
  2049. width: 100%;
  2050. height: 3rem;
  2051. display: flex;
  2052. justify-content: center;
  2053. align-items: center;
  2054. border-top: 1rpx solid #E4E7ED;
  2055. }
  2056. }
  2057. .background {
  2058. // border: 15px solid hsla(0, 0%, 100%, .5);
  2059. background: white;
  2060. background-clip: padding-box;
  2061. padding: 20rpx;
  2062. border-radius: 20rpx;
  2063. margin: 20rpx 10rpx;
  2064. /*从padding开始往外面裁剪背景*/
  2065. }
  2066. </style>