municipal.vue 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386
  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: 200rpx; height: 200rpx; 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: 200rpx; height: 200rpx; 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
  209. @click="showPhoto(index,'other')">
  210. </image>
  211. </view>
  212. <view v-else>
  213. <video :src="item" style="width: 200rpx; height: 200rpx; 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
  235. @click="showPhoto(index,'htq')">
  236. </image>
  237. </view>
  238. <view v-else>
  239. <video :src="item" style="width: 200rpx; height: 200rpx; 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
  259. @click="showPhoto(index,'jsdps')">
  260. </image>
  261. </view>
  262. <view v-else>
  263. <video :src="item"
  264. style="width: 200rpx; height: 200rpx; 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
  285. @click="showPhoto(index,'hth')">
  286. </image>
  287. </view>
  288. <view v-else>
  289. <video :src="item"
  290. style="width: 200rpx; height: 200rpx; 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
  313. @click="showPhoto(index,'Tg')">
  314. </image>
  315. </view>
  316. <view v-else>
  317. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  318. </view>
  319. <view @click="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: 200rpx; height: 200rpx; margin: 0 12rpx;"
  337. @click="showPhoto(index,'Nbmh')">
  338. </image>
  339. </view>
  340. <view v-else>
  341. <video :src="item" style="width: 200rpx; height: 200rpx; 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
  361. @click="showPhoto(index,'Fhw')">
  362. </image>
  363. </view>
  364. <view v-else>
  365. <video :src="item"
  366. style="width: 200rpx; height: 200rpx; 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: 200rpx; height: 200rpx; margin: 0 12rpx;"
  387. @click="showPhoto(index,'Bj')">
  388. </image>
  389. </view>
  390. <view v-else>
  391. <video :src="item"
  392. style="width: 200rpx; height: 200rpx; 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. } else if (this.objValue.title == '回填、撤场') {
  1064. if (this.imgHtqArr.length <= 0 && this.imgJspsArr.length <= 0 && this.imgHthArr.length <= 0) {
  1065. this.$modal.msg('请上传照片')
  1066. return
  1067. }
  1068. // if (this.imgJspsArr.length <= 0) {
  1069. // this.$modal.msg('请上传警示带铺设照片')
  1070. // return
  1071. // }
  1072. // if (this.imgHthArr.length <= 0) {
  1073. // this.$modal.msg('请上传回填后照片')
  1074. // return
  1075. // }
  1076. } else if (this.objValue.title == '阀井') {
  1077. if (this.imgTgArr.length <= 0) {
  1078. this.$modal.msg('请上传套管照片')
  1079. return
  1080. }
  1081. if (this.imgNbmhArr.length <= 0) {
  1082. this.$modal.msg('请上传内壁抹灰照片')
  1083. return
  1084. }
  1085. if (this.imgFhwArr.length <= 0) {
  1086. this.$modal.msg('请上传防护网照片')
  1087. return
  1088. }
  1089. if (this.imgBjArr.length <= 0) {
  1090. this.$modal.msg('请上传八角照片')
  1091. return
  1092. }
  1093. } else {
  1094. if (this.objValue.title != '顶管材料米数') {
  1095. if (this.imgArr.length <= 0) {
  1096. this.$modal.msg('请上传照片或视频')
  1097. return
  1098. }
  1099. }
  1100. }
  1101. // if (this.loading == false) {
  1102. // this.$modal.msg('照片或视频未上传完毕,无法提交!')
  1103. // return
  1104. // }
  1105. let param = {
  1106. id: this.enginId, //工程id
  1107. enginName: this.projectName.name, //工程名称
  1108. enginType: this.projectType.dictValue, // 工程类型
  1109. constructUnit: this.jsdwValue, // 建筑单位
  1110. projectHead: this.xmfzrValue, // 项目负责人
  1111. sceneHead: this.xcfzrValue, // 现场负责人
  1112. designUnit: this.sjdwValue, // 设计单位
  1113. designHead: this.sjfzrValue, // 设计负责人
  1114. designPhone: this.sjPhoneValue, // 设计联系电话
  1115. supervisionUnit: this.jldwValue, // 监理单位
  1116. supervisionHead: this.jlfzrValue, // 监理负责人
  1117. supervisionPhone: this.jlPhoneValue, // 监理联系电话
  1118. zEngineeringNodeBo: {
  1119. createTime: this.createTime,
  1120. type: this.objValue.value,
  1121. zEngineeringInfoBo: {
  1122. remark: this.projectContent, //施工内容
  1123. constructTime: this.time, //施工时间
  1124. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1125. zEngiineeringPhotoBoListOne: this.imgHtqArr,
  1126. zEngiineeringPhotoBoListTwo: this.imgJspsArr,
  1127. zEngiineeringPhotoBoListThree: this.imgHthArr,
  1128. cannula: this.imgTgArr,
  1129. wallPlaster: this.imgNbmhArr,
  1130. protectiveNet: this.imgFhwArr,
  1131. starAnise: this.imgBjArr,
  1132. zEngineeringMaterialBo: this.zEngineeringMaterialBo // 用料对象
  1133. }
  1134. }
  1135. }
  1136. uni.showLoading()
  1137. submitMunicipalData(param).then(res => {
  1138. if (res.code == '200') {
  1139. uni.hideLoading()
  1140. uni.showToast({
  1141. title: res.msg,
  1142. icon: 'none',
  1143. //显示持续时间为 3秒
  1144. duration: 2000
  1145. });
  1146. setTimeout(function() {
  1147. uni.navigateBack();
  1148. }, 1000)
  1149. }
  1150. })
  1151. }
  1152. }
  1153. }
  1154. </script>
  1155. <style lang="scss">
  1156. .container {
  1157. display: flex;
  1158. align-items: center;
  1159. justify-content: space-between;
  1160. padding: 10px;
  1161. position: relative;
  1162. }
  1163. .uni-list {
  1164. border: 1xp solid #eee;
  1165. }
  1166. .to-right-icon {
  1167. width: 15px;
  1168. height: 15px;
  1169. position: absolute;
  1170. top: 50%;
  1171. transform: translateY(-50%);
  1172. }
  1173. .text {
  1174. font-size: 16px;
  1175. color: #333;
  1176. }
  1177. .background {
  1178. // border: 15px solid hsla(0, 0%, 100%, .5);
  1179. background: white;
  1180. background-clip: padding-box;
  1181. padding: 20rpx;
  1182. border-radius: 20rpx;
  1183. margin: 20rpx;
  1184. /*从padding开始往外面裁剪背景*/
  1185. }
  1186. .btn {
  1187. width: 715rpx;
  1188. height: 69rpx;
  1189. background: #79A4F0;
  1190. border-radius: 6rpx;
  1191. font-size: 25rpx;
  1192. font-family: Microsoft YaHei;
  1193. font-weight: 400;
  1194. color: #FFFFFF;
  1195. line-height: 69rpx;
  1196. margin-top: 40rpx;
  1197. margin-bottom: 100rpx;
  1198. }
  1199. .number {
  1200. display: flex;
  1201. /* 水平居中显示子元素 */
  1202. align-items: flex-start;
  1203. /* 垂直居中显示子元素 */
  1204. justify-content: space-between;
  1205. /* 左右间距等于间距大小 */
  1206. padding: 10px;
  1207. /* 设置padding以提高视觉效果 */
  1208. }
  1209. .textarea {
  1210. margin-top: 10upx;
  1211. width: 100%;
  1212. border: 1rpx solid red;
  1213. min-height: 100upx;
  1214. line-height: 20px;
  1215. }
  1216. .tj-btn {
  1217. height: 69rpx;
  1218. background: #3184f0;
  1219. border-radius: 6rpx;
  1220. font-size: 25rpx;
  1221. font-weight: 400;
  1222. color: #FFFFFF;
  1223. line-height: 69rpx;
  1224. margin: 40rpx 70rpx;
  1225. }
  1226. .sc-btn {
  1227. height: 69rpx;
  1228. background: #f0686b;
  1229. border-radius: 6rpx;
  1230. font-size: 25rpx;
  1231. font-weight: 400;
  1232. color: #FFFFFF;
  1233. line-height: 69rpx;
  1234. margin: 40rpx;
  1235. }
  1236. .num-style {
  1237. background: #e8f4f9;
  1238. margin: 20rpx;
  1239. padding: 10rpx;
  1240. border-radius: 20rpx;
  1241. border: 1px solid #d4e3f0;
  1242. }
  1243. </style>