history_gas_sealing.vue 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382
  1. <template>
  2. <scroll-view>
  3. <view class="uni-media-list" v-for="(value, key) in dataJson.zEngineeringNodeBo.zEngineeringInfoBoList"
  4. :key="key" v-if="isEdit(value)">
  5. <view class="uni-media-list-body">
  6. <view>
  7. <view class="uni-media-list-text-top" v-if="value.zEngineeringReviewBo!=null">
  8. <view class="tit-text"
  9. v-if="value.zEngineeringReviewBo.reviewStatus==''||value.zEngineeringReviewBo==null">未审核
  10. </view>
  11. <view class="tit-text" v-if="value.zEngineeringReviewBo.reviewStatus=='0'" style="color: red;">未通过</view>
  12. <view class="tit-text" v-if="value.zEngineeringReviewBo.reviewStatus=='1'">通过</view>
  13. <view :style="value.zEngineeringReviewBo.reviewStatus=='0'?'color: red;':''">
  14. {{value.zEngineeringReviewBo.reviewContent}}</view>
  15. </view>
  16. <view class="uni-media-list-text-top">
  17. <view class="tit-text">施工时间:</view>{{value.constructTime}}
  18. </view>
  19. <view class="uni-media-list-text-top">
  20. <view class="uni-common-mt" style="width: 100%;">
  21. <text class="tit-text" style=" font-size: 13px;color:
  22. #000;margin-top: 5px;">工程地点:</text>
  23. <view style="width: 100%;box-sizing: border-box;">
  24. <textarea class="textarea" maxlength="50" placeholder-style="padding: 10rpx;"
  25. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  26. auto-height :value="value.constructAddre"
  27. @blur="bindTextAddress($event.target.value,key)"></textarea>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="uni-media-list-text-top">
  32. <view class="uni-common-mt" style="width: 100%;">
  33. <text class="tit-text" style=" font-size: 13px;color:
  34. #000;margin-top: 5px;">作业方式:</text>
  35. <view style="width: 100%;box-sizing: border-box;">
  36. <textarea class="textarea" maxlength="50" placeholder-style="padding: 10rpx;"
  37. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  38. auto-height :value="value.segmentedCompressionQualified"
  39. @blur="bindTextWorkStyle($event.target.value,key)"></textarea>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="uni-media-list-text-top">
  44. <view class="uni-common-mt" style="width: 100%;">
  45. <text class="tit-text" style=" font-size: 13px;color:
  46. #000;margin-top: 5px;">施工内容:</text>
  47. <view style="width: 100%;box-sizing: border-box;">
  48. <textarea class="textarea" maxlength="50" placeholder-style="padding: 10rpx;"
  49. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  50. auto-height :value="value.remark"
  51. @blur="bindTextAreaBlur($event.target.value,key)"></textarea>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="uni-media-list-text-top">
  56. <view class="uni-common-mt" style="width: 100%;">
  57. <text class="tit-text" style=" font-size: 13px;color:
  58. #000;margin-top: 5px;">管道压力:</text>
  59. <view style="width: 100%;box-sizing: border-box;">
  60. <textarea class="textarea" maxlength="50" placeholder-style="padding: 10rpx;"
  61. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  62. auto-height :value="value.constructAccordingDrawings"
  63. @blur="bindTextPipePress($event.target.value,key)"></textarea>
  64. </view>
  65. </view>
  66. </view>
  67. <!-- // XXXXXX -->
  68. <view v-if="projectType=='pe'">
  69. <view class="uni-common-mt" style="width: 100%;">
  70. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  71. #000;margin-top: 5px; margin-left: 8px;">请上传开孔照片:</text>
  72. </view>
  73. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  74. <image :src="loadImgSrc('updateimg.png')" mode=""
  75. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  76. @click="choose('peHolesOpening',key)">
  77. </image>
  78. <view v-for="(item,index) in value.peHolesOpening" :key="index" style="position: relative;">
  79. <view
  80. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  81. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  82. @click="showPhoto(index,value.peHolesOpening)">
  83. </image>
  84. </view>
  85. <view v-else>
  86. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  87. </view>
  88. <view @click="remove(index,value.peHolesOpening)"
  89. 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 class="uni-common-mt" style="width: 100%;">
  96. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  97. #000;margin-top: 5px; margin-left: 8px;">请上传封堵照片:</text>
  98. </view>
  99. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  100. <image :src="loadImgSrc('updateimg.png')" mode=""
  101. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  102. @click="choose('pePlugging',key)">
  103. </image>
  104. <view v-for="(item,index) in value.pePlugging" :key="index" style="position: relative;">
  105. <view
  106. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  107. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  108. @click="showPhoto(index,value.pePlugging)">
  109. </image>
  110. </view>
  111. <view v-else>
  112. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  113. </view>
  114. <view @click="remove(index,value.pePlugging)"
  115. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  116. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  117. </image>
  118. </view>
  119. </view>
  120. </view>
  121. <view class="uni-common-mt" style="width: 100%;">
  122. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  123. #000;margin-top: 5px; margin-left: 8px;">请上传作业完成照片:</text>
  124. </view>
  125. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  126. <image :src="loadImgSrc('updateimg.png')" mode=""
  127. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  128. @click="choose('peHomeworkDone',key)">
  129. </image>
  130. <view v-for="(item,index) in value.peHomeworkDone" :key="index" style="position: relative;">
  131. <view
  132. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  133. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  134. @click="showPhoto(index,value.peHomeworkDone)">
  135. </image>
  136. </view>
  137. <view v-else>
  138. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  139. </view>
  140. <view @click="remove(index,value.peHomeworkDone)"
  141. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  142. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  143. </image>
  144. </view>
  145. </view>
  146. </view>
  147. <view class="uni-common-mt" style="width: 100%;">
  148. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  149. #000;margin-top: 5px; margin-left: 8px;">请上传鞍型焊接照片:</text>
  150. </view>
  151. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  152. <image :src="loadImgSrc('updateimg.png')" mode=""
  153. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  154. @click="choose('peSaddleWelding',key)">
  155. </image>
  156. <view v-for="(item,index) in value.peSaddleWelding" :key="index"
  157. style="position: relative;">
  158. <view
  159. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  160. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  161. @click="showPhoto(index,value.peSaddleWelding)">
  162. </image>
  163. </view>
  164. <view v-else>
  165. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  166. </view>
  167. <view @click="remove(index,value.peSaddleWelding)"
  168. 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 class="uni-common-mt" style="width: 100%;">
  175. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  176. #000;margin-top: 5px; margin-left: 8px;">请上传气密实验照片:</text>
  177. </view>
  178. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  179. <image :src="loadImgSrc('updateimg.png')" mode=""
  180. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  181. @click="choose('peAirtightTest',key)">
  182. </image>
  183. <view v-for="(item,index) in value.peAirtightTest" :key="index" style="position: relative;">
  184. <view
  185. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  186. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  187. @click="showPhoto(index,value.peAirtightTest)">
  188. </image>
  189. </view>
  190. <view v-else>
  191. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  192. </view>
  193. <view @click="remove(index,value.peAirtightTest)"
  194. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  195. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  196. </image>
  197. </view>
  198. </view>
  199. </view>
  200. <view class="uni-common-mt" style="width: 100%;">
  201. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  202. #000;margin-top: 5px; margin-left: 8px;">请上传清扫照片:</text>
  203. </view>
  204. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  205. <image :src="loadImgSrc('updateimg.png')" mode=""
  206. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  207. @click="choose('peCleaning',key)">
  208. </image>
  209. <view v-for="(item,index) in value.peCleaning" :key="index" style="position: relative;">
  210. <view
  211. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  212. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  213. @click="showPhoto(index,value.peCleaning)">
  214. </image>
  215. </view>
  216. <view v-else>
  217. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  218. </view>
  219. <view @click="remove(index,value.peCleaning)"
  220. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  221. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  222. </image>
  223. </view>
  224. </view>
  225. </view>
  226. <view class="uni-common-mt" style="width: 100%;">
  227. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  228. #000;margin-top: 5px; margin-left: 8px;">请上传碰口作业照片:</text>
  229. </view>
  230. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  231. <image :src="loadImgSrc('updateimg.png')" mode=""
  232. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  233. @click="choose('peCollisionOperating',key)">
  234. </image>
  235. <view v-for="(item,index) in value.peCollisionOperating" :key="index"
  236. style="position: relative;">
  237. <view
  238. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  239. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  240. @click="showPhoto(index,value.peCollisionOperating)">
  241. </image>
  242. </view>
  243. <view v-else>
  244. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  245. </view>
  246. <view @click="remove(index,value.peCollisionOperating)"
  247. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  248. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  249. </image>
  250. </view>
  251. </view>
  252. </view>
  253. <view class="uni-common-mt" style="width: 100%;">
  254. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  255. #000;margin-top: 5px; margin-left: 8px;">请上传恢复通气检漏照片:</text>
  256. </view>
  257. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  258. <image :src="loadImgSrc('updateimg.png')" mode=""
  259. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  260. @click="choose('peAirrecovering',key)">
  261. </image>
  262. <view v-for="(item,index) in value.peAirrecovering" :key="index"
  263. style="position: relative;">
  264. <view
  265. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  266. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  267. @click="showPhoto(index,value.peAirrecovering)">
  268. </image>
  269. </view>
  270. <view v-else>
  271. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  272. </view>
  273. <view @click="remove(index,value.peAirrecovering)"
  274. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  275. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  276. </image>
  277. </view>
  278. </view>
  279. </view>
  280. <!-- xxx -->
  281. </view>
  282. <view v-else>
  283. <view class="uni-common-mt" style="width: 100%;">
  284. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  285. #000;margin-top: 5px; margin-left: 8px;">请上传开孔照片:</text>
  286. </view>
  287. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  288. <image :src="loadImgSrc('updateimg.png')" mode=""
  289. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  290. @click="choose('ironHolesOpening',key)">
  291. </image>
  292. <view v-for="(item,index) in value.ironHolesOpening" :key="index"
  293. style="position: relative;">
  294. <view
  295. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  296. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  297. @click="showPhoto(index,value.ironHolesOpening)">
  298. </image>
  299. </view>
  300. <view v-else>
  301. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  302. </view>
  303. <view @click="remove(index,value.ironHolesOpening)"
  304. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  305. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  306. </image>
  307. </view>
  308. </view>
  309. </view>
  310. <view class="uni-common-mt" style="width: 100%;">
  311. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  312. #000;margin-top: 5px; margin-left: 8px;">请上传封堵照片:</text>
  313. </view>
  314. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  315. <image :src="loadImgSrc('updateimg.png')" mode=""
  316. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  317. @click="choose('ironCleaning',key)">
  318. </image>
  319. <view v-for="(item,index) in value.ironCleaning" :key="index" style="position: relative;">
  320. <view
  321. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  322. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  323. @click="showPhoto(index,value.ironCleaning)">
  324. </image>
  325. </view>
  326. <view v-else>
  327. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  328. </view>
  329. <view @click="remove(index,value.ironCleaning)"
  330. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  331. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  332. </image>
  333. </view>
  334. </view>
  335. </view>
  336. <view class="uni-common-mt" style="width: 100%;">
  337. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  338. #000;margin-top: 5px; margin-left: 8px;">请上传作业完成照片:</text>
  339. </view>
  340. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  341. <image :src="loadImgSrc('updateimg.png')" mode=""
  342. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  343. @click="choose('ironHomeworkDone',key)">
  344. </image>
  345. <view v-for="(item,index) in value.ironHomeworkDone" :key="index"
  346. style="position: relative;">
  347. <view
  348. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  349. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  350. @click="showPhoto(index,value.ironHomeworkDone)">
  351. </image>
  352. </view>
  353. <view v-else>
  354. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  355. </view>
  356. <view @click="remove(index,value.ironHomeworkDone)"
  357. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  358. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  359. </image>
  360. </view>
  361. </view>
  362. </view>
  363. <view class="uni-common-mt" style="width: 100%;">
  364. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  365. #000;margin-top: 5px; margin-left: 8px;">请上传管道壁厚照片:</text>
  366. </view>
  367. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  368. <image :src="loadImgSrc('updateimg.png')" mode=""
  369. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  370. @click="choose('ironPipelineThickness',key)">
  371. </image>
  372. <view v-for="(item,index) in value.ironPipelineThickness" :key="index"
  373. style="position: relative;">
  374. <view
  375. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  376. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  377. @click="showPhoto(index,value.ironPipelineThickness)">
  378. </image>
  379. </view>
  380. <view v-else>
  381. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  382. </view>
  383. <view @click="remove(index,value.ironPipelineThickness)"
  384. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  385. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  386. </image>
  387. </view>
  388. </view>
  389. </view>
  390. <view class="uni-common-mt" style="width: 100%;">
  391. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  392. #000;margin-top: 5px; margin-left: 8px;">请上传焊接四通照片:</text>
  393. </view>
  394. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  395. <image :src="loadImgSrc('updateimg.png')" mode=""
  396. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  397. @click="choose('iron4Welding',key)">
  398. </image>
  399. <view v-for="(item,index) in value.iron4Welding" :key="index" style="position: relative;">
  400. <view
  401. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  402. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  403. @click="showPhoto(index,value.iron4Welding)">
  404. </image>
  405. </view>
  406. <view v-else>
  407. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  408. </view>
  409. <view @click="remove(index,value.iron4Welding)"
  410. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  411. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  412. </image>
  413. </view>
  414. </view>
  415. </view>
  416. <view class="uni-common-mt" style="width: 100%;">
  417. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  418. #000;margin-top: 5px; margin-left: 8px;">请上传焊接旁通照片:</text>
  419. </view>
  420. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  421. <image :src="loadImgSrc('updateimg.png')" mode=""
  422. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  423. @click="choose('ironBypassWelding',key)">
  424. </image>
  425. <view v-for="(item,index) in value.ironBypassWelding" :key="index"
  426. style="position: relative;">
  427. <view
  428. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  429. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  430. @click="showPhoto(index,value.ironBypassWelding)">
  431. </image>
  432. </view>
  433. <view v-else>
  434. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  435. </view>
  436. <view @click="remove(index,value.ironBypassWelding)"
  437. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  438. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  439. </image>
  440. </view>
  441. </view>
  442. </view>
  443. <view class="uni-common-mt" style="width: 100%;">
  444. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  445. #000;margin-top: 5px; margin-left: 8px;">请上传氮气吹扫照片:</text>
  446. </view>
  447. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  448. <image :src="loadImgSrc('updateimg.png')" mode=""
  449. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  450. @click="choose('ironNitrogenPurging',key)">
  451. </image>
  452. <view v-for="(item,index) in value.ironNitrogenPurging" :key="index"
  453. style="position: relative;">
  454. <view
  455. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  456. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  457. @click="showPhoto(index,value.ironNitrogenPurging)">
  458. </image>
  459. </view>
  460. <view v-else>
  461. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  462. </view>
  463. <view @click="remove(index,value.ironNitrogenPurging)"
  464. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  465. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  466. </image>
  467. </view>
  468. </view>
  469. </view>
  470. <view class="uni-common-mt" style="width: 100%;">
  471. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  472. #000;margin-top: 5px; margin-left: 8px;">请上传管道置换照片:</text>
  473. </view>
  474. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  475. <image :src="loadImgSrc('updateimg.png')" mode=""
  476. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  477. @click="choose('ironPipelineReplacing',key)">
  478. </image>
  479. <view v-for="(item,index) in value.ironPipelineReplacing" :key="index"
  480. style="position: relative;">
  481. <view
  482. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  483. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  484. @click="showPhoto(index,value.ironPipelineReplacing)">
  485. </image>
  486. </view>
  487. <view v-else>
  488. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  489. </view>
  490. <view @click="remove(index,value.ironPipelineReplacing)"
  491. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  492. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  493. </image>
  494. </view>
  495. </view>
  496. </view>
  497. <view class="uni-common-mt" style="width: 100%;">
  498. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  499. #000;margin-top: 5px; margin-left: 8px;">请上传下堵照片:</text>
  500. </view>
  501. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  502. <image :src="loadImgSrc('updateimg.png')" mode=""
  503. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  504. @click="choose('ironLowerEndCap',key)">
  505. </image>
  506. <view v-for="(item,index) in value.ironLowerEndCap" :key="index"
  507. style="position: relative;">
  508. <view
  509. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  510. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  511. @click="showPhoto(index,value.ironLowerEndCap)">
  512. </image>
  513. </view>
  514. <view v-else>
  515. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  516. </view>
  517. <view @click="remove(index,value.ironLowerEndCap)"
  518. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  519. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  520. </image>
  521. </view>
  522. </view>
  523. </view>
  524. <view class="uni-common-mt" style="width: 100%;">
  525. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  526. #000;margin-top: 5px; margin-left: 8px;">请上传四通防腐照片:</text>
  527. </view>
  528. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  529. <image :src="loadImgSrc('updateimg.png')" mode=""
  530. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  531. @click="choose('iron4Aczoiling',key)">
  532. </image>
  533. <view v-for="(item,index) in value.iron4Aczoiling" :key="index" style="position: relative;">
  534. <view
  535. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  536. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
  537. @click="showPhoto(index,value.iron4Aczoiling)">
  538. </image>
  539. </view>
  540. <view v-else>
  541. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  542. </view>
  543. <view @click="remove(index,value.iron4Aczoiling)"
  544. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  545. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  546. </image>
  547. </view>
  548. </view>
  549. </view>
  550. <!-- ccc -->
  551. </view>
  552. </view>
  553. </view>
  554. </view>
  555. <!--
  556. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  557. subtitleKey="id">
  558. </SelectPicker>
  559. <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
  560. titleKey="dictLabel" subtitleKey="dictValue" v-model="name"></SelectPicker> -->
  561. <view class="action-btn" v-if="!hideButton">
  562. <button @click="submit" class="btn cu-btn block bg-blue lg round">提交</button>
  563. </view>
  564. </scroll-view>
  565. </template>
  566. <script>
  567. import {
  568. getDicts
  569. } from "@/api/system/dict/data";
  570. import {
  571. getToken
  572. } from '../../utils/auth';
  573. import user from '@/store/modules/user'
  574. import {
  575. getGasSealingHistoryList,
  576. submitGasSealingHistory
  577. } from '@/api/common'
  578. export default {
  579. components: {},
  580. data() {
  581. return {
  582. // playVideo: false,//视频播放放大
  583. // playVideoSrc:'',
  584. selectZbfList: [],
  585. dictOptions: [],
  586. openDict: false,
  587. dataIndex: 0, //数据用第几条
  588. selectIndex: 0, //材质规格用的第几条
  589. imageIndex: 0,
  590. headers: {
  591. Authorization: "Bearer " + getToken()
  592. },
  593. id: '',
  594. projectType: '',
  595. projectTypeLabel: '',
  596. title: '',
  597. dataJson: '',
  598. enginClassification: '',
  599. enginType: '',
  600. enginClassValue: '',
  601. selectList: [],
  602. open: false,
  603. selectType: '',
  604. hideButton: false,
  605. }
  606. },
  607. onLoad(options) {
  608. if ('params' in options) {
  609. let obj = JSON.parse(decodeURIComponent(options.params));
  610. this.id = obj.id;
  611. this.projectType = obj.type;
  612. if (this.projectType === 'pe') {
  613. this.projectTypeLabel = 'PE封堵';
  614. } else {
  615. this.projectTypeLabel = '钢管带气封堵';
  616. }
  617. getGasSealingHistoryList(this.id, this.projectType).then(res => {
  618. if (res.data.zEngineeringNodeBo.zEngineeringInfoBoList != null) {
  619. this.dataJson = res.data;
  620. this.hideButton = false;
  621. } else {
  622. this.$modal.msg("暂无历史信息")
  623. this.hideButton = true;
  624. }
  625. })
  626. }
  627. },
  628. methods: {
  629. //关闭弹窗
  630. close(e) {
  631. this.open = false
  632. },
  633. bindTextAddress(e, index) {
  634. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].constructAddre = e;
  635. },
  636. bindTextPipePress(e, index) {
  637. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].constructAccordingDrawings = e;
  638. },
  639. bindTextAreaBlur(e, index) {
  640. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].remark = e;
  641. },
  642. bindTextWorkStyle(e, index) {
  643. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].segmentedCompressionQualified = e;
  644. },
  645. remove(index, fileArr) {
  646. uni.showModal({
  647. title: '提示',
  648. content: '是否删除该文件?',
  649. success: (res) => {
  650. if (res.confirm) {
  651. fileArr.splice(index, 1)
  652. }
  653. }
  654. })
  655. },
  656. choose(fileType, index) {
  657. this.dataIndex = index;
  658. let _this = this;
  659. uni.showActionSheet({
  660. title: '上传',
  661. itemList: ['图片', '视频'],
  662. success: (res) => {
  663. if (res.tapIndex == 0) {
  664. this.chooseimage(fileType)
  665. } else {
  666. this.choosevideo(fileType)
  667. }
  668. }
  669. })
  670. },
  671. chooseimage(fileType) {
  672. let _this = this;
  673. uni.chooseImage({
  674. sizeType: ['album', 'camera'],
  675. success(resp) {
  676. resp.tempFiles.forEach((item, index) => {
  677. const task = uni.uploadFile({
  678. url: _this.$HTTP + `/obs`,
  679. filePath: item.path,
  680. name: 'file',
  681. formData: {},
  682. header: _this.headers,
  683. success: res => {
  684. let data = JSON.parse(res.data);
  685. if (![200].includes(data.code)) {
  686. _this.$modal.msg(data.msg)
  687. } else {
  688. if (_this.progress === 100) {
  689. if (fileType === 'peHolesOpening') { //PE开孔
  690. _this.dataJson.zEngineeringNodeBo
  691. .zEngineeringInfoBoList[_this.dataIndex]
  692. .peHolesOpening.push(data.data
  693. .url)
  694. } else if (fileType === 'peHomeworkDone') { //PE封堵
  695. _this.dataJson.zEngineeringNodeBo
  696. .zEngineeringInfoBoList[_this.dataIndex]
  697. .peHomeworkDone
  698. .push(data.data
  699. .url)
  700. } else if (fileType === 'pePlugging') { //PE作业
  701. _this.dataJson.zEngineeringNodeBo
  702. .zEngineeringInfoBoList[_this.dataIndex]
  703. .pePlugging.push(
  704. data.data
  705. .url)
  706. } else if (fileType === 'ironHolesOpening') { //开孔
  707. _this.dataJson.zEngineeringNodeBo
  708. .zEngineeringInfoBoList[_this.dataIndex]
  709. .ironHolesOpening
  710. .push(data
  711. .data.url)
  712. } else if (fileType === 'ironHomeworkDone') { //封堵
  713. _this.dataJson.zEngineeringNodeBo
  714. .zEngineeringInfoBoList[_this.dataIndex]
  715. .ironHomeworkDone
  716. .push(data
  717. .data.url)
  718. } else if (fileType === 'ironCleaning') { //作业
  719. _this.dataJson.zEngineeringNodeBo
  720. .zEngineeringInfoBoList[_this.dataIndex]
  721. .ironCleaning.push(
  722. data.data
  723. .url)
  724. } else if (fileType ===
  725. 'peSaddleWelding') { //鞍型焊接照片 PE
  726. _this.dataJson.zEngineeringNodeBo
  727. .zEngineeringInfoBoList[_this.dataIndex]
  728. .peSaddleWelding
  729. .push(data
  730. .data.url)
  731. } else if (fileType ===
  732. 'peAirtightTest') { //气密实验照片 PE
  733. _this.dataJson.zEngineeringNodeBo
  734. .zEngineeringInfoBoList[_this.dataIndex]
  735. .peAirtightTest
  736. .push(data.data
  737. .url)
  738. } else if (fileType === 'peCleaning') { //清扫照片 PE
  739. _this.dataJson.zEngineeringNodeBo
  740. .zEngineeringInfoBoList[_this.dataIndex]
  741. .peCleaning.push(
  742. data.data
  743. .url)
  744. } else if (fileType ===
  745. 'peCollisionOperating') { //碰口作业照片 PE
  746. _this.dataJson.zEngineeringNodeBo
  747. .zEngineeringInfoBoList[_this.dataIndex]
  748. .peCollisionOperating.push(
  749. data.data.url)
  750. } else if (fileType ===
  751. 'peAirrecovering') { //恢复通气检漏照片 PE
  752. _this.dataJson.zEngineeringNodeBo
  753. .zEngineeringInfoBoList[_this.dataIndex]
  754. .peAirrecovering
  755. .push(data
  756. .data.url)
  757. } else if (fileType ===
  758. 'ironPipelineThickness') { //管道壁厚照片
  759. _this.dataJson.zEngineeringNodeBo
  760. .zEngineeringInfoBoList[_this.dataIndex]
  761. .ironPipelineThickness.push(
  762. data.data.url)
  763. } else if (fileType ===
  764. 'iron4Welding') { //焊接四通照片
  765. _this.dataJson.zEngineeringNodeBo
  766. .zEngineeringInfoBoList[_this.dataIndex]
  767. .iron4Welding.push(
  768. data.data
  769. .url)
  770. } else if (fileType ===
  771. 'ironBypassWelding') { //焊接旁通照片
  772. _this.dataJson.zEngineeringNodeBo
  773. .zEngineeringInfoBoList[_this.dataIndex]
  774. .ironBypassWelding
  775. .push(data
  776. .data.url)
  777. } else if (fileType ===
  778. 'ironNitrogenPurging') { //氮气吹扫照片
  779. _this.dataJson.zEngineeringNodeBo
  780. .zEngineeringInfoBoList[_this.dataIndex]
  781. .ironNitrogenPurging
  782. .push(data
  783. .data.url)
  784. } else if (fileType ===
  785. 'ironPipelineReplacing') { //管道置换照片
  786. _this.dataJson.zEngineeringNodeBo
  787. .zEngineeringInfoBoList[_this.dataIndex]
  788. .ironPipelineReplacing.push(
  789. data.data.url)
  790. } else if (fileType ===
  791. 'ironLowerEndCap') { //下堵照片
  792. _this.dataJson.zEngineeringNodeBo
  793. .zEngineeringInfoBoList[_this.dataIndex]
  794. .ironLowerEndCap
  795. .push(data
  796. .data.url)
  797. } else if (fileType ===
  798. 'iron4Aczoiling') { //四通防腐照片
  799. _this.dataJson.zEngineeringNodeBo
  800. .zEngineeringInfoBoList[_this.dataIndex]
  801. .iron4Aczoiling
  802. .push(data.data
  803. .url)
  804. }
  805. _this.$modal.msg('上传成功!')
  806. }
  807. }
  808. },
  809. fail: e => {
  810. _this.$modal.msg('上传失败!')
  811. },
  812. complete: res => {
  813. uni.hideLoading();
  814. _this.uploading = false;
  815. }
  816. });
  817. task.onProgressUpdate(res => {
  818. _this.progress = res.progress;
  819. uni.showLoading({
  820. title: '上传中'
  821. })
  822. if (_this.progress != 100) {
  823. _this.loading = false
  824. } else {
  825. _this.loading = true
  826. }
  827. });
  828. })
  829. },
  830. })
  831. },
  832. choosevideo(fileType) {
  833. let _this = this;
  834. uni.chooseVideo({
  835. sourceType: ['album', 'camera'],
  836. maxDuration: 60,
  837. success(resp) {
  838. const task = uni.uploadFile({
  839. url: _this.$HTTP + `/obs`,
  840. filePath: resp.tempFilePath,
  841. name: 'file',
  842. formData: {},
  843. header: _this.headers,
  844. success: res => {
  845. // 判断是否json字符串,将其转为json格式
  846. let data = JSON.parse(res.data);
  847. if (![200].includes(res.statusCode)) {
  848. this.uploadError(index, data);
  849. } else {
  850. //上传成功
  851. if (_this.progress === 100) {
  852. if (fileType === 'peHolesOpening') { //PE开孔
  853. _this.dataJson.zEngineeringNodeBo
  854. .zEngineeringInfoBoList[_this.dataIndex]
  855. .peHolesOpening.push(data.data
  856. .url)
  857. } else if (fileType === 'peHomeworkDone') { //PE封堵
  858. _this.dataJson.zEngineeringNodeBo
  859. .zEngineeringInfoBoList[_this.dataIndex]
  860. .peHomeworkDone
  861. .push(data.data
  862. .url)
  863. } else if (fileType === 'pePlugging') { //PE作业
  864. _this.dataJson.zEngineeringNodeBo
  865. .zEngineeringInfoBoList[_this.dataIndex].pePlugging
  866. .push(
  867. data.data
  868. .url)
  869. } else if (fileType === 'ironHolesOpening') { //开孔
  870. _this.dataJson.zEngineeringNodeBo
  871. .zEngineeringInfoBoList[_this.dataIndex]
  872. .ironHolesOpening
  873. .push(data
  874. .data.url)
  875. } else if (fileType === 'ironHomeworkDone') { //封堵
  876. _this.dataJson.zEngineeringNodeBo
  877. .zEngineeringInfoBoList[_this.dataIndex]
  878. .ironHomeworkDone
  879. .push(data
  880. .data.url)
  881. } else if (fileType === 'ironCleaning') { //作业
  882. _this.dataJson.zEngineeringNodeBo
  883. .zEngineeringInfoBoList[_this.dataIndex]
  884. .ironCleaning.push(
  885. data.data
  886. .url)
  887. } else if (fileType ===
  888. 'peSaddleWelding') { //鞍型焊接照片 PE
  889. _this.dataJson.zEngineeringNodeBo
  890. .zEngineeringInfoBoList[_this.dataIndex]
  891. .peSaddleWelding
  892. .push(data
  893. .data.url)
  894. } else if (fileType ===
  895. 'peAirtightTest') { //气密实验照片 PE
  896. _this.dataJson.zEngineeringNodeBo
  897. .zEngineeringInfoBoList[_this.dataIndex]
  898. .peAirtightTest
  899. .push(data.data
  900. .url)
  901. } else if (fileType === 'peCleaning') { //清扫照片 PE
  902. _this.dataJson.zEngineeringNodeBo
  903. .zEngineeringInfoBoList[_this.dataIndex].peCleaning
  904. .push(
  905. data.data
  906. .url)
  907. } else if (fileType ===
  908. 'peCollisionOperating') { //碰口作业照片 PE
  909. _this.dataJson.zEngineeringNodeBo
  910. .zEngineeringInfoBoList[_this.dataIndex]
  911. .peCollisionOperating.push(
  912. data.data.url)
  913. } else if (fileType ===
  914. 'peAirrecovering') { //恢复通气检漏照片 PE
  915. _this.dataJson.zEngineeringNodeBo
  916. .zEngineeringInfoBoList[_this.dataIndex]
  917. .peAirrecovering
  918. .push(data
  919. .data.url)
  920. } else if (fileType ===
  921. 'ironPipelineThickness') { //管道壁厚照片
  922. _this.dataJson.zEngineeringNodeBo
  923. .zEngineeringInfoBoList[_this.dataIndex]
  924. .ironPipelineThickness.push(
  925. data.data.url)
  926. } else if (fileType ===
  927. 'iron4Welding') { //焊接四通照片
  928. _this.dataJson.zEngineeringNodeBo
  929. .zEngineeringInfoBoList[_this.dataIndex]
  930. .iron4Welding.push(
  931. data.data
  932. .url)
  933. } else if (fileType ===
  934. 'ironBypassWelding') { //焊接旁通照片
  935. _this.dataJson.zEngineeringNodeBo
  936. .zEngineeringInfoBoList[_this.dataIndex]
  937. .ironBypassWelding
  938. .push(data
  939. .data.url)
  940. } else if (fileType ===
  941. 'ironNitrogenPurging') { //氮气吹扫照片
  942. _this.dataJson.zEngineeringNodeBo
  943. .zEngineeringInfoBoList[_this.dataIndex]
  944. .ironNitrogenPurging
  945. .push(data
  946. .data.url)
  947. } else if (fileType ===
  948. 'ironPipelineReplacing') { //管道置换照片
  949. _this.dataJson.zEngineeringNodeBo
  950. .zEngineeringInfoBoList[_this.dataIndex]
  951. .ironPipelineReplacing.push(
  952. data.data.url)
  953. } else if (fileType ===
  954. 'ironLowerEndCap') { //下堵照片
  955. _this.dataJson.zEngineeringNodeBo
  956. .zEngineeringInfoBoList[_this.dataIndex]
  957. .ironLowerEndCap
  958. .push(data
  959. .data.url)
  960. } else if (fileType ===
  961. 'iron4Aczoiling') { //四通防腐照片
  962. _this.dataJson.zEngineeringNodeBo
  963. .zEngineeringInfoBoList[_this.dataIndex]
  964. .iron4Aczoiling
  965. .push(data.data
  966. .url)
  967. }
  968. _this.$modal.msg('上传成功!')
  969. //_this.photo = false;
  970. }
  971. }
  972. },
  973. fail: e => {
  974. _this.$modal.msg('上传失败!')
  975. this.uploadError(index, e);
  976. },
  977. complete: res => {
  978. uni.hideLoading();
  979. _this.uploading = false;
  980. }
  981. });
  982. task.onProgressUpdate(res => {
  983. _this.progress = res.progress;
  984. uni.showLoading({
  985. title: '上传中'
  986. })
  987. if (_this.progress != 100) {
  988. _this.loadingFile = false
  989. } else {
  990. _this.loadingFile = true
  991. }
  992. });
  993. },
  994. })
  995. },
  996. showPhoto(index, arr) {
  997. let newArr = [];
  998. arr.forEach((item, index) => {
  999. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) ==
  1000. 'jpg' ||
  1001. item.substring(item.length - 4) == 'jpeg') {
  1002. newArr.push(item)
  1003. }
  1004. });
  1005. uni.previewImage({
  1006. current: index,
  1007. urls: newArr,
  1008. })
  1009. },
  1010. isEmpty(str) {
  1011. return (!str || 0 === str.length);
  1012. },
  1013. isEdit(item) {
  1014. var isShow = item.createBy == undefined || item.createBy == this.$user.state.name;
  1015. return isShow;
  1016. },
  1017. submit() {
  1018. let isSubmit = true;
  1019. // XXXXXX
  1020. if (this.projectType == 'pe') {
  1021. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  1022. if (res.peHolesOpening.length == 0) { //PE开孔
  1023. this.$modal.msg("请上传开孔照片");
  1024. isSubmit = false;
  1025. }
  1026. if (res.pePlugging.length == 0) {
  1027. this.$modal.msg("请上传封堵照片");
  1028. isSubmit = false;
  1029. }
  1030. if (res.peHomeworkDone.length == 0) {
  1031. this.$modal.msg("请上传作业完成照片");
  1032. isSubmit = false;
  1033. }
  1034. if (res.peSaddleWelding.length == 0) {
  1035. this.$modal.msg("请上传鞍型焊接照片");
  1036. isSubmit = false;
  1037. }
  1038. if (res.peAirtightTest.length == 0) {
  1039. this.$modal.msg("请上传气密实验照片");
  1040. isSubmit = false;
  1041. }
  1042. if (res.peCleaning.length == 0) {
  1043. this.$modal.msg("请上传清扫照片");
  1044. isSubmit = false;
  1045. }
  1046. if (res.peCollisionOperating.length == 0) {
  1047. this.$modal.msg("请上传碰口作业照片");
  1048. isSubmit = false;
  1049. }
  1050. if (res.peAirrecovering.length == 0) {
  1051. this.$modal.msg("请上传恢复通气检漏照片");
  1052. isSubmit = false;
  1053. }
  1054. })
  1055. } else {
  1056. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  1057. if (res.ironHolesOpening.length == 0) {
  1058. this.$modal.msg("请上传开孔照片");
  1059. isSubmit = false;
  1060. }
  1061. if (res.ironCleaning.length == 0) {
  1062. this.$modal.msg("请上传封堵照片");
  1063. isSubmit = false;
  1064. }
  1065. if (res.ironHomeworkDone.length == 0) {
  1066. this.$modal.msg("请上传作业完成照片");
  1067. isSubmit = false;
  1068. }
  1069. if (res.ironPipelineThickness.length == 0) {
  1070. this.$modal.msg("请上传管道壁厚照片");
  1071. isSubmit = false;
  1072. }
  1073. if (res.iron4Welding.length == 0) {
  1074. this.$modal.msg("请上传焊接四通照片");
  1075. isSubmit = false;
  1076. }
  1077. if (res.ironBypassWelding.length == 0) {
  1078. this.$modal.msg("请上传焊接旁通照片");
  1079. isSubmit = false;
  1080. }
  1081. if (res.ironNitrogenPurging.length == 0) {
  1082. this.$modal.msg("请上传氮气吹扫照片");
  1083. isSubmit = false;
  1084. }
  1085. if (res.ironPipelineReplacing.length == 0) {
  1086. this.$modal.msg("请上传管道置换照片");
  1087. isSubmit = false;
  1088. }
  1089. if (res.ironLowerEndCap.length == 0) {
  1090. this.$modal.msg("请上传下堵照片");
  1091. isSubmit = false;
  1092. }
  1093. if (res.iron4Aczoiling.length == 0) {
  1094. this.$modal.msg("请上传四通防腐照片");
  1095. isSubmit = false;
  1096. }
  1097. })
  1098. }
  1099. if (!isSubmit) {
  1100. return
  1101. }
  1102. uni.showLoading()
  1103. submitGasSealingHistory(this.dataJson).then(
  1104. response => {
  1105. uni.hideLoading()
  1106. if (response.code == '200') {
  1107. uni.showToast({
  1108. title: response.msg,
  1109. icon: 'none',
  1110. duration: 2000
  1111. });
  1112. setTimeout(function() {
  1113. uni.navigateBack();
  1114. }, 1000)
  1115. }
  1116. });
  1117. }
  1118. }
  1119. }
  1120. </script>
  1121. <style lang="scss">
  1122. .uni-media-list-body {
  1123. background: #fff;
  1124. border: 1px solid #eee;
  1125. border-radius: 40rpx;
  1126. margin: 20rpx;
  1127. padding: 10rpx 0 40rpx;
  1128. box-shadow: 0 0 5px #eee;
  1129. }
  1130. .uni-media-list-text-top {
  1131. display: flex;
  1132. align-items: center;
  1133. justify-content: space-between;
  1134. padding: 10px;
  1135. position: relative;
  1136. }
  1137. .to-right-icon {
  1138. width: 15px;
  1139. height: 15px;
  1140. position: absolute;
  1141. top: 50%;
  1142. transform: translateY(-50%);
  1143. }
  1144. .share {
  1145. width: 100%;
  1146. height: 100%;
  1147. }
  1148. .tit-text {
  1149. color: #4f535a;
  1150. margin-right: 20rpx;
  1151. }
  1152. .normal-text {}
  1153. .cz-style {
  1154. background: #e8f4f9;
  1155. margin: 20rpx;
  1156. padding: 10rpx;
  1157. border-radius: 20rpx;
  1158. border: 1px solid #d4e3f0;
  1159. }
  1160. .uni-media-list-text-top {
  1161. font-size: 14px;
  1162. color: #696969;
  1163. padding: 20rpx 20rpx;
  1164. border-bottom: 1px solid #eee;
  1165. display: flex;
  1166. align-items: center;
  1167. }
  1168. .share-box {
  1169. width: 100%;
  1170. height: 100%;
  1171. position: fixed;
  1172. top: 0rpx;
  1173. left: 0rpx;
  1174. bottom: 0rpx;
  1175. right: 0rpx;
  1176. background-color: rgba(0, 0, 0, 0.4);
  1177. transition: .3s;
  1178. z-index: 999;
  1179. }
  1180. // 进入分享动画
  1181. .share-show {
  1182. transition: all 0.3s ease;
  1183. transform: translateY(0%) !important;
  1184. border-radius: 20px 20px 0px 0px;
  1185. }
  1186. .scroll-Y {
  1187. height: 58vh;
  1188. }
  1189. // 离开分享动画
  1190. .share-item {
  1191. position: fixed;
  1192. left: 0;
  1193. bottom: 0;
  1194. width: 100%;
  1195. height: 70%;
  1196. background-color: #FFFFFF;
  1197. transition: all 0.3s ease;
  1198. transform: translateY(100%);
  1199. z-index: 1999;
  1200. .share-to {
  1201. width: 100%;
  1202. height: 30px;
  1203. display: flex;
  1204. justify-content: center;
  1205. margin: 30rpx 0;
  1206. align-items: center;
  1207. }
  1208. .content {
  1209. width: 100%;
  1210. height: auto;
  1211. display: flex;
  1212. flex-wrap: wrap;
  1213. .block {
  1214. width: 100%;
  1215. display: flex;
  1216. flex-direction: column;
  1217. justify-content: center;
  1218. align-items: left;
  1219. height: auto;
  1220. image {
  1221. width: 80rpx;
  1222. height: 80rpx;
  1223. }
  1224. text {
  1225. margin-top: 16rpx;
  1226. font-size: 28rpx;
  1227. color: #606266;
  1228. }
  1229. }
  1230. }
  1231. .cancel {
  1232. width: 100%;
  1233. height: 3rem;
  1234. display: flex;
  1235. justify-content: center;
  1236. align-items: center;
  1237. border-top: 1rpx solid #E4E7ED;
  1238. }
  1239. }
  1240. .uni-media-list-text-top {
  1241. display: flex;
  1242. align-items: center;
  1243. justify-content: space-between;
  1244. padding: 10px;
  1245. position: relative;
  1246. }
  1247. .uni-list {
  1248. border: 1xp solid #eee;
  1249. }
  1250. .to-right-icon {
  1251. width: 15px;
  1252. height: 15px;
  1253. position: absolute;
  1254. top: 50%;
  1255. transform: translateY(-50%);
  1256. }
  1257. .text {
  1258. font-size: 16px;
  1259. color: #333;
  1260. }
  1261. .tj-btn {
  1262. height: 69rpx;
  1263. background: #3184f0;
  1264. border-radius: 6rpx;
  1265. font-size: 25rpx;
  1266. font-weight: 400;
  1267. width: 100%;
  1268. color: #FFFFFF;
  1269. line-height: 69rpx;
  1270. margin: 40rpx 70rpx;
  1271. }
  1272. .sc-btn {
  1273. height: 69rpx;
  1274. background: #f0686b;
  1275. border-radius: 6rpx;
  1276. font-size: 25rpx;
  1277. font-weight: 400;
  1278. color: #FFFFFF;
  1279. line-height: 69rpx;
  1280. margin: 40rpx;
  1281. }
  1282. // .gesture-area {
  1283. // //加浮动弹窗
  1284. // width: 100%;
  1285. // height: 100%;
  1286. // }
  1287. </style>