historyDetailsEnginproject.vue 43 KB

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