newcourtyard.vue 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357
  1. <template>
  2. <scroll-view>
  3. <view class="background">
  4. <view class="uni-list">
  5. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  6. <view>
  7. 行政区
  8. </view>
  9. <view v-if="this.isEmpty(this.XZQValue.dictValue)" @click="pickerShow('xzq')">
  10. <span style="color: darkgray;">请选择行政区</span>
  11. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  12. </view>
  13. <view v-else class="uni-list-cell-db" @click="pickerShow('xzq')">
  14. <span style="color: black;">{{XZQValue.dictLabel}}</span>
  15. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="uni-list">
  20. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  21. <view>
  22. 小区
  23. </view>
  24. <view v-if="this.isEmpty(this.XQValue.id)" class="uni-list-cell-db" @click="pickerShow('xq')">
  25. <span style="color: darkgray;">请选择小区</span>
  26. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  27. </view>
  28. <view v-else class="uni-list-cell-db" @click="pickerShow('xq')">
  29. <span style="color: black;">{{XQValue.name}}</span>
  30. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="uni-list">
  35. <view class="container">
  36. <view class="uni-list-cell-left">
  37. 楼栋
  38. </view>
  39. <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" @click="pickerShow('ld')">
  40. <span style="color: darkgray;">请选择楼栋</span>
  41. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  42. </view>
  43. <view v-else class="uni-list-cell-db" @click="pickerShow('ld')">
  44. <span style="color: black;">{{LDValue.name}}</span>
  45. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  46. </view>
  47. </view>
  48. </view>
  49. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name" subtitleKey="id" v-model="name"></SelectPicker>
  50. <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict" titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  51. </view>
  52. <view class="background">
  53. <view>
  54. <view class="uni-list">
  55. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  56. {{objValue.enginClassValue}}
  57. <span style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;" @click="history" v-if="objValue.enginType == 'old_renovation'">{{historyName}}</span>
  58. </view>
  59. <view class=" container" style="border-bottom: 1px solid #f8f8f8;">
  60. <view>
  61. 施工时间
  62. </view>
  63. <view @click="openDatetimePicker('sg')">
  64. <span style="color: black;">{{time}}</span>
  65. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  66. </view>
  67. </view>
  68. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  69. <view class="uni-common-mt" style="width: 100%;">
  70. <text class="uni-title uni-common-pl">施工内容</text>
  71. <view style="width: 100%;box-sizing: border-box;">
  72. <textarea class="textarea" placeholder="请输入施工内容" maxlength="255" placeholder-style="padding: 10rpx;" style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;" auto-height v-model="projectContent"></textarea>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <view v-if="objValue.enginClassValue=='开挖前' || objValue.enginClassValue=='开挖后' ||objValue.enginClassValue=='焊口照片' ||objValue.enginClassValue== '隐蔽工程'||objValue.enginClassValue== '管道施工记录'" class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  78. <view class="container" style="color: #b2b2b2;">*请上传照片</view>
  79. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  80. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('other')" v-show="reviewStatus!='1'"></image>
  81. <view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
  82. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg'">
  83. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'other')">
  84. </image>
  85. </view>
  86. <view v-else>
  87. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  88. </view>
  89. <view @click="remove(index,'other')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  90. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  91. </image>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. <view v-if="objValue.enginClassValue=='回填'">
  97. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  98. <view class="container" style="color: #b2b2b2;">*请上传石粉回填照片</view>
  99. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  100. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('sfht')" v-show="reviewStatus!='1'"></image>
  101. <view v-for="(item,index) in stonePowderArr" :key="index" style="position: relative;">
  102. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  103. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'sfht')">
  104. </image>
  105. </view>
  106. <view v-else>
  107. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  108. </view>
  109. <view @click="remove(index,'sfht')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  110. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  111. </image>
  112. </view>
  113. </view>
  114. </view>
  115. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  116. <view class="container" style="color: #b2b2b2;">*请上传警示带铺设照片</view>
  117. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  118. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('jsdps')" v-show="reviewStatus!='1'"></image>
  119. <view v-for="(item,index) in warningtTapeArr" :key="index" style="position: relative;">
  120. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  121. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'jsdps')">
  122. </image>
  123. </view>
  124. <view v-else>
  125. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  126. </view>
  127. <view @click="remove(index,'jsdps')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  128. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  129. </image>
  130. </view>
  131. </view>
  132. </view>
  133. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  134. <view class="container" style="color: #b2b2b2;">*请上回填后照片</view>
  135. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  136. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('hth')" v-show="reviewStatus!='1'"></image>
  137. <view v-for="(item,index) in photosAfterArr" :key="index" style="position: relative;">
  138. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  139. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'hth')">
  140. </image>
  141. </view>
  142. <view v-else>
  143. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  144. </view>
  145. <view @click="remove(index,'hth')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  146. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  147. </image>
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <view v-if="objValue.enginClassValue=='调压柜'">
  156. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  157. <view class="container" style="color: #b2b2b2;">*请上传调压箱名牌照片</view>
  158. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  159. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Box')" v-show="reviewStatus!='1'"></image>
  160. <view v-for="(item,index) in imgBoxArr" :key="index" style="position: relative;">
  161. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  162. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Box')">
  163. </image>
  164. </view>
  165. <view v-else>
  166. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  167. </view>
  168. <view @click="remove(index,'Box')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  169. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  170. </image>
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  176. <view class="container" style="color: #b2b2b2;">*请上传调压箱内石粉回填照片</view>
  177. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  178. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Sfht')" v-show="reviewStatus!='1'"></image>
  179. <view v-for="(item,index) in imgSfhtArr" :key="index" style="position: relative;">
  180. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  181. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Sfht')">
  182. </image>
  183. </view>
  184. <view v-else>
  185. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  186. </view>
  187. <view @click="remove(index,'Sfht')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  188. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  189. </image>
  190. </view>
  191. </view>
  192. </view>
  193. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  194. <view class="container" style="color: #b2b2b2;">*请上传调压箱防雷接地照片</view>
  195. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  196. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fljd')" v-show="reviewStatus!='1'"></image>
  197. <view v-for="(item,index) in imgFljdArr" :key="index" style="position: relative;">
  198. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  199. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Fljd')">
  200. </image>
  201. </view>
  202. <view v-else>
  203. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  204. </view>
  205. <view @click="remove(index,'Fljd')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  206. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  207. </image>
  208. </view>
  209. </view>
  210. </view>
  211. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  212. <view class="container" style="color: #b2b2b2;">*请上传调压箱底腿连接照片</view>
  213. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  214. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Dtlj')" v-show="reviewStatus!='1'"></image>
  215. <view v-for="(item,index) in imgDtljArr" :key="index" style="position: relative;">
  216. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  217. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Dtlj')">
  218. </image>
  219. </view>
  220. <view v-else>
  221. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  222. </view>
  223. <view @click="remove(index,'Dtlj')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  224. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  225. </image>
  226. </view>
  227. </view>
  228. </view>
  229. </view>
  230. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  231. <view class="container" style="color: #b2b2b2;">*请上传调压箱护栏及地面硬化(远景)照片</view>
  232. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  233. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Hldmyh')" v-show="reviewStatus!='1'"></image>
  234. <view v-for="(item,index) in imgHldmyhArr" :key="index" style="position: relative;">
  235. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  236. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Hldmyh')">
  237. </image>
  238. </view>
  239. <view v-else>
  240. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  241. </view>
  242. <view @click="remove(index,'Hldmyh')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  243. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  244. </image>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. </view>
  250. </view>
  251. </view>
  252. <view v-if="objValue.enginClassValue=='阀井'">
  253. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  254. <view class="container" style="color: #b2b2b2;">*请上传套管照片</view>
  255. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  256. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Tg')" v-show="reviewStatus!='1'"></image>
  257. <view v-for="(item,index) in imgTgArr" :key="index" style="position: relative;">
  258. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg'">
  259. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Tg')">
  260. </image>
  261. </view>
  262. <view v-else>
  263. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  264. </view>
  265. <view @click="remove(index,'Tg')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  266. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  267. </image>
  268. </view>
  269. </view>
  270. </view>
  271. </view>
  272. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  273. <view class="container" style="color: #b2b2b2;">*请上传内壁抹灰照片</view>
  274. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  275. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Nbmh')" v-show="reviewStatus!='1'"></image>
  276. <view v-for="(item,index) in imgNbmhArr" :key="index" style="position: relative;">
  277. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg'">
  278. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Nbmh')">
  279. </image>
  280. </view>
  281. <view v-else>
  282. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  283. </view>
  284. <view @click="remove(index,'Nbmh')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  285. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  286. </image>
  287. </view>
  288. </view>
  289. </view>
  290. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  291. <view class="container" style="color: #b2b2b2;">*请上传防护网照片</view>
  292. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  293. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fhw')" v-show="reviewStatus!='1'"></image>
  294. <view v-for="(item,index) in imgFhwArr" :key="index" style="position: relative;">
  295. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  296. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Fhw')">
  297. </image>
  298. </view>
  299. <view v-else>
  300. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  301. </view>
  302. <view @click="remove(index,'Fhw')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  303. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  304. </image>
  305. </view>
  306. </view>
  307. </view>
  308. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  309. <view class="container" style="color: #b2b2b2;">*请上传调八角照片</view>
  310. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  311. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Bj')" v-show="reviewStatus!='1'"></image>
  312. <view v-for="(item,index) in imgBjArr" :key="index" style="position: relative;">
  313. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  314. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,'Bj')">
  315. </image>
  316. </view>
  317. <view v-else>
  318. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  319. </view>
  320. <view @click="remove(index,'Bj')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  321. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  322. </image>
  323. </view>
  324. </view>
  325. </view>
  326. </view>
  327. </view>
  328. </view>
  329. </view>
  330. </view>
  331. </view>
  332. <view class="action-btn" v-show="reviewStatus!='1'" style="display: flex;padding: 5px;">
  333. <button @click="submit('submit')" class="btn cu-btn block bg-blue lg round" style="margin-right: 10px;">确认上传</button>
  334. <button @click="submit('save')" class="btn cu-btn block bg-blue lg round" v-if="objValue.enginType == 'old_renovation'">暂存</button>
  335. </view>
  336. <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
  337. <yt-dateTimePicker ref="myPicker" @submit="handleSubmit" :start-year="2024" :end-year="2099" :time-hide="[true, true, true, true, true, true]" :time-label="['年', '月', '日', '时', '分', '秒']" />
  338. </scroll-view>
  339. </template>
  340. <script>
  341. import SelectPicker from '../../../components/selectPicker/select_picker.vue'
  342. import bottomSheet from '../../../components/bottomSheet/bottomSheet.vue'
  343. import {
  344. getDicts
  345. } from "@/api/system/dict/data";
  346. import {
  347. getAreaList,
  348. getBuildingList,
  349. addTearOldPipe,
  350. getEnginMaterialQualityList,
  351. getEnginSpecificationsList,
  352. getRoomProjectList,
  353. getRoomProjectId,
  354. } from '@/api/common'
  355. import {
  356. getToken
  357. } from '../../../utils/auth';
  358. export default {
  359. components: {
  360. SelectPicker,
  361. bottomSheet,
  362. },
  363. data() {
  364. return {
  365. headers: {
  366. Authorization: "Bearer " + getToken()
  367. },
  368. type: '',
  369. reviewStatus: '', //是否可以点击
  370. open: false,
  371. objValue: '', //上一页面传过来的值 新增接口用
  372. openDict: false,
  373. selectList: [],
  374. dictOptions: [],
  375. imgArr: [],
  376. stonePowderArr: [],
  377. warningtTapeArr: [],
  378. photosAfterArr: [],
  379. XQValue: {},
  380. XZQValue: {},
  381. projectValue: {
  382. 'dictValue': '0'
  383. },
  384. LevelValue: {},
  385. isOkValue: '', //分段打压是否合格
  386. isOkLabel: '', //分段打压是否合格label
  387. LDValue: {},
  388. time: '', //施工时间
  389. timeType: '', //时间类型
  390. BackfillingTime: '', //回填时间
  391. showTime: false,
  392. specificationValue: {}, //规格
  393. projectContent: '', //施工内容
  394. materialValue: {}, //材质
  395. brandValue: {}, //品牌
  396. doorValue: {}, //上门类型
  397. SelfClosValve: {}, //自闭阀类型
  398. materialList: '', //材质list
  399. XQList: '',
  400. LDList: '',
  401. progress: 0, //上传图片进度百分比
  402. loading: false,
  403. inputNumberValue: '',
  404. title: '',
  405. historyList: {}, //历史数据
  406. imgSfhtArr: [],
  407. imgFljdArr: [],
  408. imgBoxArr: [],
  409. imgDtljArr: [],
  410. imgHldmyhArr: [],
  411. imgTgArr: [],
  412. imgNbmhArr: [],
  413. imgFhwArr: [],
  414. imgBjArr: [],
  415. historyName: '恢复暂存',
  416. tempState: '',
  417. }
  418. },
  419. created() {
  420. this.time = this.traversalTime(new Date().getTime()) //在data里定义变量-nowTime
  421. },
  422. onLoad(options) {
  423. if ('params' in options) {
  424. this.objValue = JSON.parse(decodeURIComponent(options.params));
  425. if (this.objValue.enginType == `old_renovation`) {
  426. this.title = '旧改工程-庭院'
  427. } else if (this.objValue.enginType == `new_built`) {
  428. this.title = '新建工程-庭院'
  429. }
  430. uni.setNavigationBarTitle({
  431. title: this.title
  432. })
  433. }
  434. },
  435. methods: {
  436. // 打开picker
  437. openDatetimePicker(type) {
  438. this.timeType = type;
  439. this.$refs.myPicker.show();
  440. },
  441. // 关闭picker
  442. closeDatetimePicker() {
  443. this.$refs.myPicker.hide();
  444. },
  445. handleSubmit(e) {
  446. if (this.timeType == 'ht') {
  447. this.BackfillingTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
  448. } else {
  449. this.time = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
  450. }
  451. },
  452. //获取当前时间
  453. traversalTime(timestamp) {
  454. //timestamp(时间戳)是整数,否则要parseInt转换
  455. let time = new Date(timestamp);
  456. let y = time.getFullYear();
  457. let m = time.getMonth() + 1;
  458. let d = time.getDate();
  459. let h = time.getHours();
  460. let mm = time.getMinutes();
  461. let s = time.getSeconds();
  462. return y + '-' + this.addTimes(m) + '-' + this.addTimes(d) + ' ' + this.addTimes(h) + ':' + this.addTimes(
  463. mm) + ':' + this.addTimes(s);
  464. },
  465. addTimes(m) {
  466. return m < 10 ? '0' + m : m
  467. },
  468. //判断是否选择
  469. isEmpty(str) {
  470. return (!str || 0 === str.length);
  471. },
  472. // 显示历史弹窗
  473. handleShowSheet() {
  474. this.shareState = true;
  475. },
  476. // 隐藏历史弹窗
  477. handleHiddenShare() {
  478. this.shareState = false;
  479. },
  480. showPhoto(index, type) {
  481. let typeArr = [];
  482. let newArr = [];
  483. if (type == 'other') {
  484. typeArr = this.imgArr;
  485. } else if (type == 'sfht') {
  486. typeArr = this.stonePowderArr;
  487. } else if (type == 'jsdps') {
  488. typeArr = this.warningtTapeArr;
  489. } else if (type == 'hth') {
  490. typeArr = this.photosAfterArr;
  491. } else if (type == 'Box') {
  492. typeArr = this.imgBoxArr;
  493. } else if (type == 'Sfht') {
  494. typeArr = this.imgSfhtArr;
  495. } else if (type == 'Fljd') {
  496. typeArr = this.imgFljdArr;
  497. } else if (type == 'Dtlj') {
  498. typeArr = this.imgDtljArr;
  499. } else if (type == 'Hldmyh') {
  500. typeArr = this.imgHldmyhArr;
  501. } else if (type == 'Tg') {
  502. typeArr = this.imgTgArr;
  503. } else if (type == 'Nbmh') {
  504. typeArr = this.imgNbmhArr;
  505. } else if (type == 'Fhw') {
  506. typeArr = this.imgFhwArr;
  507. } else if (type == 'Bj') {
  508. typeArr = this.imgBjArr;
  509. }
  510. typeArr.forEach((item, index) => {
  511. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
  512. item.substring(item.length - 4) == 'jpeg') {
  513. newArr.push(item)
  514. }
  515. });
  516. uni.previewImage({
  517. current: index,
  518. urls: newArr,
  519. })
  520. },
  521. remove(index, type) {
  522. uni.showModal({
  523. title: '提示',
  524. content: '是否删除该图片或视频?',
  525. success: (res) => {
  526. if (res.confirm) {
  527. if (type == 'other') {
  528. this.imgArr.splice(index, 1)
  529. if (this.imgArr.length <= 0) {
  530. this.photo = true;
  531. }
  532. } else if (type == 'sfht') {
  533. this.stonePowderArr.splice(index, 1)
  534. if (this.stonePowderArr.length <= 0) {
  535. this.photo = true;
  536. }
  537. } else if (type == 'jsdps') {
  538. this.warningtTapeArr.splice(index, 1)
  539. if (this.warningtTapeArr.length <= 0) {
  540. this.photo = true;
  541. }
  542. } else if (type == 'hth') {
  543. this.photosAfterArr.splice(index, 1)
  544. if (this.photosAfterArr.length <= 0) {
  545. this.photo = true;
  546. }
  547. } else if (type == 'Box') {
  548. this.imgBoxArr.splice(index, 1)
  549. } else if (type == 'Sfht') {
  550. this.imgSfhtArr.splice(index, 1)
  551. } else if (type == 'Fljd') {
  552. this.imgFljdArr.splice(index, 1)
  553. } else if (type == 'Dtlj') {
  554. this.imgDtljArr.splice(index, 1)
  555. } else if (type == 'Hldmyh') {
  556. this.imgHldmyhArr.splice(index, 1)
  557. } else if (type == 'Tg') {
  558. this.imgTgArr.splice(index, 1)
  559. } else if (type == 'Nbmh') {
  560. this.imgNbmhArr.splice(index, 1)
  561. } else if (type == 'Fhw') {
  562. this.imgFhwArr.splice(index, 1)
  563. } else if (type == 'Bj') {
  564. this.imgBjArr.splice(index, 1)
  565. }
  566. }
  567. }
  568. })
  569. },
  570. choose(e) {
  571. let _this = this;
  572. uni.showActionSheet({
  573. title: '上传',
  574. itemList: ['图片', '视频'],
  575. success: (res) => {
  576. if (res.tapIndex == 0) {
  577. this.chooseimage(e)
  578. } else {
  579. this.choosevideo(e)
  580. }
  581. }
  582. })
  583. },
  584. chooseimage(e) {
  585. let _this = this;
  586. uni.chooseImage({
  587. sourceType: this.objValue.enginType == `old_renovation` ? ['camera'] : ['album', 'camera'],
  588. success(resp) {
  589. resp.tempFiles.forEach((item, index) => {
  590. const task = uni.uploadFile({
  591. url: _this.$HTTP + `/obs`,
  592. filePath: item.path,
  593. name: 'file',
  594. formData: {},
  595. header: _this.headers,
  596. success: res => {
  597. // 判断是否json字符串,将其转为json格式
  598. // let data = _this.$u.test.jsonString(res
  599. // .data) ? JSON.parse(res.data) : res.data;
  600. let data = JSON.parse(res.data);
  601. if (![200].includes(data.code)) {
  602. // this.uploadError(index, data);
  603. _this.$modal.msg(data.msg)
  604. } else {
  605. if (_this.progress === 100) {
  606. if (e == 'other') {
  607. _this.imgArr.push(data.data.url)
  608. } else if (e == 'sfht') {
  609. _this.stonePowderArr.push(data.data.url)
  610. } else if (e == 'jsdps') {
  611. _this.warningtTapeArr.push(data.data.url)
  612. } else if (e == 'hth') {
  613. _this.photosAfterArr.push(data.data.url)
  614. } else if (e == 'Box') {
  615. _this.imgBoxArr.push(data.data.url)
  616. } else if (e == 'Sfht') {
  617. _this.imgSfhtArr.push(data.data.url)
  618. } else if (e == 'Fljd') {
  619. _this.imgFljdArr.push(data.data.url)
  620. } else if (e == 'Dtlj') {
  621. _this.imgDtljArr.push(data.data.url)
  622. } else if (e == 'Hldmyh') {
  623. _this.imgHldmyhArr.push(data.data.url)
  624. } else if (e == 'Tg') {
  625. _this.imgTgArr.push(data.data.url)
  626. } else if (e == 'Nbmh') {
  627. _this.imgNbmhArr.push(data.data.url)
  628. } else if (e == 'Fhw') {
  629. _this.imgFhwArr.push(data.data.url)
  630. } else if (e == 'Bj') {
  631. _this.imgBjArr.push(data.data.url)
  632. }
  633. _this.$modal.msg('上传成功!')
  634. _this.photo = false;
  635. }
  636. }
  637. },
  638. fail: e => {
  639. _this.$modal.msg('上传失败!')
  640. //_this.uploadError(index, e);
  641. },
  642. complete: res => {
  643. uni.hideLoading();
  644. _this.uploading = false;
  645. }
  646. });
  647. task.onProgressUpdate(res => {
  648. _this.progress = res.progress;
  649. uni.showLoading({
  650. title: '上传中'
  651. })
  652. if (_this.progress != 100) {
  653. _this.loading = false
  654. } else {
  655. _this.loading = true
  656. }
  657. });
  658. })
  659. },
  660. })
  661. },
  662. choosevideo(e) {
  663. let _this = this;
  664. uni.chooseVideo({
  665. sourceType: this.objValue.enginType == `old_renovation` ? ['camera'] : ['album', 'camera'],
  666. maxDuration: 30,
  667. success(resp) {
  668. const task = uni.uploadFile({
  669. url: _this.$HTTP + `/obs`,
  670. filePath: resp.tempFilePath,
  671. name: 'file',
  672. formData: {},
  673. header: _this.headers,
  674. success: res => {
  675. // 判断是否json字符串,将其转为json格式
  676. let data = JSON.parse(res.data);
  677. if (![200].includes(res.statusCode)) {
  678. this.uploadError(index, data);
  679. } else {
  680. //上传成功
  681. if (_this.progress === 100) {
  682. if (e == 'other') {
  683. _this.imgArr.push(data.data.url)
  684. } else if (e == 'sfht') {
  685. _this.stonePowderArr.push(data.data.url)
  686. } else if (e == 'jsdps') {
  687. _this.warningtTapeArr.push(data.data.url)
  688. } else if (e == 'hth') {
  689. _this.photosAfterArr.push(data.data.url)
  690. } else if (e == 'Box') {
  691. _this.imgBoxArr.push(data.data.url)
  692. } else if (e == 'Sfht') {
  693. _this.imgSfhtArr.push(data.data.url)
  694. } else if (e == 'Fljd') {
  695. _this.imgFljdArr.push(data.data.url)
  696. } else if (e == 'Dtlj') {
  697. _this.imgDtljArr.push(data.data.url)
  698. } else if (e == 'Hldmyh') {
  699. _this.imgHldmyhArr.push(data.data.url)
  700. } else if (e == 'Tg') {
  701. _this.imgTgArr.push(data.data.url)
  702. } else if (e == 'Nbmh') {
  703. _this.imgNbmhArr.push(data.data.url)
  704. } else if (e == 'Fhw') {
  705. _this.imgFhwArr.push(data.data.url)
  706. } else if (e == 'Bj') {
  707. _this.imgBjArr.push(data.data.url)
  708. }
  709. _this.$modal.msg('上传成功!')
  710. _this.photo = false;
  711. }
  712. }
  713. },
  714. fail: e => {
  715. _this.$modal.msg('上传失败!')
  716. this.uploadError(index, e);
  717. },
  718. complete: res => {
  719. uni.hideLoading();
  720. _this.uploading = false;
  721. }
  722. });
  723. task.onProgressUpdate(res => {
  724. _this.progress = res.progress;
  725. uni.showLoading({
  726. title: '上传中'
  727. })
  728. if (_this.progress != 100) {
  729. _this.loading = false
  730. } else {
  731. _this.loading = true
  732. }
  733. });
  734. },
  735. })
  736. },
  737. pickerShow(e) {
  738. this.type = e; //赋值类型
  739. if (e == 'cz') { //材质
  740. this.open = true;
  741. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  742. .objValue.enginClassValue).then(
  743. response => {
  744. this.selectList = response.data;
  745. });
  746. } else if (e == 'gg') { //规格
  747. if (this.isEmpty(this.materialValue.id)) {
  748. this.$modal.msg('请选择材质')
  749. } else {
  750. this.open = true;
  751. this.selectList = this.materialList;
  752. }
  753. } else if (e == 'gczq') { //工程周期
  754. this.openDict = true;
  755. getDicts("engin_cycle").then(response => {
  756. this.dictOptions = response.data;
  757. });
  758. } else if (e == 'xzq') { //行政区
  759. if (this.isEmpty(this.projectValue.dictValue)) {
  760. this.$modal.msg('请选择工程周期')
  761. } else {
  762. this.openDict = true;
  763. getDicts("district").then(response => {
  764. this.dictOptions = response.data;
  765. });
  766. }
  767. //this.selectList = this.dictOptions;
  768. } else if (e == 'xq') { //小区
  769. if (this.isEmpty(this.XZQValue.dictValue)) {
  770. getAreaList('').then(res => {
  771. this.XQList = res.data;
  772. this.open = true;
  773. this.selectList = this.XQList;
  774. })
  775. } else {
  776. this.open = true;
  777. this.selectList = this.XQList;
  778. }
  779. } else if (e == 'ld') { //楼栋
  780. if (this.isEmpty(this.XQValue.id)) {
  781. this.$modal.msg('请选择小区')
  782. } else {
  783. this.open = true;
  784. this.selectList = this.LDList;
  785. }
  786. }
  787. },
  788. changeSelectDict(item, index) {
  789. this.openDict = false;
  790. if (this.type == 'isok') {
  791. this.isOkValue = item
  792. } else if (this.type == 'gczq') {
  793. this.projectValue = item
  794. if (!this.isEmpty(this.XQValue.id)) {
  795. //房间选完 判断 工程周期 工程周期切换
  796. this.getStatus();
  797. }
  798. } else if (this.type == 'xzq') {
  799. this.XZQValue = item;
  800. //根据行政区id获取小区数据
  801. this.XQValue = ''; //重置小区数据
  802. this.LDValue = ''; //重置楼栋数据
  803. getAreaList(item.dictValue).then(res => {
  804. this.XQList = res.data;
  805. })
  806. }
  807. },
  808. changeSelect(item, index) {
  809. // this.index = index;
  810. // this.address = item.communityName;
  811. this.open = false;
  812. if (this.type == 'cz') {
  813. this.materialValue = item;
  814. this.specificationValue = ''; //重置规格
  815. //根据材质ID 获取规格数据
  816. getEnginSpecificationsList(item.id).then(res => {
  817. this.materialList = res.data
  818. })
  819. } else if (this.type == 'gg') {
  820. this.specificationValue = item;
  821. } else if (this.type == 'xq') {
  822. this.XZQValue = {
  823. dictValue: item.district,
  824. dictLabel: item.districtName
  825. };
  826. this.XQValue = item;
  827. if (!this.isEmpty(this.projectValue.dictValue)) {
  828. //小区选完 判断 工程周期
  829. this.getStatus();
  830. }
  831. //根据小区id 获取楼栋数据
  832. this.LDValue = ''; //重置楼栋数据
  833. this.DYValue = ''; //重置单元数据
  834. this.FJValue = ''; //重置房间数据
  835. getBuildingList(item.id).then(res => {
  836. this.LDList = res.data
  837. })
  838. } else if (this.type == 'ld') {
  839. this.LDValue = item;
  840. if (!this.isEmpty(this.projectValue.dictValue)) {
  841. //楼栋选完 判断 工程周期
  842. this.getStatus();
  843. }
  844. }
  845. },
  846. //关闭弹窗
  847. close(e) {
  848. this.open = false
  849. },
  850. //关闭弹窗
  851. closeDict(e) {
  852. this.openDict = false
  853. },
  854. getStatus() {
  855. let unitId = '';
  856. let houseId = '';
  857. let buildingId = '';
  858. if (this.isEmpty(this.LDValue.id)) {
  859. buildingId = '';
  860. } else {
  861. buildingId = this.LDValue.id
  862. }
  863. let param = {
  864. areaId: this.XQValue.id, // 小区id
  865. buildingId: buildingId, // 楼宇id
  866. unitId: unitId,
  867. houseId: houseId, //传空
  868. enginCycle: this.projectValue.dictValue, // 工程周期
  869. enginType: this.objValue.enginType, //写死 上一页面传过来的
  870. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  871. }
  872. getRoomProjectId(param).then(res => {
  873. if (res.code == '200') {
  874. if (res.data != null && res.data.zEngineeringNodeBoList != null) {
  875. res.data.zEngineeringNodeBoList.forEach((item, index) => {
  876. if (this.objValue.enginClassValue == item.type) {
  877. this.reviewStatus = item.reviewStatus;
  878. if (item.reviewStatus == '1')
  879. this.$modal.msg('当前工程已结束')
  880. }
  881. })
  882. } else {
  883. this.reviewStatus = '' //置空
  884. }
  885. } else {
  886. this.$modal.msg(res.msg)
  887. this.reviewStatus = '' //置空
  888. }
  889. })
  890. },
  891. //提交数据
  892. submit(e) {
  893. this.tempState = e == 'submit' ? '' : '99'
  894. if (this.isEmpty(this.projectValue.dictValue)) {
  895. this.$modal.msg("请选择工程周期")
  896. return
  897. }
  898. if (this.isEmpty(this.XZQValue.dictValue)) {
  899. this.$modal.msg("请选择行政区")
  900. return
  901. }
  902. if (this.isEmpty(this.XQValue.id)) {
  903. this.$modal.msg("请选择小区")
  904. return
  905. }
  906. // else if (this.isEmpty(this.LDValue.id)) {
  907. // this.$modal.msg("请选择楼栋")
  908. // }
  909. if (this.objValue.enginClassValue == '回填') {
  910. // if (this.stonePowderArr.length <= 0) {
  911. // this.$modal.msg('请上传石粉回填照片')
  912. // return
  913. // }
  914. if (this.warningtTapeArr.length <= 0) {
  915. this.$modal.msg('请上传警示带铺设照片')
  916. return
  917. }
  918. if (this.photosAfterArr.length <= 0) {
  919. this.$modal.msg('请上传回填后照片')
  920. return
  921. }
  922. } else if (this.objValue.enginClassValue == '调压柜') {
  923. if (this.imgBoxArr.length <= 0) {
  924. this.$modal.msg('请上传调压箱名牌照片')
  925. return
  926. }
  927. if (this.imgSfhtArr.length <= 0) {
  928. this.$modal.msg('请上传调压箱内石粉回填照片')
  929. return
  930. }
  931. if (this.imgFljdArr.length <= 0) {
  932. this.$modal.msg('请上传调压箱防雷接地照片')
  933. return
  934. }
  935. if (this.imgDtljArr.length <= 0) {
  936. this.$modal.msg('请上传调压箱底腿连接照片')
  937. return
  938. }
  939. if (this.imgHldmyhArr.length <= 0) {
  940. this.$modal.msg('请上传调压箱护栏及地面硬化(远景)照片')
  941. return
  942. }
  943. } else if (this.objValue.enginClassValue == '阀井') {
  944. if (this.imgTgArr.length <= 0) {
  945. this.$modal.msg('请上传套管照片')
  946. return
  947. }
  948. if (this.imgNbmhArr.length <= 0) {
  949. this.$modal.msg('请上传内壁抹灰照片')
  950. return
  951. }
  952. if (this.imgFhwArr.length <= 0) {
  953. this.$modal.msg('请上传防护网照片')
  954. return
  955. }
  956. if (this.imgBjArr.length <= 0) {
  957. this.$modal.msg('请上传八角照片')
  958. return
  959. }
  960. } else {
  961. if (this.imgArr.length <= 0) {
  962. this.$modal.msg('请上传照片或视频')
  963. return
  964. }
  965. }
  966. // if (this.loading == false) {
  967. // this.$modal.msg('照片或视频未上传完毕,无法提交!')
  968. // return
  969. // }
  970. //提交
  971. this.onsubmit();
  972. },
  973. onsubmit() {
  974. let unitId = '';
  975. let houseId = '';
  976. let buildingId = '';
  977. if (this.isEmpty(this.LDValue.id)) {
  978. buildingId = '';
  979. } else {
  980. buildingId = this.LDValue.id
  981. }
  982. //提交
  983. let param = {
  984. district: this.XZQValue.dictValue,
  985. areaId: this.XQValue.id,
  986. buildingId: buildingId, //不必传 如果没有传 ' '
  987. unitId: unitId,
  988. houseId: houseId, //传空
  989. enginType: this.objValue.enginType, //写死 上一页面传过来的
  990. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  991. enginCycle: this.projectValue.dictValue, //工程周期
  992. zEngineeringNodeBo: {
  993. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  994. zEngineeringInfoBo: {
  995. state: this.tempState,
  996. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  997. warningtTape: this.warningtTapeArr,
  998. photosAfter: this.photosAfterArr,
  999. constructTime: this.time, //施工时间
  1000. remark: this.projectContent, //施工内容
  1001. boxBrand: this.imgBoxArr,
  1002. stonePowder: this.stonePowderArr.length > 0 ? this.stonePowderArr : this.imgSfhtArr,
  1003. lightning: this.imgFljdArr,
  1004. bottomLeg: this.imgDtljArr,
  1005. groundHardening: this.imgHldmyhArr,
  1006. cannula: this.imgTgArr,
  1007. wallPlaster: this.imgNbmhArr,
  1008. protectiveNet: this.imgFhwArr,
  1009. starAnise: this.imgBjArr,
  1010. }
  1011. }
  1012. }
  1013. uni.showLoading()
  1014. addTearOldPipe(param).then(res => {
  1015. if (res.code == '200') {
  1016. uni.hideLoading()
  1017. uni.showToast({
  1018. title: res.msg,
  1019. icon: 'none',
  1020. //显示持续时间为 3秒
  1021. duration: 2000
  1022. });
  1023. setTimeout(function() {
  1024. uni.navigateBack();
  1025. }, 1000)
  1026. }
  1027. })
  1028. },
  1029. history() {
  1030. this.imgArr = [];
  1031. this.projectContent = '';
  1032. this.stonePowderArr = [];
  1033. this.warningtTapeArr = [];
  1034. this.photosAfterArr = [];
  1035. this.imgBoxArr = [];
  1036. this.imgSfhtArr = [];
  1037. this.imgFljdArr = [];
  1038. this.imgDtljArr = [];
  1039. this.imgHldmyhArr = [];
  1040. this.imgTgArr = [];
  1041. this.imgNbmhArr = [];
  1042. this.imgFhwArr = [];
  1043. this.imgBjArr = [];
  1044. if (this.isEmpty(this.projectValue.dictValue)) {
  1045. this.$modal.msg("请选择工程周期")
  1046. return
  1047. }
  1048. if (this.isEmpty(this.XZQValue.dictValue)) {
  1049. this.$modal.msg("请选择行政区")
  1050. return
  1051. }
  1052. if (this.isEmpty(this.XQValue.id)) {
  1053. this.$modal.msg("请选择小区")
  1054. return
  1055. }
  1056. let unitId = '';
  1057. let houseId = '';
  1058. let buildingId = '';
  1059. if (this.isEmpty(this.LDValue.id)) {
  1060. buildingId = '';
  1061. } else {
  1062. buildingId = this.LDValue.id
  1063. }
  1064. let param = {
  1065. areaId: this.XQValue.id, // 小区id
  1066. buildingId: buildingId, // 楼宇id
  1067. enginCycle: this.projectValue.dictValue, // 工程周期
  1068. unitId: unitId,
  1069. houseId: houseId, //传空
  1070. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1071. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1072. }
  1073. getRoomProjectId(param).then(res => {
  1074. if (res.code == '200') {
  1075. if (res.data != null) {
  1076. getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(
  1077. res => {
  1078. this.historyList = res.data
  1079. if (res.data.zEngineeringNodeBo != null) {
  1080. // this.showHistoryList();
  1081. // if (res.data.zEngineeringNodeBo.reviewStatus != null && res.data.zEngineeringNodeBo.reviewStatus == '99') {
  1082. // this.historyName = '恢复暂存';
  1083. // } else {
  1084. // this.historyName = '';
  1085. // }
  1086. if (res.data.zEngineeringNodeBo.reviewStatus == '1') {
  1087. // this.showHistoryList();
  1088. this.$modal.msg("当前步骤以审核通过请谨慎!")
  1089. } else if (res.data.zEngineeringNodeBo.reviewStatus == '99') {
  1090. let dataJson = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0];
  1091. this.projectContent = dataJson.remark;
  1092. this.time = dataJson.constructTime;
  1093. if (this.objValue.enginClassValue == '开挖前' || this.objValue.enginClassValue == '开挖后' || this.objValue.enginClassValue == '焊口照片' || this.objValue.enginClassValue == '隐蔽工程' || this.objValue.enginClassValue == '管道施工记录') {
  1094. this.imgArr = dataJson.zEngiineeringPhotoBoList;
  1095. } else if (this.objValue.enginClassValue == '回填') {
  1096. this.stonePowderArr = dataJson.stonePowder;
  1097. this.warningtTapeArr = dataJson.warningtTape;
  1098. this.photosAfterArr = dataJson.photosAfter;
  1099. } else if (this.objValue.enginClassValue == '调压柜') {
  1100. this.imgBoxArr = dataJson.boxBrand;
  1101. this.imgSfhtArr = dataJson.stonePowder;
  1102. this.imgFljdArr = dataJson.lightning;
  1103. this.imgDtljArr = dataJson.bottomLeg;
  1104. this.imgHldmyhArr = dataJson.groundHardening;
  1105. } else if (this.objValue.enginClassValue == '阀井') {
  1106. this.imgTgArr = dataJson.cannula;
  1107. this.imgNbmhArr = dataJson.wallPlaster;
  1108. this.imgFhwArr = dataJson.protectiveNet;
  1109. this.imgBjArr = dataJson.starAnise;
  1110. }
  1111. } else {
  1112. this.$modal.msg("暂无暂存信息")
  1113. }
  1114. } else {
  1115. this.$modal.msg("暂无历史信息")
  1116. }
  1117. })
  1118. } else {
  1119. this.$modal.msg("暂无工程信息")
  1120. }
  1121. } else {
  1122. this.$modal.msg(res.msg)
  1123. }
  1124. })
  1125. },
  1126. showHistoryList() {
  1127. this.$refs.refShare.handleShowShare();
  1128. }
  1129. }
  1130. }
  1131. </script>
  1132. <style lang="scss">
  1133. .container {
  1134. display: flex;
  1135. align-items: center;
  1136. justify-content: space-between;
  1137. padding: 10px;
  1138. position: relative;
  1139. }
  1140. .uni-list {
  1141. border: 1xp solid #eee;
  1142. }
  1143. .to-right-icon {
  1144. width: 15px;
  1145. height: 15px;
  1146. position: absolute;
  1147. top: 50%;
  1148. transform: translateY(-50%);
  1149. }
  1150. .text {
  1151. font-size: 16px;
  1152. color: #333;
  1153. }
  1154. .background {
  1155. // border: 15px solid hsla(0, 0%, 100%, .5);
  1156. background: white;
  1157. background-clip: padding-box;
  1158. padding: 20rpx;
  1159. border-radius: 20rpx;
  1160. margin: 20rpx;
  1161. /*从padding开始往外面裁剪背景*/
  1162. }
  1163. .btn {
  1164. width: 715rpx;
  1165. height: 69rpx;
  1166. background: #79A4F0;
  1167. border-radius: 6rpx;
  1168. font-size: 25rpx;
  1169. font-family: Microsoft YaHei;
  1170. font-weight: 400;
  1171. color: #FFFFFF;
  1172. line-height: 69rpx;
  1173. margin-top: 40rpx;
  1174. margin-bottom: 100rpx;
  1175. }
  1176. .number {
  1177. display: flex;
  1178. /* 水平居中显示子元素 */
  1179. align-items: flex-start;
  1180. /* 垂直居中显示子元素 */
  1181. justify-content: space-between;
  1182. /* 左右间距等于间距大小 */
  1183. padding: 10px;
  1184. /* 设置padding以提高视觉效果 */
  1185. }
  1186. .textarea {
  1187. margin-top: 10upx;
  1188. width: 100%;
  1189. border: 1rpx solid red;
  1190. min-height: 100upx;
  1191. line-height: 20px;
  1192. }
  1193. </style>