history_gas_sealing.vue 48 KB

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