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