newcourtyard.vue 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358
  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. getAreaList(this.XZQValue.dictValue).then(res => {
  777. this.XQList = res.data;
  778. this.selectList = this.XQList;
  779. this.open = true;
  780. })
  781. }
  782. } else if (e == 'ld') { //楼栋
  783. if (this.isEmpty(this.XQValue.id)) {
  784. this.$modal.msg('请选择小区')
  785. } else {
  786. getBuildingList(this.XQValue.id).then(res => {
  787. this.LDList = res.data
  788. this.selectList = this.LDList;
  789. this.open = true;
  790. })
  791. }
  792. }
  793. },
  794. changeSelectDict(item, index) {
  795. this.openDict = false;
  796. if (this.type == 'isok') {
  797. this.isOkValue = item
  798. } else if (this.type == 'gczq') {
  799. this.projectValue = item
  800. if (!this.isEmpty(this.XQValue.id)) {
  801. //房间选完 判断 工程周期 工程周期切换
  802. this.getStatus();
  803. }
  804. } else if (this.type == 'xzq') {
  805. this.XZQValue = item;
  806. //根据行政区id获取小区数据
  807. this.XQValue = ''; //重置小区数据
  808. this.LDValue = ''; //重置楼栋数据
  809. }
  810. },
  811. changeSelect(item, index) {
  812. // this.index = index;
  813. // this.address = item.communityName;
  814. this.open = false;
  815. if (this.type == 'cz') {
  816. this.materialValue = item;
  817. this.specificationValue = ''; //重置规格
  818. //根据材质ID 获取规格数据
  819. getEnginSpecificationsList(item.id).then(res => {
  820. this.materialList = res.data
  821. })
  822. } else if (this.type == 'gg') {
  823. this.specificationValue = item;
  824. } else if (this.type == 'xq') {
  825. this.XZQValue = {
  826. dictValue: item.district,
  827. dictLabel: item.districtName
  828. };
  829. this.XQValue = item;
  830. if (!this.isEmpty(this.projectValue.dictValue)) {
  831. //小区选完 判断 工程周期
  832. this.getStatus();
  833. }
  834. //根据小区id 获取楼栋数据
  835. this.LDValue = ''; //重置楼栋数据
  836. this.DYValue = ''; //重置单元数据
  837. this.FJValue = ''; //重置房间数据
  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 (e == 'submit') {
  910. if (this.objValue.enginClassValue == '回填') {
  911. // if (this.stonePowderArr.length <= 0) {
  912. // this.$modal.msg('请上传石粉回填照片')
  913. // return
  914. // }
  915. if (this.warningtTapeArr.length <= 0) {
  916. this.$modal.msg('请上传警示带铺设照片')
  917. return
  918. }
  919. if (this.photosAfterArr.length <= 0) {
  920. this.$modal.msg('请上传回填后照片')
  921. return
  922. }
  923. } else if (this.objValue.enginClassValue == '调压柜') {
  924. if (this.imgBoxArr.length <= 0) {
  925. this.$modal.msg('请上传调压箱名牌照片')
  926. return
  927. }
  928. if (this.imgSfhtArr.length <= 0) {
  929. this.$modal.msg('请上传调压箱内石粉回填照片')
  930. return
  931. }
  932. if (this.imgFljdArr.length <= 0) {
  933. this.$modal.msg('请上传调压箱防雷接地照片')
  934. return
  935. }
  936. if (this.imgDtljArr.length <= 0) {
  937. this.$modal.msg('请上传调压箱底腿连接照片')
  938. return
  939. }
  940. if (this.imgHldmyhArr.length <= 0) {
  941. this.$modal.msg('请上传调压箱护栏及地面硬化(远景)照片')
  942. return
  943. }
  944. } else if (this.objValue.enginClassValue == '阀井') {
  945. if (this.imgTgArr.length <= 0) {
  946. this.$modal.msg('请上传套管照片')
  947. return
  948. }
  949. if (this.imgNbmhArr.length <= 0) {
  950. this.$modal.msg('请上传内壁抹灰照片')
  951. return
  952. }
  953. if (this.imgFhwArr.length <= 0) {
  954. this.$modal.msg('请上传防护网照片')
  955. return
  956. }
  957. if (this.imgBjArr.length <= 0) {
  958. this.$modal.msg('请上传八角照片')
  959. return
  960. }
  961. } else {
  962. if (this.imgArr.length <= 0) {
  963. this.$modal.msg('请上传照片或视频')
  964. return
  965. }
  966. }
  967. }
  968. // if (this.loading == false) {
  969. // this.$modal.msg('照片或视频未上传完毕,无法提交!')
  970. // return
  971. // }
  972. //提交
  973. this.onsubmit();
  974. },
  975. onsubmit() {
  976. let unitId = '';
  977. let houseId = '';
  978. let buildingId = '';
  979. if (this.isEmpty(this.LDValue.id)) {
  980. buildingId = '';
  981. } else {
  982. buildingId = this.LDValue.id
  983. }
  984. //提交
  985. let param = {
  986. district: this.XZQValue.dictValue,
  987. areaId: this.XQValue.id,
  988. buildingId: buildingId, //不必传 如果没有传 ' '
  989. unitId: unitId,
  990. houseId: houseId, //传空
  991. enginType: this.objValue.enginType, //写死 上一页面传过来的
  992. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  993. enginCycle: this.projectValue.dictValue, //工程周期
  994. zEngineeringNodeBo: {
  995. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  996. zEngineeringInfoBo: {
  997. state: this.tempState,
  998. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  999. warningtTape: this.warningtTapeArr,
  1000. photosAfter: this.photosAfterArr,
  1001. constructTime: this.time, //施工时间
  1002. remark: this.projectContent, //施工内容
  1003. boxBrand: this.imgBoxArr,
  1004. stonePowder: this.stonePowderArr.length > 0 ? this.stonePowderArr : this.imgSfhtArr,
  1005. lightning: this.imgFljdArr,
  1006. bottomLeg: this.imgDtljArr,
  1007. groundHardening: this.imgHldmyhArr,
  1008. cannula: this.imgTgArr,
  1009. wallPlaster: this.imgNbmhArr,
  1010. protectiveNet: this.imgFhwArr,
  1011. starAnise: this.imgBjArr,
  1012. }
  1013. }
  1014. }
  1015. uni.showLoading()
  1016. addTearOldPipe(param).then(res => {
  1017. if (res.code == '200') {
  1018. uni.hideLoading()
  1019. uni.showToast({
  1020. title: res.msg,
  1021. icon: 'none',
  1022. //显示持续时间为 3秒
  1023. duration: 2000
  1024. });
  1025. setTimeout(function() {
  1026. uni.navigateBack();
  1027. }, 1000)
  1028. }
  1029. })
  1030. },
  1031. history() {
  1032. this.imgArr = [];
  1033. this.projectContent = '';
  1034. this.stonePowderArr = [];
  1035. this.warningtTapeArr = [];
  1036. this.photosAfterArr = [];
  1037. this.imgBoxArr = [];
  1038. this.imgSfhtArr = [];
  1039. this.imgFljdArr = [];
  1040. this.imgDtljArr = [];
  1041. this.imgHldmyhArr = [];
  1042. this.imgTgArr = [];
  1043. this.imgNbmhArr = [];
  1044. this.imgFhwArr = [];
  1045. this.imgBjArr = [];
  1046. if (this.isEmpty(this.projectValue.dictValue)) {
  1047. this.$modal.msg("请选择工程周期")
  1048. return
  1049. }
  1050. if (this.isEmpty(this.XZQValue.dictValue)) {
  1051. this.$modal.msg("请选择行政区")
  1052. return
  1053. }
  1054. if (this.isEmpty(this.XQValue.id)) {
  1055. this.$modal.msg("请选择小区")
  1056. return
  1057. }
  1058. let unitId = '';
  1059. let houseId = '';
  1060. let buildingId = '';
  1061. if (this.isEmpty(this.LDValue.id)) {
  1062. buildingId = '';
  1063. } else {
  1064. buildingId = this.LDValue.id
  1065. }
  1066. let param = {
  1067. areaId: this.XQValue.id, // 小区id
  1068. buildingId: buildingId, // 楼宇id
  1069. enginCycle: this.projectValue.dictValue, // 工程周期
  1070. unitId: unitId,
  1071. houseId: houseId, //传空
  1072. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1073. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1074. }
  1075. getRoomProjectId(param).then(res => {
  1076. if (res.code == '200') {
  1077. if (res.data != null) {
  1078. getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(
  1079. res => {
  1080. this.historyList = res.data
  1081. if (res.data.zEngineeringNodeBo != null) {
  1082. // this.showHistoryList();
  1083. // if (res.data.zEngineeringNodeBo.reviewStatus != null && res.data.zEngineeringNodeBo.reviewStatus == '99') {
  1084. // this.historyName = '恢复暂存';
  1085. // } else {
  1086. // this.historyName = '';
  1087. // }
  1088. if (res.data.zEngineeringNodeBo.reviewStatus == '1') {
  1089. // this.showHistoryList();
  1090. this.$modal.msg("当前步骤以审核通过请谨慎!")
  1091. } else if (res.data.zEngineeringNodeBo.reviewStatus == '99') {
  1092. let dataJson = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0];
  1093. this.projectContent = dataJson.remark;
  1094. this.time = dataJson.constructTime;
  1095. if (this.objValue.enginClassValue == '开挖前' || this.objValue.enginClassValue == '开挖后' || this.objValue.enginClassValue == '焊口照片' || this.objValue.enginClassValue == '隐蔽工程' || this.objValue.enginClassValue == '管道施工记录') {
  1096. this.imgArr = dataJson.zEngiineeringPhotoBoList;
  1097. } else if (this.objValue.enginClassValue == '回填') {
  1098. this.stonePowderArr = dataJson.stonePowder;
  1099. this.warningtTapeArr = dataJson.warningtTape;
  1100. this.photosAfterArr = dataJson.photosAfter;
  1101. } else if (this.objValue.enginClassValue == '调压柜') {
  1102. this.imgBoxArr = dataJson.boxBrand;
  1103. this.imgSfhtArr = dataJson.stonePowder;
  1104. this.imgFljdArr = dataJson.lightning;
  1105. this.imgDtljArr = dataJson.bottomLeg;
  1106. this.imgHldmyhArr = dataJson.groundHardening;
  1107. } else if (this.objValue.enginClassValue == '阀井') {
  1108. this.imgTgArr = dataJson.cannula;
  1109. this.imgNbmhArr = dataJson.wallPlaster;
  1110. this.imgFhwArr = dataJson.protectiveNet;
  1111. this.imgBjArr = dataJson.starAnise;
  1112. }
  1113. } else {
  1114. this.$modal.msg("暂无暂存信息")
  1115. }
  1116. } else {
  1117. this.$modal.msg("暂无历史信息")
  1118. }
  1119. })
  1120. } else {
  1121. this.$modal.msg("暂无工程信息")
  1122. }
  1123. } else {
  1124. this.$modal.msg(res.msg)
  1125. }
  1126. })
  1127. },
  1128. showHistoryList() {
  1129. this.$refs.refShare.handleShowShare();
  1130. }
  1131. }
  1132. }
  1133. </script>
  1134. <style lang="scss">
  1135. .container {
  1136. display: flex;
  1137. align-items: center;
  1138. justify-content: space-between;
  1139. padding: 10px;
  1140. position: relative;
  1141. }
  1142. .uni-list {
  1143. border: 1xp solid #eee;
  1144. }
  1145. .to-right-icon {
  1146. width: 15px;
  1147. height: 15px;
  1148. position: absolute;
  1149. top: 50%;
  1150. transform: translateY(-50%);
  1151. }
  1152. .text {
  1153. font-size: 16px;
  1154. color: #333;
  1155. }
  1156. .background {
  1157. // border: 15px solid hsla(0, 0%, 100%, .5);
  1158. background: white;
  1159. background-clip: padding-box;
  1160. padding: 20rpx;
  1161. border-radius: 20rpx;
  1162. margin: 20rpx;
  1163. /*从padding开始往外面裁剪背景*/
  1164. }
  1165. .btn {
  1166. width: 715rpx;
  1167. height: 69rpx;
  1168. background: #79A4F0;
  1169. border-radius: 6rpx;
  1170. font-size: 25rpx;
  1171. font-family: Microsoft YaHei;
  1172. font-weight: 400;
  1173. color: #FFFFFF;
  1174. line-height: 69rpx;
  1175. margin-top: 40rpx;
  1176. margin-bottom: 100rpx;
  1177. }
  1178. .number {
  1179. display: flex;
  1180. /* 水平居中显示子元素 */
  1181. align-items: flex-start;
  1182. /* 垂直居中显示子元素 */
  1183. justify-content: space-between;
  1184. /* 左右间距等于间距大小 */
  1185. padding: 10px;
  1186. /* 设置padding以提高视觉效果 */
  1187. }
  1188. .textarea {
  1189. margin-top: 10upx;
  1190. width: 100%;
  1191. border: 1rpx solid red;
  1192. min-height: 100upx;
  1193. line-height: 20px;
  1194. }
  1195. </style>