newcourtyard.vue 45 KB

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