statistics.vue 70 KB

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