index.vue 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080
  1. <!--
  2. *@description: 危险工程
  3. *@author: yh Fu
  4. *@date: 2024-01-03 14:17:43
  5. *@version: V1.0.5
  6. -->
  7. <template>
  8. <div class="app-container">
  9. <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="110px">
  10. <el-form-item label="作业基本信息" prop="basicInformation">
  11. <el-input
  12. v-model="queryParams.basicInformation"
  13. placeholder="请输入作业基本信息"
  14. clearable
  15. @keyup.enter.native="handleQuery"
  16. />
  17. </el-form-item>
  18. <el-form-item label="工程名称" prop="enginName">
  19. <el-input
  20. v-model="queryParams.enginName"
  21. placeholder="请输入工程名称"
  22. clearable
  23. @keyup.enter.native="handleQuery"
  24. />
  25. </el-form-item>
  26. <el-form-item label="工程地点" prop="enginAddre">
  27. <el-input
  28. v-model="queryParams.enginAddre"
  29. placeholder="请输入工程地点"
  30. clearable
  31. @keyup.enter.native="handleQuery"
  32. />
  33. </el-form-item>
  34. <el-form-item>
  35. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  36. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  37. </el-form-item>
  38. </el-form>
  39. <el-row :gutter="10" class="mb8">
  40. <el-col :span="1.5">
  41. <el-button
  42. type="primary"
  43. plain
  44. icon="el-icon-plus"
  45. size="mini"
  46. @click="handleAdd"
  47. v-hasPermi="['zdsz:engineeringDangerous:add']"
  48. >新增
  49. </el-button>
  50. </el-col>
  51. <el-col :span="1.5">
  52. <el-button
  53. type="success"
  54. plain
  55. icon="el-icon-edit"
  56. size="mini"
  57. :disabled="single"
  58. @click="handleUpdate"
  59. v-hasPermi="['zdsz:engineeringDangerous:edit']"
  60. >修改
  61. </el-button>
  62. </el-col>
  63. <el-col :span="1.5">
  64. <el-button
  65. type="danger"
  66. plain
  67. icon="el-icon-delete"
  68. size="mini"
  69. :disabled="multiple"
  70. @click="handleDelete"
  71. v-hasPermi="['zdsz:engineeringDangerous:remove']"
  72. >删除
  73. </el-button>
  74. </el-col>
  75. <!-- <el-col :span="1.5">
  76. <el-button
  77. type="warning"
  78. plain
  79. icon="el-icon-download"
  80. size="mini"
  81. @click="handleExport"
  82. v-hasPermi="['zdsz:engineeringDangerous:export']"
  83. >导出
  84. </el-button>
  85. </el-col>-->
  86. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  87. </el-row>
  88. <el-table v-loading="loading" :data="engineeringDangerousList" @selection-change="handleSelectionChange">
  89. <el-table-column type="selection" width="55" align="center"/>
  90. <!-- <el-table-column label="" align="center" prop="id" v-if="true"/>-->
  91. <el-table-column label="作业基本信息" align="center" prop="basicInformation"/>
  92. <el-table-column label="工程名称" align="center" prop="enginName"/>
  93. <el-table-column label="工程地点" align="center" prop="enginAddre"/>
  94. <el-table-column label="工程时间" align="center" prop="enginTime" width="180">
  95. <template slot-scope="scope">
  96. <span>{{ parseTime(scope.row.enginTime, '{y}-{m}-{d}') }}</span>
  97. </template>
  98. </el-table-column>
  99. <!-- <el-table-column label="管径" align="center" prop="pipeDiameter"/>
  100. <el-table-column label="管材" align="center" prop="tubularProduct"/>
  101. <el-table-column label="是否存在套管" align="center" prop="casingPresent"/>
  102. <el-table-column label="管道压力" align="center" prop="pipePressure"/>
  103. <el-table-column label="气源方向" align="center" prop="gasSourceDirection"/>
  104. <el-table-column label="作业位置" align="center" prop="taskPosition"/>
  105. <el-table-column label="与作业相关阀门位置" align="center" prop="valvePosition"/>
  106. <el-table-column label="压力报告" align="center" prop="stressReport"/>
  107. <el-table-column label="监理旁站记录" align="center" prop="supervision record"/>
  108. <el-table-column label="工作联系单" align="center" prop="workContactForm"/>
  109. <el-table-column label="巡线确认单" align="center" prop="linePatrolConfirmationForm"/>
  110. <el-table-column label="危险作业坑大小(长)" align="center" prop="hazardousWorkPitsLong"/>
  111. <el-table-column label="危险作业坑大小(宽)" align="center" prop="hazardousWorkPitsWide"/>
  112. <el-table-column label="危险作业坑大小(深)" align="center" prop="hazardousWorkPitsDeep"/>
  113. <el-table-column label="是否需要支护" align="center" prop="needSupport"/>
  114. <el-table-column label="作业坑内其他管道情况" align="center" prop="otherPipelineConditionsWorkPit"/>
  115. <el-table-column label="现场负责人" align="center" prop="siteHead"/>
  116. <el-table-column label="现场负责人电话" align="center" prop="siteHeadPhone"/>
  117. <el-table-column label="作业人员信息" align="center" prop="operatorInformation"/>
  118. <el-table-column label="检口" align="center" prop="inspectionPort"/>
  119. <el-table-column label="管道刷油" align="center" prop="pipelinePainting"/>
  120. <el-table-column label="管道支护" align="center" prop="pipelineSupport"/>
  121. <el-table-column label="管道防腐" align="center" prop="pipelineCorrosionProtection"/>
  122. <el-table-column label="砌筑阀门井" align="center" prop="masonryValveWell"/>
  123. <el-table-column label="保护井" align="center" prop="protectionWell"/>
  124. <el-table-column label="管件保护井砌筑" align="center" prop="pipeProtectionWelMasonry"/>
  125. <el-table-column label="回填" align="center" prop="backfill"/>
  126. <el-table-column label="夯实" align="center" prop="tamp"/>
  127. <el-table-column label="平整场地" align="center" prop="levelingTheSite"/>
  128. <el-table-column label="备注" align="center" prop="remark"/>-->
  129. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  130. <template slot-scope="scope">
  131. <el-button
  132. size="mini"
  133. type="text"
  134. icon="el-icon-edit"
  135. @click="handleUpdate(scope.row)"
  136. v-hasPermi="['zdsz:engineeringDangerous:edit']"
  137. >修改
  138. </el-button>
  139. <el-button
  140. size="mini"
  141. type="text"
  142. icon="el-icon-delete"
  143. @click="handleDelete(scope.row)"
  144. v-hasPermi="['zdsz:engineeringDangerous:remove']"
  145. >删除
  146. </el-button>
  147. <el-button
  148. size="mini"
  149. type="text"
  150. icon="el-icon-edit"
  151. @click="addNewPipe(scope.row)"
  152. >新增顶管工程
  153. </el-button>
  154. <!-- <el-button
  155. type="text"
  156. icon="el-icon-edit"
  157. size="mini"
  158. @click="viewSource(scope.row)"
  159. >历史
  160. </el-button>-->
  161. </template>
  162. </el-table-column>
  163. </el-table>
  164. <pagination
  165. v-show="total>0"
  166. :total="total"
  167. :page.sync="queryParams.pageNum"
  168. :limit.sync="queryParams.pageSize"
  169. @pagination="getList"
  170. />
  171. <!-- 添加或修改危险作业工程对话框 -->
  172. <el-dialog :title="title" :visible.sync="open" append-to-body customClass="appendElDialog">
  173. <el-form ref="form" :model="form" :rules="rules" label-width="110px">
  174. <el-row>
  175. <el-col :span="8">
  176. <el-form-item label="作业基本信息" prop="basicInformation">
  177. <el-input v-model="form.basicInformation" placeholder="请填写作业基本信息" maxlength="200"></el-input>
  178. </el-form-item>
  179. </el-col>
  180. <el-col :span="8">
  181. <el-form-item label="工程名称" prop="enginName">
  182. <el-input v-model="form.enginName" placeholder="请填写作业基本信息" maxlength="200"></el-input>
  183. </el-form-item>
  184. </el-col>
  185. <el-col :span="8">
  186. <el-form-item label="工程地点" prop="enginAddre">
  187. <el-input v-model="form.enginAddre" placeholder="请填写工程地点" maxlength="200"></el-input>
  188. </el-form-item>
  189. </el-col>
  190. </el-row>
  191. <el-row>
  192. <el-col :span="8">
  193. <el-col :span="6">
  194. <el-form-item label="工程时间" prop="enginTime">
  195. <el-date-picker
  196. v-model="form.enginTime"
  197. value-format="yyyy-MM-dd hh:mm:ss"
  198. type="datetime"
  199. placeholder="请选择工程时间">
  200. </el-date-picker>
  201. </el-form-item>
  202. </el-col>
  203. </el-col>
  204. <el-col :span="8">
  205. <el-form-item label="现场负责人" prop="siteHead">
  206. <el-input v-model="form.siteHead" placeholder="请填写现场负责人" maxlength="16"/>
  207. </el-form-item>
  208. </el-col>
  209. <el-col :span="8">
  210. <el-form-item label="现场负责人电话" prop="siteHeadPhone">
  211. <el-input v-model="form.siteHeadPhone" placeholder="请填写现场负责人电话" maxlength="11"/>
  212. </el-form-item>
  213. </el-col>
  214. </el-row>
  215. <el-row>
  216. <el-col :span="8">
  217. <el-form-item label="作业人员信息" prop="operatorInformation">
  218. <el-input v-model="form.operatorInformation" placeholder="请填写作业人员信息" maxlength="200"/>
  219. </el-form-item>
  220. </el-col>
  221. <el-col :span="8">
  222. <el-form-item label="监理旁站记录" prop="supervisionRecord">
  223. <el-input v-model="form.supervisionRecord" placeholder="请填写监理旁站记录" maxlength="200"/>
  224. </el-form-item>
  225. </el-col>
  226. <el-col :span="8">
  227. <el-form-item label="工作联系单" prop="workContactForm">
  228. <el-input v-model="form.workContactForm" placeholder="请填写工作联系单" maxlength="200"/>
  229. </el-form-item>
  230. </el-col>
  231. </el-row>
  232. <el-row>
  233. <el-col :span="8">
  234. <el-form-item label="巡线确认单" prop="linePatrolConfirmationForm">
  235. <el-input v-model="form.linePatrolConfirmationForm" placeholder="请填写巡线确认单" maxlength="200"/>
  236. </el-form-item>
  237. </el-col>
  238. <el-col :span="8">
  239. <el-form-item label="作业位置" prop="taskPosition">
  240. <el-input v-model="form.taskPosition" placeholder="请填写作业位置" maxlength="200"/>
  241. </el-form-item>
  242. </el-col>
  243. <el-col :span="8">
  244. <el-form-item label="相关阀门位置" prop="valvePosition">
  245. <el-input v-model="form.valvePosition" placeholder="请填写与作业相关阀门位置" maxlength="200"/>
  246. </el-form-item>
  247. </el-col>
  248. </el-row>
  249. <el-row>
  250. <el-col :span="8">
  251. <el-form-item label="是否存在套管" prop="casingPresent">
  252. <el-select v-model="form.casingPresent" placeholder="请选择是否存在套管">
  253. <el-option
  254. v-for="e in segmentedCompressionQualifiedOption"
  255. :key="e.value"
  256. :label="e.label"
  257. :value="e.value"
  258. ></el-option>
  259. </el-select>
  260. </el-form-item>
  261. </el-col>
  262. <el-col :span="8">
  263. <el-form-item label="管径" prop="pipeDiameter">
  264. <el-input v-model="form.pipeDiameter" placeholder="请填写管径" maxlength="200"></el-input>
  265. </el-form-item>
  266. </el-col>
  267. <el-col :span="8">
  268. <el-form-item label="管材" prop="tubularProduct">
  269. <el-input v-model="form.tubularProduct" placeholder="请填写管材" maxlength="200"></el-input>
  270. </el-form-item>
  271. </el-col>
  272. </el-row>
  273. <el-row>
  274. <el-col :span="8">
  275. <el-form-item label="管道压力" prop="pipePressure">
  276. <el-input v-model="form.pipePressure" placeholder="请填写管道压力" maxlength="200"></el-input>
  277. </el-form-item>
  278. </el-col>
  279. <el-col :span="8">
  280. <el-form-item label="压力报告" prop="stressReport">
  281. <el-input v-model="form.stressReport" placeholder="请填写压力报告" maxlength="200"/>
  282. </el-form-item>
  283. </el-col>
  284. <el-col :span="8">
  285. <el-form-item label="气流方向" prop="gasSourceDirection">
  286. <el-input v-model="form.gasSourceDirection" placeholder="请填写气流方向" maxlength="200"/>
  287. </el-form-item>
  288. </el-col>
  289. </el-row>
  290. <el-row>
  291. <el-col :span="8">
  292. <el-form-item label="是否需要支护" prop="casingPresent">
  293. <el-select v-model="form.needSupport" placeholder="请选择是否需要支护">
  294. <el-option
  295. v-for="e in segmentedCompressionQualifiedOption"
  296. :key="e.value"
  297. :label="e.label"
  298. :value="e.value"
  299. ></el-option>
  300. </el-select>
  301. </el-form-item>
  302. </el-col>
  303. <el-col :span="8">
  304. <el-form-item label="管道支护" prop="pipelineSupport">
  305. <el-input v-model="form.pipelineSupport" placeholder="请填写管道支护" maxlength="200"/>
  306. </el-form-item>
  307. </el-col>
  308. <el-col :span="8">
  309. <el-form-item label="检口" prop="inspectionPort">
  310. <el-input v-model="form.inspectionPort" placeholder="请填写检口" maxlength="200"/>
  311. </el-form-item>
  312. </el-col>
  313. </el-row>
  314. <el-row>
  315. <el-col :span="8">
  316. <el-form-item label="管道刷油" prop="pipelinePainting">
  317. <el-input v-model="form.pipelinePainting" placeholder="请填写管道刷油" maxlength="200"/>
  318. </el-form-item>
  319. </el-col>
  320. <el-col :span="8">
  321. <el-form-item label="管道防腐" prop="pipelineCorrosionProtection">
  322. <el-input v-model="form.pipelineCorrosionProtection" placeholder="请填写管道防腐" maxlength="200"/>
  323. </el-form-item>
  324. </el-col>
  325. <el-col :span="8">
  326. <el-form-item label="其他管道情况" prop="otherPipelineConditionsWorkPit">
  327. <el-input v-model="form.otherPipelineConditionsWorkPit" placeholder="请填写其他管道情况" maxlength="200"/>
  328. </el-form-item>
  329. </el-col>
  330. </el-row>
  331. <el-row>
  332. <el-col :span="8">
  333. <el-form-item label="保护井" prop="protectionWell">
  334. <el-input v-model="form.protectionWell" placeholder="请填写保护井" maxlength="200"/>
  335. </el-form-item>
  336. </el-col>
  337. <el-col :span="8">
  338. <el-form-item label="管件保护井砌筑" prop="pipeProtectionWelMasonry">
  339. <el-input v-model="form.pipeProtectionWelMasonry" placeholder="请填写管件保护井砌筑" maxlength="200"/>
  340. </el-form-item>
  341. </el-col>
  342. <el-col :span="8">
  343. <el-form-item label="砌筑阀门井" prop="masonryValveWell">
  344. <el-input v-model="form.masonryValveWell" placeholder="请填写砌筑阀门井" maxlength="200"/>
  345. </el-form-item>
  346. </el-col>
  347. </el-row>
  348. <el-row>
  349. <el-col :span="8">
  350. <el-form-item label="作业坑(长)(米)" prop="hazardousWorkPitsLong">
  351. <el-input v-model="form.hazardousWorkPitsLong" placeholder="请填写危险作业坑大小(长)" maxlength="11"/>
  352. </el-form-item>
  353. </el-col>
  354. <el-col :span="8">
  355. <el-form-item label="作业坑(宽)(米)" prop="hazardousWorkPitsWide">
  356. <el-input v-model="form.hazardousWorkPitsWide" placeholder="请填写危险作业坑大小(宽)" maxlength="11"/>
  357. </el-form-item>
  358. </el-col>
  359. <el-col :span="8">
  360. <el-form-item label="作业坑(深)(米)" prop="hazardousWorkPitsDeep">
  361. <el-input v-model="form.hazardousWorkPitsDeep" placeholder="请填写危险作业坑大小(深)" maxlength="11"/>
  362. </el-form-item>
  363. </el-col>
  364. </el-row>
  365. <el-row>
  366. <el-col :span="8">
  367. <el-form-item label="回填" prop="backfill">
  368. <el-input v-model="form.backfill" placeholder="请填写回填" maxlength="200"/>
  369. </el-form-item>
  370. </el-col>
  371. <el-col :span="8">
  372. <el-form-item label="夯实" prop="tamp">
  373. <el-input v-model="form.tamp" placeholder="请填写夯实" maxlength="200"/>
  374. </el-form-item>
  375. </el-col>
  376. <el-col :span="8">
  377. <el-form-item label="平整场地" prop="levelingTheSite">
  378. <el-input v-model="form.levelingTheSite" placeholder="请填写平整场地" maxlength="200"/>
  379. </el-form-item>
  380. </el-col>
  381. </el-row>
  382. <el-row>
  383. <el-col :span="24">
  384. <el-form-item label="备注" prop="remark" style="width: 42.7%;">
  385. <el-input
  386. v-model="form.remark"
  387. type="textarea"
  388. placeholder="请输入内容"
  389. class="remark_input"
  390. maxlength="200"
  391. />
  392. </el-form-item>
  393. </el-col>
  394. </el-row>
  395. <el-row :gutter="20">
  396. <el-col :span="24">
  397. <el-form-item label="附件" prop="" v-if="currentType==='put'">
  398. <ObsFileUpload ref="obsFileUpload" :file-size="100"
  399. :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg']" :limit="9999"
  400. :value="form.pics"
  401. ></ObsFileUpload>
  402. </el-form-item>
  403. <el-form-item label="附件" prop="" v-if="currentType==='add'">
  404. <ObsFileUpload ref="obsFileUpload" :file-size="100"
  405. :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg']" :limit="9999"
  406. :value="form.files"
  407. ></ObsFileUpload>
  408. </el-form-item>
  409. </el-col>
  410. </el-row>
  411. </el-form>
  412. <div slot="footer" class="dialog-footer" style="margin-top: 20%;">
  413. <el-button :loading="buttonLoading" type="primary" @click="submitForm">提交</el-button>
  414. <!-- <el-button :loading="buttonLoading" type="primary" @click="openNode">填写节点信息</el-button>-->
  415. <!-- <el-button :loading="buttonLoading" type="primary" @click="toNodeDetail">填写节点信息</el-button>-->
  416. <el-button @click="cancel">取 消</el-button>
  417. </div>
  418. </el-dialog>
  419. <!-- 节点信息dialog -->
  420. <!-- <el-dialog :visible="openNodeForm" :rules="nodesRule" title="节点信息" append-to-body customClass="appendElNodeDialog" width="70% !important">
  421. <el-form ref="nodeForm" :model="zEngineeringInfoBo" :rules="nodeRules" label-width="200px">
  422. <el-form-item label="施工时间" prop="constructTime">
  423. <el-date-picker
  424. v-model="zEngineeringInfoBo.constructTime"
  425. value-format="yyyy-MM-dd hh:mm:ss"
  426. type="datetime"
  427. placeholder="请选择施工时间">
  428. </el-date-picker>
  429. </el-form-item>
  430. <el-form-item label="照片" prop="zEngiineeringPhotoBoList" style="width: 100%;">
  431. <ObsImageUpload ref="obsImageUpload" :limit="9999" :fileType="['png', 'jpg', 'jpeg']" :value="zEngineeringInfoBo.zEngiineeringPhotoBoList"
  432. @input="getUrl"></ObsImageUpload>
  433. </el-form-item>
  434. <div style="display: flex;margin-top: 3%;">
  435. <div style="width: 80%;"></div>
  436. <el-button :loading="buttonLoading" type="primary" @click="submitForm">提交</el-button>
  437. <el-button @click="nodeCancel">取 消</el-button>
  438. </div>
  439. </el-form>
  440. </el-dialog>-->
  441. <!-- <enginee-node
  442. ref="childNode"
  443. @closeToSucceed="closeToSucceed"
  444. />-->
  445. <EngineePipe ref="enginPipe"/>
  446. <ConstructionDetails
  447. ref="ConstructionDetails"
  448. :currentCollapses="currentCollapses"
  449. />
  450. </div>
  451. </template>
  452. <script>
  453. import {
  454. listEngineeringDangerous,
  455. getEngineeringDangerous,
  456. delEngineeringDangerous, queryEngineeringDangerous, updateEngineeringDangerous, addEngineeringDangerous,
  457. } from "@/api/zdsz/engineeringDangerous";
  458. import EngineeNode from "@/components/EngineeNode/index";
  459. import data from "@/views/system/dict/data.vue";
  460. import EngineePipe from '@/components/EngineePipe'
  461. import ConstructionDetails from "@/components/ConstructionDetails/index.vue";
  462. import {validPhoneMobile, checkPositiveDecimal} from "@/api/rules";
  463. export default {
  464. name: "EngineeringDangerous",
  465. computed: {
  466. data() {
  467. return data
  468. }
  469. },
  470. components: {
  471. EngineePipe, EngineeNode, ConstructionDetails
  472. },
  473. data() {
  474. return {
  475. //备用
  476. // openNodeForm:false,
  477. //备用
  478. currentCollapses: [],
  479. nodeType: "危险作业工程",
  480. nodeDetailVisible: false,
  481. // 按钮loading
  482. buttonLoading: false,
  483. // 遮罩层
  484. loading: true,
  485. // 选中数组
  486. ids: [],
  487. // 非单个禁用
  488. single: true,
  489. // 非多个禁用
  490. multiple: true,
  491. // 显示搜索条件
  492. showSearch: true,
  493. // 总条数
  494. total: 0,
  495. // 危险工程表格数据
  496. engineeringDangerousList: [],
  497. // 弹出层标题
  498. title: "",
  499. // 是否显示弹出层
  500. open: false,
  501. // 查询参数
  502. queryParams: {
  503. files: [],
  504. pageNum: 1,
  505. pageSize: 10,
  506. basicInformation: undefined,
  507. enginName: undefined,
  508. enginAddre: undefined,
  509. enginTime: undefined,
  510. pipeDiameter: undefined,
  511. tubularProduct: undefined,
  512. casingPresent: undefined,
  513. pipePressure: undefined,
  514. gasSourceDirection: undefined,
  515. taskPosition: undefined,
  516. valvePosition: undefined,
  517. stressReport: undefined,
  518. supervisionRecord: undefined,
  519. workContactForm: undefined,
  520. linePatrolConfirmationForm: undefined,
  521. hazardousWorkPitsLong: undefined,
  522. hazardousWorkPitsWide: undefined,
  523. hazardousWorkPitsDeep: undefined,
  524. needSupport: undefined,
  525. otherPipelineConditionsWorkPit: undefined,
  526. siteHead: undefined,
  527. siteHeadPhone: undefined,
  528. operatorInformation: undefined,
  529. inspectionPort: undefined,
  530. pipelinePainting: undefined,
  531. pipelineSupport: undefined,
  532. pipelineCorrosionProtection: undefined,
  533. masonryValveWell: undefined,
  534. protectionWell: undefined,
  535. pipeProtectionWelMasonry: undefined,
  536. backfill: undefined,
  537. tamp: undefined,
  538. levelingTheSite: undefined,
  539. /* zEngineeringNodeBo: {
  540. type: "危险作业工程",
  541. zEngineeringInfoBo: {} //节点信息
  542. }*/
  543. },
  544. zEngineeringInfoBo: {
  545. constructAddre: '', // 施工地址
  546. constructPhone: '', // 施工人电话
  547. constructUser: '', // 施工人
  548. headName: '', // 负责人
  549. headPhone: '', // 负责人电话
  550. constructAccordingDrawings: '', // 是否按图纸施工
  551. segmentedCompressionQualified: '', // 分段打压是否合格
  552. selfClosingValveType: '', // 自闭阀类型
  553. visitType: '', // 上门类型
  554. backfillTime: '', // 回填时间
  555. constructTime: '', // 施工时间
  556. zEngiineeringPhotoBoList: [] // 图片列表
  557. },
  558. constructAccordingDrawingsOption: [
  559. {
  560. value: '1',
  561. label: '是'
  562. },
  563. {
  564. value: '0',
  565. label: '否'
  566. }
  567. ],
  568. segmentedCompressionQualifiedOption: [
  569. {
  570. value: '1',
  571. label: '是'
  572. },
  573. {
  574. value: '0',
  575. label: '否'
  576. }
  577. ],
  578. // 表单参数
  579. form: {},
  580. // 表单校验
  581. rules: {
  582. basicInformation: [
  583. {required: true, message: "作业基本信息不能为空", trigger: "blur"}
  584. ],
  585. enginName: [
  586. {required: true, message: "工程名称不能为空", trigger: "blur"}
  587. ],
  588. enginAddre: [
  589. {required: true, message: "工程地点不能为空", trigger: "blur"}
  590. ],
  591. enginTime: [
  592. {required: true, message: "工程时间不能为空", trigger: "blur"}
  593. ],
  594. hazardousWorkPitsLong: [
  595. //{required: true, message: "危险作业坑大小(长)不能为空", trigger: "blur"},
  596. {validator: checkPositiveDecimal, trigger: 'blur'},
  597. ],
  598. hazardousWorkPitsWide: [
  599. //{required: true, message: "危险作业坑大小(宽)不能为空", trigger: "blur"},
  600. {validator: checkPositiveDecimal, trigger: 'blur'},
  601. ],
  602. hazardousWorkPitsDeep: [
  603. //{required: true, message: "危险作业坑大小(深)不能为空", trigger: "blur"},
  604. {validator: checkPositiveDecimal, trigger: 'blur'},
  605. ],
  606. siteHeadPhone: [
  607. // {required: true, message: "现场负责人电话不能为空", trigger: "blur"}
  608. {validator: validPhoneMobile, trigger: 'blur'},
  609. ],
  610. /* pipeDiameter: [
  611. {required: true, message: "管径不能为空", trigger: "blur"}
  612. ],
  613. tubularProduct: [
  614. {required: true, message: "管材不能为空", trigger: "blur"}
  615. ],
  616. casingPresent: [
  617. {required: true, message: "是否存在套管不能为空", trigger: "blur"}
  618. ],
  619. pipePressure: [
  620. {required: true, message: "管道压力不能为空", trigger: "blur"}
  621. ],
  622. gasSourceDirection: [
  623. {required: true, message: "气源方向不能为空", trigger: "blur"}
  624. ],
  625. taskPosition: [
  626. {required: true, message: "作业位置不能为空", trigger: "blur"}
  627. ],
  628. valvePosition: [
  629. {required: true, message: "与作业相关阀门位置不能为空", trigger: "blur"}
  630. ],
  631. stressReport: [
  632. {required: true, message: "压力报告不能为空", trigger: "blur"}
  633. ],
  634. supervisionRecord: [
  635. {required: true, message: "监理旁站记录不能为空", trigger: "blur"}
  636. ],
  637. workContactForm: [
  638. {required: true, message: "工作联系单不能为空", trigger: "blur"}
  639. ],
  640. linePatrolConfirmationForm: [
  641. {required: true, message: "巡线确认单不能为空", trigger: "blur"}
  642. ],
  643. hazardousWorkPitsLong: [
  644. {required: true, message: "危险作业坑大小(长)不能为空", trigger: "blur"}
  645. ],
  646. hazardousWorkPitsWide: [
  647. {required: true, message: "危险作业坑大小(宽)不能为空", trigger: "blur"}
  648. ],
  649. hazardousWorkPitsDeep: [
  650. {required: true, message: "危险作业坑大小(深)不能为空", trigger: "blur"}
  651. ],
  652. needSupport: [
  653. {required: true, message: "是否需要支护不能为空", trigger: "blur"}
  654. ],
  655. otherPipelineConditionsWorkPit: [
  656. {required: true, message: "作业坑内其他管道情况不能为空", trigger: "blur"}
  657. ],
  658. siteHead: [
  659. {required: true, message: "现场负责人不能为空", trigger: "blur"}
  660. ],
  661. siteHeadPhone: [
  662. {required: true, message: "现场负责人电话不能为空", trigger: "blur"}
  663. ],
  664. operatorInformation: [
  665. {required: true, message: "作业人员信息不能为空", trigger: "blur"}
  666. ],
  667. inspectionPort: [
  668. {required: true, message: "检口不能为空", trigger: "blur"}
  669. ],
  670. pipelinePainting: [
  671. {required: true, message: "管道刷油不能为空", trigger: "blur"}
  672. ],
  673. pipelineSupport: [
  674. {required: true, message: "管道支护不能为空", trigger: "blur"}
  675. ],
  676. pipelineCorrosionProtection: [
  677. {required: true, message: "管道防腐不能为空", trigger: "blur"}
  678. ],
  679. masonryValveWell: [
  680. {required: true, message: "砌筑阀门井不能为空", trigger: "blur"}
  681. ],
  682. protectionWell: [
  683. {required: true, message: "保护井不能为空", trigger: "blur"}
  684. ],
  685. pipeProtectionWelMasonry: [
  686. {required: true, message: "管件保护井砌筑不能为空", trigger: "blur"}
  687. ],
  688. backfill: [
  689. {required: true, message: "回填不能为空", trigger: "blur"}
  690. ],
  691. tamp: [
  692. {required: true, message: "夯实不能为空", trigger: "blur"}
  693. ],
  694. levelingTheSite: [
  695. {required: true, message: "平整场地不能为空", trigger: "blur"}
  696. ],*/
  697. },
  698. // 节点规则校验
  699. /* nodeRules: {
  700. type: [
  701. {required: true, message: "节点类型不能为空", trigger: 'blur'}
  702. ],
  703. constructAddre: [
  704. {required: true, message: "施工地址不能为空", trigger: 'blur'}
  705. ],
  706. constructPhone: [
  707. {required: true, message: "施工人电话不能为空", trigger: 'blur'}
  708. ],
  709. constructUser: [
  710. {required: true, message: "施工人不能为空", trigger: 'blur'}
  711. ],
  712. headName: [
  713. {required: true, message: "负责人不能为空", trigger: 'blur'}
  714. ],
  715. headPhone: [
  716. {required: true, message: "负责人电话不能为空", trigger: 'blur'}
  717. ],
  718. },*/
  719. //备用
  720. /* nodesRule:{
  721. zEngiineeringPhotoBoList: [
  722. {required: true, message: "图片不能为空", trigger: 'blur'}
  723. ],
  724. constructTime: [
  725. {required: true, message: "施工时间不能为空", trigger: 'blur'}
  726. ],
  727. },*/
  728. //备用
  729. currentType: null, // 组件类型 put修改 add新增
  730. };
  731. },
  732. created() {
  733. this.getList();
  734. },
  735. methods: {
  736. submitForm() {
  737. this.$refs["form"].validate(valid => {
  738. if (valid) {
  739. this.buttonLoading = true;
  740. if (this.form.id != null) {
  741. this.form.files = this.$refs.obsFileUpload.fileList
  742. updateEngineeringDangerous(this.form).then(response => {
  743. this.$modal.msgSuccess("修改成功");
  744. this.open = false;
  745. this.getList();
  746. }).finally(() => {
  747. this.buttonLoading = false;
  748. });
  749. } else {
  750. this.form.files = this.$refs.obsFileUpload.fileList
  751. addEngineeringDangerous(this.form).then(response => {
  752. this.$modal.msgSuccess("新增成功");
  753. this.open = false;
  754. this.getList();
  755. }).finally(() => {
  756. this.buttonLoading = false;
  757. });
  758. }
  759. }
  760. });
  761. },
  762. //备用
  763. /* openNode(){
  764. this.$refs["form"].validate(valid => {
  765. if (valid){
  766. this.openNodeForm=true
  767. console.log(this.form.id)
  768. if (this.form.id !== undefined){
  769. getEngineeringDangerous(this.form.id).then((res)=>{
  770. console.log(res.data)
  771. this.zEngineeringInfoBo = res.data.zEngineeringNodeBoList[0].zEngineeringInfoBoList[0]
  772. this.nodeType = res.data.zEngineeringNodeBoList[0].type
  773. })
  774. }
  775. }
  776. })
  777. },
  778. nodeCancel(){
  779. this.resetNodeForm()
  780. this.openNodeForm = false
  781. },
  782. resetNodeForm(){
  783. this.$refs['nodeForm'].resetFields()
  784. this.resetForm("nodeForm");
  785. },
  786. submitForm() {
  787. this.$refs["nodeForm"].validate(valid => {
  788. if (valid) {
  789. if (this.form.id == null) {
  790. this.form.zEngineeringNodeBo = {}
  791. this.form.zEngineeringNodeBo.zEngineeringInfoBo = this.zEngineeringInfoBo
  792. this.form.zEngineeringNodeBo.type = this.nodeType
  793. this.form.files = this.$refs.obsFileUpload.fileList
  794. this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo = []
  795. console.log(this.form)
  796. addEngineeringDangerous(this.form).then(res => {
  797. this.$modal.msgSuccess("新增成功");
  798. this.open = false;
  799. this.openNodeForm = false
  800. this.getList();
  801. })
  802. } else {
  803. // 危险修改
  804. this.form.zEngineeringNodeBo = {}
  805. this.form.zEngineeringNodeBo.zEngineeringInfoBo = this.zEngineeringInfoBo
  806. this.form.zEngineeringNodeBo.type = this.nodeType
  807. this.form.files = this.$refs.obsFileUpload.fileList
  808. this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo = []
  809. updateEngineeringDangerous(this.form).then(res => {
  810. this.$modal.msgSuccess("修改成功");
  811. this.open = false;
  812. this.openNodeForm = false
  813. this.getList();
  814. })
  815. }
  816. }
  817. });
  818. },*/
  819. //备用
  820. viewSource(e) {
  821. this.currentId = e.id
  822. this.$refs.ConstructionDetails.open(_, "危险作业工程")
  823. },
  824. viewNodeSource(e) {
  825. // todo: 获取数据
  826. queryEngineeringDangerous({
  827. id: this.currentId
  828. }).then(res => {
  829. try {
  830. this.currentCollapses = res.data.zEngineeringNodeBoList[0].zEngineeringInfoBoList
  831. } catch (error) {
  832. this.currentCollapses = [];
  833. }
  834. })
  835. },
  836. closeToSucceed() {
  837. this.open = false;
  838. this.getList()
  839. },
  840. toNodeDetail() {
  841. this.$refs["form"].validate(valid => {
  842. if (valid) {
  843. if (this.currentType === 'put') {
  844. this.form.files = this.$refs.obsFileUpload.fileList
  845. this.$refs.childNode.open(this.form, 37, [{name: "危险作业工程"}])
  846. return
  847. }
  848. if (this.currentType === 'add') {
  849. this.form.files = this.$refs.obsFileUpload.fileList
  850. this.$refs.childNode.open(this.form, 3, [{name: "危险作业工程"}])
  851. return
  852. }
  853. }
  854. })
  855. /* return
  856. this.$refs['form'].validate(e => {
  857. if (e) {
  858. this.nodeDetailVisible = true
  859. }
  860. })*/
  861. },
  862. // 新增顶管工程
  863. addNewPipe(data) {
  864. this.$refs.enginPipe.openDialog({
  865. id: data.id,
  866. type: "危险作业工程"
  867. }, 'add')
  868. },
  869. getUrl(url) {
  870. this.zEngineeringInfoBo.zEngiineeringPhotoBoList = this.$refs.obsImageUpload.fileList ? this.$refs.obsImageUpload.fileList.map(e => e.url) : [];
  871. },
  872. /** 查询危险工程列表 */
  873. /* getList() {
  874. this.loading = true;
  875. listEngineeringDangerous({
  876. basicInformation: this.queryParams.basicInformation,
  877. enginName: this.queryParams.enginName,
  878. enginAddre: this.queryParams.enginAddre,
  879. params: this.queryParams
  880. }).then(res => {
  881. this.engineeringDangerousList = res.rows;
  882. this.total = res.total;
  883. this.loading = false;
  884. });
  885. },*/
  886. getList() {
  887. this.loading = true;
  888. listEngineeringDangerous(this.queryParams).then(response => {
  889. this.engineeringDangerousList = response.rows;
  890. this.total = response.total;
  891. this.loading = false;
  892. });
  893. },
  894. // 取消按钮
  895. cancel() {
  896. this.open = false;
  897. this.reset();
  898. },
  899. // 表单重置
  900. reset() {
  901. this.form = {
  902. id: undefined,
  903. basicInformation: undefined,
  904. enginName: undefined,
  905. enginAddre: undefined,
  906. enginTime: undefined,
  907. pipeDiameter: undefined,
  908. tubularProduct: undefined,
  909. casingPresent: undefined,
  910. pipePressure: undefined,
  911. gasSourceDirection: undefined,
  912. taskPosition: undefined,
  913. valvePosition: undefined,
  914. stressReport: undefined,
  915. supervisionRecord: undefined,
  916. workContactForm: undefined,
  917. linePatrolConfirmationForm: undefined,
  918. hazardousWorkPitsLong: undefined,
  919. hazardousWorkPitsWide: undefined,
  920. hazardousWorkPitsDeep: undefined,
  921. needSupport: undefined,
  922. otherPipelineConditionsWorkPit: undefined,
  923. siteHead: undefined,
  924. siteHeadPhone: undefined,
  925. operatorInformation: undefined,
  926. inspectionPort: undefined,
  927. pipelinePainting: undefined,
  928. pipelineSupport: undefined,
  929. pipelineCorrosionProtection: undefined,
  930. masonryValveWell: undefined,
  931. protectionWell: undefined,
  932. pipeProtectionWelMasonry: undefined,
  933. backfill: undefined,
  934. tamp: undefined,
  935. levelingTheSite: undefined,
  936. version: undefined,
  937. remark: undefined,
  938. delFlag: undefined,
  939. createBy: undefined,
  940. createTime: undefined,
  941. updateBy: undefined,
  942. updateTime: undefined
  943. };
  944. this.resetForm("form");
  945. },
  946. /** 搜索按钮操作 */
  947. handleQuery() {
  948. this.queryParams.pageNum = 1;
  949. this.getList();
  950. },
  951. /** 重置按钮操作 */
  952. resetQuery() {
  953. this.resetForm("queryForm");
  954. this.handleQuery();
  955. },
  956. // 多选框选中数据
  957. handleSelectionChange(selection) {
  958. this.ids = selection.map(item => item.id)
  959. this.single = selection.length !== 1
  960. this.multiple = !selection.length
  961. },
  962. /** 新增按钮操作 */
  963. handleAdd() {
  964. this.reset();
  965. this.currentType = "add"
  966. this.open = true;
  967. this.title = "添加危险工程";
  968. },
  969. /** 修改按钮操作 */
  970. handleUpdate(row) {
  971. this.loading = true;
  972. this.reset();
  973. const id = row.id || this.ids
  974. getEngineeringDangerous(id).then(response => {
  975. this.loading = false;
  976. this.form = response.data;
  977. this.currentType = "put"
  978. this.open = true;
  979. this.title = "修改危险工程";
  980. });
  981. },
  982. /** 删除按钮操作 */
  983. handleDelete(row) {
  984. const ids = row.id || this.ids;
  985. this.$modal.confirm('是否确认删除所选的数据项?').then(() => {
  986. this.loading = true;
  987. return delEngineeringDangerous(ids);
  988. }).then(() => {
  989. this.loading = false;
  990. this.getList();
  991. this.$modal.msgSuccess("删除成功");
  992. }).catch(() => {
  993. }).finally(() => {
  994. this.loading = false;
  995. });
  996. },
  997. /** 导出按钮操作 */
  998. handleExport() {
  999. this.download('zdsz/engineeringDangerous/export', {
  1000. ...this.queryParams
  1001. }, `engineeringDangerous_${new Date().getTime()}.xlsx`)
  1002. }
  1003. }
  1004. };
  1005. </script>
  1006. <style lang="scss" scoped>
  1007. ::v-deep .appendElDialog {
  1008. width: 70%;
  1009. height: 80%;
  1010. overflow: hidden;
  1011. overflow-y: scroll;
  1012. .el-dialog__body {
  1013. height: 100%;
  1014. }
  1015. //.el-form-item {
  1016. // margin-bottom: 22px;
  1017. // width: 30%;
  1018. // display: inline-block;
  1019. //}
  1020. // .el-form-item:nth-child(2n+2){
  1021. // margin-left: 5%;
  1022. // }
  1023. .el-form-item:not(:nth-child(1):nth-child(2)) {
  1024. margin-top: 0.5%;
  1025. }
  1026. .el-form-item__error{
  1027. width: 200px;
  1028. color: #ff4949;
  1029. font-size: 12px;
  1030. line-height: 1;
  1031. padding-top: 4px;
  1032. position: absolute;
  1033. top: 100%;
  1034. left: 0;
  1035. }
  1036. .remark_input {
  1037. .el-textarea__inner {
  1038. width: 238%;
  1039. height: 190px;
  1040. }
  1041. }
  1042. .otherSituation {
  1043. width: 60%;
  1044. .el-form-item__label {
  1045. width: 170px;
  1046. }
  1047. .el-form-item__content {
  1048. margin-left: 173px;
  1049. }
  1050. }
  1051. .dialog-footer {
  1052. }
  1053. }
  1054. </style>