municipal.vue 45 KB

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