dangerous.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. <template>
  2. <!-- 危险作业工程 -->
  3. <view>
  4. <view class="view-bg">
  5. <view>
  6. <view class="uni-list-cell">
  7. <view class="uni-list-cell-left">
  8. 工程名称
  9. </view>
  10. <view class="uni-list-cell-db">
  11. <view v-if="isEmpty(projectObj.enginName)" style="margin-top: 10;" @click="pickerShow('name')">
  12. <span style="color: darkgray;">请选择工程</span>
  13. </view>
  14. <view v-else style="margin-top: 10;" @click="pickerShow('name')">
  15. <span style="color: black;">{{projectObj.enginName}}</span>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. <view>
  21. <view class="uni-list-cell">
  22. <view class="uni-list-cell-left">
  23. 工程地点
  24. </view>
  25. <view class="uni-list-cell-db">
  26. <view style="margin-top: 10;">
  27. <span style="color: black;">{{projectObj.enginAddre}}</span>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <view>
  33. <view class="uni-list-cell">
  34. <view class="uni-list-cell-left">
  35. 作业基本信息
  36. </view>
  37. <view class="uni-list-cell-db">
  38. <view style="margin-top: 10;">
  39. <span style="color: black;">{{projectObj.basicInformation}}</span>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="view-bg">
  46. <view>
  47. <view class="uni-list-cell">
  48. <view class="uni-list-cell-left">
  49. 工程时间
  50. </view>
  51. <view class="uni-list-cell-db">
  52. <view v-if="isEmpty(projectObj.enginTime)" style="margin-top: 10;" @click="pickerShow('time')">
  53. <span style="color: darkgray;">请选择工程时间</span>
  54. </view>
  55. <view v-else style="margin-top: 10;" @click="pickerShow('time')">
  56. <span style="color: black;">{{projectObj.enginTime}}</span>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. <view>
  62. <view class="uni-list">
  63. <view class="container">
  64. <text>管径</text>
  65. <input class="uni-input" type="text" v-model="projectObj.pipeDiameter" placeholder="请输入管径"
  66. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  67. </view>
  68. </view>
  69. <view class="uni-list">
  70. <view class="container">
  71. <text>管材</text>
  72. <input class="uni-input" type="text" v-model="projectObj.tubularProduct" placeholder="请输入管材"
  73. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  74. </view>
  75. </view>
  76. <view class="uni-list-cell">
  77. <view class="uni-list-cell-left">是否存在套管</view>
  78. <view class="uni-list-cell-db">
  79. <span style="color: black;">{{bushingText}}</span>
  80. <switch style="transform: scale(0.6,0.6);" @change="switchChangePipe" />
  81. </view>
  82. </view>
  83. <view class="uni-list">
  84. <view class="container">
  85. <text>管道压力</text>
  86. <input class="uni-input" type="text" v-model="projectObj.pipePressure" placeholder="请输入管道压力"
  87. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  88. </view>
  89. </view>
  90. <view class="uni-list">
  91. <view class="container">
  92. <text>气源方向</text>
  93. <input class="uni-input" type="text" v-model="projectObj.gasSourceDirection"
  94. placeholder="请输入气源方向" maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  95. </view>
  96. </view>
  97. <view class="uni-list">
  98. <view class="container">
  99. <text>作业位置</text>
  100. <input class="uni-input" type="text" v-model="projectObj.taskPosition" placeholder="请输入作业位置"
  101. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  102. </view>
  103. </view>
  104. <view class="uni-list">
  105. <view class="container">
  106. <text>作业相关阀门位置</text>
  107. <input class="uni-input" type="text" v-model="projectObj.valvePosition"
  108. placeholder="请输入作业相关阀门位置" maxlength="100"
  109. style="margin-left: 10px;text-align: right;"></input>
  110. </view>
  111. </view>
  112. <view class="uni-list">
  113. <view class="container">
  114. <text>压力报告</text>
  115. <input class="uni-input" type="text" v-model="projectObj.stressReport" placeholder="请输入压力报告"
  116. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  117. </view>
  118. </view>
  119. <view class="uni-list">
  120. <view class="container">
  121. <text>监理旁站记录</text>
  122. <input class="uni-input" type="text" v-model="projectObj.supervisionRecord"
  123. placeholder="请输入监理旁站记录" maxlength="100"
  124. style="margin-left: 10px;text-align: right;"></input>
  125. </view>
  126. </view>
  127. <view class="uni-list">
  128. <view class="container">
  129. <text>工作联系单</text>
  130. <input class="uni-input" type="text" v-model="projectObj.workContactForm" placeholder="请输入工作联系单"
  131. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  132. </view>
  133. </view>
  134. <view class="uni-list">
  135. <view class="container">
  136. <text>巡线确认单</text>
  137. <input class="uni-input" type="text" v-model="projectObj.linePatrolConfirmationForm"
  138. placeholder="请输入巡线确认单" maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  139. </view>
  140. </view>
  141. <view class="uni-list">
  142. <view class="container">
  143. <text>危险作业坑大小(长,宽,深)</text>
  144. <input class="uni-input" type="text" v-model="projectObj.hazardousWorkPitsLong"
  145. placeholder="请输入长" maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  146. <input class="uni-input" type="text" v-model="projectObj.hazardousWorkPitsWide"
  147. placeholder="请输入宽" maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  148. <input class="uni-input" type="text" v-model="projectObj.hazardousWorkPitsDeep"
  149. placeholder="请输入深" maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  150. </view>
  151. </view>
  152. <view class="uni-list-cell">
  153. <view class="uni-list-cell-left">是否需要支护</view>
  154. <view class="uni-list-cell-db">
  155. <span style="color: black;">{{needSupportText}}</span>
  156. <switch style="transform: scale(0.6,0.6);" @change="switchChangeSupport" />
  157. </view>
  158. </view>
  159. <view class="uni-list">
  160. <view class="container">
  161. <text>作业坑内其他管道情况</text>
  162. <input class="uni-input" type="text" v-model="projectObj.otherPipelineConditionsWorkPit"
  163. placeholder="请输入作业坑内其他管道情况" maxlength="100"
  164. style="margin-left: 10px;text-align: right;"></input>
  165. </view>
  166. </view>
  167. <view class="uni-list">
  168. <view class="container">
  169. <text>现场负责人</text>
  170. <input class="uni-input" type="text" v-model="projectObj.siteHead" placeholder="请输入现场负责人"
  171. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  172. </view>
  173. </view>
  174. <view class="uni-list">
  175. <view class="container">
  176. <text>现场负责人联系方式</text>
  177. <input class="uni-input" type="text" v-model="projectObj.siteHeadPhone"
  178. placeholder="请输入现场负责人联系方式" maxlength="11"
  179. style="margin-left: 10px;text-align: right;"></input>
  180. </view>
  181. </view>
  182. <view class="uni-list">
  183. <view class="container">
  184. <text>作业人员信息</text>
  185. <input class="uni-input" type="text" v-model="projectObj.operatorInformation"
  186. placeholder="请输入作业人员信息" maxlength="100"
  187. style="margin-left: 10px;text-align: right;"></input>
  188. </view>
  189. </view>
  190. <view class="uni-list">
  191. <view class="container">
  192. <text>检口</text>
  193. <input class="uni-input" type="text" v-model="projectObj.inspectionPort" placeholder="请输入检口"
  194. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  195. </view>
  196. </view>
  197. <view class="uni-list">
  198. <view class="container">
  199. <text>管道刷油</text>
  200. <input class="uni-input" type="text" v-model="projectObj.pipelinePainting" placeholder="请输入管道刷油"
  201. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  202. </view>
  203. </view>
  204. <view class="uni-list">
  205. <view class="container">
  206. <text>管道防腐</text>
  207. <input class="uni-input" type="text" v-model="projectObj.pipelineCorrosionProtection"
  208. placeholder="请输入管道防腐" maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  209. </view>
  210. </view>
  211. <view class="uni-list">
  212. <view class="container">
  213. <text>管道支护</text>
  214. <input class="uni-input" type="text" v-model="projectObj.pipelineSupport" placeholder="请输入管道支护"
  215. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  216. </view>
  217. </view>
  218. <view class="uni-list">
  219. <view class="container">
  220. <text>砌筑阀门井</text>
  221. <input class="uni-input" type="text" v-model="projectObj.masonryValveWell"
  222. placeholder="请输入砌筑阀门井" maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  223. </view>
  224. </view>
  225. <view class="uni-list">
  226. <view class="container">
  227. <text>保护井</text>
  228. <input class="uni-input" type="text" v-model="projectObj.protectionWell" placeholder="请输入保护井"
  229. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  230. </view>
  231. </view>
  232. <view class="uni-list">
  233. <view class="container">
  234. <text>管件保护井砌筑</text>
  235. <input class="uni-input" type="text" v-model="projectObj.pipeProtectionWelMasonry"
  236. placeholder="请输入管件保护井砌筑" maxlength="100"
  237. style="margin-left: 10px;text-align: right;"></input>
  238. </view>
  239. </view>
  240. <view class="uni-list">
  241. <view class="container">
  242. <text>回填</text>
  243. <input class="uni-input" type="text" v-model="projectObj.backfill" placeholder="请输入回填"
  244. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  245. </view>
  246. </view>
  247. <view class="uni-list">
  248. <view class="container">
  249. <text>夯实</text>
  250. <input class="uni-input" type="text" v-model="projectObj.tamp" placeholder="请输入夯实"
  251. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  252. </view>
  253. </view>
  254. <view class="uni-list">
  255. <view class="container">
  256. <text>平整场地</text>
  257. <input class="uni-input" type="text" v-model="projectObj.levelingTheSite" placeholder="请输入平整场地"
  258. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  259. </view>
  260. </view>
  261. <view class="uni-list">
  262. <view class="container">
  263. <text>备注</text>
  264. <input class="uni-input" type="text" v-model="projectObj.remark" placeholder="请输入备注"
  265. maxlength="100" style="margin-left: 10px;text-align: right;"></input>
  266. </view>
  267. </view>
  268. <SelectPicker :list="rows" @change="projectListSelect" v-if="open" @close="close" titleKey="enginName"
  269. subtitleKey="id" v-model="enginName"></SelectPicker>
  270. </view>
  271. </view>
  272. </view>
  273. </template>
  274. <script>
  275. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  276. import {
  277. getDangerousWorkProjectList,
  278. getDangerousWorkProjectDetails
  279. } from '@/api/common'
  280. export default {
  281. components: {
  282. SelectPicker
  283. },
  284. data() {
  285. return {
  286. projectValue: {},
  287. projectId: "",
  288. projectName: "",
  289. projectPosition: "",
  290. projectInfoContent: "",
  291. projectTime: "",
  292. pipeSize: "",
  293. pipeMaterial: "",
  294. isBushing: false,
  295. bushingText: "否",
  296. pipePressure: "",
  297. direction: "",
  298. workPosition: "",
  299. valvePosition: "",
  300. stressReport: "",
  301. supervisionSiteRecord: "",
  302. workContactForm: "",
  303. linePatrolForm: "",
  304. workHoleLong: "",
  305. workHoleWide: "",
  306. workHoleHeight: "",
  307. isNeedSupport: false,
  308. needSupportText: "否",
  309. otherPipelineCondition: "",
  310. siteLeaderName: "",
  311. siteLeaderPhone: "",
  312. workPersonInfo: "",
  313. inspectionPort: "",
  314. pipelineOil: "", //管道刷油
  315. pipelineCorrosion: "", //管道腐蚀
  316. masonryValveWell: "", //砌筑阀门井
  317. protectionWell: "", //保护井
  318. pipeProtectionwellMasonry: "", //管件保护井砌筑
  319. backfill: "", //回填
  320. tamp: "", //夯实
  321. levelSite: "", //平整场地
  322. file: [], // 附件
  323. pics: [], // 附件返回
  324. rows: [],
  325. open: false,
  326. projectObj: {},
  327. }
  328. },
  329. created() {},
  330. methods: {
  331. isEmpty(str) {
  332. return (!str || 0 === str.length);
  333. },
  334. pickerShow(e) {
  335. if (e == 'name') {
  336. this.open = true;
  337. let param = {};
  338. getDangerousWorkProjectList(param).then(res => {
  339. this.rows = res.rows;
  340. })
  341. }
  342. },
  343. changeSelect(e) {
  344. },
  345. open() {
  346. this.open = true;
  347. },
  348. close() {
  349. this.open = false;
  350. },
  351. projectListSelect(item, index) {
  352. this.open = false;
  353. getDangerousWorkProjectDetails(item.id).then(res => {
  354. debugger
  355. this.projectObj = res.data;
  356. })
  357. },
  358. switchChangePipe(e) {
  359. this.isBushing = e.detail.value;
  360. if (this.isBushing) {
  361. this.bushingText = "是";
  362. } else {
  363. this.bushingText = "否";
  364. }
  365. console.log("bush:" + this.isBushing + this.bushingText)
  366. },
  367. switchChangeSupport(e) {
  368. this.isNeedSupport = e.detail.value;
  369. if (this.isNeedSupport) {
  370. this.needSupportText = "是";
  371. } else {
  372. this.needSupportText = "否";
  373. }
  374. console.log("bush:" + this.isNeedSupport + this.needSupportText)
  375. },
  376. }
  377. }
  378. </script>
  379. <style>
  380. .container {
  381. display: flex;
  382. align-items: flex-start;
  383. justify-content: space-between;
  384. }
  385. .marginLeft5 {
  386. margin-left: 5px;
  387. }
  388. .title-txt {
  389. font-size: 15px;
  390. font-weight: bold;
  391. color: black;
  392. }
  393. .content-txt {
  394. font-size: 10px;
  395. font-weight: bold;
  396. color: black;
  397. }
  398. .view-bg {
  399. margin-left: 8px;
  400. margin-right: 8px;
  401. margin-top: 8px;
  402. padding: 10px;
  403. background-color: #fff;
  404. border-radius: 5px;
  405. }
  406. .uni-list
  407. /* {
  408. background-color: #FFFFFF;
  409. position: relative;
  410. width: 100%;
  411. display: flex;
  412. flex-direction: column;
  413. } */
  414. .uni-list-cell-db,
  415. .uni-list-cell {
  416. position: relative;
  417. display: flex;
  418. flex-direction: row;
  419. justify-content: space-between;
  420. align-items: center;
  421. }
  422. .uni-list-cell-left {
  423. white-space: nowrap;
  424. font-size: 28rpx;
  425. }
  426. .centered {
  427. text-align: center;
  428. background-color: #e2f4ff;
  429. }
  430. .text {
  431. background-color: #e2f4ff;
  432. height: 20rpx;
  433. }
  434. .view_bg_build {
  435. background-color: #e2f4ff;
  436. padding: 10rpx;
  437. margin: 20rpx;
  438. }
  439. .grid-text {
  440. font-size: 14px;
  441. color: #000000;
  442. text-align: center;
  443. padding-left: 30rpx;
  444. padding-right: 30rpx;
  445. padding-top: 20rpx;
  446. padding-bottom: 20rpx;
  447. }
  448. .name {
  449. flex: 0;
  450. font-size: 14px;
  451. color: #000000;
  452. overflow: hidden;
  453. text-overflow: ellipsis;
  454. white-space: nowrap;
  455. }
  456. .table-item {
  457. overflow: hidden;
  458. text-overflow: ellipsis;
  459. white-space: nowrap;
  460. }
  461. .block-iv {
  462. width: 10px;
  463. height: 10px;
  464. }
  465. .btn {
  466. margin-top: 40px;
  467. margin-right: 20px;
  468. margin-bottom: 120px;
  469. margin-left: 20px;
  470. height: 45px;
  471. }
  472. .number {
  473. display: flex;
  474. /* 水平居中显示子元素 */
  475. align-items: flex-start;
  476. /* 垂直居中显示子元素 */
  477. justify-content: space-between;
  478. /* 左右间距等于间距大小 */
  479. padding: 10px;
  480. /* 设置padding以提高视觉效果 */
  481. }
  482. .textarea {
  483. margin-top: 10upx;
  484. width: 100%;
  485. border: 1rpx solid red;
  486. min-height: 100upx;
  487. line-height: 20px;
  488. }
  489. .text {
  490. font-size: 16px;
  491. color: #333;
  492. }
  493. input {
  494. flex-grow: 1;
  495. font-size: 28rpx;
  496. color: #808080;
  497. }
  498. </style>