newcourtyard.vue 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361
  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. temporaryOrNot: false, //是否点击恢复暂存
  418. }
  419. },
  420. created() {
  421. this.time = this.traversalTime(new Date().getTime()) //在data里定义变量-nowTime
  422. },
  423. onLoad(options) {
  424. if ('params' in options) {
  425. this.objValue = JSON.parse(decodeURIComponent(options.params));
  426. if (this.objValue.enginType == `old_renovation`) {
  427. this.title = '旧改工程-庭院'
  428. } else if (this.objValue.enginType == `new_built`) {
  429. this.title = '新建工程-庭院'
  430. }
  431. uni.setNavigationBarTitle({
  432. title: this.title
  433. })
  434. }
  435. },
  436. methods: {
  437. // 打开picker
  438. openDatetimePicker(type) {
  439. this.timeType = type;
  440. this.$refs.myPicker.show();
  441. },
  442. // 关闭picker
  443. closeDatetimePicker() {
  444. this.$refs.myPicker.hide();
  445. },
  446. handleSubmit(e) {
  447. if (this.timeType == 'ht') {
  448. this.BackfillingTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
  449. } else {
  450. this.time = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
  451. }
  452. },
  453. //获取当前时间
  454. traversalTime(timestamp) {
  455. //timestamp(时间戳)是整数,否则要parseInt转换
  456. let time = new Date(timestamp);
  457. let y = time.getFullYear();
  458. let m = time.getMonth() + 1;
  459. let d = time.getDate();
  460. let h = time.getHours();
  461. let mm = time.getMinutes();
  462. let s = time.getSeconds();
  463. return y + '-' + this.addTimes(m) + '-' + this.addTimes(d) + ' ' + this.addTimes(h) + ':' + this.addTimes(
  464. mm) + ':' + this.addTimes(s);
  465. },
  466. addTimes(m) {
  467. return m < 10 ? '0' + m : m
  468. },
  469. //判断是否选择
  470. isEmpty(str) {
  471. return (!str || 0 === str.length);
  472. },
  473. // 显示历史弹窗
  474. handleShowSheet() {
  475. this.shareState = true;
  476. },
  477. // 隐藏历史弹窗
  478. handleHiddenShare() {
  479. this.shareState = false;
  480. },
  481. showPhoto(index, type) {
  482. let typeArr = [];
  483. let newArr = [];
  484. if (type == 'other') {
  485. typeArr = this.imgArr;
  486. } else if (type == 'sfht') {
  487. typeArr = this.stonePowderArr;
  488. } else if (type == 'jsdps') {
  489. typeArr = this.warningtTapeArr;
  490. } else if (type == 'hth') {
  491. typeArr = this.photosAfterArr;
  492. } else if (type == 'Box') {
  493. typeArr = this.imgBoxArr;
  494. } else if (type == 'Sfht') {
  495. typeArr = this.imgSfhtArr;
  496. } else if (type == 'Fljd') {
  497. typeArr = this.imgFljdArr;
  498. } else if (type == 'Dtlj') {
  499. typeArr = this.imgDtljArr;
  500. } else if (type == 'Hldmyh') {
  501. typeArr = this.imgHldmyhArr;
  502. } else if (type == 'Tg') {
  503. typeArr = this.imgTgArr;
  504. } else if (type == 'Nbmh') {
  505. typeArr = this.imgNbmhArr;
  506. } else if (type == 'Fhw') {
  507. typeArr = this.imgFhwArr;
  508. } else if (type == 'Bj') {
  509. typeArr = this.imgBjArr;
  510. }
  511. typeArr.forEach((item, index) => {
  512. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
  513. item.substring(item.length - 4) == 'jpeg') {
  514. newArr.push(item)
  515. }
  516. });
  517. uni.previewImage({
  518. current: index,
  519. urls: newArr,
  520. })
  521. },
  522. remove(index, type) {
  523. uni.showModal({
  524. title: '提示',
  525. content: '是否删除该图片或视频?',
  526. success: (res) => {
  527. if (res.confirm) {
  528. if (type == 'other') {
  529. this.imgArr.splice(index, 1)
  530. if (this.imgArr.length <= 0) {
  531. this.photo = true;
  532. }
  533. } else if (type == 'sfht') {
  534. this.stonePowderArr.splice(index, 1)
  535. if (this.stonePowderArr.length <= 0) {
  536. this.photo = true;
  537. }
  538. } else if (type == 'jsdps') {
  539. this.warningtTapeArr.splice(index, 1)
  540. if (this.warningtTapeArr.length <= 0) {
  541. this.photo = true;
  542. }
  543. } else if (type == 'hth') {
  544. this.photosAfterArr.splice(index, 1)
  545. if (this.photosAfterArr.length <= 0) {
  546. this.photo = true;
  547. }
  548. } else if (type == 'Box') {
  549. this.imgBoxArr.splice(index, 1)
  550. } else if (type == 'Sfht') {
  551. this.imgSfhtArr.splice(index, 1)
  552. } else if (type == 'Fljd') {
  553. this.imgFljdArr.splice(index, 1)
  554. } else if (type == 'Dtlj') {
  555. this.imgDtljArr.splice(index, 1)
  556. } else if (type == 'Hldmyh') {
  557. this.imgHldmyhArr.splice(index, 1)
  558. } else if (type == 'Tg') {
  559. this.imgTgArr.splice(index, 1)
  560. } else if (type == 'Nbmh') {
  561. this.imgNbmhArr.splice(index, 1)
  562. } else if (type == 'Fhw') {
  563. this.imgFhwArr.splice(index, 1)
  564. } else if (type == 'Bj') {
  565. this.imgBjArr.splice(index, 1)
  566. }
  567. }
  568. }
  569. })
  570. },
  571. choose(e) {
  572. let _this = this;
  573. uni.showActionSheet({
  574. title: '上传',
  575. itemList: ['图片', '视频'],
  576. success: (res) => {
  577. if (res.tapIndex == 0) {
  578. this.chooseimage(e)
  579. } else {
  580. this.choosevideo(e)
  581. }
  582. }
  583. })
  584. },
  585. chooseimage(e) {
  586. let _this = this;
  587. uni.chooseImage({
  588. sourceType: this.objValue.enginType == `old_renovation` ? ['camera'] : ['album', 'camera'],
  589. success(resp) {
  590. resp.tempFiles.forEach((item, index) => {
  591. const task = uni.uploadFile({
  592. url: _this.$HTTP + `/obs`,
  593. filePath: item.path,
  594. name: 'file',
  595. formData: {},
  596. header: _this.headers,
  597. success: res => {
  598. // 判断是否json字符串,将其转为json格式
  599. // let data = _this.$u.test.jsonString(res
  600. // .data) ? JSON.parse(res.data) : res.data;
  601. let data = JSON.parse(res.data);
  602. if (![200].includes(data.code)) {
  603. // this.uploadError(index, data);
  604. _this.$modal.msg(data.msg)
  605. } else {
  606. if (_this.progress === 100) {
  607. if (e == 'other') {
  608. _this.imgArr.push(data.data.url)
  609. } else if (e == 'sfht') {
  610. _this.stonePowderArr.push(data.data.url)
  611. } else if (e == 'jsdps') {
  612. _this.warningtTapeArr.push(data.data.url)
  613. } else if (e == 'hth') {
  614. _this.photosAfterArr.push(data.data.url)
  615. } else if (e == 'Box') {
  616. _this.imgBoxArr.push(data.data.url)
  617. } else if (e == 'Sfht') {
  618. _this.imgSfhtArr.push(data.data.url)
  619. } else if (e == 'Fljd') {
  620. _this.imgFljdArr.push(data.data.url)
  621. } else if (e == 'Dtlj') {
  622. _this.imgDtljArr.push(data.data.url)
  623. } else if (e == 'Hldmyh') {
  624. _this.imgHldmyhArr.push(data.data.url)
  625. } else if (e == 'Tg') {
  626. _this.imgTgArr.push(data.data.url)
  627. } else if (e == 'Nbmh') {
  628. _this.imgNbmhArr.push(data.data.url)
  629. } else if (e == 'Fhw') {
  630. _this.imgFhwArr.push(data.data.url)
  631. } else if (e == 'Bj') {
  632. _this.imgBjArr.push(data.data.url)
  633. }
  634. _this.$modal.msg('上传成功!')
  635. _this.photo = false;
  636. }
  637. }
  638. },
  639. fail: e => {
  640. _this.$modal.msg('上传失败!')
  641. //_this.uploadError(index, e);
  642. },
  643. complete: res => {
  644. uni.hideLoading();
  645. _this.uploading = false;
  646. }
  647. });
  648. task.onProgressUpdate(res => {
  649. _this.progress = res.progress;
  650. uni.showLoading({
  651. title: '上传中'
  652. })
  653. if (_this.progress != 100) {
  654. _this.loading = false
  655. } else {
  656. _this.loading = true
  657. }
  658. });
  659. })
  660. },
  661. })
  662. },
  663. choosevideo(e) {
  664. let _this = this;
  665. uni.chooseVideo({
  666. sourceType: this.objValue.enginType == `old_renovation` ? ['camera'] : ['album', 'camera'],
  667. maxDuration: 60,
  668. success(resp) {
  669. const task = uni.uploadFile({
  670. url: _this.$HTTP + `/obs`,
  671. filePath: resp.tempFilePath,
  672. name: 'file',
  673. formData: {},
  674. header: _this.headers,
  675. success: res => {
  676. // 判断是否json字符串,将其转为json格式
  677. let data = JSON.parse(res.data);
  678. if (![200].includes(res.statusCode)) {
  679. this.uploadError(index, data);
  680. } else {
  681. //上传成功
  682. if (_this.progress === 100) {
  683. if (e == 'other') {
  684. _this.imgArr.push(data.data.url)
  685. } else if (e == 'sfht') {
  686. _this.stonePowderArr.push(data.data.url)
  687. } else if (e == 'jsdps') {
  688. _this.warningtTapeArr.push(data.data.url)
  689. } else if (e == 'hth') {
  690. _this.photosAfterArr.push(data.data.url)
  691. } else if (e == 'Box') {
  692. _this.imgBoxArr.push(data.data.url)
  693. } else if (e == 'Sfht') {
  694. _this.imgSfhtArr.push(data.data.url)
  695. } else if (e == 'Fljd') {
  696. _this.imgFljdArr.push(data.data.url)
  697. } else if (e == 'Dtlj') {
  698. _this.imgDtljArr.push(data.data.url)
  699. } else if (e == 'Hldmyh') {
  700. _this.imgHldmyhArr.push(data.data.url)
  701. } else if (e == 'Tg') {
  702. _this.imgTgArr.push(data.data.url)
  703. } else if (e == 'Nbmh') {
  704. _this.imgNbmhArr.push(data.data.url)
  705. } else if (e == 'Fhw') {
  706. _this.imgFhwArr.push(data.data.url)
  707. } else if (e == 'Bj') {
  708. _this.imgBjArr.push(data.data.url)
  709. }
  710. _this.$modal.msg('上传成功!')
  711. _this.photo = false;
  712. }
  713. }
  714. },
  715. fail: e => {
  716. _this.$modal.msg('上传失败!')
  717. this.uploadError(index, e);
  718. },
  719. complete: res => {
  720. uni.hideLoading();
  721. _this.uploading = false;
  722. }
  723. });
  724. task.onProgressUpdate(res => {
  725. _this.progress = res.progress;
  726. uni.showLoading({
  727. title: '上传中'
  728. })
  729. if (_this.progress != 100) {
  730. _this.loading = false
  731. } else {
  732. _this.loading = true
  733. }
  734. });
  735. },
  736. })
  737. },
  738. pickerShow(e) {
  739. this.type = e; //赋值类型
  740. if (e == 'cz') { //材质
  741. this.open = true;
  742. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  743. .objValue.enginClassValue).then(
  744. response => {
  745. this.selectList = response.data;
  746. });
  747. } else if (e == 'gg') { //规格
  748. if (this.isEmpty(this.materialValue.id)) {
  749. this.$modal.msg('请选择材质')
  750. } else {
  751. this.open = true;
  752. this.selectList = this.materialList;
  753. }
  754. } else if (e == 'gczq') { //工程周期
  755. this.openDict = true;
  756. getDicts("engin_cycle").then(response => {
  757. this.dictOptions = response.data;
  758. });
  759. } else if (e == 'xzq') { //行政区
  760. if (this.isEmpty(this.projectValue.dictValue)) {
  761. this.$modal.msg('请选择工程周期')
  762. } else {
  763. this.openDict = true;
  764. getDicts("district").then(response => {
  765. this.dictOptions = response.data;
  766. });
  767. }
  768. //this.selectList = this.dictOptions;
  769. } else if (e == 'xq') { //小区
  770. if (this.isEmpty(this.XZQValue.dictValue)) {
  771. getAreaList('').then(res => {
  772. this.XQList = res.data;
  773. this.open = true;
  774. this.selectList = this.XQList;
  775. })
  776. } else {
  777. getAreaList(this.XZQValue.dictValue).then(res => {
  778. this.XQList = res.data;
  779. this.selectList = this.XQList;
  780. this.open = true;
  781. })
  782. }
  783. } else if (e == 'ld') { //楼栋
  784. if (this.isEmpty(this.XQValue.id)) {
  785. this.$modal.msg('请选择小区')
  786. } else {
  787. getBuildingList(this.XQValue.id).then(res => {
  788. this.LDList = res.data
  789. this.selectList = this.LDList;
  790. this.open = true;
  791. })
  792. }
  793. }
  794. },
  795. changeSelectDict(item, index) {
  796. this.openDict = false;
  797. if (this.type == 'isok') {
  798. this.isOkValue = item
  799. } else if (this.type == 'gczq') {
  800. this.projectValue = item
  801. if (!this.isEmpty(this.XQValue.id)) {
  802. //房间选完 判断 工程周期 工程周期切换
  803. this.getStatus();
  804. }
  805. } else if (this.type == 'xzq') {
  806. this.XZQValue = item;
  807. //根据行政区id获取小区数据
  808. this.XQValue = ''; //重置小区数据
  809. this.LDValue = ''; //重置楼栋数据
  810. }
  811. },
  812. changeSelect(item, index) {
  813. // this.index = index;
  814. // this.address = item.communityName;
  815. this.open = false;
  816. if (this.type == 'cz') {
  817. this.materialValue = item;
  818. this.specificationValue = ''; //重置规格
  819. //根据材质ID 获取规格数据
  820. getEnginSpecificationsList(item.id).then(res => {
  821. this.materialList = res.data
  822. })
  823. } else if (this.type == 'gg') {
  824. this.specificationValue = item;
  825. } else if (this.type == 'xq') {
  826. this.XZQValue = {
  827. dictValue: item.district,
  828. dictLabel: item.districtName
  829. };
  830. this.XQValue = item;
  831. if (!this.isEmpty(this.projectValue.dictValue)) {
  832. //小区选完 判断 工程周期
  833. this.getStatus();
  834. }
  835. //根据小区id 获取楼栋数据
  836. this.LDValue = ''; //重置楼栋数据
  837. this.DYValue = ''; //重置单元数据
  838. this.FJValue = ''; //重置房间数据
  839. } else if (this.type == 'ld') {
  840. this.LDValue = item;
  841. if (!this.isEmpty(this.projectValue.dictValue)) {
  842. //楼栋选完 判断 工程周期
  843. this.getStatus();
  844. }
  845. }
  846. },
  847. //关闭弹窗
  848. close(e) {
  849. this.open = false
  850. },
  851. //关闭弹窗
  852. closeDict(e) {
  853. this.openDict = false
  854. },
  855. getStatus() {
  856. let unitId = '';
  857. let houseId = '';
  858. let buildingId = '';
  859. if (this.isEmpty(this.LDValue.id)) {
  860. buildingId = '';
  861. } else {
  862. buildingId = this.LDValue.id
  863. }
  864. let param = {
  865. areaId: this.XQValue.id, // 小区id
  866. buildingId: buildingId, // 楼宇id
  867. unitId: unitId,
  868. houseId: houseId, //传空
  869. enginCycle: this.projectValue.dictValue, // 工程周期
  870. enginType: this.objValue.enginType, //写死 上一页面传过来的
  871. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  872. }
  873. getRoomProjectId(param).then(res => {
  874. if (res.code == '200') {
  875. if (res.data != null && res.data.zEngineeringNodeBoList != null) {
  876. res.data.zEngineeringNodeBoList.forEach((item, index) => {
  877. if (this.objValue.enginClassValue == item.type) {
  878. this.reviewStatus = item.reviewStatus;
  879. if (item.reviewStatus == '1')
  880. this.$modal.msg('当前工程已结束')
  881. }
  882. })
  883. } else {
  884. this.reviewStatus = '' //置空
  885. }
  886. } else {
  887. this.$modal.msg(res.msg)
  888. this.reviewStatus = '' //置空
  889. }
  890. })
  891. },
  892. //提交数据
  893. submit(e) {
  894. this.tempState = e == 'submit' ? '' : '99'
  895. if (this.isEmpty(this.projectValue.dictValue)) {
  896. this.$modal.msg("请选择工程周期")
  897. return
  898. }
  899. if (this.isEmpty(this.XZQValue.dictValue)) {
  900. this.$modal.msg("请选择行政区")
  901. return
  902. }
  903. if (this.isEmpty(this.XQValue.id)) {
  904. this.$modal.msg("请选择小区")
  905. return
  906. }
  907. // else if (this.isEmpty(this.LDValue.id)) {
  908. // this.$modal.msg("请选择楼栋")
  909. // }
  910. if (e == 'submit') {
  911. if (this.objValue.enginClassValue == '回填') {
  912. // if (this.stonePowderArr.length <= 0) {
  913. // this.$modal.msg('请上传石粉回填照片')
  914. // return
  915. // }
  916. if (this.warningtTapeArr.length <= 0) {
  917. this.$modal.msg('请上传警示带铺设照片')
  918. return
  919. }
  920. if (this.photosAfterArr.length <= 0) {
  921. this.$modal.msg('请上传回填后照片')
  922. return
  923. }
  924. } else if (this.objValue.enginClassValue == '调压柜') {
  925. if (this.imgBoxArr.length <= 0) {
  926. this.$modal.msg('请上传调压箱名牌照片')
  927. return
  928. }
  929. if (this.imgSfhtArr.length <= 0) {
  930. this.$modal.msg('请上传调压箱内石粉回填照片')
  931. return
  932. }
  933. if (this.imgFljdArr.length <= 0) {
  934. this.$modal.msg('请上传调压箱防雷接地照片')
  935. return
  936. }
  937. if (this.imgDtljArr.length <= 0) {
  938. this.$modal.msg('请上传调压箱底腿连接照片')
  939. return
  940. }
  941. if (this.imgHldmyhArr.length <= 0) {
  942. this.$modal.msg('请上传调压箱护栏及地面硬化(远景)照片')
  943. return
  944. }
  945. } else if (this.objValue.enginClassValue == '阀井') {
  946. if (this.imgTgArr.length <= 0) {
  947. this.$modal.msg('请上传套管照片')
  948. return
  949. }
  950. if (this.imgNbmhArr.length <= 0) {
  951. this.$modal.msg('请上传内壁抹灰照片')
  952. return
  953. }
  954. if (this.imgFhwArr.length <= 0) {
  955. this.$modal.msg('请上传防护网照片')
  956. return
  957. }
  958. if (this.imgBjArr.length <= 0) {
  959. this.$modal.msg('请上传八角照片')
  960. return
  961. }
  962. } else {
  963. if (this.imgArr.length <= 0) {
  964. this.$modal.msg('请上传照片或视频')
  965. return
  966. }
  967. }
  968. }
  969. // if (this.loading == false) {
  970. // this.$modal.msg('照片或视频未上传完毕,无法提交!')
  971. // return
  972. // }
  973. //提交
  974. this.onsubmit();
  975. },
  976. onsubmit() {
  977. let unitId = '';
  978. let houseId = '';
  979. let buildingId = '';
  980. if (this.isEmpty(this.LDValue.id)) {
  981. buildingId = '';
  982. } else {
  983. buildingId = this.LDValue.id
  984. }
  985. //提交
  986. let param = {
  987. district: this.XZQValue.dictValue,
  988. areaId: this.XQValue.id,
  989. buildingId: buildingId, //不必传 如果没有传 ' '
  990. unitId: unitId,
  991. houseId: houseId, //传空
  992. enginType: this.objValue.enginType, //写死 上一页面传过来的
  993. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  994. enginCycle: this.projectValue.dictValue, //工程周期
  995. zEngineeringNodeBo: {
  996. temporaryOrNot: this.temporaryOrNot,
  997. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  998. zEngineeringInfoBo: {
  999. state: this.tempState,
  1000. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1001. warningtTape: this.warningtTapeArr,
  1002. photosAfter: this.photosAfterArr,
  1003. constructTime: this.time, //施工时间
  1004. remark: this.projectContent, //施工内容
  1005. boxBrand: this.imgBoxArr,
  1006. stonePowder: this.stonePowderArr.length > 0 ? this.stonePowderArr : this.imgSfhtArr,
  1007. lightning: this.imgFljdArr,
  1008. bottomLeg: this.imgDtljArr,
  1009. groundHardening: this.imgHldmyhArr,
  1010. cannula: this.imgTgArr,
  1011. wallPlaster: this.imgNbmhArr,
  1012. protectiveNet: this.imgFhwArr,
  1013. starAnise: this.imgBjArr,
  1014. }
  1015. }
  1016. }
  1017. uni.showLoading()
  1018. addTearOldPipe(param).then(res => {
  1019. if (res.code == '200') {
  1020. uni.hideLoading()
  1021. uni.showToast({
  1022. title: res.msg,
  1023. icon: 'none',
  1024. //显示持续时间为 3秒
  1025. duration: 2000
  1026. });
  1027. setTimeout(function() {
  1028. uni.navigateBack();
  1029. }, 1000)
  1030. }
  1031. })
  1032. },
  1033. history() {
  1034. this.temporaryOrNot = true;
  1035. this.imgArr = [];
  1036. this.projectContent = '';
  1037. this.stonePowderArr = [];
  1038. this.warningtTapeArr = [];
  1039. this.photosAfterArr = [];
  1040. this.imgBoxArr = [];
  1041. this.imgSfhtArr = [];
  1042. this.imgFljdArr = [];
  1043. this.imgDtljArr = [];
  1044. this.imgHldmyhArr = [];
  1045. this.imgTgArr = [];
  1046. this.imgNbmhArr = [];
  1047. this.imgFhwArr = [];
  1048. this.imgBjArr = [];
  1049. if (this.isEmpty(this.projectValue.dictValue)) {
  1050. this.$modal.msg("请选择工程周期")
  1051. return
  1052. }
  1053. if (this.isEmpty(this.XZQValue.dictValue)) {
  1054. this.$modal.msg("请选择行政区")
  1055. return
  1056. }
  1057. if (this.isEmpty(this.XQValue.id)) {
  1058. this.$modal.msg("请选择小区")
  1059. return
  1060. }
  1061. let unitId = '';
  1062. let houseId = '';
  1063. let buildingId = '';
  1064. if (this.isEmpty(this.LDValue.id)) {
  1065. buildingId = '';
  1066. } else {
  1067. buildingId = this.LDValue.id
  1068. }
  1069. let param = {
  1070. areaId: this.XQValue.id, // 小区id
  1071. buildingId: buildingId, // 楼宇id
  1072. enginCycle: this.projectValue.dictValue, // 工程周期
  1073. unitId: unitId,
  1074. houseId: houseId, //传空
  1075. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1076. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1077. }
  1078. getRoomProjectId(param).then(res => {
  1079. if (res.code == '200') {
  1080. if (res.data != null) {
  1081. getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(
  1082. res => {
  1083. this.historyList = res.data
  1084. if (res.data.zEngineeringNodeBo != null) {
  1085. // this.showHistoryList();
  1086. // if (res.data.zEngineeringNodeBo.reviewStatus != null && res.data.zEngineeringNodeBo.reviewStatus == '99') {
  1087. // this.historyName = '恢复暂存';
  1088. // } else {
  1089. // this.historyName = '';
  1090. // }
  1091. if (res.data.zEngineeringNodeBo.reviewStatus == '1') {
  1092. // this.showHistoryList();
  1093. this.$modal.msg("当前步骤以审核通过请谨慎!")
  1094. } else if (res.data.zEngineeringNodeBo.reviewStatus == '99') {
  1095. this.temporaryOrNot = true;
  1096. let dataJson = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0];
  1097. this.projectContent = dataJson.remark;
  1098. this.time = dataJson.constructTime;
  1099. if (this.objValue.enginClassValue == '开挖前' || this.objValue.enginClassValue == '开挖后' || this.objValue.enginClassValue == '焊口照片' || this.objValue.enginClassValue == '隐蔽工程' || this.objValue.enginClassValue == '管道施工记录') {
  1100. this.imgArr = dataJson.zEngiineeringPhotoBoList;
  1101. } else if (this.objValue.enginClassValue == '回填') {
  1102. this.stonePowderArr = dataJson.stonePowder;
  1103. this.warningtTapeArr = dataJson.warningtTape;
  1104. this.photosAfterArr = dataJson.photosAfter;
  1105. } else if (this.objValue.enginClassValue == '调压柜') {
  1106. this.imgBoxArr = dataJson.boxBrand;
  1107. this.imgSfhtArr = dataJson.stonePowder;
  1108. this.imgFljdArr = dataJson.lightning;
  1109. this.imgDtljArr = dataJson.bottomLeg;
  1110. this.imgHldmyhArr = dataJson.groundHardening;
  1111. } else if (this.objValue.enginClassValue == '阀井') {
  1112. this.imgTgArr = dataJson.cannula;
  1113. this.imgNbmhArr = dataJson.wallPlaster;
  1114. this.imgFhwArr = dataJson.protectiveNet;
  1115. this.imgBjArr = dataJson.starAnise;
  1116. }
  1117. } else {
  1118. this.$modal.msg("暂无暂存信息")
  1119. }
  1120. } else {
  1121. this.$modal.msg("暂无历史信息")
  1122. }
  1123. })
  1124. } else {
  1125. this.$modal.msg("暂无工程信息")
  1126. }
  1127. } else {
  1128. this.$modal.msg(res.msg)
  1129. }
  1130. })
  1131. },
  1132. showHistoryList() {
  1133. this.$refs.refShare.handleShowShare();
  1134. }
  1135. }
  1136. }
  1137. </script>
  1138. <style lang="scss">
  1139. .container {
  1140. display: flex;
  1141. align-items: center;
  1142. justify-content: space-between;
  1143. padding: 10px;
  1144. position: relative;
  1145. }
  1146. .uni-list {
  1147. border: 1xp solid #eee;
  1148. }
  1149. .to-right-icon {
  1150. width: 15px;
  1151. height: 15px;
  1152. position: absolute;
  1153. top: 50%;
  1154. transform: translateY(-50%);
  1155. }
  1156. .text {
  1157. font-size: 16px;
  1158. color: #333;
  1159. }
  1160. .background {
  1161. // border: 15px solid hsla(0, 0%, 100%, .5);
  1162. background: white;
  1163. background-clip: padding-box;
  1164. padding: 20rpx;
  1165. border-radius: 20rpx;
  1166. margin: 20rpx;
  1167. /*从padding开始往外面裁剪背景*/
  1168. }
  1169. .btn {
  1170. width: 715rpx;
  1171. height: 69rpx;
  1172. background: #79A4F0;
  1173. border-radius: 6rpx;
  1174. font-size: 25rpx;
  1175. font-family: Microsoft YaHei;
  1176. font-weight: 400;
  1177. color: #FFFFFF;
  1178. line-height: 69rpx;
  1179. margin-top: 40rpx;
  1180. margin-bottom: 100rpx;
  1181. }
  1182. .number {
  1183. display: flex;
  1184. /* 水平居中显示子元素 */
  1185. align-items: flex-start;
  1186. /* 垂直居中显示子元素 */
  1187. justify-content: space-between;
  1188. /* 左右间距等于间距大小 */
  1189. padding: 10px;
  1190. /* 设置padding以提高视觉效果 */
  1191. }
  1192. .textarea {
  1193. margin-top: 10upx;
  1194. width: 100%;
  1195. border: 1rpx solid red;
  1196. min-height: 100upx;
  1197. line-height: 20px;
  1198. }
  1199. </style>