8e788fea714efbb06e988e49bd6bc0721c51d4e2.svn-base 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231
  1. <!-- -->
  2. <template>
  3. <div>
  4. <el-row>
  5. <el-col :span="leftWidth" style="padding: 0;border-right: 1px solid #dcdfe6;"
  6. :style="{'height': colHeight + 'px'}">
  7. <el-container>
  8. <el-header style="height: 3vh;padding: 0 10px;line-height: 3vh;border-bottom:1px solid #dcdfe6;">
  9. <strong>稽察任务</strong>
  10. </el-header>
  11. <el-main style="padding:10px 0;">
  12. <el-row style="padding: 0 10px;">
  13. <el-input clearable placeholder="点击下列选项或输入关键字搜索" v-model="filterText">
  14. </el-input>
  15. </el-row>
  16. <el-row style="padding: 10px;">
  17. <el-form :inline="true" size="mini" class="demo-form-inline">
  18. <el-row>
  19. <el-col :span="24">
  20. <el-form-item label="年度">
  21. <el-select v-model="year" clearable style="width:100px;">
  22. <el-option :lable="item.year" :value="item.year" :key="item.id"
  23. v-for="item in yearList"></el-option>
  24. </el-select>
  25. </el-form-item>
  26. <el-form-item label="批次">
  27. <el-select v-model="batch" clearable style="width:100px;">
  28. <el-option :lable="item.batch" :value="item.batch" :key="item.id"
  29. v-for="item in pcList"></el-option>
  30. </el-select>
  31. </el-form-item>
  32. <el-button type="primary" size="mini" @click="treeSearch">查询</el-button>
  33. </el-col>
  34. </el-row>
  35. </el-form>
  36. </el-row>
  37. <el-row style="overflow-y:auto;padding: 0 10px;" :style="{'height': colHeight - 170 + 'px'}">
  38. <el-tree :highlight-current="true" class="filter_tree" :data="treeDataLists"
  39. :props="defaultProps" :default-expanded-keys="defaultExpanded"
  40. :filter-node-method="filterNode" node-key="id" @node-click='treeNodeClickHandler'
  41. ref="tree2">
  42. <span class="custom-tree-node" slot-scope="{ node }">
  43. <el-tooltip v-if="node.isLeaf" class="item" effect="dark" :content="node.label"
  44. placement="top-start">
  45. <span>{{ node.label }}</span>
  46. </el-tooltip>
  47. <span v-else>{{ node.label }}</span>
  48. </span>
  49. </el-tree>
  50. </el-row>
  51. </el-main>
  52. </el-container>
  53. </el-col>
  54. <el-col :span="rightWidth" style="border-right: 1px solid #dcdfe6;position:relative;"
  55. :style="{'height': colHeight + 'px'}">
  56. <el-container>
  57. <el-row style="">
  58. <Profession :reallMenuLists="reallMenuLists" :currentNodeId="currentNodeId"
  59. :projectName="projectName + stateName"
  60. @professionChildrenTableName="professionChildrenTableNameEvent">
  61. </Profession>
  62. </el-row>
  63. <el-header v-if="tbsm"
  64. style="background: #F5F9FC;height: 3.5vh;line-height:3.5vh;padding: 0;text-align:center;">
  65. <strong>填报说明</strong>
  66. </el-header>
  67. <el-header v-if="jbxxAndWtqd || isbcqd"
  68. style="background: #F5F9FC;font-size:large;height: 3.5vh;line-height:3.5vh;padding: 0;text-align:center;">
  69. <strong>{{projectName + stateName + rightTableName}} </strong>
  70. </el-header>
  71. <el-header v-if="reportTable"
  72. style="background: #F5F9FC;font-size:large;height: 3.5vh;line-height:3.5vh;padding: 0;text-align:center;">
  73. <strong>{{projectName + stateName}} </strong>
  74. </el-header>
  75. <el-main style="padding:0;overflow:hidden">
  76. <div style="position: absolute;top: 60px;right: 0;">
  77. <el-button v-if="jbxxAndWtqd && showSubmitBtn && submitStatus < 4" type="danger"
  78. style="float: right;margin-right: 20px;font-size: 14px" @click="submitProfession1">提
  79. 交(新)</el-button>
  80. <el-button v-if="jbxxAndWtqd" type="success"
  81. style="float: right;margin-right: 20px;font-size: 14px" @click="showDailyRecord">日 志
  82. </el-button>
  83. </div>
  84. <div style="text-align: right;" v-if="isHb">
  85. <el-select v-model="tbIf" clearable placeholder="请选择是否填报">
  86. <el-option v-for="(item,index) in tbIfList" :label="item.label" :value="item.value" :key="item.value"></el-option>
  87. </el-select>
  88. <el-button type="primary" @click="showBcqdFn1()">查询</el-button>
  89. <el-button type="primary" style="margin-right: 20px;font-size: 14px" @click="showBcqdFn()">生成必查清单</el-button>
  90. </div>
  91. <!-- <div style="position: absolute;top: 60px;right: 0;">
  92. <el-button v-if="isbcqd && isHb" type="primary"
  93. style="float: right;margin-right: 20px;font-size: 14px" @click="showBcqdFn">生成必查清单</el-button>
  94. </div> -->
  95. <component :is="curComponent" :type="professionType" :pertype="pertype" :objId="objId"
  96. :currentNodeId="currentNodeId" :projectName="projectName" :rightTableName="rightTableName"
  97. :tableSrc="tableSrc" :backStatus="backStatus" :hasPriv="hasPriv"
  98. :submitStatus="submitStatus" ref="componentRef" pageName="inspectionIndex"></component>
  99. <div class="assistant_btn">
  100. <!-- <el-button v-if="jbxxAndWtqd && rightTableName == '问题清单'" type="warning" style="float: right;margin-right: 20px;font-size: 14px" @click="showJobFile">生成工作底稿</el-button> -->
  101. </div>
  102. </el-main>
  103. </el-container>
  104. <div class="open_board">
  105. <i class="el-icon-arrow-left" v-if="isOpen" @click="closeLeft"></i>
  106. <i class="el-icon-arrow-right" v-else @click="openLeft"></i>
  107. </div>
  108. </el-col>
  109. </el-row>
  110. <export-allinfo-word v-if="exportWordDialog" @dialogClose="dialogClose" :rgstrId="currentNodeId"
  111. :professionType="professionType" :rightTableName="rightTableName"></export-allinfo-word>
  112. <el-dialog title="操作日志" :visible.sync="dailyRecordVisible" width="80%">
  113. <daily-record :rgstrId="currentNodeId" :professionType="professionType"></daily-record>
  114. </el-dialog>
  115. </div>
  116. </template>
  117. <script>
  118. //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  119. //例如:import 《组件名称》 from '《组件路径》';
  120. import inspectBaseinfo from './baseInfo.vue'
  121. import InstructionManual from './InstructionManual.vue'
  122. import inspectProblemList from './problemList.vue'
  123. import problemView from './problemView.vue'
  124. import Profession from './Profession';
  125. import ReportTable from './ReportTable';
  126. import exportAllinfoWord from './dialogCom/exportAllinfoWord';
  127. import dailyRecord from './dialogCom/dailyRecord';
  128. import request from '../../utils/gw_ajax_request'
  129. import pageOfficeBaseinfo from '../export/pageoffice/jc/baseinfo/baseInfo.vue'
  130. import axios from 'axios'
  131. import { hostUrl } from '@util/global_variable.js'
  132. import {
  133. getTree,
  134. getPerType,
  135. submitProfessionApi,
  136. submitProfessionTwoApi,
  137. backProfessionApi,
  138. passProfessionApi
  139. } from "../../api/InspectionReport.js";
  140. export default {
  141. //import引入的组件需要注入到对象中才能使用
  142. components: {
  143. Profession,//专业折叠面板组件
  144. ReportTable,//右侧填报表格主体
  145. inspectBaseinfo,//基本信息
  146. inspectProblemList, //问题清单
  147. InstructionManual, //填报说明
  148. exportAllinfoWord, //生成工作底稿
  149. pageOfficeBaseinfo, //PageOffice版本基础信息
  150. dailyRecord, //稽察成果操作日志信息
  151. problemView,//必查清单
  152. },
  153. data() {
  154. //这里存放数据
  155. return {
  156. stateName: '', //状态名称
  157. leftWidth: 5,
  158. rightWidth: 19,
  159. isOpen: true,
  160. tbsm: true,
  161. jbxxAndWtqd: false,
  162. reportTable: false,
  163. isbcqd: false,
  164. defaultExpanded: [],//树默认展开节点数组
  165. curComponent: "InstructionManual",
  166. professionName: '前期与设计',
  167. professionType: '',//专业类型
  168. professionChildrenTableName: {},
  169. rightTableName: '填报说明',
  170. currentNodeId: '',//点击树的节点登记表ID
  171. inspGroupId: '',//点击树的节点组ID
  172. pertype: '',//稽察填报人员类型,用于控制表格上方菜单控制
  173. objId: '',//点击树节点的objId
  174. tableSrc: '',//报表的链接
  175. menuDisNum: 'all',//用于控制表格上方菜单项的显示隐藏的数组下标
  176. projectName: '',//点击树的工程名称
  177. colHeight: window.innerHeight - 90,
  178. filterText: '',
  179. year: "",
  180. batch: "",
  181. yearList: [],
  182. pcList: [],
  183. treeDataLists: [],
  184. defaultProps: {
  185. children: 'children',
  186. label: 'pnm'
  187. },
  188. showSubmitBtn: true,
  189. backStatus: false,
  190. exportWordDialog: false,
  191. reallMenuLists: [],//菜单实际用的数组
  192. menuList: [//配置菜单用的数组
  193. {
  194. type: '1',
  195. index: '1',
  196. title: '前期与设计',
  197. menuDis: false,
  198. children: [{
  199. pType: '1',
  200. index: '1-1',
  201. title: '基本信息'
  202. }, {
  203. pType: '1',
  204. index: '1-2',
  205. title: '附件1 前期与设计基本情况',
  206. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_befor_design_basic1-1.sht&width=1526&height=592'
  207. }, {
  208. pType: '1',
  209. index: '1-3',
  210. title: '问题清单'
  211. }, {
  212. pType: '1',
  213. index: '1-4',
  214. title: '必查清单'
  215. }]
  216. },
  217. {
  218. type: '2',
  219. index: '2',
  220. title: '建设管理',
  221. menuDis: false,
  222. children: [{
  223. pType: '2',
  224. index: '2-1',
  225. title: '基本信息'
  226. }, {
  227. pType: '2',
  228. index: '2-2',
  229. title: '附件2-1 项目法人责任制',
  230. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_legal_person_duty2-1.sht&width=1526&height=592'
  231. }, {
  232. pType: '2',
  233. index: '2-3',
  234. title: '附件2-2 招标投标制',
  235. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc2_2.sht&width=1526&height=592'
  236. }, {
  237. pType: '2',
  238. index: '4',
  239. title: '附件2-3 建设监理制',
  240. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc2_3.sht&width=1526&height=592'
  241. }, {
  242. pType: '2',
  243. index: '2-5',
  244. title: '附件2-4 合同管理制',
  245. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_htglz2-4.sht&width=1526&height=592'
  246. }, {
  247. pType: '2',
  248. index: '2-6',
  249. title: '问题清单'
  250. }, {
  251. pType: '2',
  252. index: '2-7',
  253. title: '必查清单'
  254. }]
  255. },
  256. {
  257. type: '3',
  258. index: '3',
  259. title: '计划下达与执行',
  260. menuDis: false,
  261. children: [{
  262. pType: '3',
  263. index: '3-1',
  264. title: '基本信息'
  265. }, {
  266. pType: '3',
  267. index: '3-2',
  268. title: '附件3 计划下达与执行基本情况',
  269. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_plan_execute_basic3-1.sht&width=1526&height=592'
  270. }, {
  271. pType: '3',
  272. index: '3-3',
  273. title: '问题清单'
  274. }, {
  275. pType: '3',
  276. index: '3-4',
  277. title: '必查清单'
  278. }]
  279. },
  280. {
  281. type: '4',
  282. index: '4',
  283. title: '资金使用与管理',
  284. menuDis: false,
  285. children: [{
  286. pType: '4',
  287. index: '4-1',
  288. title: '基本信息'
  289. }, {
  290. pType: '4',
  291. index: '4-2',
  292. title: '附件4 资金使用与管理基本情况',
  293. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_fund_manage_basic4-1.sht&width=1526&height=592'
  294. }, {
  295. pType: '4',
  296. index: '4-3',
  297. title: '问题清单'
  298. }, {
  299. pType: '4',
  300. index: '4-4',
  301. title: '必查清单'
  302. }]
  303. },
  304. {
  305. type: '5',
  306. index: '5',
  307. title: '工程质量',
  308. menuDis: false,
  309. children: [{
  310. pType: '5',
  311. index: '5-1',
  312. title: '基本信息'
  313. }, {
  314. pType: '5',
  315. index: '5-2',
  316. title: '附件5-1 质量管理体制',
  317. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_zlgltz5-1.sht&width=1526&height=592'
  318. }, {
  319. pType: '5',
  320. index: '5-3',
  321. title: '附件5-2 工程实体质量与验收',
  322. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_project_quality_check5-2.sht&width=1526&height=592'
  323. }, {
  324. pType: '5',
  325. index: '5-4',
  326. title: '问题清单'
  327. }, {
  328. pType: '5',
  329. index: '5-5',
  330. title: '必查清单'
  331. }]
  332. },
  333. {
  334. type: '6',
  335. index: '6',
  336. title: '工程安全',
  337. menuDis: false,
  338. children: [{
  339. pType: '6',
  340. index: '6-1',
  341. title: '基本信息',
  342. }, {
  343. pType: '6',
  344. index: '6-2',
  345. title: '附件6-1 项目法人',
  346. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_project_safety_basic6-1.sht&width=1526&height=592'
  347. }, {
  348. pType: '6',
  349. index: '6-3',
  350. title: '附件6-2 施工单位',
  351. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_project_safety_basic6-2.sht&width=1526&height=592'
  352. }, {
  353. pType: '6',
  354. index: '6-4',
  355. title: '问题清单'
  356. }, {
  357. pType: '6',
  358. index: '6-5',
  359. title: '必查清单'
  360. }]
  361. },
  362. {
  363. type: '7',
  364. index: '7',
  365. title: '参建单位',
  366. menuDis: false,
  367. children: [{
  368. pType: '7',
  369. index: '7-1',
  370. title: '施工单位',
  371. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_TAC_PAWP_UNIT_SCTN_1.sht&width=1526&height=592'
  372. }, {
  373. pType: '7',
  374. index: '7-2',
  375. title: '单位管理',
  376. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_TAC_PAWP_UNIT_SCTN_2.sht&width=1526&height=592'
  377. },
  378. // {
  379. // pType: '7',
  380. // index: '7-3',
  381. // title: '必查清单'
  382. // }
  383. ]
  384. },
  385. // {
  386. // type:'8',
  387. // index:'8',
  388. // title:'稽察报告',
  389. // menuDis:false,
  390. // reportSrc:'/demo/reportJsp/showReport.jsp?rpx=js_TAC_OUTLINE_WORD&width=800&height=592'
  391. // },
  392. ],
  393. menuLists: [],
  394. menuListForFujian: [
  395. {
  396. type: '1',
  397. index: '1',
  398. title: '前期与设计',
  399. menuDis: false,
  400. children: [{
  401. pType: '1',
  402. index: '1-1',
  403. title: '表二 基本情况'
  404. }, {
  405. pType: '1',
  406. index: '1-3',
  407. title: '表三 主要问题'
  408. }]
  409. },
  410. {
  411. type: '2',
  412. index: '2',
  413. title: '建设管理',
  414. menuDis: false,
  415. children: [{
  416. pType: '2',
  417. index: '2-1',
  418. title: '表二 基本情况'
  419. }, {
  420. pType: '2',
  421. index: '2-6',
  422. title: '表三 主要问题'
  423. }]
  424. },
  425. {
  426. type: '3',
  427. index: '3',
  428. title: '计划下达与执行',
  429. menuDis: false,
  430. children: [{
  431. pType: '3',
  432. index: '3-1',
  433. title: '表二 基本情况'
  434. }, {
  435. pType: '3',
  436. index: '3-3',
  437. title: '表三 主要问题'
  438. }]
  439. },
  440. {
  441. type: '4',
  442. index: '4',
  443. title: '资金使用与管理',
  444. menuDis: false,
  445. children: [{
  446. pType: '4',
  447. index: '4-1',
  448. title: '表二 基本情况'
  449. }, {
  450. pType: '4',
  451. index: '4-3',
  452. title: '表三 主要问题'
  453. }]
  454. },
  455. {
  456. type: '5',
  457. index: '5',
  458. title: '工程质量',
  459. menuDis: false,
  460. children: [{
  461. pType: '5',
  462. index: '5-1',
  463. title: '表二 基本情况'
  464. }, {
  465. pType: '5',
  466. index: '5-4',
  467. title: '表三 主要问题'
  468. }]
  469. },
  470. {
  471. type: '6',
  472. index: '6',
  473. title: '工程安全',
  474. menuDis: false,
  475. children: [{
  476. pType: '6',
  477. index: '6-1',
  478. title: '表二 基本情况'
  479. }, {
  480. pType: '6',
  481. index: '6-4',
  482. title: '表三 主要问题'
  483. }]
  484. },
  485. {
  486. type: '7',
  487. index: '7',
  488. title: '参建单位',
  489. menuDis: false,
  490. children: [{
  491. pType: '7',
  492. index: '7-1',
  493. title: '施工单位',
  494. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_TAC_PAWP_UNIT_SCTN_1.sht&width=1526&height=592'
  495. }, {
  496. pType: '7',
  497. index: '7-2',
  498. title: '单位管理',
  499. reportSrc: '/demo/reportJsp/showInput.jsp?sht=jc_TAC_PAWP_UNIT_SCTN_2.sht&width=1526&height=592'
  500. }]
  501. }
  502. ],
  503. // 青海专属菜单
  504. menuListForQinghai: [
  505. {
  506. type: '1',
  507. index: '1',
  508. title: '前期与设计',
  509. menuDis: false,
  510. children: [{
  511. pType: '1',
  512. index: '1-1',
  513. title: '基本信息'
  514. }, {
  515. pType: '1',
  516. index: '1-2',
  517. title: '附件1 前期与设计基本情况',
  518. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_befor_design_basic1-1.sht&width=1526&height=592'
  519. }, {
  520. pType: '1',
  521. index: '1-3',
  522. title: '问题清单'
  523. }, {
  524. pType: '1',
  525. index: '1-4',
  526. title: '必查清单'
  527. }]
  528. },
  529. {
  530. type: '2',
  531. index: '2',
  532. title: '建设管理',
  533. menuDis: false,
  534. children: [{
  535. pType: '2',
  536. index: '2-1',
  537. title: '基本信息'
  538. }, {
  539. pType: '2',
  540. index: '2-2',
  541. title: '附件2-1 项目法人责任制',
  542. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_legal_person_duty2-1.sht&width=1526&height=592'
  543. }, {
  544. pType: '2',
  545. index: '2-3',
  546. title: '附件2-2 招标投标制',
  547. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc2_2.sht&width=1526&height=592'
  548. }, {
  549. pType: '2',
  550. index: '4',
  551. title: '附件2-3 建设监理制',
  552. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc2_3.sht&width=1526&height=592'
  553. }, {
  554. pType: '2',
  555. index: '2-5',
  556. title: '附件2-4 合同管理制',
  557. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_htglz2-4.sht&width=1526&height=592'
  558. }, {
  559. pType: '2',
  560. index: '2-6',
  561. title: '问题清单'
  562. }, {
  563. pType: '2',
  564. index: '2-7',
  565. title: '必查清单'
  566. }]
  567. },
  568. {
  569. type: '3',
  570. index: '3',
  571. title: '计划下达与执行',
  572. menuDis: false,
  573. children: [{
  574. pType: '3',
  575. index: '3-1',
  576. title: '基本信息'
  577. }, {
  578. pType: '3',
  579. index: '3-2',
  580. title: '附件3 计划下达与执行基本情况',
  581. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_plan_execute_basic3-1.sht&width=1526&height=592'
  582. }, {
  583. pType: '3',
  584. index: '3-3',
  585. title: '问题清单'
  586. }, {
  587. pType: '3',
  588. index: '3-4',
  589. title: '必查清单'
  590. }]
  591. },
  592. {
  593. type: '4',
  594. index: '4',
  595. title: '资金使用与管理',
  596. menuDis: false,
  597. children: [{
  598. pType: '4',
  599. index: '4-1',
  600. title: '基本信息'
  601. }, {
  602. pType: '4',
  603. index: '4-2',
  604. title: '附件4-1 资金使用与管理基本情况',
  605. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_fund_manage_basic4-1.sht&width=1526&height=592'
  606. }, {
  607. pType: '4',
  608. index: '4-3',
  609. title: '附件4-2 资金使用明细表',
  610. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_fund_manage_basic4-2.sht&width=1526&height=592'
  611. }, {
  612. pType: '4',
  613. index: '4-4',
  614. title: '附件4-3 待摊投资明细表',
  615. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_fund_manage_basic4-3.sht&width=1526&height=592'
  616. }, {
  617. pType: '4',
  618. index: '4-5',
  619. title: '问题清单'
  620. }, {
  621. pType: '4',
  622. index: '4-6',
  623. title: '必查清单'
  624. }]
  625. },
  626. {
  627. type: '5',
  628. index: '5',
  629. title: '工程质量',
  630. menuDis: false,
  631. children: [{
  632. pType: '5',
  633. index: '5-1',
  634. title: '基本信息'
  635. },
  636. // {
  637. // pType: '5',
  638. // index: '5-2',
  639. // title: '附件5-1 质量管理体制',
  640. // reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_zlgltz5-1.sht&width=1526&height=592'
  641. // },
  642. {
  643. pType: '5',
  644. index: '5-2',
  645. title: '附件5-1-1工程质量基本情况表-质量管理体制-项目法人',
  646. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_zlgltz5-1-1.sht&width=1526&height=592'
  647. },
  648. {
  649. pType: '5',
  650. index: '5-3',
  651. title: '附件5-1-2工程质量基本情况表-质量管理体制-质量监督单位',
  652. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_zlgltz5-1-2.sht&width=1526&height=592'
  653. },
  654. {
  655. pType: '5',
  656. index: '5-4',
  657. title: '附件5-1-3工程质量基本情况表-质量管理体制-监理单位',
  658. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_zlgltz5-1-3.sht&width=1526&height=592'
  659. },
  660. {
  661. pType: '5',
  662. index: '5-5',
  663. title: '附件5-1-4工程质量基本情况表-质量管理体制-监理单位施工单位',
  664. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_zlgltz5-1-4.sht&width=1526&height=592'
  665. },
  666. {
  667. pType: '5',
  668. index: '5-3',
  669. title: '附件5-2 工程实体质量与验收',
  670. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_project_quality_check5-2.sht&width=1526&height=592'
  671. }, {
  672. pType: '5',
  673. index: '5-4',
  674. title: '问题清单'
  675. }, {
  676. pType: '5',
  677. index: '5-5',
  678. title: '必查清单'
  679. }]
  680. },
  681. {
  682. type: '6',
  683. index: '6',
  684. title: '工程安全',
  685. menuDis: false,
  686. children: [{
  687. pType: '6',
  688. index: '6-1',
  689. title: '基本信息',
  690. }, {
  691. pType: '6',
  692. index: '6-2',
  693. title: '附件6-1 项目法人',
  694. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_project_safety_basic6-1.sht&width=1526&height=592'
  695. }, {
  696. pType: '6',
  697. index: '6-3',
  698. title: '附件6-2 施工单位',
  699. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_project_safety_basic6-2.sht&width=1526&height=592'
  700. }, {
  701. pType: '6',
  702. index: '6-4',
  703. title: '附件6-3 监理单位',
  704. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_project_safety_basic6-3.sht&width=1526&height=592'
  705. }, {
  706. pType: '6',
  707. index: '6-5',
  708. title: '附件6-4 设计单位',
  709. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_project_safety_basic6-4.sht&width=1526&height=592'
  710. }, {
  711. pType: '6',
  712. index: '6-6',
  713. title: '附件6-5 其他单位',
  714. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_project_safety_basic6-5.sht&width=1526&height=592'
  715. }, {
  716. pType: '6',
  717. index: '6-7',
  718. title: '问题清单'
  719. }, {
  720. pType: '6',
  721. index: '6-8',
  722. title: '必查清单'
  723. }]
  724. },
  725. {
  726. type: '7',
  727. index: '7',
  728. title: '参建单位',
  729. menuDis: false,
  730. children: [
  731. // {
  732. // pType: '7',
  733. // index: '7-1',
  734. // title: '施工单位',
  735. // reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_TAC_PAWP_UNIT_SCTN_1.sht&width=1526&height=592'
  736. // },
  737. {
  738. pType: '7',
  739. index: '7-2',
  740. title: '单位管理',
  741. reportSrc: '/demo/reportJsp/showInput.jsp?sht=qinghai/jc_TAC_PAWP_UNIT_SCTN_2.sht&width=1526&height=592'
  742. },
  743. // {
  744. // pType: '7',
  745. // index: '7-3',
  746. // title: '必查清单'
  747. // }
  748. ]
  749. }
  750. ],
  751. submitStatus: '',
  752. dailyRecordVisible: false, //操作日志弹窗
  753. isClicked: false,
  754. tbIf:'',
  755. tbIfList:[
  756. {label: '全部',value: ''},
  757. {label: '未填报',value: '0'},
  758. {label: '已填报',value: '1'}
  759. ]
  760. };
  761. },
  762. //监听属性 类似于data概念
  763. computed: {
  764. persId() {
  765. return localStorage.getItem("userid")
  766. ? localStorage.getItem("userid")
  767. : "1098101939614724096";
  768. },
  769. hasPriv() {
  770. return this.ownPriv('manage')
  771. },
  772. isHb(){
  773. if(localStorage.getItem('currentRlcode').substring(0,2)=="42"){
  774. return true;
  775. }else{
  776. return false;
  777. }
  778. }
  779. },
  780. //监控data中的数据变化
  781. watch: {
  782. filterText(val) {
  783. this.$refs.tree2.filter(val);
  784. },
  785. professionName(n, o) {
  786. this.professionName = n;
  787. },
  788. professionType(n, o) {
  789. this.professionType = n;
  790. // 在已选择工程的状态下,当专业切换的时候也要获取下各自专业的状态
  791. this.getSubmitStatus();
  792. },
  793. },
  794. //方法集合
  795. methods: {
  796. async getYearPc() {
  797. await request.post(`/tac/insp/year/list`, {}).then(res => {
  798. if (res.success) {
  799. this.$nextTick(() => {
  800. this.yearList = res.data;
  801. })
  802. }
  803. })
  804. request.post(`/tac/insp/batch/list`, {}).then(res => {
  805. if (res.success) {
  806. this.pcList = res.data;
  807. }
  808. })
  809. },
  810. filterNode(value, data) {
  811. if (!value) return true;
  812. return data.pnm.indexOf(value) !== -1;
  813. },
  814. //获取左侧树数据
  815. getTreeData: function () {
  816. let _self = this;
  817. // getTree('008','1').then((res)=>{
  818. // _self.treeDataLists = res.data[0].children;
  819. // // 默认隐藏到批次
  820. // _self.treeDataLists.forEach((element) => {
  821. // _self.defaultExpanded.push(element.id);
  822. // });
  823. // });
  824. // _self.defaultExpanded.unshift("008");
  825. // request.post(`/tac/insp/year/batch/obj/getObjTreeList`,{"persId": "363f0a52df6943189af9bced98a875f6"}).then(res =>{
  826. request.post(`/tac/insp/year/batch/obj/getObjTreeListV2`, {
  827. "persId": _self.persId,
  828. "year": _self.year,
  829. "batch": _self.batch
  830. }).then(res => {
  831. _self.treeDataLists = res.data.children;
  832. })
  833. },
  834. //左侧树搜索
  835. treeSearch() {
  836. this.getTreeData();
  837. },
  838. // 固定阶段时阶段定义。已转至新阶段,注释此处
  839. // getStateName(dataState){
  840. // if(Number(dataState) > 2){
  841. // switch (dataState) {
  842. // case "3":
  843. // this.stateName = "(助理退回给专家)";
  844. // break;
  845. // case "4":
  846. // this.stateName = "(专家提交到助理)";
  847. // break;
  848. // case "5":
  849. // this.stateName = "(成果讨论阶段)";
  850. // break;
  851. // case "6":
  852. // this.stateName = "(中心修改阶段)";
  853. // break;
  854. // case "7":
  855. // this.stateName = "(司局修改阶段)";
  856. // break;
  857. // default:
  858. // this.stateName = '';
  859. // break;
  860. // }
  861. // }else{
  862. // this.stateName = '';
  863. // }
  864. // },
  865. //树节点点击事件
  866. treeNodeClickHandler: function (data, node, tree) {
  867. if (node.childNodes.length == 0) {
  868. console.log(node.parent.data.pid)
  869. let dataState = node.data.state;
  870. // 其实这一步不用也行,因为这里返回的是总的状态,点击专业的时候会再调用一次获取状态的接口
  871. // this.getStateName(dataState);
  872. // this.stateName = node.data.stateName;
  873. this.projectName = data.pnm;
  874. this.currentNodeId = data.id;
  875. this.objId = data.objId;
  876. this.inspGroupId = node.parent.data.pid;
  877. this.reallMenuLists = [];
  878. this.getMenu(dataState);
  879. // 在已选择专业的情况下 切换工程重新获取提交状态
  880. if (this.professionType) {
  881. this.getSubmitStatus()
  882. this.$nextTick(()=>{
  883. this.showBcqdFn1()
  884. })
  885. }
  886. } else {
  887. return;
  888. }
  889. },
  890. getMenu: function (dataState) {
  891. let _self = this;
  892. let thisType = true;
  893. getPerType(_self.inspGroupId, _self.persId).then((res) => {
  894. console.log(res);
  895. _self.pertype = res.data.pertype;
  896. res.data.forEach(ele => {
  897. if (ele.pertype == '11' || ele.pertype == '12' || ele.pertype == '13' || ele.pertype == '14' || ele.pertype == '15' || ele.pertype == '16') {
  898. _self.reallMenuLists.push(_self.menuLists[Number(ele.pertype) - 11]);
  899. thisType = true;
  900. } else {
  901. _self.reallMenuLists = _self.menuLists;
  902. // if(dataState > 2){
  903. // _self.currentNodeId += "_4";
  904. // }
  905. thisType = false;
  906. return;
  907. }
  908. })
  909. if (thisType) {
  910. _self.reallMenuLists.push(_self.menuLists[6]);
  911. if (_self.menuLists[7]) {
  912. _self.reallMenuLists.push(_self.menuLists[7]);
  913. }
  914. }
  915. console.log(_self.reallMenuLists);
  916. // 11:前期专家;12:监管专家;13:计划专家;14:财务专家;15:质量专家;16:安全专家;
  917. // if(_self.pertype == '11'){
  918. // _self.menuDisNum = '0';
  919. // }else if(_self.pertype == '12'){
  920. // _self.menuDisNum = '1';
  921. // }else if(_self.pertype == '13'){
  922. // _self.menuDisNum = '2';
  923. // }else if(_self.pertype == '14'){
  924. // _self.menuDisNum = '3';
  925. // }else if(_self.pertype == '15'){
  926. // _self.menuDisNum = '4';
  927. // }else if(_self.pertype == '16'){
  928. // _self.menuDisNum = '5';
  929. // }else{
  930. // _self.menuDisNum = '';
  931. // }
  932. // if(_self.pertype == '11' || _self.pertype == '12' || _self.pertype == '13' || _self.pertype == '14' || _self.pertype == '15' || _self.pertype == '16'){
  933. // this.showSubmitBtn = true
  934. // }else{
  935. // this.showSubmitBtn = false
  936. // }
  937. });
  938. },
  939. getSubmitStatus() {
  940. request.get(`/tac/pawp/rgstr/getState/${this.currentNodeId}/${this.professionType}`).then(res => {
  941. ;
  942. if (res.success) {
  943. this.submitStatus = res.data.state;
  944. // 获取下状态名称
  945. this.stateName = res.data.stateName;
  946. // this.getStateName(res.data.state)
  947. } else {
  948. this.$message.error(res.message)
  949. }
  950. })
  951. },
  952. //中间专业导航后处理
  953. professionChildrenTableNameEvent(item) {
  954. this.professionChildrenTableName = item;
  955. if (this.professionChildrenTableName.hasOwnProperty('tableSrc')) {
  956. this.tableSrc = this.professionChildrenTableName.tableSrc;
  957. }
  958. if (this.professionChildrenTableName.tableName == '基本信息' || this.professionChildrenTableName.tableName.indexOf('表二 基本情况') > -1) {
  959. this.rightTableName = '基本情况'
  960. this.professionType = item.type;//专业类型
  961. // this.curComponent = inspectBaseinfo;
  962. this.curComponent = pageOfficeBaseinfo;
  963. this.tbsm = false;
  964. this.jbxxAndWtqd = true;
  965. this.reportTable = false;
  966. this.isbcqd = false;
  967. } else if (this.professionChildrenTableName.tableName == '问题清单' || this.professionChildrenTableName.tableName.indexOf('问题') > -1) {
  968. this.rightTableName = '问题清单'
  969. this.professionType = item.type;//专业类型
  970. this.curComponent = inspectProblemList;
  971. this.tbsm = false;
  972. this.jbxxAndWtqd = true;
  973. this.reportTable = false;
  974. this.isbcqd = false;
  975. } else if (this.professionChildrenTableName.tableName == '必查清单' ) {
  976. this.rightTableName = '必查清单'
  977. this.professionType = item.type;//专业类型
  978. this.curComponent = problemView;
  979. this.tbsm = false;
  980. this.jbxxAndWtqd = false;
  981. this.reportTable = false;
  982. this.isbcqd = true;
  983. this.$nextTick(()=>{
  984. this.showBcqdFn1()
  985. })
  986. }else {
  987. this.rightTableName = ''
  988. this.professionType = item.type;//专业类型
  989. this.curComponent = ReportTable;
  990. this.tbsm = false;
  991. this.jbxxAndWtqd = false;
  992. this.reportTable = true;
  993. this.isbcqd = false;
  994. }
  995. this.getSubmitStatus()
  996. },
  997. // 专家提交工作底稿(测试)
  998. submitProfession1() {
  999. this.$confirm('提交后,您将无法操作问题清单,如需继续操作问题清单,请联系助理驳回。请问您是否确定提交?', '提示', {
  1000. confirmButtonText: '确定',
  1001. cancelButtonText: '取消',
  1002. type: 'warning'
  1003. }).then(() => {
  1004. if (this.isClicked) {
  1005. return false
  1006. }
  1007. this.isClicked = true
  1008. submitProfessionTwoApi(this.currentNodeId, this.professionType).then(res => {
  1009. if (res.success) {
  1010. this.$message.success('提交成功')
  1011. this.getSubmitStatus()
  1012. } else {
  1013. this.$message.warning(res.message)
  1014. }
  1015. this.isClicked = false
  1016. }).catch(err => {
  1017. this.$message.success(err)
  1018. this.isClicked = false
  1019. })
  1020. })
  1021. },
  1022. // 专家提交工作底稿
  1023. submitProfession() {
  1024. this.$confirm('提交后,您将无法操作问题清单,如需继续操作问题清单,请联系助理驳回。请问您是否确定提交?', '提示', {
  1025. confirmButtonText: '确定',
  1026. cancelButtonText: '取消',
  1027. type: 'warning'
  1028. }).then(() => {
  1029. if (this.isClicked) {
  1030. return false
  1031. }
  1032. this.isClicked = true
  1033. submitProfessionApi(this.currentNodeId, this.professionType).then(res => {
  1034. if (res.success) {
  1035. this.$message.success('提交成功')
  1036. this.getSubmitStatus()
  1037. } else {
  1038. this.$message.warning(res.message)
  1039. }
  1040. this.isClicked = false
  1041. }).catch(err => {
  1042. this.$message.success(err)
  1043. this.isClicked = false
  1044. })
  1045. })
  1046. },
  1047. // 助理退回工作底稿
  1048. backProfession() {
  1049. backProfessionApi(this.currentNodeId, this.professionType).then(res => {
  1050. if (res.success) {
  1051. this.$message.success('提交成功')
  1052. this.backStatus = true
  1053. } else {
  1054. this.$message.warning(res.message)
  1055. }
  1056. }).catch(err => {
  1057. this.$message.success(err)
  1058. })
  1059. },
  1060. // 助理通过工作底稿
  1061. passProfession() {
  1062. passProfessionApi(this.currentNodeId, this.professionType).then(res => {
  1063. if (res.success) {
  1064. this.$message.success('提交成功')
  1065. } else {
  1066. this.$message.warning(res.message)
  1067. }
  1068. }).catch(err => {
  1069. this.$message.success(err)
  1070. })
  1071. },
  1072. showJobFile() {
  1073. // this.exportWordDialog = true
  1074. this.isUsePo()
  1075. },
  1076. dialogClose() {
  1077. this.exportWordDialog = false
  1078. },
  1079. isUsePo() {
  1080. // 是否启用PageOffice
  1081. let _this = this;
  1082. axios.defaults.timeout = 2000;
  1083. axios.get('/pageofficePath/pageoffice/getUsePo').then((res) => {
  1084. let data = res.data
  1085. if (data.isUse == 'true') {
  1086. _this.exportWordDialog = false
  1087. // 打开PageOffice
  1088. _this.openPageoffice()
  1089. } else {
  1090. _this.exportWordDialog = true
  1091. }
  1092. }).catch(function (err) {
  1093. _this.exportWordDialog = true
  1094. })
  1095. },
  1096. openPageoffice: function () {
  1097. let host = hostUrl;
  1098. let nginx = '/pageofficePath/';
  1099. let rgstrId = this.currentNodeId;
  1100. let type = "20" + this.professionType;
  1101. let persId = this.persId;
  1102. let href = 'pageoffice://|' + host + nginx + '/pageoffice/pblmlist/word/' + type + '/' + rgstrId + '?persId=' + persId + '|width=1100px;height=800px;ismodal=false;||91A4EE66EC1921F376873E85D6C74FFA|A890649B44577C32CE1930797E1299F9';
  1103. let a = document.createElement('a'); // 创建a标签
  1104. a.setAttribute('href', href);// href链接
  1105. a.click();// 自执行点击事件
  1106. console.log(href)
  1107. },
  1108. closeLeft() {
  1109. this.isOpen = false
  1110. this.leftWidth = 0
  1111. this.rightWidth = 24
  1112. },
  1113. openLeft() {
  1114. this.isOpen = true
  1115. this.leftWidth = 5
  1116. this.rightWidth = 19
  1117. },
  1118. // 展示操作日志
  1119. showDailyRecord() {
  1120. this.dailyRecordVisible = true
  1121. },
  1122. showBcqdFn(){
  1123. if(!this.currentNodeId){
  1124. this.$message.warning('请先在左侧选择工程!');
  1125. return
  1126. }
  1127. if(!this.professionType){
  1128. this.$message.warning('请选择专业类型');
  1129. return
  1130. }
  1131. this.$refs.componentRef.getProblemList(this.tbIf)
  1132. },
  1133. showBcqdFn1(){
  1134. if(!this.currentNodeId){
  1135. this.$message.warning('请先在左侧选择工程!');
  1136. return
  1137. }
  1138. if(!this.professionType){
  1139. this.$message.warning('请选择专业类型');
  1140. return
  1141. }
  1142. this.$refs.componentRef.getProblemList1(this.tbIf)
  1143. }
  1144. },
  1145. //生命周期 - 创建完成(可以访问当前this实例)
  1146. created() {
  1147. },
  1148. //生命周期 - 挂载完成(可以访问DOM元素)
  1149. mounted() {
  1150. this.getTreeData();
  1151. //this.getMenu();
  1152. let currentOrgId = localStorage.getItem("currentOrgId") || ''
  1153. if (currentOrgId == '034') {
  1154. // 福建专属菜单
  1155. this.menuLists = this.menuListForFujian;
  1156. this.reallMenuLists = this.menuListForFujian;
  1157. } else if (currentOrgId == '063') {
  1158. // 青海专属菜单
  1159. this.menuLists = this.menuListForQinghai;
  1160. this.reallMenuLists = this.menuListForQinghai;
  1161. } else {
  1162. if(!this.isHb){
  1163. this.menuList.forEach((item,index)=>{
  1164. let newArr = item.children.filter(function(item,index){
  1165. return item.title != '必查清单';
  1166. })
  1167. item.children = newArr
  1168. })
  1169. }
  1170. this.menuLists = this.menuList;
  1171. this.reallMenuLists = this.menuLists;
  1172. }
  1173. this.getYearPc();
  1174. },
  1175. beforeCreate() { }, //生命周期 - 创建之前
  1176. beforeMount() { }, //生命周期 - 挂载之前
  1177. beforeUpdate() { }, //生命周期 - 更新之前
  1178. updated() { }, //生命周期 - 更新之后
  1179. beforeDestroy() { }, //生命周期 - 销毁之前
  1180. destroyed() { }, //生命周期 - 销毁完成
  1181. activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发
  1182. }
  1183. </script>
  1184. <style lang="scss">
  1185. .filter_tree {
  1186. .el-tree-node__label {
  1187. color: #666;
  1188. font-size: large;
  1189. }
  1190. }
  1191. .filter_tree.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  1192. background-color: #c7e9fe;
  1193. }
  1194. .assistant_btn {
  1195. position: absolute;
  1196. bottom: -10px;
  1197. right: 20px;
  1198. z-index: 999;
  1199. }
  1200. .open_board {
  1201. position: absolute;
  1202. bottom: 0;
  1203. left: 0;
  1204. width: 24px;
  1205. height: 30px;
  1206. line-height: 30px;
  1207. border: solid 1px #ddd;
  1208. border-top-right-radius: 5px;
  1209. border-bottom-right-radius: 5px;
  1210. text-align: center;
  1211. background-color: #bbebff;
  1212. cursor: pointer;
  1213. }
  1214. </style>