historyDetailsCourtyard.vue 43 KB

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