historyDetailsEnginproject.vue 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332
  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. return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
  559. },
  560. setInfoBoNumber(key, index, number, i) {
  561. let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index]
  562. .number;
  563. let resAry = Ynumber.toString().split('.');
  564. resAry[i] = number
  565. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index].number = resAry
  566. .join('.');
  567. },
  568. bindTextAreaBlur(e, index) {
  569. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].remark = e;
  570. },
  571. removeht(index, key, type) {
  572. uni.showModal({
  573. title: '提示',
  574. content: '是否删除该图片或视频?',
  575. success: (res) => {
  576. if (res.confirm) {
  577. if (type == 'htq') {
  578. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  579. .zEngiineeringPhotoBoListOne
  580. .splice(index, 1)
  581. } else if (type == 'jsdps') {
  582. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  583. .zEngiineeringPhotoBoListTwo
  584. .splice(index, 1)
  585. } else if (type == 'hth') {
  586. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  587. .zEngiineeringPhotoBoListThree
  588. .splice(index, 1)
  589. } else if (type == 'Box') {
  590. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  591. .boxBrand
  592. .splice(index, 1)
  593. } else if (type == 'Sfht') {
  594. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  595. .stonePowder
  596. .splice(index, 1)
  597. } else if (type == 'Fljd') {
  598. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  599. .lightning
  600. .splice(index, 1)
  601. } else if (type == 'Dtlj') {
  602. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  603. .bottomLeg
  604. .splice(index, 1)
  605. } else if (type == 'Hldmyh') {
  606. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  607. .groundHardening
  608. .splice(index, 1)
  609. } else if (type == 'Tg') {
  610. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  611. .cannula
  612. .splice(index, 1)
  613. } else if (type == 'Nbmh') {
  614. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  615. .wallPlaster
  616. .splice(index, 1)
  617. } else if (type == 'Fhw') {
  618. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  619. .protectiveNet
  620. .splice(index, 1)
  621. } else if (type == 'Bj') {
  622. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  623. .starAnise
  624. .splice(index, 1)
  625. }
  626. }
  627. }
  628. })
  629. },
  630. remove(index, key) {
  631. uni.showModal({
  632. title: '提示',
  633. content: '是否删除该图片或视频?',
  634. success: (res) => {
  635. if (res.confirm) {
  636. this.dataJson.zEngineeringNodeBo
  637. .zEngineeringInfoBoList[key]
  638. .zEngiineeringPhotoBoList.splice(index, 1)
  639. }
  640. }
  641. })
  642. },
  643. choose(type, index) {
  644. this.dataIndex = index;
  645. let _this = this;
  646. uni.showActionSheet({
  647. title: '上传',
  648. itemList: ['图片', '视频'],
  649. success: (res) => {
  650. if (res.tapIndex == 0) {
  651. this.chooseimage(type)
  652. } else {
  653. this.choosevideo(type)
  654. }
  655. }
  656. })
  657. },
  658. chooseimage(e) {
  659. let _this = this;
  660. uni.chooseImage({
  661. sizeType: ['album', 'camera'],
  662. success(resp) {
  663. resp.tempFiles.forEach((item, index) => {
  664. const task = uni.uploadFile({
  665. url: _this.$HTTP + `/obs`,
  666. filePath: item.path,
  667. name: 'file',
  668. formData: {},
  669. header: _this.headers,
  670. success: res => {
  671. let data = JSON.parse(res.data);
  672. if (![200].includes(data.code)) {
  673. _this.$modal.msg(data.msg)
  674. } else {
  675. if (_this.progress === 100) {
  676. if (e == 'other') {
  677. _this.dataJson.zEngineeringNodeBo
  678. .zEngineeringInfoBoList[_this.dataIndex]
  679. .zEngiineeringPhotoBoList.push(data.data
  680. .url);
  681. } else if (e == 'htq') {
  682. _this.dataJson.zEngineeringNodeBo
  683. .zEngineeringInfoBoList[_this.dataIndex]
  684. .zEngiineeringPhotoBoListOne.push(data.data
  685. .url);
  686. } else if (e == 'jsdps') {
  687. _this.dataJson.zEngineeringNodeBo
  688. .zEngineeringInfoBoList[_this.dataIndex]
  689. .zEngiineeringPhotoBoListTwo.push(data.data
  690. .url);
  691. } else if (e == 'hth') {
  692. _this.dataJson.zEngineeringNodeBo
  693. .zEngineeringInfoBoList[_this.dataIndex]
  694. .zEngiineeringPhotoBoListThree.push(data
  695. .data
  696. .url);
  697. } else if (e == 'Box') {
  698. _this.dataJson.zEngineeringNodeBo
  699. .zEngineeringInfoBoList[_this.dataIndex]
  700. .boxBrand.push(data
  701. .data
  702. .url);
  703. } else if (e == 'Sfht') {
  704. _this.dataJson.zEngineeringNodeBo
  705. .zEngineeringInfoBoList[_this.dataIndex]
  706. .stonePowder.push(data
  707. .data
  708. .url);
  709. } else if (e == 'Fljd') {
  710. _this.dataJson.zEngineeringNodeBo
  711. .zEngineeringInfoBoList[_this.dataIndex]
  712. .lightning.push(data
  713. .data
  714. .url);
  715. } else if (e == 'Dtlj') {
  716. _this.dataJson.zEngineeringNodeBo
  717. .zEngineeringInfoBoList[_this.dataIndex]
  718. .bottomLeg.push(data
  719. .data
  720. .url);
  721. } else if (e == 'Hldmyh') {
  722. _this.dataJson.zEngineeringNodeBo
  723. .zEngineeringInfoBoList[_this.dataIndex]
  724. .groundHardening.push(data
  725. .data
  726. .url);
  727. } else if (e == 'Tg') {
  728. _this.dataJson.zEngineeringNodeBo
  729. .zEngineeringInfoBoList[_this.dataIndex]
  730. .cannula.push(data
  731. .data
  732. .url);
  733. } else if (e == 'Nbmh') {
  734. _this.dataJson.zEngineeringNodeBo
  735. .zEngineeringInfoBoList[_this.dataIndex]
  736. .wallPlaster.push(data
  737. .data
  738. .url);
  739. } else if (e == 'Fhw') {
  740. _this.dataJson.zEngineeringNodeBo
  741. .zEngineeringInfoBoList[_this.dataIndex]
  742. .protectiveNet.push(data
  743. .data
  744. .url);
  745. } else if (e == 'Bj') {
  746. _this.dataJson.zEngineeringNodeBo
  747. .zEngineeringInfoBoList[_this.dataIndex]
  748. .starAnise.push(data
  749. .data
  750. .url);
  751. }
  752. _this.$modal.msg('上传成功!')
  753. }
  754. }
  755. },
  756. fail: e => {
  757. _this.$modal.msg('上传失败!')
  758. },
  759. complete: res => {
  760. uni.hideLoading();
  761. _this.uploading = false;
  762. }
  763. });
  764. task.onProgressUpdate(res => {
  765. _this.progress = res.progress;
  766. uni.showLoading({
  767. title: '上传中'
  768. })
  769. if (_this.progress != 100) {
  770. _this.loading = false
  771. } else {
  772. _this.loading = true
  773. }
  774. });
  775. })
  776. },
  777. })
  778. },
  779. choosevideo(e) {
  780. let _this = this;
  781. uni.chooseVideo({
  782. sourceType: ['album', 'camera'],
  783. maxDuration: 30,
  784. success(resp) {
  785. const task = uni.uploadFile({
  786. url: _this.$HTTP + `/obs`,
  787. filePath: resp.tempFilePath,
  788. name: 'file',
  789. formData: {},
  790. header: _this.headers,
  791. success: res => {
  792. let data = JSON.parse(res.data);
  793. if (![200].includes(res.statusCode)) {
  794. this.uploadError(index, data);
  795. } else {
  796. //上传成功
  797. if (_this.progress === 100) {
  798. if (e == 'other') {
  799. _this.dataJson.zEngineeringNodeBo
  800. .zEngineeringInfoBoList[_this.dataIndex]
  801. .zEngiineeringPhotoBoList.push(data.data.url);
  802. } else if (e == 'htq') {
  803. _this.dataJson.zEngineeringNodeBo
  804. .zEngineeringInfoBoList[_this.dataIndex]
  805. .zEngiineeringPhotoBoListOne.push(data.data.url);
  806. } else if (e == 'jsdps') {
  807. _this.dataJson.zEngineeringNodeBo
  808. .zEngineeringInfoBoList[_this.dataIndex]
  809. .zEngiineeringPhotoBoListTwo.push(data.data.url);
  810. } else if (e == 'hth') {
  811. _this.dataJson.zEngineeringNodeBo
  812. .zEngineeringInfoBoList[_this.dataIndex]
  813. .zEngiineeringPhotoBoListThree.push(data.data.url);
  814. } else if (e == 'Box') {
  815. _this.dataJson.zEngineeringNodeBo
  816. .zEngineeringInfoBoList[_this.dataIndex]
  817. .boxBrand.push(data.data.url);
  818. } else if (e == 'Sfht') {
  819. _this.dataJson.zEngineeringNodeBo
  820. .zEngineeringInfoBoList[_this.dataIndex]
  821. .stonePowder.push(data.data.url);
  822. } else if (e == 'Fljd') {
  823. _this.dataJson.zEngineeringNodeBo
  824. .zEngineeringInfoBoList[_this.dataIndex]
  825. .lightning.push(data.data.url);
  826. } else if (e == 'Dtlj') {
  827. _this.dataJson.zEngineeringNodeBo
  828. .zEngineeringInfoBoList[_this.dataIndex]
  829. .bottomLeg.push(data.data.url);
  830. } else if (e == 'Hldmyh') {
  831. _this.dataJson.zEngineeringNodeBo
  832. .zEngineeringInfoBoList[_this.dataIndex]
  833. .groundHardening.push(data.data.url);
  834. } else if (e == 'Tg') {
  835. _this.dataJson.zEngineeringNodeBo
  836. .zEngineeringInfoBoList[_this.dataIndex]
  837. .cannula.push(data.data.url);
  838. } else if (e == 'Nbmh') {
  839. _this.dataJson.zEngineeringNodeBo
  840. .zEngineeringInfoBoList[_this.dataIndex]
  841. .wallPlaster.push(data.data.url);
  842. } else if (e == 'Fhw') {
  843. _this.dataJson.zEngineeringNodeBo
  844. .zEngineeringInfoBoList[_this.dataIndex]
  845. .protectiveNet.push(data.data.url);
  846. } else if (e == 'Bj') {
  847. _this.dataJson.zEngineeringNodeBo
  848. .zEngineeringInfoBoList[_this.dataIndex]
  849. .starAnise.push(data.data.url);
  850. }
  851. _this.$modal.msg('上传成功!')
  852. }
  853. }
  854. },
  855. fail: e => {
  856. _this.$modal.msg('上传失败!')
  857. this.uploadError(index, e);
  858. },
  859. complete: res => {
  860. uni.hideLoading();
  861. _this.uploading = false;
  862. }
  863. });
  864. task.onProgressUpdate(res => {
  865. _this.progress = res.progress;
  866. uni.showLoading({
  867. title: '上传中'
  868. })
  869. if (_this.progress != 100) {
  870. _this.loading = false
  871. } else {
  872. _this.loading = true
  873. }
  874. });
  875. },
  876. })
  877. },
  878. showPhoto(index, arr) {
  879. let newArr = [];
  880. arr.forEach((item, index) => {
  881. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
  882. item.substring(item.length - 4) == 'jpeg') {
  883. newArr.push(item)
  884. }
  885. });
  886. uni.previewImage({
  887. current: index,
  888. urls: newArr,
  889. })
  890. },
  891. // showVideo(arr) {
  892. // this.playVideo = true;
  893. // this.playVideoSrc = arr;
  894. // },
  895. // closeVideo(){
  896. // this.playVideo = false;
  897. // },
  898. isEmpty(str) {
  899. return (!str || 0 === str.length);
  900. },
  901. isEdit(item) {
  902. var isShow = item.createBy == this.$user.state.name;
  903. return isShow;
  904. },
  905. submit() {
  906. let isSubmit = true;
  907. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  908. if (res.createBy == this.$user.state.name) {
  909. if (this.title == '调压柜') {
  910. if (res.boxBrand.length == 0) {
  911. this.$modal.msg("请上传调压箱铭牌照片");
  912. isSubmit = false;
  913. }
  914. if (res.stonePowder.length == 0) {
  915. this.$modal.msg("请上传调压箱内石粉回填照片");
  916. isSubmit = false;
  917. }
  918. if (res.lightning.length == 0) {
  919. this.$modal.msg("请上传调压箱防雷接地照片");
  920. isSubmit = false;
  921. }
  922. if (res.bottomLeg.length == 0) {
  923. this.$modal.msg("请上传调压箱底腿连接照片");
  924. isSubmit = false;
  925. }
  926. if (res.groundHardening.length == 0) {
  927. this.$modal.msg("请上传调压箱护栏及地面硬化(远景)照片");
  928. isSubmit = false;
  929. }
  930. } else if (this.title == '阀井') {
  931. if (res.cannula.length == 0) {
  932. this.$modal.msg("请上传套管照片");
  933. isSubmit = false;
  934. }
  935. if (res.wallPlaster.length == 0) {
  936. this.$modal.msg("请上传内壁抹灰照片");
  937. isSubmit = false;
  938. }
  939. if (res.protectiveNet.length == 0) {
  940. this.$modal.msg("请上传防护网照片");
  941. isSubmit = false;
  942. }
  943. if (res.starAnise.length == 0) {
  944. this.$modal.msg("请上传八角照片");
  945. isSubmit = false;
  946. }
  947. } else if (this.title == '焊接、防腐' || this.title == '架空管线' || this.title ==
  948. '下管' || this.title == '沟下连头' || this.title == '焊接' || this.title == '顶管材料米数' ||
  949. this.title == '全貌照片') {
  950. res.zEngineeringMaterialBo.forEach((itme) => {
  951. if (itme.specifications == '') {
  952. this.$modal.msg("请选择规格");
  953. isSubmit = false;
  954. }
  955. if (itme.number == '') {
  956. this.$modal.msg("请输入米数");
  957. isSubmit = false;
  958. }
  959. if (this.getIntegerPart(itme.number, 0) == '') {
  960. this.$modal.msg("请输入米数");
  961. isSubmit = false;
  962. }
  963. })
  964. } else if (this.title == '回填、撤场') {
  965. if (res.zEngiineeringPhotoBoListOne.length <= 0 && res.zEngiineeringPhotoBoListTwo
  966. .length <= 0 && res.zEngiineeringPhotoBoListThree.length <= 0) {
  967. this.$modal.msg('请上传照片')
  968. isSubmit = false;
  969. }
  970. // if (res.zEngiineeringPhotoBoListTwo.length <= 0) {
  971. // this.$modal.msg('请上传警示带铺设照片')
  972. // isSubmit = false;
  973. // }
  974. // if (res.zEngiineeringPhotoBoListThree.length <= 0) {
  975. // this.$modal.msg('请上传回填后照片')
  976. // isSubmit = false;
  977. // }
  978. } else {
  979. if (this.title != '顶管材料米数') {
  980. if (res.zEngiineeringPhotoBoList.length == 0) {
  981. this.$modal.msg("请上传照片");
  982. isSubmit = false;
  983. }
  984. }
  985. }
  986. }
  987. })
  988. // this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  989. // if (res.zEngiineeringPhotoBoList.length == 0) {
  990. // this.$modal.msg("请上传照片");
  991. // isSubmit = false;
  992. // }
  993. // })
  994. if (!isSubmit) {
  995. return
  996. }
  997. PutengineeringNew(this.dataJson).then(
  998. response => {
  999. if (response.code == '200') {
  1000. uni.hideLoading()
  1001. uni.showToast({
  1002. title: response.msg,
  1003. icon: 'none',
  1004. duration: 2000
  1005. });
  1006. setTimeout(function() {
  1007. uni.navigateBack();
  1008. }, 1000)
  1009. }
  1010. });
  1011. }
  1012. }
  1013. }
  1014. </script>
  1015. <style lang="scss">
  1016. .uni-media-list-body {
  1017. background: #fff;
  1018. border: 1px solid #eee;
  1019. border-radius: 40rpx;
  1020. margin: 20rpx;
  1021. padding: 10rpx 0 40rpx;
  1022. box-shadow: 0 0 5px #eee;
  1023. }
  1024. .uni-media-list-text-top {
  1025. display: flex;
  1026. align-items: center;
  1027. justify-content: space-between;
  1028. padding: 10px;
  1029. position: relative;
  1030. }
  1031. .to-right-icon {
  1032. width: 15px;
  1033. height: 15px;
  1034. position: absolute;
  1035. top: 50%;
  1036. transform: translateY(-50%);
  1037. }
  1038. .share {
  1039. width: 100%;
  1040. height: 100%;
  1041. }
  1042. .tit-text {
  1043. color: #4f535a;
  1044. margin-right: 20rpx;
  1045. }
  1046. .normal-text {}
  1047. .cz-style {
  1048. background: #e8f4f9;
  1049. margin: 20rpx;
  1050. padding: 10rpx;
  1051. border-radius: 20rpx;
  1052. border: 1px solid #d4e3f0;
  1053. }
  1054. .uni-media-list-text-top {
  1055. font-size: 14px;
  1056. color: #696969;
  1057. padding: 20rpx 20rpx;
  1058. border-bottom: 1px solid #eee;
  1059. display: flex;
  1060. align-items: center;
  1061. }
  1062. .share-box {
  1063. width: 100%;
  1064. height: 100%;
  1065. position: fixed;
  1066. top: 0rpx;
  1067. left: 0rpx;
  1068. bottom: 0rpx;
  1069. right: 0rpx;
  1070. background-color: rgba(0, 0, 0, 0.4);
  1071. transition: .3s;
  1072. z-index: 999;
  1073. }
  1074. // 进入分享动画
  1075. .share-show {
  1076. transition: all 0.3s ease;
  1077. transform: translateY(0%) !important;
  1078. border-radius: 20px 20px 0px 0px;
  1079. }
  1080. .scroll-Y {
  1081. height: 58vh;
  1082. }
  1083. // 离开分享动画
  1084. .share-item {
  1085. position: fixed;
  1086. left: 0;
  1087. bottom: 0;
  1088. width: 100%;
  1089. height: 70%;
  1090. background-color: #FFFFFF;
  1091. transition: all 0.3s ease;
  1092. transform: translateY(100%);
  1093. z-index: 1999;
  1094. .share-to {
  1095. width: 100%;
  1096. height: 30px;
  1097. display: flex;
  1098. justify-content: center;
  1099. margin: 30rpx 0;
  1100. align-items: center;
  1101. }
  1102. .content {
  1103. width: 100%;
  1104. height: auto;
  1105. display: flex;
  1106. flex-wrap: wrap;
  1107. .block {
  1108. width: 100%;
  1109. display: flex;
  1110. flex-direction: column;
  1111. justify-content: center;
  1112. align-items: left;
  1113. height: auto;
  1114. image {
  1115. width: 80rpx;
  1116. height: 80rpx;
  1117. }
  1118. text {
  1119. margin-top: 16rpx;
  1120. font-size: 28rpx;
  1121. color: #606266;
  1122. }
  1123. }
  1124. }
  1125. .cancel {
  1126. width: 100%;
  1127. height: 3rem;
  1128. display: flex;
  1129. justify-content: center;
  1130. align-items: center;
  1131. border-top: 1rpx solid #E4E7ED;
  1132. }
  1133. }
  1134. .uni-media-list-text-top {
  1135. display: flex;
  1136. align-items: center;
  1137. justify-content: space-between;
  1138. padding: 10px;
  1139. position: relative;
  1140. }
  1141. .uni-list {
  1142. border: 1xp solid #eee;
  1143. }
  1144. .to-right-icon {
  1145. width: 15px;
  1146. height: 15px;
  1147. position: absolute;
  1148. top: 50%;
  1149. transform: translateY(-50%);
  1150. }
  1151. .text {
  1152. font-size: 16px;
  1153. color: #333;
  1154. }
  1155. .tj-btn {
  1156. height: 69rpx;
  1157. background: #3184f0;
  1158. border-radius: 6rpx;
  1159. font-size: 25rpx;
  1160. font-weight: 400;
  1161. // width: 100%;
  1162. color: #FFFFFF;
  1163. line-height: 69rpx;
  1164. margin: 40rpx 70rpx;
  1165. }
  1166. .sc-btn {
  1167. height: 69rpx;
  1168. background: #f0686b;
  1169. border-radius: 6rpx;
  1170. font-size: 25rpx;
  1171. font-weight: 400;
  1172. color: #FFFFFF;
  1173. line-height: 69rpx;
  1174. margin: 40rpx;
  1175. }
  1176. // .gesture-area {
  1177. // //加浮动弹窗
  1178. // width: 100%;
  1179. // height: 100%;
  1180. // }
  1181. </style>