newcourtyard.vue 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389
  1. <template>
  2. <scroll-view>
  3. <view class="background">
  4. <view class="uni-list">
  5. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  6. <view>
  7. 行政区
  8. </view>
  9. <view v-if="this.isEmpty(this.XZQValue.dictValue)" @click="pickerShow('xzq')">
  10. <span style="color: darkgray;">请选择行政区</span>
  11. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  12. </view>
  13. <view v-else class="uni-list-cell-db" @click="pickerShow('xzq')">
  14. <span style="color: black;">{{XZQValue.dictLabel}}</span>
  15. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="uni-list">
  20. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  21. <view>
  22. 小区
  23. </view>
  24. <view v-if="this.isEmpty(this.XQValue.id)" class="uni-list-cell-db" @click="pickerShow('xq')">
  25. <span style="color: darkgray;">请选择小区</span>
  26. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  27. </view>
  28. <view v-else class="uni-list-cell-db" @click="pickerShow('xq')">
  29. <span style="color: black;">{{XQValue.name}}</span>
  30. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="uni-list">
  35. <view class="container">
  36. <view class="uni-list-cell-left">
  37. 楼栋
  38. </view>
  39. <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" @click="pickerShow('ld')">
  40. <span style="color: darkgray;">请选择楼栋</span>
  41. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  42. </view>
  43. <view v-else class="uni-list-cell-db" @click="pickerShow('ld')">
  44. <span style="color: black;">{{LDValue.name}}</span>
  45. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  46. </view>
  47. </view>
  48. </view>
  49. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  50. subtitleKey="id" v-model="name"></SelectPicker>
  51. <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
  52. titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  53. </view>
  54. <view class="background">
  55. <view>
  56. <view class="uni-list">
  57. <view
  58. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  59. {{objValue.enginClassValue}}
  60. <span
  61. style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
  62. @click="history">历史</span>
  63. </view>
  64. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  65. <view>
  66. 施工时间
  67. </view>
  68. <view @click="openDatetimePicker('sg')">
  69. <span style="color: black;">{{time}}</span>
  70. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  71. </view>
  72. </view>
  73. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  74. <view class="uni-common-mt" style="width: 100%;">
  75. <text class="uni-title uni-common-pl">施工内容</text>
  76. <view style="width: 100%;box-sizing: border-box;">
  77. <textarea class="textarea" placeholder="请输入施工内容" maxlength="255"
  78. placeholder-style="padding: 10rpx;"
  79. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  80. auto-height v-model="projectContent"></textarea>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <view
  86. v-if="objValue.enginClassValue=='开挖前' || objValue.enginClassValue=='开挖后' ||objValue.enginClassValue=='焊口照片' ||objValue.enginClassValue== '隐蔽工程'"
  87. class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  88. <view class="container" style="color: #b2b2b2;">*请上传照片</view>
  89. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  90. <image :src="loadImgSrc('updateimg.png')" mode=""
  91. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('other')"
  92. v-show="reviewStatus!='1'"></image>
  93. <view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
  94. <view
  95. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  96. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  97. @click="showPhoto(index,'other')">
  98. </image>
  99. </view>
  100. <view v-else>
  101. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  102. </view>
  103. <view @click="remove(index,'other')"
  104. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  105. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  106. </image>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <view v-if="objValue.enginClassValue=='回填'">
  112. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  113. <view class="container" style="color: #b2b2b2;">*请上传石粉回填照片</view>
  114. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  115. <image :src="loadImgSrc('updateimg.png')" mode=""
  116. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('sfht')"
  117. v-show="reviewStatus!='1'"></image>
  118. <view v-for="(item,index) in stonePowderArr" :key="index" style="position: relative;">
  119. <view
  120. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  121. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  122. @click="showPhoto(index,'sfht')">
  123. </image>
  124. </view>
  125. <view v-else>
  126. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  127. </view>
  128. <view @click="remove(index,'sfht')"
  129. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  130. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  131. </image>
  132. </view>
  133. </view>
  134. </view>
  135. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  136. <view class="container" style="color: #b2b2b2;">*请上传警示带铺设照片</view>
  137. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  138. <image :src="loadImgSrc('updateimg.png')" mode=""
  139. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('jsdps')"
  140. v-show="reviewStatus!='1'"></image>
  141. <view v-for="(item,index) in warningtTapeArr" :key="index" style="position: relative;">
  142. <view
  143. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  144. <image :src="item" mode=""
  145. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  146. @click="showPhoto(index,'jsdps')">
  147. </image>
  148. </view>
  149. <view v-else>
  150. <video :src="item"
  151. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  152. </view>
  153. <view @click="remove(index,'jsdps')"
  154. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  155. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  156. </image>
  157. </view>
  158. </view>
  159. </view>
  160. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  161. <view class="container" style="color: #b2b2b2;">*请上回填后照片</view>
  162. <view class=""
  163. style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  164. <image :src="loadImgSrc('updateimg.png')" mode=""
  165. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  166. @click="choose('hth')" v-show="reviewStatus!='1'"></image>
  167. <view v-for="(item,index) in photosAfterArr" :key="index"
  168. style="position: relative;">
  169. <view
  170. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  171. <image :src="item" mode=""
  172. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  173. @click="showPhoto(index,'hth')">
  174. </image>
  175. </view>
  176. <view v-else>
  177. <video :src="item"
  178. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  179. </view>
  180. <view @click="remove(index,'hth')"
  181. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  182. <image :src="loadImgSrc('icon_close.png')"
  183. style=" width: 15px; height: 15px;">
  184. </image>
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. </view>
  191. </view>
  192. <view v-if="objValue.enginClassValue=='调压柜'">
  193. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  194. <view class="container" style="color: #b2b2b2;">*请上传调压箱名牌照片</view>
  195. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  196. <image :src="loadImgSrc('updateimg.png')" mode=""
  197. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Box')"
  198. v-show="reviewStatus!='1'"></image>
  199. <view v-for="(item,index) in imgBoxArr" :key="index" style="position: relative;">
  200. <view
  201. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  202. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  203. @click="showPhoto(index,'Box')">
  204. </image>
  205. </view>
  206. <view v-else>
  207. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  208. </view>
  209. <view @click="remove(index,'Box')"
  210. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  211. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  212. </image>
  213. </view>
  214. </view>
  215. </view>
  216. </view>
  217. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  218. <view class="container" style="color: #b2b2b2;">*请上传调压箱内石粉回填照片</view>
  219. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  220. <image :src="loadImgSrc('updateimg.png')" mode=""
  221. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Sfht')"
  222. v-show="reviewStatus!='1'"></image>
  223. <view v-for="(item,index) in imgSfhtArr" :key="index" style="position: relative;">
  224. <view
  225. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  226. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  227. @click="showPhoto(index,'Sfht')">
  228. </image>
  229. </view>
  230. <view v-else>
  231. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  232. </view>
  233. <view @click="remove(index,'Sfht')"
  234. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  235. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  236. </image>
  237. </view>
  238. </view>
  239. </view>
  240. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  241. <view class="container" style="color: #b2b2b2;">*请上传调压箱防雷接地照片</view>
  242. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  243. <image :src="loadImgSrc('updateimg.png')" mode=""
  244. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fljd')"
  245. v-show="reviewStatus!='1'"></image>
  246. <view v-for="(item,index) in imgFljdArr" :key="index" style="position: relative;">
  247. <view
  248. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  249. <image :src="item" mode=""
  250. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  251. @click="showPhoto(index,'Fljd')">
  252. </image>
  253. </view>
  254. <view v-else>
  255. <video :src="item"
  256. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  257. </view>
  258. <view @click="remove(index,'Fljd')"
  259. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  260. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  261. </image>
  262. </view>
  263. </view>
  264. </view>
  265. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  266. <view class="container" style="color: #b2b2b2;">*请上传调压箱底腿连接照片</view>
  267. <view class=""
  268. style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  269. <image :src="loadImgSrc('updateimg.png')" mode=""
  270. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  271. @click="choose('Dtlj')" v-show="reviewStatus!='1'"></image>
  272. <view v-for="(item,index) in imgDtljArr" :key="index" style="position: relative;">
  273. <view
  274. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  275. <image :src="item" mode=""
  276. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  277. @click="showPhoto(index,'Dtlj')">
  278. </image>
  279. </view>
  280. <view v-else>
  281. <video :src="item"
  282. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  283. </view>
  284. <view @click="remove(index,'Dtlj')"
  285. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  286. <image :src="loadImgSrc('icon_close.png')"
  287. style=" width: 15px; height: 15px;">
  288. </image>
  289. </view>
  290. </view>
  291. </view>
  292. </view>
  293. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  294. <view class="container" style="color: #b2b2b2;">*请上传调压箱护栏及地面硬化(远景)照片</view>
  295. <view class=""
  296. style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  297. <image :src="loadImgSrc('updateimg.png')" mode=""
  298. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  299. @click="choose('Hldmyh')" v-show="reviewStatus!='1'"></image>
  300. <view v-for="(item,index) in imgHldmyhArr" :key="index"
  301. style="position: relative;">
  302. <view
  303. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  304. <image :src="item" mode=""
  305. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  306. @click="showPhoto(index,'Hldmyh')">
  307. </image>
  308. </view>
  309. <view v-else>
  310. <video :src="item"
  311. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  312. </view>
  313. <view @click="remove(index,'Hldmyh')"
  314. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  315. <image :src="loadImgSrc('icon_close.png')"
  316. style=" width: 15px; height: 15px;">
  317. </image>
  318. </view>
  319. </view>
  320. </view>
  321. </view>
  322. </view>
  323. </view>
  324. </view>
  325. <view v-if="objValue.enginClassValue=='阀井'">
  326. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  327. <view class="container" style="color: #b2b2b2;">*请上传套管照片</view>
  328. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  329. <image :src="loadImgSrc('updateimg.png')" mode=""
  330. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Tg')"
  331. v-show="reviewStatus!='1'"></image>
  332. <view v-for="(item,index) in imgTgArr" :key="index" style="position: relative;">
  333. <view
  334. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  335. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  336. @click="showPhoto(index,'Tg')">
  337. </image>
  338. </view>
  339. <view v-else>
  340. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  341. </view>
  342. <view @click="remove(index,'Tg')"
  343. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  344. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  345. </image>
  346. </view>
  347. </view>
  348. </view>
  349. </view>
  350. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  351. <view class="container" style="color: #b2b2b2;">*请上传内壁抹灰照片</view>
  352. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  353. <image :src="loadImgSrc('updateimg.png')" mode=""
  354. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Nbmh')"
  355. v-show="reviewStatus!='1'"></image>
  356. <view v-for="(item,index) in imgNbmhArr" :key="index" style="position: relative;">
  357. <view
  358. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  359. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  360. @click="showPhoto(index,'Nbmh')">
  361. </image>
  362. </view>
  363. <view v-else>
  364. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  365. </view>
  366. <view @click="remove(index,'Nbmh')"
  367. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  368. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  369. </image>
  370. </view>
  371. </view>
  372. </view>
  373. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  374. <view class="container" style="color: #b2b2b2;">*请上传防护网照片</view>
  375. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  376. <image :src="loadImgSrc('updateimg.png')" mode=""
  377. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fhw')"
  378. v-show="reviewStatus!='1'"></image>
  379. <view v-for="(item,index) in imgFhwArr" :key="index" style="position: relative;">
  380. <view
  381. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  382. <image :src="item" mode=""
  383. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  384. @click="showPhoto(index,'Fhw')">
  385. </image>
  386. </view>
  387. <view v-else>
  388. <video :src="item"
  389. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  390. </view>
  391. <view @click="remove(index,'Fhw')"
  392. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  393. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  394. </image>
  395. </view>
  396. </view>
  397. </view>
  398. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  399. <view class="container" style="color: #b2b2b2;">*请上传调八角照片</view>
  400. <view class=""
  401. style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  402. <image :src="loadImgSrc('updateimg.png')" mode=""
  403. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Bj')"
  404. v-show="reviewStatus!='1'"></image>
  405. <view v-for="(item,index) in imgBjArr" :key="index" style="position: relative;">
  406. <view
  407. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  408. <image :src="item" mode=""
  409. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  410. @click="showPhoto(index,'Bj')">
  411. </image>
  412. </view>
  413. <view v-else>
  414. <video :src="item"
  415. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  416. </view>
  417. <view @click="remove(index,'Bj')"
  418. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  419. <image :src="loadImgSrc('icon_close.png')"
  420. style=" width: 15px; height: 15px;">
  421. </image>
  422. </view>
  423. </view>
  424. </view>
  425. </view>
  426. </view>
  427. </view>
  428. </view>
  429. </view>
  430. </view>
  431. <view class="action-btn" v-show="reviewStatus!='1'">
  432. <button @click="submit" class="btn cu-btn block bg-blue lg round">确认上传</button>
  433. </view>
  434. <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
  435. <yt-dateTimePicker ref="myPicker" @submit="handleSubmit" :start-year="2024" :end-year="2099"
  436. :time-hide="[true, true, true, true, true, true]" :time-label="['年', '月', '日', '时', '分', '秒']" />
  437. </scroll-view>
  438. </template>
  439. <script>
  440. import SelectPicker from '../../../components/selectPicker/select_picker.vue'
  441. import bottomSheet from '../../../components/bottomSheet/bottomSheet.vue'
  442. import {
  443. getDicts
  444. } from "@/api/system/dict/data";
  445. import {
  446. getAreaList,
  447. getBuildingList,
  448. addTearOldPipe,
  449. getEnginMaterialQualityList,
  450. getEnginSpecificationsList,
  451. getRoomProjectList,
  452. getRoomProjectId,
  453. } from '@/api/common'
  454. import {
  455. getToken
  456. } from '../../../utils/auth';
  457. export default {
  458. components: {
  459. SelectPicker,
  460. bottomSheet,
  461. },
  462. data() {
  463. return {
  464. headers: {
  465. Authorization: "Bearer " + getToken()
  466. },
  467. type: '',
  468. reviewStatus: '', //是否可以点击
  469. open: false,
  470. objValue: '', //上一页面传过来的值 新增接口用
  471. openDict: false,
  472. selectList: [],
  473. dictOptions: [],
  474. imgArr: [],
  475. stonePowderArr: [],
  476. warningtTapeArr: [],
  477. photosAfterArr: [],
  478. XQValue: {},
  479. XZQValue: {},
  480. projectValue: {
  481. 'dictValue': '0'
  482. },
  483. LevelValue: {},
  484. isOkValue: '', //分段打压是否合格
  485. isOkLabel: '', //分段打压是否合格label
  486. LDValue: {},
  487. time: '', //施工时间
  488. timeType: '', //时间类型
  489. BackfillingTime: '', //回填时间
  490. showTime: false,
  491. specificationValue: {}, //规格
  492. projectContent: '', //施工内容
  493. materialValue: {}, //材质
  494. brandValue: {}, //品牌
  495. doorValue: {}, //上门类型
  496. SelfClosValve: {}, //自闭阀类型
  497. materialList: '', //材质list
  498. XQList: '',
  499. LDList: '',
  500. progress: 0, //上传图片进度百分比
  501. loading: false,
  502. inputNumberValue: '',
  503. title: '',
  504. historyList: {}, //历史数据
  505. imgSfhtArr: [],
  506. imgFljdArr: [],
  507. imgBoxArr: [],
  508. imgDtljArr: [],
  509. imgHldmyhArr: [],
  510. imgTgArr: [],
  511. imgNbmhArr: [],
  512. imgFhwArr: [],
  513. imgBjArr: [],
  514. }
  515. },
  516. created() {
  517. this.time = this.traversalTime(new Date().getTime()) //在data里定义变量-nowTime
  518. },
  519. onLoad(options) {
  520. if ('params' in options) {
  521. this.objValue = JSON.parse(decodeURIComponent(options.params));
  522. if (this.objValue.enginType == `old_renovation`) {
  523. this.title = '旧改工程-庭院'
  524. } else if (this.objValue.enginType == `new_built`) {
  525. this.title = '新建工程-庭院'
  526. }
  527. uni.setNavigationBarTitle({
  528. title: this.title
  529. })
  530. }
  531. },
  532. methods: {
  533. // 打开picker
  534. openDatetimePicker(type) {
  535. this.timeType = type;
  536. this.$refs.myPicker.show();
  537. },
  538. // 关闭picker
  539. closeDatetimePicker() {
  540. this.$refs.myPicker.hide();
  541. },
  542. handleSubmit(e) {
  543. if (this.timeType == 'ht') {
  544. this.BackfillingTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
  545. } else {
  546. this.time = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
  547. }
  548. },
  549. //获取当前时间
  550. traversalTime(timestamp) {
  551. //timestamp(时间戳)是整数,否则要parseInt转换
  552. let time = new Date(timestamp);
  553. let y = time.getFullYear();
  554. let m = time.getMonth() + 1;
  555. let d = time.getDate();
  556. let h = time.getHours();
  557. let mm = time.getMinutes();
  558. let s = time.getSeconds();
  559. return y + '-' + this.addTimes(m) + '-' + this.addTimes(d) + ' ' + this.addTimes(h) + ':' + this.addTimes(
  560. mm) + ':' + this.addTimes(s);
  561. },
  562. addTimes(m) {
  563. return m < 10 ? '0' + m : m
  564. },
  565. //判断是否选择
  566. isEmpty(str) {
  567. return (!str || 0 === str.length);
  568. },
  569. // 显示历史弹窗
  570. handleShowSheet() {
  571. this.shareState = true;
  572. },
  573. // 隐藏历史弹窗
  574. handleHiddenShare() {
  575. this.shareState = false;
  576. },
  577. showPhoto(index, type) {
  578. let typeArr = [];
  579. let newArr = [];
  580. if (type == 'other') {
  581. typeArr = this.imgArr;
  582. } else if (type == 'sfht') {
  583. typeArr = this.stonePowderArr;
  584. } else if (type == 'jsdps') {
  585. typeArr = this.warningtTapeArr;
  586. } else if (type == 'hth') {
  587. typeArr = this.photosAfterArr;
  588. } else if (type == 'Box') {
  589. typeArr = this.imgBoxArr;
  590. } else if (type == 'Sfht') {
  591. typeArr = this.imgSfhtArr;
  592. } else if (type == 'Fljd') {
  593. typeArr = this.imgFljdArr;
  594. } else if (type == 'Dtlj') {
  595. typeArr = this.imgDtljArr;
  596. } else if (type == 'Hldmyh') {
  597. typeArr = this.imgHldmyhArr;
  598. } else if (type == 'Tg') {
  599. typeArr = this.imgTgArr;
  600. } else if (type == 'Nbmh') {
  601. typeArr = this.imgNbmhArr;
  602. } else if (type == 'Fhw') {
  603. typeArr = this.imgFhwArr;
  604. } else if (type == 'Bj') {
  605. typeArr = this.imgBjArr;
  606. }
  607. typeArr.forEach((item, index) => {
  608. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
  609. item.substring(item.length - 4) == 'jpeg') {
  610. newArr.push(item)
  611. }
  612. });
  613. uni.previewImage({
  614. current: index,
  615. urls: newArr,
  616. })
  617. },
  618. remove(index, type) {
  619. uni.showModal({
  620. title: '提示',
  621. content: '是否删除该图片或视频?',
  622. success: (res) => {
  623. if (res.confirm) {
  624. if (type == 'other') {
  625. this.imgArr.splice(index, 1)
  626. if (this.imgArr.length <= 0) {
  627. this.photo = true;
  628. }
  629. } else if (type == 'sfht') {
  630. this.stonePowderArr.splice(index, 1)
  631. if (this.stonePowderArr.length <= 0) {
  632. this.photo = true;
  633. }
  634. } else if (type == 'jsdps') {
  635. this.warningtTapeArr.splice(index, 1)
  636. if (this.warningtTapeArr.length <= 0) {
  637. this.photo = true;
  638. }
  639. } else if (type == 'hth') {
  640. this.photosAfterArr.splice(index, 1)
  641. if (this.photosAfterArr.length <= 0) {
  642. this.photo = true;
  643. }
  644. } else if (type == 'Box') {
  645. this.imgBoxArr.splice(index, 1)
  646. } else if (type == 'Sfht') {
  647. this.imgSfhtArr.splice(index, 1)
  648. } else if (type == 'Fljd') {
  649. this.imgFljdArr.splice(index, 1)
  650. } else if (type == 'Dtlj') {
  651. this.imgDtljArr.splice(index, 1)
  652. } else if (type == 'Hldmyh') {
  653. this.imgHldmyhArr.splice(index, 1)
  654. } else if (type == 'Tg') {
  655. this.imgTgArr.splice(index, 1)
  656. } else if (type == 'Nbmh') {
  657. this.imgNbmhArr.splice(index, 1)
  658. } else if (type == 'Fhw') {
  659. this.imgFhwArr.splice(index, 1)
  660. } else if (type == 'Bj') {
  661. this.imgBjArr.splice(index, 1)
  662. }
  663. }
  664. }
  665. })
  666. },
  667. choose(e) {
  668. let _this = this;
  669. uni.showActionSheet({
  670. title: '上传',
  671. itemList: ['图片', '视频'],
  672. success: (res) => {
  673. if (res.tapIndex == 0) {
  674. this.chooseimage(e)
  675. } else {
  676. this.choosevideo(e)
  677. }
  678. }
  679. })
  680. },
  681. chooseimage(e) {
  682. let _this = this;
  683. uni.chooseImage({
  684. sizeType: ['album', 'camera'],
  685. success(resp) {
  686. resp.tempFiles.forEach((item, index) => {
  687. const task = uni.uploadFile({
  688. url: _this.$HTTP + `/obs`,
  689. filePath: item.path,
  690. name: 'file',
  691. formData: {},
  692. header: _this.headers,
  693. success: res => {
  694. // 判断是否json字符串,将其转为json格式
  695. // let data = _this.$u.test.jsonString(res
  696. // .data) ? JSON.parse(res.data) : res.data;
  697. let data = JSON.parse(res.data);
  698. if (![200].includes(data.code)) {
  699. // this.uploadError(index, data);
  700. _this.$modal.msg(data.msg)
  701. } else {
  702. if (_this.progress === 100) {
  703. if (e == 'other') {
  704. _this.imgArr.push(data.data.url)
  705. } else if (e == 'sfht') {
  706. _this.stonePowderArr.push(data.data.url)
  707. } else if (e == 'jsdps') {
  708. _this.warningtTapeArr.push(data.data.url)
  709. } else if (e == 'hth') {
  710. _this.photosAfterArr.push(data.data.url)
  711. } else if (e == 'Box') {
  712. _this.imgBoxArr.push(data.data.url)
  713. } else if (e == 'Sfht') {
  714. _this.imgSfhtArr.push(data.data.url)
  715. } else if (e == 'Fljd') {
  716. _this.imgFljdArr.push(data.data.url)
  717. } else if (e == 'Dtlj') {
  718. _this.imgDtljArr.push(data.data.url)
  719. } else if (e == 'Hldmyh') {
  720. _this.imgHldmyhArr.push(data.data.url)
  721. } else if (e == 'Tg') {
  722. _this.imgTgArr.push(data.data.url)
  723. } else if (e == 'Nbmh') {
  724. _this.imgNbmhArr.push(data.data.url)
  725. } else if (e == 'Fhw') {
  726. _this.imgFhwArr.push(data.data.url)
  727. } else if (e == 'Bj') {
  728. _this.imgBjArr.push(data.data.url)
  729. }
  730. _this.$modal.msg('上传成功!')
  731. _this.photo = false;
  732. }
  733. }
  734. },
  735. fail: e => {
  736. _this.$modal.msg('上传失败!')
  737. //_this.uploadError(index, e);
  738. },
  739. complete: res => {
  740. uni.hideLoading();
  741. _this.uploading = false;
  742. }
  743. });
  744. task.onProgressUpdate(res => {
  745. _this.progress = res.progress;
  746. uni.showLoading({
  747. title: '上传中'
  748. })
  749. if (_this.progress != 100) {
  750. _this.loading = false
  751. } else {
  752. _this.loading = true
  753. }
  754. });
  755. })
  756. },
  757. })
  758. },
  759. choosevideo(e) {
  760. let _this = this;
  761. uni.chooseVideo({
  762. sourceType: ['album', 'camera'],
  763. maxDuration: 30,
  764. success(resp) {
  765. const task = uni.uploadFile({
  766. url: _this.$HTTP + `/obs`,
  767. filePath: resp.tempFilePath,
  768. name: 'file',
  769. formData: {},
  770. header: _this.headers,
  771. success: res => {
  772. // 判断是否json字符串,将其转为json格式
  773. let data = JSON.parse(res.data);
  774. if (![200].includes(res.statusCode)) {
  775. this.uploadError(index, data);
  776. } else {
  777. //上传成功
  778. if (_this.progress === 100) {
  779. if (e == 'other') {
  780. _this.imgArr.push(data.data.url)
  781. } else if (e == 'sfht') {
  782. _this.stonePowderArr.push(data.data.url)
  783. } else if (e == 'jsdps') {
  784. _this.warningtTapeArr.push(data.data.url)
  785. } else if (e == 'hth') {
  786. _this.photosAfterArr.push(data.data.url)
  787. } else if (e == 'Box') {
  788. _this.imgBoxArr.push(data.data.url)
  789. } else if (e == 'Sfht') {
  790. _this.imgSfhtArr.push(data.data.url)
  791. } else if (e == 'Fljd') {
  792. _this.imgFljdArr.push(data.data.url)
  793. } else if (e == 'Dtlj') {
  794. _this.imgDtljArr.push(data.data.url)
  795. } else if (e == 'Hldmyh') {
  796. _this.imgHldmyhArr.push(data.data.url)
  797. } else if (e == 'Tg') {
  798. _this.imgTgArr.push(data.data.url)
  799. } else if (e == 'Nbmh') {
  800. _this.imgNbmhArr.push(data.data.url)
  801. } else if (e == 'Fhw') {
  802. _this.imgFhwArr.push(data.data.url)
  803. } else if (e == 'Bj') {
  804. _this.imgBjArr.push(data.data.url)
  805. }
  806. _this.$modal.msg('上传成功!')
  807. _this.photo = false;
  808. }
  809. }
  810. },
  811. fail: e => {
  812. _this.$modal.msg('上传失败!')
  813. this.uploadError(index, e);
  814. },
  815. complete: res => {
  816. uni.hideLoading();
  817. _this.uploading = false;
  818. }
  819. });
  820. task.onProgressUpdate(res => {
  821. _this.progress = res.progress;
  822. uni.showLoading({
  823. title: '上传中'
  824. })
  825. if (_this.progress != 100) {
  826. _this.loading = false
  827. } else {
  828. _this.loading = true
  829. }
  830. });
  831. },
  832. })
  833. },
  834. pickerShow(e) {
  835. this.type = e; //赋值类型
  836. if (e == 'cz') { //材质
  837. this.open = true;
  838. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  839. .objValue.enginClassValue).then(
  840. response => {
  841. this.selectList = response.data;
  842. });
  843. } else if (e == 'gg') { //规格
  844. if (this.isEmpty(this.materialValue.id)) {
  845. this.$modal.msg('请选择材质')
  846. } else {
  847. this.open = true;
  848. this.selectList = this.materialList;
  849. }
  850. } else if (e == 'gczq') { //工程周期
  851. this.openDict = true;
  852. getDicts("engin_cycle").then(response => {
  853. this.dictOptions = response.data;
  854. });
  855. } else if (e == 'xzq') { //行政区
  856. if (this.isEmpty(this.projectValue.dictValue)) {
  857. this.$modal.msg('请选择工程周期')
  858. } else {
  859. this.openDict = true;
  860. getDicts("district").then(response => {
  861. this.dictOptions = response.data;
  862. });
  863. }
  864. //this.selectList = this.dictOptions;
  865. } else if (e == 'xq') { //小区
  866. if (this.isEmpty(this.XZQValue.dictValue)) {
  867. getAreaList('').then(res => {
  868. this.XQList = res.data;
  869. this.open = true;
  870. this.selectList = this.XQList;
  871. })
  872. } else {
  873. this.open = true;
  874. this.selectList = this.XQList;
  875. }
  876. } else if (e == 'ld') { //楼栋
  877. if (this.isEmpty(this.XQValue.id)) {
  878. this.$modal.msg('请选择小区')
  879. } else {
  880. this.open = true;
  881. this.selectList = this.LDList;
  882. }
  883. }
  884. },
  885. changeSelectDict(item, index) {
  886. this.openDict = false;
  887. if (this.type == 'isok') {
  888. this.isOkValue = item
  889. } else if (this.type == 'gczq') {
  890. this.projectValue = item
  891. if (!this.isEmpty(this.XQValue.id)) {
  892. //房间选完 判断 工程周期 工程周期切换
  893. this.getStatus();
  894. }
  895. } else if (this.type == 'xzq') {
  896. this.XZQValue = item;
  897. //根据行政区id获取小区数据
  898. this.XQValue = ''; //重置小区数据
  899. this.LDValue = ''; //重置楼栋数据
  900. getAreaList(item.dictValue).then(res => {
  901. this.XQList = res.data;
  902. })
  903. }
  904. },
  905. changeSelect(item, index) {
  906. // this.index = index;
  907. // this.address = item.communityName;
  908. this.open = false;
  909. if (this.type == 'cz') {
  910. this.materialValue = item;
  911. this.specificationValue = ''; //重置规格
  912. //根据材质ID 获取规格数据
  913. getEnginSpecificationsList(item.id).then(res => {
  914. this.materialList = res.data
  915. })
  916. } else if (this.type == 'gg') {
  917. this.specificationValue = item;
  918. } else if (this.type == 'xq') {
  919. this.XZQValue = {
  920. dictValue: item.district,
  921. dictLabel: item.districtName
  922. };
  923. this.XQValue = item;
  924. if (!this.isEmpty(this.projectValue.dictValue)) {
  925. //小区选完 判断 工程周期
  926. this.getStatus();
  927. }
  928. //根据小区id 获取楼栋数据
  929. this.LDValue = ''; //重置楼栋数据
  930. this.DYValue = ''; //重置单元数据
  931. this.FJValue = ''; //重置房间数据
  932. getBuildingList(item.id).then(res => {
  933. this.LDList = res.data
  934. })
  935. } else if (this.type == 'ld') {
  936. this.LDValue = item;
  937. if (!this.isEmpty(this.projectValue.dictValue)) {
  938. //楼栋选完 判断 工程周期
  939. this.getStatus();
  940. }
  941. }
  942. },
  943. //关闭弹窗
  944. close(e) {
  945. this.open = false
  946. },
  947. //关闭弹窗
  948. closeDict(e) {
  949. this.openDict = false
  950. },
  951. getStatus() {
  952. let unitId = '';
  953. let houseId = '';
  954. let buildingId = '';
  955. if (this.isEmpty(this.LDValue.id)) {
  956. buildingId = '';
  957. } else {
  958. buildingId = this.LDValue.id
  959. }
  960. let param = {
  961. areaId: this.XQValue.id, // 小区id
  962. buildingId: buildingId, // 楼宇id
  963. unitId: unitId,
  964. houseId: houseId, //传空
  965. enginCycle: this.projectValue.dictValue, // 工程周期
  966. enginType: this.objValue.enginType, //写死 上一页面传过来的
  967. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  968. }
  969. getRoomProjectId(param).then(res => {
  970. if (res.code == '200') {
  971. if (res.data != null && res.data.zEngineeringNodeBoList != null) {
  972. res.data.zEngineeringNodeBoList.forEach((item, index) => {
  973. if (this.objValue.enginClassValue == item.type) {
  974. this.reviewStatus = item.reviewStatus;
  975. if (item.reviewStatus == '1')
  976. this.$modal.msg('当前工程已结束')
  977. }
  978. })
  979. } else {
  980. this.reviewStatus = '' //置空
  981. }
  982. } else {
  983. this.$modal.msg(res.msg)
  984. this.reviewStatus = '' //置空
  985. }
  986. })
  987. },
  988. //提交数据
  989. submit() {
  990. if (this.isEmpty(this.projectValue.dictValue)) {
  991. this.$modal.msg("请选择工程周期")
  992. return
  993. }
  994. if (this.isEmpty(this.XZQValue.dictValue)) {
  995. this.$modal.msg("请选择行政区")
  996. return
  997. }
  998. if (this.isEmpty(this.XQValue.id)) {
  999. this.$modal.msg("请选择小区")
  1000. return
  1001. }
  1002. // else if (this.isEmpty(this.LDValue.id)) {
  1003. // this.$modal.msg("请选择楼栋")
  1004. // }
  1005. if (this.objValue.enginClassValue == '回填') {
  1006. // if (this.stonePowderArr.length <= 0) {
  1007. // this.$modal.msg('请上传石粉回填照片')
  1008. // return
  1009. // }
  1010. if (this.warningtTapeArr.length <= 0) {
  1011. this.$modal.msg('请上传警示带铺设照片')
  1012. return
  1013. }
  1014. if (this.photosAfterArr.length <= 0) {
  1015. this.$modal.msg('请上传回填后照片')
  1016. return
  1017. }
  1018. } else if (this.objValue.enginClassValue == '调压柜') {
  1019. if (this.imgBoxArr.length <= 0) {
  1020. this.$modal.msg('请上传调压箱名牌照片')
  1021. return
  1022. }
  1023. if (this.imgSfhtArr.length <= 0) {
  1024. this.$modal.msg('请上传调压箱内石粉回填照片')
  1025. return
  1026. }
  1027. if (this.imgFljdArr.length <= 0) {
  1028. this.$modal.msg('请上传调压箱防雷接地照片')
  1029. return
  1030. }
  1031. if (this.imgDtljArr.length <= 0) {
  1032. this.$modal.msg('请上传调压箱底腿连接照片')
  1033. return
  1034. }
  1035. if (this.imgHldmyhArr.length <= 0) {
  1036. this.$modal.msg('请上传调压箱护栏及地面硬化(远景)照片')
  1037. return
  1038. }
  1039. } else if (this.objValue.enginClassValue == '阀井') {
  1040. if (this.imgTgArr.length <= 0) {
  1041. this.$modal.msg('请上传套管照片')
  1042. return
  1043. }
  1044. if (this.imgNbmhArr.length <= 0) {
  1045. this.$modal.msg('请上传内壁抹灰照片')
  1046. return
  1047. }
  1048. if (this.imgFhwArr.length <= 0) {
  1049. this.$modal.msg('请上传防护网照片')
  1050. return
  1051. }
  1052. if (this.imgBjArr.length <= 0) {
  1053. this.$modal.msg('请上传八角照片')
  1054. return
  1055. }
  1056. } else {
  1057. if (this.imgArr.length <= 0) {
  1058. this.$modal.msg('请上传照片或视频')
  1059. return
  1060. }
  1061. }
  1062. if (this.loading == false) {
  1063. this.$modal.msg('照片或视频未上传完毕,无法提交!')
  1064. return
  1065. }
  1066. //提交
  1067. this.onsubmit();
  1068. },
  1069. onsubmit() {
  1070. let unitId = '';
  1071. let houseId = '';
  1072. let buildingId = '';
  1073. if (this.isEmpty(this.LDValue.id)) {
  1074. buildingId = '';
  1075. } else {
  1076. buildingId = this.LDValue.id
  1077. }
  1078. //提交
  1079. let param = {
  1080. district: this.XZQValue.dictValue,
  1081. areaId: this.XQValue.id,
  1082. buildingId: buildingId, //不必传 如果没有传 ' '
  1083. unitId: unitId,
  1084. houseId: houseId, //传空
  1085. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1086. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1087. enginCycle: this.projectValue.dictValue, //工程周期
  1088. zEngineeringNodeBo: {
  1089. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1090. zEngineeringInfoBo: {
  1091. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1092. stonePowder: this.stonePowderArr,
  1093. warningtTape: this.warningtTapeArr,
  1094. photosAfter: this.photosAfterArr,
  1095. constructTime: this.time, //施工时间
  1096. remark: this.projectContent, //施工内容
  1097. }
  1098. }
  1099. }
  1100. uni.showLoading()
  1101. addTearOldPipe(param).then(res => {
  1102. if (res.code == '200') {
  1103. uni.hideLoading()
  1104. uni.showToast({
  1105. title: res.msg,
  1106. icon: 'none',
  1107. //显示持续时间为 3秒
  1108. duration: 2000
  1109. });
  1110. setTimeout(function() {
  1111. uni.navigateBack();
  1112. }, 1000)
  1113. }
  1114. })
  1115. },
  1116. history() {
  1117. if (this.isEmpty(this.projectValue.dictValue)) {
  1118. this.$modal.msg("请选择工程周期")
  1119. return
  1120. }
  1121. if (this.isEmpty(this.XZQValue.dictValue)) {
  1122. this.$modal.msg("请选择行政区")
  1123. return
  1124. }
  1125. if (this.isEmpty(this.XQValue.id)) {
  1126. this.$modal.msg("请选择小区")
  1127. return
  1128. }
  1129. let unitId = '';
  1130. let houseId = '';
  1131. let buildingId = '';
  1132. if (this.isEmpty(this.LDValue.id)) {
  1133. buildingId = '';
  1134. } else {
  1135. buildingId = this.LDValue.id
  1136. }
  1137. let param = {
  1138. areaId: this.XQValue.id, // 小区id
  1139. buildingId: buildingId, // 楼宇id
  1140. enginCycle: this.projectValue.dictValue, // 工程周期
  1141. unitId: unitId,
  1142. houseId: houseId, //传空
  1143. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1144. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1145. }
  1146. getRoomProjectId(param).then(res => {
  1147. if (res.code == '200') {
  1148. if (res.data != null) {
  1149. getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(
  1150. res => {
  1151. this.historyList = res.data
  1152. if (res.data.zEngineeringNodeBo != null) {
  1153. this.showHistoryList();
  1154. } else {
  1155. this.$modal.msg("暂无历史信息")
  1156. }
  1157. })
  1158. } else {
  1159. this.$modal.msg("暂无工程信息")
  1160. }
  1161. } else {
  1162. this.$modal.msg(res.msg)
  1163. }
  1164. })
  1165. },
  1166. showHistoryList() {
  1167. this.$refs.refShare.handleShowShare();
  1168. }
  1169. }
  1170. }
  1171. </script>
  1172. <style lang="scss">
  1173. .container {
  1174. display: flex;
  1175. align-items: center;
  1176. justify-content: space-between;
  1177. padding: 10px;
  1178. position: relative;
  1179. }
  1180. .uni-list {
  1181. border: 1xp solid #eee;
  1182. }
  1183. .to-right-icon {
  1184. width: 15px;
  1185. height: 15px;
  1186. position: absolute;
  1187. top: 50%;
  1188. transform: translateY(-50%);
  1189. }
  1190. .text {
  1191. font-size: 16px;
  1192. color: #333;
  1193. }
  1194. .background {
  1195. // border: 15px solid hsla(0, 0%, 100%, .5);
  1196. background: white;
  1197. background-clip: padding-box;
  1198. padding: 20rpx;
  1199. border-radius: 20rpx;
  1200. margin: 20rpx;
  1201. /*从padding开始往外面裁剪背景*/
  1202. }
  1203. .btn {
  1204. width: 715rpx;
  1205. height: 69rpx;
  1206. background: #79A4F0;
  1207. border-radius: 6rpx;
  1208. font-size: 25rpx;
  1209. font-family: Microsoft YaHei;
  1210. font-weight: 400;
  1211. color: #FFFFFF;
  1212. line-height: 69rpx;
  1213. margin-top: 40rpx;
  1214. margin-bottom: 100rpx;
  1215. }
  1216. .number {
  1217. display: flex;
  1218. /* 水平居中显示子元素 */
  1219. align-items: flex-start;
  1220. /* 垂直居中显示子元素 */
  1221. justify-content: space-between;
  1222. /* 左右间距等于间距大小 */
  1223. padding: 10px;
  1224. /* 设置padding以提高视觉效果 */
  1225. }
  1226. .textarea {
  1227. margin-top: 10upx;
  1228. width: 100%;
  1229. border: 1rpx solid red;
  1230. min-height: 100upx;
  1231. line-height: 20px;
  1232. }
  1233. </style>