gas_sealing_project.vue 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227
  1. <template>
  2. <!-- 带气封堵工程 -->
  3. <scroll-view>
  4. <view class="background">
  5. <view class="uni-list">
  6. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  7. <view style="font-size: 16px;display: flex; justify-content: space-between;">
  8. {{projectTypeLabel}}
  9. </view>
  10. <span
  11. style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
  12. @click="history">历史</span>
  13. </view>
  14. </view>
  15. <view class="uni-list">
  16. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  17. <view>
  18. 工程名称
  19. </view>
  20. <view v-if="this.isEmpty(this.enginName)" @click="pickerShow">
  21. <span style="color: darkgray;">请选择工程</span>
  22. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  23. </view>
  24. <view v-else @click="pickerShow">
  25. <span style="color: black;">{{enginName}}</span>
  26. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="uni-list">
  31. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  32. <text>工程地点</text>
  33. <input class="uni-input" type="digit" v-model="address" placeholder="请输入工程地点" maxlength="100"
  34. style="margin-left: 10px;text-align: right;"></input>
  35. </view>
  36. </view>
  37. <view class="uni-list">
  38. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  39. <text>作业方式</text>
  40. <input class="uni-input" type="digit" v-model="workType" placeholder="请输入作业方式" maxlength="100"
  41. style="margin-left: 10px;text-align: right;"></input>
  42. </view>
  43. </view>
  44. <view class="uni-list">
  45. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  46. <text>施工内容</text>
  47. <input class="uni-input" type="digit" v-model="workContent" placeholder="请输入施工内容" maxlength="100"
  48. style="margin-left: 10px;text-align: right;"></input>
  49. </view>
  50. </view>
  51. <view class="uni-list">
  52. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  53. <text>管道压力</text>
  54. <input class="uni-input" type="digit" v-model="pipePressure" placeholder="请输入管道压力" maxlength="100"
  55. style="margin-left: 10px;text-align: right;"></input>
  56. </view>
  57. </view>
  58. <view class="uni-list">
  59. <view class="align-items" style="margin-bottom: 20px;">
  60. <view class="container" style="color: #b2b2b2;">*请上传开孔照片</view>
  61. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  62. <image :src="loadImgSrc('updateimg.png')" mode=""
  63. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('fileOpenArr')">
  64. </image>
  65. <view v-for="(item,index) in fileOpenArr" :key="index" style="position: relative;">
  66. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  67. <image
  68. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  69. :src="item" @click="this.showPhoto(fileOpenArr.indexOf(item),fileOpenArr)"
  70. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  71. </image>
  72. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  73. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  74. </video>
  75. <text v-else @click="chooseModel(item,item.fileName)">
  76. {{item.fileName}}
  77. </text>
  78. </view>
  79. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,fileOpenArr)"
  80. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  81. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  82. </image>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="uni-list">
  89. <view class="align-items" style="margin-bottom: 20px;">
  90. <view class="container" style="color: #b2b2b2;">*请上传封堵照片</view>
  91. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  92. <image :src="loadImgSrc('updateimg.png')" mode=""
  93. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('filePluggingArr')">
  94. </image>
  95. <view v-for="(item,index) in filePluggingArr" :key="index" style="position: relative;">
  96. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  97. <image
  98. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  99. :src="item" @click="this.showPhoto(filePluggingArr.indexOf(item),filePluggingArr)"
  100. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  101. </image>
  102. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  103. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  104. </video>
  105. <text v-else @click="chooseModel(item,item.fileName)">
  106. {{item.fileName}}
  107. </text>
  108. </view>
  109. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,filePluggingArr)"
  110. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  111. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  112. </image>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="uni-list">
  119. <view class="align-items" style="margin-bottom: 20px;">
  120. <view class="container" style="color: #b2b2b2;">*请上传作业完成照片</view>
  121. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  122. <image :src="loadImgSrc('updateimg.png')" mode=""
  123. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('fileWorkArr')">
  124. </image>
  125. <view v-for="(item,index) in fileWorkArr" :key="index" style="position: relative;">
  126. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  127. <image
  128. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  129. :src="item" @click="this.showPhoto(fileWorkArr.indexOf(item),fileWorkArr)"
  130. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  131. </image>
  132. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  133. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  134. </video>
  135. <text v-else @click="chooseModel(item,item.fileName)">
  136. {{item.fileName}}
  137. </text>
  138. </view>
  139. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,fileWorkArr)"
  140. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  141. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  142. </image>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. </view>
  149. <view class="background" v-if="projectType==='pe'">
  150. <view class="uni-list">
  151. <view class="align-items" style="margin-bottom: 20px;">
  152. <view class="container" style="color: #b2b2b2;">*请上传鞍型焊接照片</view>
  153. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  154. <image :src="loadImgSrc('updateimg.png')" mode=""
  155. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('filePE01Arr')">
  156. </image>
  157. <view v-for="(item,index) in filePE01Arr" :key="index" style="position: relative;">
  158. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  159. <image
  160. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  161. :src="item" @click="this.showPhoto(filePE01Arr.indexOf(item),filePE01Arr)"
  162. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  163. </image>
  164. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  165. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  166. </video>
  167. <text v-else @click="chooseModel(item,item.fileName)">
  168. {{item.fileName}}
  169. </text>
  170. </view>
  171. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,filePE01Arr)"
  172. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  173. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  174. </image>
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. </view>
  180. <view class="uni-list">
  181. <view class="align-items" style="margin-bottom: 20px;">
  182. <view class="container" style="color: #b2b2b2;">*请上传气密实验照片</view>
  183. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  184. <image :src="loadImgSrc('updateimg.png')" mode=""
  185. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('filePE02Arr')">
  186. </image>
  187. <view v-for="(item,index) in filePE02Arr" :key="index" style="position: relative;">
  188. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  189. <image
  190. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  191. :src="item" @click="this.showPhoto(filePE02Arr.indexOf(item),filePE02Arr)"
  192. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  193. </image>
  194. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  195. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  196. </video>
  197. <text v-else @click="chooseModel(item,item.fileName)">
  198. {{item.fileName}}
  199. </text>
  200. </view>
  201. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,filePE02Arr)"
  202. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  203. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  204. </image>
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. </view>
  210. <view class="uni-list">
  211. <view class="align-items" style="margin-bottom: 20px;">
  212. <view class="container" style="color: #b2b2b2;">*请上传清扫照片</view>
  213. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  214. <image :src="loadImgSrc('updateimg.png')" mode=""
  215. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('filePE03Arr')">
  216. </image>
  217. <view v-for="(item,index) in filePE03Arr" :key="index" style="position: relative;">
  218. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  219. <image
  220. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  221. :src="item" @click="this.showPhoto(filePE03Arr.indexOf(item),filePE03Arr)"
  222. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  223. </image>
  224. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  225. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  226. </video>
  227. <text v-else @click="chooseModel(item,item.fileName)">
  228. {{item.fileName}}
  229. </text>
  230. </view>
  231. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,filePE03Arr)"
  232. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  233. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  234. </image>
  235. </view>
  236. </view>
  237. </view>
  238. </view>
  239. </view>
  240. <view class="uni-list">
  241. <view class="align-items" style="margin-bottom: 20px;">
  242. <view class="container" style="color: #b2b2b2;">*请上传碰口作业照片</view>
  243. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  244. <image :src="loadImgSrc('updateimg.png')" mode=""
  245. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('filePE04Arr')">
  246. </image>
  247. <view v-for="(item,index) in filePE04Arr" :key="index" style="position: relative;">
  248. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  249. <image
  250. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  251. :src="item" @click="this.showPhoto(filePE04Arr.indexOf(item),filePE04Arr)"
  252. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  253. </image>
  254. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  255. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  256. </video>
  257. <text v-else @click="chooseModel(item,item.fileName)">
  258. {{item.fileName}}
  259. </text>
  260. </view>
  261. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,filePE04Arr)"
  262. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  263. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  264. </image>
  265. </view>
  266. </view>
  267. </view>
  268. </view>
  269. </view>
  270. <view class="uni-list">
  271. <view class="align-items" style="margin-bottom: 20px;">
  272. <view class="container" style="color: #b2b2b2;">*请上传恢复通气捡漏照片</view>
  273. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  274. <image :src="loadImgSrc('updateimg.png')" mode=""
  275. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('filePE05Arr')">
  276. </image>
  277. <view v-for="(item,index) in filePE05Arr" :key="index" style="position: relative;">
  278. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  279. <image
  280. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  281. :src="item" @click="this.showPhoto(filePE05Arr.indexOf(item),filePE05Arr)"
  282. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  283. </image>
  284. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  285. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  286. </video>
  287. <text v-else @click="chooseModel(item,item.fileName)">
  288. {{item.fileName}}
  289. </text>
  290. </view>
  291. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,filePE05Arr)"
  292. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  293. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  294. </image>
  295. </view>
  296. </view>
  297. </view>
  298. </view>
  299. </view>
  300. </view>
  301. <view class="background" v-else>
  302. <view class="uni-list">
  303. <view class="align-items" style="margin-bottom: 20px;">
  304. <view class="container" style="color: #b2b2b2;">*请上传管道壁厚照片</view>
  305. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  306. <!-- -->
  307. <image :src="loadImgSrc('updateimg.png')" mode=""
  308. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('fileSteel01Arr')">
  309. </image>
  310. <view v-for="(item,index) in fileSteel01Arr" :key="index" style="position: relative;">
  311. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  312. <image
  313. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  314. :src="item" @click="this.showPhoto(fileSteel01Arr.indexOf(item),fileSteel01Arr)"
  315. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  316. </image>
  317. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  318. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  319. </video>
  320. <text v-else @click="chooseModel(item,item.fileName)">
  321. {{item.fileName}}
  322. </text>
  323. </view>
  324. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,fileSteel01Arr)"
  325. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  326. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  327. </image>
  328. </view>
  329. </view>
  330. </view>
  331. </view>
  332. </view>
  333. <view class="uni-list">
  334. <view class="align-items" style="margin-bottom: 20px;">
  335. <view class="container" style="color: #b2b2b2;">*请上传焊接四通照片</view>
  336. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  337. <image :src="loadImgSrc('updateimg.png')" mode=""
  338. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('fileSteel02Arr')">
  339. </image>
  340. <view v-for="(item,index) in fileSteel02Arr" :key="index" style="position: relative;">
  341. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  342. <image
  343. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  344. :src="item" @click="this.showPhoto(fileSteel02Arr.indexOf(item),fileSteel02Arr)"
  345. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  346. </image>
  347. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  348. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  349. </video>
  350. <text v-else @click="chooseModel(item,item.fileName)">
  351. {{item.fileName}}
  352. </text>
  353. </view>
  354. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,fileSteel02Arr)"
  355. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  356. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  357. </image>
  358. </view>
  359. </view>
  360. </view>
  361. </view>
  362. </view>
  363. <view class="uni-list">
  364. <view class="align-items" style="margin-bottom: 20px;">
  365. <view class="container" style="color: #b2b2b2;">*请上传焊接旁通照片</view>
  366. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  367. <image :src="loadImgSrc('updateimg.png')" mode=""
  368. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('fileSteel03Arr')">
  369. </image>
  370. <view v-for="(item,index) in fileSteel03Arr" :key="index" style="position: relative;">
  371. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  372. <image
  373. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  374. :src="item" @click="this.showPhoto(fileSteel03Arr.indexOf(item),fileSteel03Arr)"
  375. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  376. </image>
  377. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  378. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  379. </video>
  380. <text v-else @click="chooseModel(item,item.fileName)">
  381. {{item.fileName}}
  382. </text>
  383. </view>
  384. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,fileSteel03Arr)"
  385. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  386. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  387. </image>
  388. </view>
  389. </view>
  390. </view>
  391. </view>
  392. </view>
  393. <view class="uni-list">
  394. <view class="align-items" style="margin-bottom: 20px;">
  395. <view class="container" style="color: #b2b2b2;">*请上传氮气吹扫照片</view>
  396. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  397. <image :src="loadImgSrc('updateimg.png')" mode=""
  398. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('fileSteel04Arr')">
  399. </image>
  400. <view v-for="(item,index) in fileSteel04Arr" :key="index" style="position: relative;">
  401. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  402. <image
  403. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  404. :src="item" @click="this.showPhoto(fileSteel04Arr.indexOf(item),fileSteel04Arr)"
  405. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  406. </image>
  407. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  408. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  409. </video>
  410. <text v-else @click="chooseModel(item,item.fileName)">
  411. {{item.fileName}}
  412. </text>
  413. </view>
  414. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,fileSteel04Arr)"
  415. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  416. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  417. </image>
  418. </view>
  419. </view>
  420. </view>
  421. </view>
  422. </view>
  423. <view class="uni-list">
  424. <view class="align-items" style="margin-bottom: 20px;">
  425. <view class="container" style="color: #b2b2b2;">*请上传管道置换照片</view>
  426. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  427. <image :src="loadImgSrc('updateimg.png')" mode=""
  428. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('fileSteel05Arr')">
  429. </image>
  430. <view v-for="(item,index) in fileSteel05Arr" :key="index" style="position: relative;">
  431. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  432. <image
  433. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  434. :src="item" @click="this.showPhoto(fileSteel05Arr.indexOf(item),fileSteel05Arr)"
  435. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  436. </image>
  437. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  438. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  439. </video>
  440. <text v-else @click="chooseModel(item,item.fileName)">
  441. {{item.fileName}}
  442. </text>
  443. </view>
  444. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,fileSteel05Arr)"
  445. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  446. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  447. </image>
  448. </view>
  449. </view>
  450. </view>
  451. </view>
  452. </view>
  453. <view class="uni-list">
  454. <view class="align-items" style="margin-bottom: 20px;">
  455. <view class="container" style="color: #b2b2b2;">*请上传下堵照片</view>
  456. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  457. <image :src="loadImgSrc('updateimg.png')" mode=""
  458. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('fileSteel06Arr')">
  459. </image>
  460. <view v-for="(item,index) in fileSteel06Arr" :key="index" style="position: relative;">
  461. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  462. <image
  463. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  464. :src="item" @click="this.showPhoto(fileSteel06Arr.indexOf(item),fileSteel06Arr)"
  465. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  466. </image>
  467. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  468. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  469. </video>
  470. <text v-else @click="chooseModel(item,item.fileName)">
  471. {{item.fileName}}
  472. </text>
  473. </view>
  474. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,fileSteel06Arr)"
  475. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  476. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  477. </image>
  478. </view>
  479. </view>
  480. </view>
  481. </view>
  482. </view>
  483. <view class="uni-list">
  484. <view class="align-items" style="margin-bottom: 20px;">
  485. <view class="container" style="color: #b2b2b2;">*请上传四通防腐照片</view>
  486. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  487. <image :src="loadImgSrc('updateimg.png')" mode=""
  488. style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose('fileSteel07Arr')">
  489. </image>
  490. <view v-for="(item,index) in fileSteel07Arr" :key="index" style="position: relative;">
  491. <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  492. <image
  493. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 4) == 'jpeg' "
  494. :src="item" @click="this.showPhoto(fileSteel07Arr.indexOf(item),fileSteel07Arr)"
  495. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  496. </image>
  497. <video v-else-if="item.substring(item.length - 3) == 'mp4'" :src="item"
  498. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
  499. </video>
  500. <text v-else @click="chooseModel(item,item.fileName)">
  501. {{item.fileName}}
  502. </text>
  503. </view>
  504. <view v-if="isShowRemoveFile(item)" @click="removeFile(index,fileSteel07Arr)"
  505. style="position: absolute; top: 0; right: 0rpx; border-radius: 50%;">
  506. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  507. </image>
  508. </view>
  509. </view>
  510. </view>
  511. </view>
  512. </view>
  513. </view>
  514. <view class="action-btn">
  515. <button @click="submit" class="btn cu-btn block bg-blue lg round">提交</button>
  516. </view>
  517. <SelectPicker :list="rows" @change="projectListSelect" v-if="open" @close="close" titleKey="enginName"
  518. subtitleKey="id" v-model="enginName"></SelectPicker>
  519. <bottom-sheet ref="refShare" :data="historyList" :titleType="objValue.value"
  520. :titleLabel="objValue.Label"></bottom-sheet>
  521. <!-- 下载提示页面 -->
  522. <mypopup :show="show_loding" :popupText="popupText" :titleText="titleText" :cancelText="cancelText"
  523. :confirmText="confirmText" @close="cancel_loding" @confirm="confirm_loding">
  524. </mypopup>
  525. </scroll-view>
  526. </template>
  527. <script>
  528. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  529. import bottomSheet from '../../components/bottomSheet/bottomSheetGasSealing.vue'
  530. import {
  531. getToken
  532. } from '../../utils/auth';
  533. import {
  534. getGasSealingProjectList,
  535. submitGasSealingProject,
  536. getGasSealingHistoryList
  537. } from '@/api/common'
  538. export default {
  539. components: {
  540. SelectPicker,
  541. bottomSheet
  542. },
  543. data() {
  544. return {
  545. headers: {
  546. Authorization: "Bearer " + getToken()
  547. },
  548. file: [], // 附件
  549. pics: [], // 附件返回
  550. rows: [],
  551. open: false,
  552. currentTime: '',
  553. fileArr: [],
  554. id: '',
  555. enginName: '',
  556. address: '',
  557. workType: '',
  558. workContent: '',
  559. pipePressure: '',
  560. projectType: '',
  561. projectTypeLabel: '',
  562. fileOpenArr: [], //开孔照片
  563. fileWorkArr: [], //作业完成照片
  564. filePluggingArr: [], //封堵照片
  565. filePE01Arr: [], //鞍型焊接照片
  566. filePE02Arr: [], //气密实验照片
  567. filePE03Arr: [], //清扫照片
  568. filePE04Arr: [], //碰口作业照片
  569. filePE05Arr: [], //恢复通气检漏照片
  570. fileSteel01Arr: [], //管道壁厚照片
  571. fileSteel02Arr: [], //焊接四通照片
  572. fileSteel03Arr: [], //焊接旁通照片
  573. fileSteel04Arr: [], //氮气吹扫照片
  574. fileSteel05Arr: [], //管道置换照片
  575. fileSteel06Arr: [], //下堵照片
  576. fileSteel07Arr: [], //四通防腐照片
  577. historyList: {},
  578. projectTime: "",
  579. imgList: [],
  580. popupText: '', //对话框内容
  581. titleText: '',
  582. cancelText: '',
  583. confirmText: '',
  584. show_loding: false,
  585. fileUrl: '', //点击的文件地址
  586. fileName: '', //点击的文件名称
  587. objValue: {},
  588. }
  589. },
  590. created() {
  591. // this.currentTime = this.traversalTime(new Date().getTime()); //在data里定义变量-nowTime
  592. },
  593. onLoad(options) {
  594. if ('params' in options) {
  595. this.objValue = JSON.parse(decodeURIComponent(options.params));
  596. this.projectType = this.objValue.value;
  597. if (this.projectType === 'pe') {
  598. this.projectTypeLabel = 'PE封堵';
  599. } else {
  600. this.projectTypeLabel = '钢管带气封堵';
  601. }
  602. }
  603. uni.setNavigationBarTitle({
  604. title: '带气封堵施工'
  605. })
  606. },
  607. methods: {
  608. isEmpty(str) {
  609. return (!str || 0 === str.length);
  610. },
  611. chooseModel(url, name) {
  612. this.cancelText = '复制';
  613. this.confirmText = "下载";
  614. this.titleText = "温馨提示"
  615. this.popupText = "下载或者复制链接";
  616. this.show_loding = true;
  617. this.fileName = name;
  618. this.fileUrl = url; //文件名称和下载地址赋值
  619. },
  620. //取消按钮
  621. cancel_loding() {
  622. let _this = this;
  623. _this.show_loding = false;
  624. if (!_this.isEmpty(_this.fileUrl)) {
  625. uni.setClipboardData({
  626. data: _this.fileUrl,
  627. success() {
  628. uni.showToast({
  629. title: '已复制' + _this.fileName + '地址成功 请在浏览器打开',
  630. icon: 'none'
  631. });
  632. },
  633. fail(e) {
  634. uni.showToast({
  635. title: '复制失败',
  636. icon: 'none'
  637. });
  638. }
  639. });
  640. }
  641. },
  642. //确定按钮
  643. confirm_loding() {
  644. this.show_loding = false;
  645. this.download(this.fileUrl, this.fileName);
  646. },
  647. getDownLoadFilePath() {
  648. let cachePath = `${uni.env.USER_DATA_PATH}/downloads`
  649. let fm = uni.getFileSystemManager()
  650. try {
  651. // 访问成功则存在
  652. fm.accessSync(cachePath)
  653. } catch (error) {
  654. // 不存在则新建
  655. fm.mkdirSync(cachePath, true)
  656. }
  657. return cachePath
  658. },
  659. download(url, name) {
  660. let savePath = this.getDownLoadFilePath();
  661. //var savePath = uni.env.USER_DATA_PATH + '/savePath'
  662. uni.downloadFile({
  663. url: url,
  664. success: response => {
  665. if (response.statusCode === 200) {
  666. uni.getFileSystemManager().saveFile({
  667. tempFilePath: response.tempFilePath,
  668. filePath: `${savePath}/${name}`,
  669. success: (resData) => {
  670. uni.showToast({
  671. title: '下载成功'
  672. })
  673. },
  674. fail: error => {}
  675. })
  676. }
  677. }
  678. })
  679. },
  680. showPhoto(index, list) {
  681. uni.previewImage({
  682. current: index,
  683. urls: list,
  684. })
  685. },
  686. pickerShow() {
  687. this.open = true;
  688. getGasSealingProjectList(this.projectType).then(res => {
  689. this.rows = res.rows;
  690. })
  691. },
  692. changeSelect(e) {
  693. },
  694. close() {
  695. this.open = false;
  696. },
  697. history() {
  698. if (this.isEmpty(this.id)) {
  699. this.$modal.msg('请选择工程')
  700. return;
  701. }
  702. getGasSealingHistoryList(this.id, this.projectType).then(res => {
  703. if (res.data.zEngineeringNodeBo.zEngineeringInfoBoList != null) {
  704. this.historyList = res.data;
  705. this.$refs.refShare.handleShowShare();
  706. } else {
  707. this.$modal.msg("暂无历史信息")
  708. }
  709. })
  710. },
  711. projectListSelect(item, index) {
  712. this.open = false;
  713. this.enginName = item.enginName;
  714. this.id = item.id;
  715. },
  716. choose(fileType) {
  717. if (this.isEmpty(this.id)) {
  718. this.$modal.msg('请选择工程')
  719. return;
  720. }
  721. let _this = this;
  722. uni.showActionSheet({
  723. title: '上传',
  724. itemList: ['图片', '视频'],
  725. success: (res) => {
  726. if (res.tapIndex == 0) {
  727. this.chooseimage(fileType)
  728. } else {
  729. this.choosevideo(fileType)
  730. }
  731. }
  732. })
  733. },
  734. chooseimage(fileType) {
  735. let _this = this;
  736. uni.chooseImage({
  737. sizeType: ['album', 'camera'],
  738. success(resp) {
  739. resp.tempFiles.forEach((item, index) => {
  740. const task = uni.uploadFile({
  741. url: _this.$HTTP + `/obs`,
  742. filePath: item.path,
  743. name: 'file',
  744. formData: {},
  745. header: _this.headers,
  746. success: res => {
  747. let data = JSON.parse(res.data);
  748. if (![200].includes(data.code)) {
  749. _this.$modal.msg(data.msg)
  750. } else {
  751. if (_this.progress === 100) {
  752. if (fileType === 'fileOpenArr') { //开孔
  753. _this.fileOpenArr.push(data.data.url)
  754. } else if (fileType === 'filePluggingArr') { //封堵
  755. _this.filePluggingArr.push(data.data.url)
  756. } else if (fileType === 'fileWorkArr') { //作业
  757. _this.fileWorkArr.push(data.data.url)
  758. } else if (fileType === 'filePE01Arr') { //PE01
  759. _this.filePE01Arr.push(data.data.url)
  760. } else if (fileType === 'filePE02Arr') { //PE02
  761. _this.filePE02Arr.push(data.data.url)
  762. } else if (fileType === 'filePE03Arr') { //PE03
  763. _this.filePE03Arr.push(data.data.url)
  764. } else if (fileType === 'filePE04Arr') { //PE04
  765. _this.filePE04Arr.push(data.data.url)
  766. } else if (fileType === 'filePE05Arr') { //PE05
  767. _this.filePE05Arr.push(data.data.url)
  768. } else if (fileType ===
  769. 'fileSteel01Arr') { //fileSteel01Arr
  770. _this.fileSteel01Arr.push(data.data.url)
  771. } else if (fileType ===
  772. 'fileSteel02Arr') { //fileSteel02Arr
  773. _this.fileSteel02Arr.push(data.data.url)
  774. } else if (fileType ===
  775. 'fileSteel03Arr') { //fileSteel03Arr
  776. _this.fileSteel03Arr.push(data.data.url)
  777. } else if (fileType ===
  778. 'fileSteel04Arr') { //fileSteel04Arr
  779. _this.fileSteel04Arr.push(data.data.url)
  780. } else if (fileType ===
  781. 'fileSteel05Arr') { //fileSteel05Arr
  782. _this.fileSteel05Arr.push(data.data.url)
  783. } else if (fileType ===
  784. 'fileSteel06Arr') { //fileSteel06Arr
  785. _this.fileSteel06Arr.push(data.data.url)
  786. } else if (fileType ===
  787. 'fileSteel07Arr') { //fileSteel07Arr
  788. _this.fileSteel07Arr.push(data.data.url)
  789. }
  790. _this.$modal.msg('上传成功!')
  791. }
  792. }
  793. },
  794. fail: e => {
  795. _this.$modal.msg('上传失败!')
  796. },
  797. complete: res => {
  798. uni.hideLoading();
  799. _this.uploading = false;
  800. }
  801. });
  802. task.onProgressUpdate(res => {
  803. _this.progress = res.progress;
  804. uni.showLoading({
  805. title: '上传中'
  806. })
  807. if (_this.progress != 100) {
  808. _this.loading = false
  809. } else {
  810. _this.loading = true
  811. }
  812. });
  813. })
  814. },
  815. })
  816. },
  817. choosevideo(fileType) {
  818. let _this = this;
  819. uni.chooseVideo({
  820. sourceType: ['album', 'camera'],
  821. maxDuration: 30,
  822. success(resp) {
  823. const task = uni.uploadFile({
  824. url: _this.$HTTP + `/obs`,
  825. filePath: resp.tempFilePath,
  826. name: 'file',
  827. formData: {},
  828. header: _this.headers,
  829. success: res => {
  830. // 判断是否json字符串,将其转为json格式
  831. let data = JSON.parse(res.data);
  832. if (![200].includes(res.statusCode)) {
  833. this.uploadError(index, data);
  834. } else {
  835. //上传成功
  836. if (_this.progress === 100) {
  837. if (fileType === 'fileOpenArr') { //开孔
  838. _this.fileOpenArr.push(data.data.url)
  839. } else if (fileType === 'filePluggingArr') { //封堵
  840. _this.filePluggingArr.push(data.data.url)
  841. } else if (fileType === 'fileWorkArr') { //作业
  842. _this.fileWorkArr.push(data.data.url)
  843. } else if (fileType === 'filePE01Arr') { //PE01
  844. _this.filePE01Arr.push(data.data.url)
  845. } else if (fileType === 'filePE02Arr') { //PE02
  846. _this.filePE02Arr.push(data.data.url)
  847. } else if (fileType === 'filePE03Arr') { //PE03
  848. _this.filePE03Arr.push(data.data.url)
  849. } else if (fileType === 'filePE04Arr') { //PE04
  850. _this.filePE04Arr.push(data.data.url)
  851. } else if (fileType === 'filePE05Arr') { //PE05
  852. _this.filePE05Arr.push(data.data.url)
  853. } else if (fileType ===
  854. 'fileSteel01Arr') { //fileSteel01Arr
  855. _this.fileSteel01Arr.push(data.data.url)
  856. } else if (fileType ===
  857. 'fileSteel02Arr') { //fileSteel02Arr
  858. _this.fileSteel02Arr.push(data.data.url)
  859. } else if (fileType ===
  860. 'fileSteel03Arr') { //fileSteel03Arr
  861. _this.fileSteel03Arr.push(data.data.url)
  862. } else if (fileType ===
  863. 'fileSteel04Arr') { //fileSteel04Arr
  864. _this.fileSteel04Arr.push(data.data.url)
  865. } else if (fileType ===
  866. 'fileSteel05Arr') { //fileSteel05Arr
  867. _this.fileSteel05Arr.push(data.data.url)
  868. } else if (fileType ===
  869. 'fileSteel06Arr') { //fileSteel06Arr
  870. _this.fileSteel06Arr.push(data.data.url)
  871. } else if (fileType ===
  872. 'fileSteel07Arr') { //fileSteel07Arr
  873. _this.fileSteel07Arr.push(data.data.url)
  874. }
  875. _this.$modal.msg('上传成功!')
  876. //_this.photo = false;
  877. }
  878. }
  879. },
  880. fail: e => {
  881. _this.$modal.msg('上传失败!')
  882. this.uploadError(index, e);
  883. },
  884. complete: res => {
  885. uni.hideLoading();
  886. _this.uploading = false;
  887. }
  888. });
  889. task.onProgressUpdate(res => {
  890. _this.progress = res.progress;
  891. uni.showLoading({
  892. title: '上传中'
  893. })
  894. if (_this.progress != 100) {
  895. _this.loadingFile = false
  896. } else {
  897. _this.loadingFile = true
  898. }
  899. });
  900. },
  901. })
  902. },
  903. isShowRemoveFile(item) {
  904. var isShow = true;
  905. // var isShow = item.createBy == this.$user.state.name;
  906. return isShow;
  907. },
  908. removeFile(index, fileArr) {
  909. uni.showModal({
  910. title: '提示',
  911. content: '是否删除该文件?',
  912. success: (res) => {
  913. if (res.confirm) {
  914. fileArr.splice(index, 1)
  915. }
  916. }
  917. })
  918. },
  919. submit() {
  920. // if (this.isEmpty(this.address)) {
  921. // this.$modal.msg('请输入地点')
  922. // return;
  923. // }
  924. // if (this.isEmpty(this.workType)) {
  925. // this.$modal.msg('请输入作业方式')
  926. // return;
  927. // }
  928. // if (this.isEmpty(this.pipePressure)) {
  929. // this.$modal.msg('请输入管道压力')
  930. // return;
  931. // }
  932. // if (this.projectType !== 'pe' && this.isEmpty(this.workContent)) {
  933. // this.$modal.msg('请输入施工内容')
  934. // return;
  935. // }
  936. // if (this.fileOpenArr.length <= 0) {
  937. // this.$modal.msg('请选择附件')
  938. // return;
  939. // }
  940. let param = {
  941. id: this.id,
  942. zEngineeringNodeBo: {
  943. zEngineeringInfoBo: {
  944. headName: this.enginName, //工程名称
  945. constructAddre: this.address, //地点
  946. segmentedCompressionQualified: this.workType, //作业方式
  947. constructAccordingDrawings: this.pipePressure, //管道压力
  948. remark: this.workContent, //施工内容 PE
  949. peHolesOpening: this.fileOpenArr, //开孔照片 PE
  950. peHomeworkDone: this.fileWorkArr, //作业完成照片 PE
  951. pePlugging: this.filePluggingArr, //封堵照片 PE
  952. peSaddleWelding: this.filePE01Arr, //鞍型焊接照片 PE
  953. peAirtightTest: this.filePE02Arr, //气密实验照片 PE
  954. peCleaning: this.filePE03Arr, //清扫照片 PE
  955. peCollisionOperating: this.filePE04Arr, //碰口作业照片 PE
  956. peAirrecovering: this.filePE05Arr, //恢复通气检漏照片 PE
  957. ironHolesOpening: this.fileOpenArr, //开孔照片
  958. ironHomeworkDone: this.fileWorkArr, //作业完成照片
  959. ironCleaning: this.filePluggingArr, //封堵照片
  960. ironPipelineThickness: this.fileSteel01Arr, //管道壁厚照片
  961. iron4Welding: this.fileSteel02Arr, //焊接四通照片
  962. ironBypassWelding: this.fileSteel03Arr, //焊接旁通照片
  963. ironNitrogenPurging: this.fileSteel04Arr, //氮气吹扫照片
  964. ironPipelineReplacing: this.fileSteel05Arr, //管道置换照片
  965. ironLowerEndCap: this.fileSteel06Arr, //下堵照片
  966. iron4Aczoiling: this.fileSteel07Arr, //四通防腐照片
  967. }
  968. }
  969. }
  970. uni.showLoading();
  971. submitGasSealingProject(param).then(res => {
  972. uni.hideLoading()
  973. this.$modal.msg(res.msg);
  974. setTimeout(() => {
  975. uni.navigateBack();
  976. }, 1000);
  977. })
  978. },
  979. // 打开picker
  980. openDatetimePicker() {
  981. if (this.isEmpty(this.id)) {
  982. this.$modal.msg('请选择工程')
  983. } else {
  984. this.$refs.myPicker.show();
  985. }
  986. },
  987. }
  988. }
  989. </script>
  990. <style>
  991. .container {
  992. display: flex;
  993. align-items: center;
  994. justify-content: space-between;
  995. padding: 10px;
  996. position: relative;
  997. }
  998. .uni-list {
  999. border: 1xp solid #eee;
  1000. }
  1001. .to-right-icon {
  1002. width: 15px;
  1003. height: 15px;
  1004. position: absolute;
  1005. top: 50%;
  1006. transform: translateY(-50%);
  1007. }
  1008. .marginLeft5 {
  1009. margin-left: 5px;
  1010. }
  1011. .title-txt {
  1012. font-size: 15px;
  1013. font-weight: bold;
  1014. color: black;
  1015. }
  1016. .content-txt {
  1017. font-size: 10px;
  1018. font-weight: bold;
  1019. color: black;
  1020. }
  1021. .background {
  1022. // border: 15px solid hsla(0, 0%, 100%, .5);
  1023. background: white;
  1024. background-clip: padding-box;
  1025. padding: 20rpx;
  1026. border-radius: 20rpx;
  1027. margin: 20rpx;
  1028. /*从padding开始往外面裁剪背景*/
  1029. }
  1030. .uni-list-cell {
  1031. position: relative;
  1032. display: flex;
  1033. flex-direction: row;
  1034. justify-content: space-between;
  1035. align-items: center;
  1036. }
  1037. .uni-list-cell-left {
  1038. white-space: nowrap;
  1039. font-size: 28rpx;
  1040. }
  1041. .centered {
  1042. text-align: center;
  1043. background-color: #e2f4ff;
  1044. }
  1045. .text {
  1046. background-color: #e2f4ff;
  1047. height: 20rpx;
  1048. }
  1049. .view_bg_build {
  1050. background-color: #e2f4ff;
  1051. padding: 10rpx;
  1052. margin: 20rpx;
  1053. }
  1054. .grid-text {
  1055. font-size: 14px;
  1056. color: #000000;
  1057. text-align: center;
  1058. padding-left: 30rpx;
  1059. padding-right: 30rpx;
  1060. padding-top: 20rpx;
  1061. padding-bottom: 20rpx;
  1062. }
  1063. .name {
  1064. flex: 0;
  1065. font-size: 14px;
  1066. color: #000000;
  1067. overflow: hidden;
  1068. text-overflow: ellipsis;
  1069. white-space: nowrap;
  1070. }
  1071. .table-item {
  1072. overflow: hidden;
  1073. text-overflow: ellipsis;
  1074. white-space: nowrap;
  1075. }
  1076. .block-iv {
  1077. width: 10px;
  1078. height: 10px;
  1079. }
  1080. .btn {
  1081. width: 715rpx;
  1082. height: 69rpx;
  1083. background: #79A4F0;
  1084. border-radius: 6rpx;
  1085. font-size: 25rpx;
  1086. font-family: Microsoft YaHei;
  1087. font-weight: 400;
  1088. color: #FFFFFF;
  1089. line-height: 69rpx;
  1090. margin-top: 40rpx;
  1091. margin-bottom: 100rpx;
  1092. }
  1093. .number {
  1094. display: flex;
  1095. /* 水平居中显示子元素 */
  1096. align-items: flex-start;
  1097. /* 垂直居中显示子元素 */
  1098. justify-content: space-between;
  1099. /* 左右间距等于间距大小 */
  1100. padding: 10px;
  1101. /* 设置padding以提高视觉效果 */
  1102. }
  1103. .tj-btn {
  1104. height: 69rpx;
  1105. background: #3184f0;
  1106. border-radius: 6rpx;
  1107. font-size: 25rpx;
  1108. font-weight: 400;
  1109. color: #FFFFFF;
  1110. line-height: 69rpx;
  1111. margin: 40rpx 70rpx;
  1112. }
  1113. .sc-btn {
  1114. height: 69rpx;
  1115. background: #f0686b;
  1116. border-radius: 6rpx;
  1117. font-size: 25rpx;
  1118. font-weight: 400;
  1119. color: #FFFFFF;
  1120. line-height: 69rpx;
  1121. margin: 40rpx;
  1122. }
  1123. .num-style {
  1124. background: #e8f4f9;
  1125. margin: 20rpx;
  1126. padding: 10rpx;
  1127. border-radius: 20rpx;
  1128. border: 1px solid #d4e3f0;
  1129. }
  1130. .textarea {
  1131. margin-top: 10upx;
  1132. width: 100%;
  1133. border: 1rpx solid red;
  1134. min-height: 100upx;
  1135. line-height: 20px;
  1136. }
  1137. .text {
  1138. font-size: 16px;
  1139. color: #333;
  1140. }
  1141. input {
  1142. flex-grow: 1;
  1143. font-size: 28rpx;
  1144. color: #808080;
  1145. }
  1146. </style>