meetingList.vue 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. v-if="type === '1'"
  5. :model="queryParams"
  6. ref="queryForm"
  7. size="small"
  8. :inline="true"
  9. v-show="showSearch"
  10. label-width="70px"
  11. >
  12. <el-form-item label="会议主题" prop="meetingTheme">
  13. <el-input
  14. v-model.trim="queryParams.meetingTheme"
  15. placeholder="请输入会议主题"
  16. clearable
  17. @keyup.enter.native="handleQuery"
  18. />
  19. </el-form-item>
  20. <el-form-item label="会议编号" prop="meetingCode">
  21. <el-input
  22. v-model.trim="queryParams.meetingCode"
  23. placeholder="请输入会议编号"
  24. clearable
  25. @keyup.enter.native="handleQuery"
  26. />
  27. </el-form-item>
  28. <el-form-item label="会议类别" prop="meetingType">
  29. <el-select
  30. v-model="queryParams.meetingType"
  31. placeholder="全部"
  32. clearable
  33. >
  34. <el-option
  35. v-for="dict in dict.type.meeting_type"
  36. :key="dict.value"
  37. :label="dict.label"
  38. :value="dict.value"
  39. />
  40. </el-select>
  41. </el-form-item>
  42. <el-form-item label="会议日期" prop="startTime">
  43. <el-date-picker
  44. v-model="queryParams.timeVal"
  45. type="daterange"
  46. range-separator="至"
  47. start-placeholder="会议开始日期"
  48. end-placeholder="会议结束日期"
  49. value-format="yyyy-MM-dd"
  50. >
  51. </el-date-picker>
  52. </el-form-item>
  53. <!-- <el-form-item label="开始时间" prop="startTime">
  54. <el-date-picker
  55. style="width: 205px"
  56. clearable
  57. v-model="queryParams.startTime"
  58. type="date"
  59. value-format="yyyy-MM-dd"
  60. placeholder="请选择会议开始时间"
  61. >
  62. </el-date-picker>
  63. </el-form-item>
  64. <el-form-item label="结束时间" prop="endTime">
  65. <el-date-picker
  66. style="width: 205px"
  67. clearable
  68. v-model="queryParams.endTime"
  69. type="date"
  70. value-format="yyyy-MM-dd"
  71. placeholder="请选择会议结束时间"
  72. >
  73. </el-date-picker>
  74. </el-form-item> -->
  75. <el-form-item>
  76. <el-button
  77. type="primary"
  78. icon="el-icon-search"
  79. size="mini"
  80. @click="handleQuery"
  81. >搜索</el-button
  82. >
  83. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  84. >重置</el-button
  85. >
  86. </el-form-item>
  87. </el-form>
  88. <el-row :gutter="10" class="mb8" v-if="type === '1'">
  89. <el-col :span="1.5">
  90. <el-button
  91. type="primary"
  92. plain
  93. icon="el-icon-plus"
  94. size="mini"
  95. @click="handleAdd"
  96. v-hasPermi="['invest:meeting:add']"
  97. >新增</el-button
  98. >
  99. </el-col>
  100. <el-col :span="1.5">
  101. <el-button
  102. type="success"
  103. plain
  104. icon="el-icon-edit"
  105. size="mini"
  106. :disabled="single"
  107. @click="handleSelectData(1)"
  108. v-hasPermi="['invest:meeting:edit']"
  109. >修改</el-button
  110. >
  111. </el-col>
  112. <el-col :span="1.5">
  113. <el-button
  114. type="danger"
  115. plain
  116. icon="el-icon-delete"
  117. size="mini"
  118. :disabled="single"
  119. @click="handleSelectData(2)"
  120. v-hasPermi="['invest:meeting:remove']"
  121. >删除</el-button
  122. >
  123. </el-col>
  124. <el-col :span="1.5">
  125. <el-button
  126. type="warning"
  127. plain
  128. icon="el-icon-download"
  129. size="mini"
  130. @click="handleExport"
  131. v-hasPermi="['invest:meeting:export']"
  132. >导出</el-button
  133. >
  134. </el-col>
  135. <right-toolbar
  136. :showSearch.sync="showSearch"
  137. @queryTable="getList"
  138. ></right-toolbar>
  139. </el-row>
  140. <el-table
  141. ref="dataTable"
  142. @row-click="clickRow"
  143. class="tableWrapper"
  144. v-if="type !== '3'"
  145. v-loading="loading"
  146. border
  147. :data="meetingList"
  148. @selection-change="handleSelectionChange"
  149. >
  150. <el-table-column
  151. v-if="type === '1'"
  152. type="selection"
  153. width="55"
  154. align="center"
  155. />
  156. <el-table-column
  157. type="index"
  158. label="序号"
  159. width="50"
  160. align="center"
  161. ></el-table-column>
  162. <!-- <el-table-column label="主键ID" align="center" prop="id" /> -->
  163. <el-table-column
  164. label="会议编号"
  165. width="120"
  166. align="center"
  167. prop="meetingCode"
  168. >
  169. <template slot-scope="scope">
  170. <div :title="scope.row.meetingCode">
  171. {{ scope.row.meetingCode }}
  172. </div>
  173. </template>
  174. </el-table-column>
  175. <el-table-column
  176. label="会议主题"
  177. width="200"
  178. align="center"
  179. prop="meetingTheme"
  180. title="meetingTheme"
  181. >
  182. <template slot-scope="scope">
  183. <div
  184. :title="scope.row.meetingTheme"
  185. class="public-text-blue public-cursor"
  186. @click.stop="handleDetail(scope.row)"
  187. >
  188. {{ scope.row.meetingTheme }}
  189. </div>
  190. </template>
  191. </el-table-column>
  192. <el-table-column
  193. label="项目名称"
  194. align="center"
  195. width="200"
  196. prop="tProjectPool.projectName"
  197. >
  198. <template slot-scope="scope">
  199. <div :title="scope.row.tProjectPool.projectName">
  200. {{ scope.row.tProjectPool.projectName }}
  201. </div>
  202. </template>
  203. </el-table-column>
  204. <el-table-column
  205. label="会议类别"
  206. width="120"
  207. align="center"
  208. prop="meetingType"
  209. >
  210. <template slot-scope="scope">
  211. <dict-tag
  212. :options="dict.type.meeting_type"
  213. :value="scope.row.meetingType"
  214. />
  215. <!-- :title="scope.row.meetingType" -->
  216. </template>
  217. </el-table-column>
  218. <el-table-column
  219. label="会议发起人"
  220. width="120"
  221. align="center"
  222. prop="promoter"
  223. >
  224. <template slot-scope="scope">
  225. <div :title="scope.row.promoter">
  226. {{ scope.row.promoter }}
  227. </div>
  228. </template>
  229. </el-table-column>
  230. <el-table-column
  231. label="会议参与人"
  232. width="300"
  233. align="center"
  234. prop="participants"
  235. >
  236. <template slot-scope="scope">
  237. <div :title="scope.row.participants">
  238. {{ scope.row.participants }}
  239. </div>
  240. </template>
  241. </el-table-column>
  242. <el-table-column
  243. label="会议开始时间"
  244. width="160"
  245. align="center"
  246. prop="startTime"
  247. >
  248. <template slot-scope="scope">
  249. <span :title="scope.row.startTime">{{
  250. parseTime(scope.row.startTime, "{y}-{m}-{d} {h}:{i}")
  251. }}</span>
  252. </template>
  253. </el-table-column>
  254. <el-table-column
  255. label="会议结束时间"
  256. width="160"
  257. align="center"
  258. prop="endTime"
  259. >
  260. <template slot-scope="scope">
  261. <span :title="scope.row.startTime">{{
  262. parseTime(scope.row.endTime, "{y}-{m}-{d} {h}:{i}")
  263. }}</span>
  264. </template>
  265. </el-table-column>
  266. <el-table-column label="会议地点" width="150" align="center" prop="place">
  267. <template slot-scope="scope">
  268. <div :title="scope.row.place">
  269. {{ scope.row.place }}
  270. </div>
  271. </template>
  272. </el-table-column>
  273. <el-table-column
  274. label="创建人"
  275. width="120"
  276. align="center"
  277. prop="createBy"
  278. >
  279. <template slot-scope="scope">
  280. <div :title="scope.row.createBy">
  281. {{ scope.row.createBy }}
  282. </div>
  283. </template>
  284. </el-table-column>
  285. <el-table-column
  286. label="创建时间"
  287. align="center"
  288. prop="createTime"
  289. width="160"
  290. >
  291. <template slot-scope="scope">
  292. <div :title="scope.row.createTime">
  293. {{ scope.row.createTime }}
  294. </div>
  295. </template>
  296. </el-table-column>
  297. <el-table-column
  298. label="操作"
  299. v-if="false"
  300. fixed="right"
  301. align="center"
  302. class-name="small-padding fixed-width"
  303. width="120"
  304. >
  305. <template slot-scope="scope">
  306. <el-button
  307. v-if="user.nickName === scope.row.createBy"
  308. size="mini"
  309. type="text"
  310. icon="el-icon-edit"
  311. @click="handleUpdate(scope.row)"
  312. v-hasPermi="['invest:meeting:edit']"
  313. >修改</el-button
  314. >
  315. <!-- <el-button
  316. v-if="user.nickName !== scope.row.createBy"
  317. class="custom-blue-color"
  318. size="mini"
  319. type="text"
  320. icon="el-icon-search"
  321. @click="handleDetail(scope.row)"
  322. >详情</el-button
  323. > -->
  324. <el-button
  325. v-if="user.nickName === scope.row.createBy"
  326. class="custom-red-color"
  327. size="mini"
  328. type="text"
  329. icon="el-icon-delete"
  330. @click="handleDelete(scope.row)"
  331. v-hasPermi="['invest:meeting:remove']"
  332. >删除</el-button
  333. >
  334. <el-dropdown
  335. v-if="
  336. (scope.row.meetingType == 'LX' ||
  337. scope.row.meetingType == 'TJ') &&
  338. false
  339. "
  340. trigger="click"
  341. @command="handleCommand($event, scope.row)"
  342. >
  343. <!-- class="custom-blue-color" -->
  344. <span
  345. class="el-dropdown-link"
  346. v-preventReClick
  347. @click="getButtonItem(scope.row)"
  348. >
  349. <el-button size="mini" type="text" icon="el-icon-d-arrow-right"
  350. >更多</el-button
  351. >
  352. </span>
  353. <el-dropdown-menu slot="dropdown">
  354. <el-dropdown-item
  355. v-if="!showLookMark && showMarkBtn"
  356. command="1"
  357. icon="el-icon-document-remove"
  358. @click="handleMark(scope.row, '1', false)"
  359. >去打分</el-dropdown-item
  360. >
  361. <el-dropdown-item
  362. v-if="showLookMark && showMarkBtn"
  363. icon="el-icon-search"
  364. command="2"
  365. @click="handleMark(scope.row, '1', true)"
  366. >查看打分表</el-dropdown-item
  367. >
  368. <el-dropdown-item
  369. v-if="isInitiator"
  370. icon="el-icon-search"
  371. command="3"
  372. @click="handleLookMark(scope.row, '2', true)"
  373. >查看打分汇总表</el-dropdown-item
  374. >
  375. </el-dropdown-menu>
  376. </el-dropdown>
  377. <!-- <el-button
  378. size="mini"
  379. type="text"
  380. icon="el-icon-document-remove"
  381. @click="handleMark(scope.row, '1',false)"
  382. >去打分</el-button
  383. >
  384. <el-button
  385. size="mini"
  386. type="text"
  387. icon="el-icon-search"
  388. @click="handleMark(scope.row, '1',true)"
  389. >查看打分表</el-button
  390. >
  391. <el-button
  392. size="mini"
  393. type="text"
  394. icon="el-icon-search"
  395. @click="handleLookMark(scope.row, '2',true)"
  396. >查看打分汇总表</el-button
  397. > -->
  398. </template>
  399. </el-table-column>
  400. </el-table>
  401. <pagination
  402. v-show="total > 0 && type !== '3'"
  403. :total="total"
  404. :page.sync="queryParams.pageNum"
  405. :limit.sync="queryParams.pageSize"
  406. @pagination="getList"
  407. />
  408. <!-- 添加或修改会议记录对话框 -->
  409. <el-dialog
  410. :title="title"
  411. :visible.sync="open"
  412. width="1000px"
  413. append-to-body
  414. >
  415. <el-form
  416. class="special-el-form"
  417. ref="form"
  418. :model="form"
  419. :rules="rules"
  420. label-width="120px"
  421. >
  422. <el-form-item
  423. label="项目名称"
  424. prop="projectName"
  425. class="special-el-form-item public-input-height-2"
  426. :rules="[
  427. { required: verifyProjectName, trigger: 'blur', message: '请选择' },
  428. ]"
  429. >
  430. <div
  431. class="el-input__inner inputSimulation yichu1"
  432. @click="handleProjectItem"
  433. :class="{ show_disabled: pageType === '1' }"
  434. :title="form.projectName"
  435. >
  436. {{ form.projectName ? form.projectName : "请选择 " }}
  437. </div>
  438. <projectItem
  439. ref="projectItem"
  440. @getProjectInfo="getProjectInfo"
  441. ></projectItem>
  442. </el-form-item>
  443. <el-form-item
  444. label="项目阶段"
  445. prop="projectStage"
  446. class="special-el-form-item"
  447. >
  448. <el-select v-model="form.projectStage" disabled placeholder="">
  449. <el-option
  450. v-for="dict in dict.type.project_stage"
  451. :key="dict.value"
  452. :label="dict.label"
  453. :value="dict.value"
  454. />
  455. </el-select>
  456. </el-form-item>
  457. <el-form-item label="会议主题" prop="meetingTheme">
  458. <el-input
  459. maxlength="100"
  460. v-model="form.meetingTheme"
  461. placeholder="请输入会议主题"
  462. />
  463. </el-form-item>
  464. <!-- <el-form-item label="会议编号" prop="meetingCode">
  465. <el-input v-model="form.meetingCode" placeholder="请输入会议编号" />
  466. </el-form-item> -->
  467. <el-form-item label="会议类别" prop="meetingType">
  468. <el-select
  469. v-if="showAllType"
  470. v-model="form.meetingType"
  471. placeholder="请选择会议类别"
  472. :disabled="
  473. meetingTypeDisabled || (pageType === '1' && meetingType != null)
  474. "
  475. >
  476. <el-option
  477. v-for="dict in meetingTypeList"
  478. :key="dict.value"
  479. :label="dict.label"
  480. :value="dict.value"
  481. ></el-option>
  482. </el-select>
  483. <el-select
  484. v-else
  485. v-model="form.meetingType"
  486. placeholder="请选择会议类别"
  487. :disabled="
  488. meetingTypeDisabled || (pageType === '1' && meetingType != null)
  489. "
  490. >
  491. <el-option
  492. v-for="dict in meetingTypeList1"
  493. :key="dict.value"
  494. :label="dict.label"
  495. :value="dict.value"
  496. ></el-option>
  497. </el-select>
  498. </el-form-item>
  499. <el-form-item label="会议开始时间" prop="startTime">
  500. <el-date-picker
  501. v-model="form.startTime"
  502. type="datetime"
  503. placeholder="请选择会议开始时间"
  504. format="yyyy-MM-dd HH:mm"
  505. value-format="yyyy-MM-dd HH:mm"
  506. >
  507. </el-date-picker>
  508. </el-form-item>
  509. <el-form-item label="会议结束时间" prop="endTime">
  510. <el-date-picker
  511. v-model="form.endTime"
  512. format="yyyy-MM-dd HH:mm"
  513. value-format="yyyy-MM-dd HH:mm"
  514. type="datetime"
  515. placeholder="请选择会议结束时间"
  516. >
  517. </el-date-picker>
  518. </el-form-item>
  519. <el-form-item label="会议地点" prop="place">
  520. <el-input
  521. maxlength="100"
  522. v-model="form.place"
  523. placeholder="请输入会议地点"
  524. />
  525. </el-form-item>
  526. <el-form-item
  527. label="会议发起人"
  528. prop="promoter"
  529. class="public-input-height"
  530. >
  531. <div class="el-input__inner" @click="openSelectDept(1)">
  532. {{ form.promoter ? form.promoter : "请选择会议发起人" }}
  533. </div>
  534. <selecDept
  535. ref="selecDepts"
  536. @getDeptUserInfo="getDeptUserInfo"
  537. :deptId="deptId"
  538. ></selecDept>
  539. </el-form-item>
  540. <el-form-item
  541. label="会议参与人"
  542. prop="participants"
  543. class="special-el-form-item public-input-height-2"
  544. >
  545. <div
  546. class="el-input__inner inputSimulation yichu1"
  547. @click="handleSelectPeople()"
  548. :title="form.participants"
  549. >
  550. {{ form.participants ? form.participants : "请选择会议参与人" }}
  551. </div>
  552. </el-form-item>
  553. <el-form-item label="附件" prop="file" class="special-el-form-item">
  554. <fileItem
  555. ref="fileItems"
  556. :id="form.id"
  557. @getFileList="getFileList"
  558. ></fileItem>
  559. </el-form-item>
  560. </el-form>
  561. <div slot="footer" class="dialog-footer">
  562. <el-button type="primary" @click="submitForm" v-preventReClick
  563. >确 定</el-button
  564. >
  565. <el-button @click="cancel">取 消</el-button>
  566. </div>
  567. </el-dialog>
  568. <!--选择人员-->
  569. <selecUser
  570. ref="flowUser"
  571. :checkType="checkType"
  572. :selectValues="selectValues"
  573. :selectNameValues="selectNameValues"
  574. @handleUserSelect="handleUserSelect"
  575. ></selecUser>
  576. <!-- 会议记录详情-->
  577. <el-dialog
  578. title="会议详情"
  579. :visible.sync="openDetail"
  580. width="1000px"
  581. append-to-body
  582. >
  583. <el-form
  584. class="special-el-form"
  585. ref="form"
  586. :model="form"
  587. label-width="120px"
  588. >
  589. <el-form-item
  590. label="项目名称"
  591. prop="projectName"
  592. class="special-el-form-item"
  593. >
  594. <el-input
  595. type="textarea"
  596. rows="2"
  597. v-model="form.projectName"
  598. disabled
  599. />
  600. </el-form-item>
  601. <el-form-item
  602. label="项目阶段"
  603. prop="projectStage"
  604. class="special-el-form-item"
  605. >
  606. <el-select v-model="form.projectStage" disabled>
  607. <el-option
  608. v-for="dict in dict.type.project_stage"
  609. :key="dict.value"
  610. :label="dict.label"
  611. :value="dict.value"
  612. />
  613. </el-select>
  614. </el-form-item>
  615. <el-form-item label="会议主题" prop="meetingTheme">
  616. <el-input maxlength="100" v-model="form.meetingTheme" disabled />
  617. </el-form-item>
  618. <el-form-item label="会议类别" prop="meetingType">
  619. <el-select v-if="showAllType" v-model="form.meetingType" disabled>
  620. <el-option
  621. v-for="dict in meetingTypeList"
  622. :key="dict.value"
  623. :label="dict.label"
  624. :value="dict.value"
  625. ></el-option>
  626. </el-select>
  627. <el-select v-else v-model="form.meetingType" disabled>
  628. <el-option
  629. v-for="dict in meetingTypeList1"
  630. :key="dict.value"
  631. :label="dict.label"
  632. :value="dict.value"
  633. ></el-option>
  634. </el-select>
  635. </el-form-item>
  636. <el-form-item label="会议开始时间" prop="startTime">
  637. <el-date-picker
  638. v-model="form.startTime"
  639. type="datetime"
  640. disabled
  641. format="yyyy-MM-dd HH:mm"
  642. value-format="yyyy-MM-dd HH:mm"
  643. >
  644. </el-date-picker>
  645. </el-form-item>
  646. <el-form-item label="会议结束时间" prop="endTime">
  647. <el-date-picker
  648. v-model="form.endTime"
  649. format="yyyy-MM-dd HH:mm"
  650. value-format="yyyy-MM-dd HH:mm"
  651. type="datetime"
  652. disabled
  653. >
  654. </el-date-picker>
  655. </el-form-item>
  656. <el-form-item label="会议地点" prop="place">
  657. <el-input maxlength="100" v-model="form.place" disabled />
  658. </el-form-item>
  659. <el-form-item label="会议发起人" prop="promoter">
  660. <el-input v-model="form.promoter" disabled />
  661. </el-form-item>
  662. <el-form-item
  663. label="会议参与人"
  664. prop="participants"
  665. class="special-el-form-item"
  666. >
  667. <el-input
  668. rows="4"
  669. type="textarea"
  670. v-model="form.participants"
  671. disabled
  672. />
  673. </el-form-item>
  674. <el-form-item label="附件" prop="file" class="special-el-form-item">
  675. <fileItem
  676. ref="fileItemsDet"
  677. :id="form.id"
  678. @getFileList="getFileList"
  679. ></fileItem>
  680. </el-form-item>
  681. </el-form>
  682. <div slot="footer" class="dialog-footer">
  683. <el-button @click="openDetail = false">关 闭</el-button>
  684. </div>
  685. </el-dialog>
  686. <!-- 立项申请弹窗 -->
  687. <el-dialog
  688. :title="titleLXApply"
  689. :visible.sync="openLXApply"
  690. width="1000px"
  691. append-to-body
  692. >
  693. <el-form
  694. class="special-el-form"
  695. ref="formLXApply"
  696. :model="formLXApply"
  697. :rules="rulesLXApply"
  698. label-width="120px"
  699. >
  700. <el-form-item
  701. label="项目名称"
  702. prop="projectName"
  703. class="special-el-form-item public-input-height-2"
  704. :rules="[
  705. { required: true, trigger: 'blur', message: '请选择' },
  706. ]"
  707. >
  708. <div
  709. class="el-input__inner inputSimulation"
  710. @click="handleProjectItem"
  711. :class="{ show_disabled: pageType === '1' }"
  712. :title="formLXApply.projectName"
  713. >
  714. {{ formLXApply.projectName ? formLXApply.projectName : "请选择 " }}
  715. </div>
  716. <projectItemLX
  717. ref="projectItem"
  718. @getProjectInfo="getProjectInfo"
  719. ></projectItemLX>
  720. </el-form-item>
  721. <el-form-item
  722. label="项目概况"
  723. prop="projectOverview"
  724. class="special-el-form-item"
  725. >
  726. <el-input
  727. rows="4"
  728. type="textarea"
  729. maxlength="200"
  730. v-model="formLXApply.projectOverview"
  731. placeholder="请输入项目概况"
  732. />
  733. </el-form-item>
  734. <el-form-item
  735. label="项目亮点"
  736. prop="projectSparkle"
  737. class="special-el-form-item"
  738. >
  739. <el-input
  740. rows="4"
  741. type="textarea"
  742. maxlength="200"
  743. v-model="formLXApply.projectSparkle"
  744. placeholder="请输入项目亮点"
  745. />
  746. </el-form-item>
  747. <el-form-item
  748. label="立项资料"
  749. prop="listFile"
  750. class="special-el-form-item"
  751. >
  752. <fileItem
  753. ref="fileItemLXApply"
  754. :id="formLXApply.id"
  755. @getFileList="getFileListLXApply"
  756. ></fileItem>
  757. </el-form-item>
  758. <!-- <el-form-item
  759. label="通知名单"
  760. prop="participants"
  761. class="special-el-form-item public-input-height-2"
  762. >
  763. <div
  764. class="el-input__inner inputSimulation yichu1"
  765. @click="handleSelectPeople()"
  766. :title="formLXApply.participants"
  767. >
  768. {{ formLXApply.participants ? formLXApply.participants : "请选择" }}
  769. </div>
  770. </el-form-item>-->
  771. </el-form>
  772. <div slot="footer" class="dialog-footer">
  773. <!-- <el-button type="primary" @click="submitFormLXApply" v-preventReClick
  774. >确 定</el-button
  775. >-->
  776. <el-button @click="openLXApply = false">取 消</el-button>
  777. <el-button type="warning" @click="submitFormLXApply(false)" v-preventReClick>暂 存</el-button>
  778. <el-button type="primary" @click="submitFormLXApply(true)" v-preventReClick>提 交</el-button>
  779. </div>
  780. </el-dialog>
  781. <!-- 投决申请弹窗 -->
  782. <el-dialog
  783. :title="titleTJApply"
  784. :visible.sync="openTJApply"
  785. width="1000px"
  786. append-to-body
  787. >
  788. <el-form
  789. class="special-el-form"
  790. ref="formTJApply"
  791. :model="formTJApply"
  792. :rules="rulesTJApply"
  793. label-width="120px"
  794. >
  795. <el-form-item
  796. label="项目名称"
  797. prop="projectName"
  798. class="special-el-form-item public-input-height-2"
  799. :rules="[
  800. { required: true, trigger: 'blur', message: '请选择' },
  801. ]"
  802. >
  803. <div
  804. class="el-input__inner inputSimulation"
  805. @click="handleProjectItem"
  806. :class="{ show_disabled: pageType === '1' }"
  807. :title="formTJApply.projectName"
  808. >
  809. {{ formTJApply.projectName ? formTJApply.projectName : "请选择 " }}
  810. </div>
  811. <projectItemTJ
  812. ref="projectItem"
  813. @getProjectInfo="getProjectInfo"
  814. ></projectItemTJ>
  815. </el-form-item>
  816. <el-form-item
  817. label="股权/其他合作商务条款"
  818. prop="provision"
  819. class="special-el-form-item"
  820. >
  821. <el-input
  822. rows="4"
  823. type="textarea"
  824. maxlength="200"
  825. v-model="formTJApply.provision"
  826. placeholder="请输入股权/其他合作商务条款"
  827. />
  828. </el-form-item>
  829. <el-form-item
  830. label="投决资料"
  831. prop="listFile"
  832. class="special-el-form-item"
  833. >
  834. <fileItem
  835. ref="fileItemTJApply"
  836. :id="formTJApply.id"
  837. @getFileList="getFileListTJApply"
  838. ></fileItem>
  839. </el-form-item>
  840. <!-- <el-form-item
  841. label="通知名单"
  842. prop="participants"
  843. class="special-el-form-item public-input-height-2"
  844. >
  845. <div
  846. class="el-input__inner inputSimulation yichu1"
  847. @click="handleSelectPeople()"
  848. :title="formTJApply.participants"
  849. >
  850. {{ formTJApply.participants ? formTJApply.participants : "请选择" }}
  851. </div>
  852. </el-form-item>-->
  853. </el-form>
  854. <div slot="footer" class="dialog-footer">
  855. <el-button @click="openTJApply = false">取 消</el-button>
  856. <el-button type="warning" @click="submitFormTJApply(false)" v-preventReClick>暂 存</el-button>
  857. <el-button type="primary" @click="submitFormTJApply(true)" v-preventReClick>提 交</el-button>
  858. </div>
  859. </el-dialog>
  860. <!-- 终止申请弹窗 -->
  861. <el-dialog
  862. :title="titleZZApply"
  863. :visible.sync="openZZApply"
  864. width="1000px"
  865. append-to-body
  866. >
  867. <el-form
  868. class="special-el-form"
  869. ref="formZZApply"
  870. :model="formZZApply"
  871. :rules="rulesZZApply"
  872. label-width="120px"
  873. >
  874. <el-form-item
  875. label="项目名称"
  876. prop="projectName"
  877. class="special-el-form-item public-input-height-2"
  878. :rules="[
  879. { required: true, trigger: 'blur', message: '请选择' },
  880. ]"
  881. >
  882. <div
  883. class="el-input__inner inputSimulation"
  884. @click="handleProjectItem"
  885. :class="{ show_disabled: pageType === '1' }"
  886. :title="formZZApply.projectName"
  887. >
  888. {{ formZZApply.projectName ? formZZApply.projectName : "请选择 " }}
  889. </div>
  890. <projectItemZZ
  891. ref="projectItem"
  892. @getProjectInfo="getProjectInfo"
  893. ></projectItemZZ>
  894. </el-form-item>
  895. <el-form-item
  896. label="终止原因"
  897. prop="reason"
  898. class="special-el-form-item"
  899. >
  900. <el-input
  901. rows="4"
  902. type="textarea"
  903. maxlength="200"
  904. v-model="formZZApply.reason"
  905. placeholder="请输入终止原因"
  906. />
  907. </el-form-item>
  908. </el-form>
  909. <div slot="footer" class="dialog-footer">
  910. <el-button @click="openTJApply = false">取 消</el-button>
  911. <el-button type="warning" @click="submitFormZZApply(false)" v-preventReClick>暂 存</el-button>
  912. <el-button type="primary" @click="submitFormZZApply(true)" v-preventReClick>提 交</el-button>
  913. </div>
  914. </el-dialog>
  915. </div>
  916. </template>
  917. <script>
  918. import {
  919. listMeeting,
  920. getMeeting,
  921. delMeeting,
  922. addMeeting,
  923. updateMeeting,
  924. getCanScoringMeetingId,
  925. addApproval,
  926. updateApproval,
  927. addDecision,
  928. updateDecision,
  929. } from "@/api/invest/meeting";
  930. import {approvalStart} from "@/api/project/approval/pool";
  931. import {decisionStart} from "@/api/project/decision/pool";
  932. import projectItem from "../invest/components/projectItem";
  933. import projectItemLX from "./approval/projectItem";
  934. import projectItemTJ from "./decision/projectItem";
  935. import projectItemZZ from "./termination/projectItem";
  936. import fileItem from "../invest/components/fileItem";
  937. import selecDept from "../invest/components/selecDept";
  938. import selecUser from "../invest/components/selecUser";
  939. import { mapGetters } from "vuex";
  940. export default {
  941. props: {
  942. type: {
  943. type: String,
  944. default: "1", //1=显示全部列表 2=显示某项目下的详情列表 3=只展示弹窗
  945. },
  946. projectId: {
  947. type: String,
  948. },
  949. },
  950. dicts: ["meeting_type", "project_stage", "project_group"],
  951. components: { projectItem,projectItemLX, projectItemTJ,projectItemZZ, selecDept, fileItem, selecUser },
  952. watch: {
  953. "form.meetingType": function (newValue, oldValue) {
  954. // console.log(newValue,"this.form.meetingType", this.form.meetingType);
  955. if (this.form.meetingType == "LX" || this.form.meetingType == "TJ") {
  956. this.verifyProjectName = true;
  957. } else {
  958. this.verifyProjectName = false;
  959. }
  960. },
  961. open: function (newValue, oldValue) {
  962. if (newValue === false) {
  963. this.selectValues = null;
  964. this.selectNameValues = null;
  965. this.queryParams.projectPoolId = null;
  966. this.meetingType = null;
  967. this.pageType = null;
  968. }
  969. },
  970. },
  971. data() {
  972. const validateLogo = (rule, value, callback) => {
  973. if (this.fileListLXApply.length <= 0) {
  974. callback(new Error("请上传文件"));
  975. } else {
  976. callback();
  977. }
  978. };
  979. const validateLogo1 = (rule, value, callback) => {
  980. if (this.fileListTJApply.length <= 0) {
  981. callback(new Error("请上传文件"));
  982. } else {
  983. callback();
  984. }
  985. };
  986. return {
  987. meetingTypeDisabled: false, //会议类别
  988. showMenu: false,
  989. // 人员选择器
  990. checkType: "multiple",
  991. // 数据回显
  992. selectValues: null,
  993. selectNameValues: null,
  994. userVisible: false,
  995. pageType: null,
  996. meetingType: null,
  997. verifyProjectName: false,
  998. fileList: [],
  999. showProjectItem: false,
  1000. deptId: process.env.VUE_APP_DEPTID,
  1001. // 遮罩层
  1002. loading: true,
  1003. // 选中数组
  1004. ids: [],
  1005. idsName: [],
  1006. // 非单个禁用
  1007. single: true,
  1008. // 非多个禁用
  1009. multiple: true,
  1010. // 选中数组
  1011. selectRowList: [],
  1012. // 显示搜索条件
  1013. showSearch: false,
  1014. // 总条数
  1015. total: 0,
  1016. // 会议记录表格数据
  1017. meetingList: [],
  1018. // 弹出层标题
  1019. title: "",
  1020. // 是否显示弹出层
  1021. open: false,
  1022. // 查询参数
  1023. queryParams: {
  1024. pageNum: 1,
  1025. pageSize: 10,
  1026. meetingTheme: null,
  1027. meetingCode: null,
  1028. meetingType: null,
  1029. startTime: null,
  1030. endTime: null,
  1031. timeVal: null,
  1032. orderByColumn: "createTime",
  1033. isAsc: "desc",
  1034. },
  1035. // 表单参数
  1036. form: {
  1037. id: null,
  1038. meetingTheme: null,
  1039. meetingCode: null,
  1040. meetingType: null,
  1041. projectPoolId: null,
  1042. projectName: null,
  1043. projectStage: null,
  1044. projectGroup: "",
  1045. startTime: null,
  1046. endTime: null,
  1047. place: null,
  1048. promoter: null,
  1049. promoterId: null,
  1050. participants: null,
  1051. participantsId: null,
  1052. delFlag: null,
  1053. createBy: null,
  1054. createTime: null,
  1055. updateBy: null,
  1056. updateTime: null,
  1057. projectGroup: "",
  1058. },
  1059. // 表单校验
  1060. rules: {
  1061. meetingTheme: [{ required: true, trigger: "blur", message: "请输入" }],
  1062. meetingType: [{ required: true, trigger: "change", message: "请选择" }],
  1063. // projectGroup: [{ required: true, trigger: "change", message: "请选择" }],
  1064. // projectName: [{ required: true, trigger: "blur", message: "请选择" }],
  1065. startTime: [{ required: true, trigger: "change", message: "请选择" }],
  1066. endTime: [{ required: true, trigger: "blur", message: "请选择" }],
  1067. place: [{ required: true, trigger: "blur", message: "请输入" }],
  1068. promoter: [{ required: true, trigger: "blur", message: "请选择" }],
  1069. participants: [{ required: true, trigger: "blur", message: "请选择" }],
  1070. },
  1071. isInitiator: false, //是否是发起人
  1072. showLookMark: false, //是否查看打分表
  1073. showMarkBtn: false,
  1074. meetingTypeList1: [
  1075. {
  1076. value: "A",
  1077. label: "管理会议",
  1078. },
  1079. {
  1080. value: "X",
  1081. label: "临时会议",
  1082. },
  1083. ],
  1084. meetingTypeList: [
  1085. {
  1086. value: "A",
  1087. label: "管理会议",
  1088. },
  1089. {
  1090. value: "LX",
  1091. label: "项目立项会",
  1092. },
  1093. {
  1094. value: "TJ",
  1095. label: "项目投决会",
  1096. },
  1097. {
  1098. value: "X",
  1099. label: "临时会议",
  1100. },
  1101. ],
  1102. showAllType: false,
  1103. openDetail: false,
  1104. // 立项申请
  1105. titleLXApply: "",
  1106. openLXApply: false,
  1107. formLXApply: {
  1108. id: null,
  1109. projectPoolId: null,
  1110. projectName: null,
  1111. projectOverview: null,
  1112. projectSparkle: null,
  1113. listFile: null,
  1114. participants: null,
  1115. participantsId: null,
  1116. flag:null,
  1117. },
  1118. fileListLXApply: [],
  1119. rulesLXApply: {
  1120. projectOverview: [
  1121. { required: true, trigger: "blur", message: "请输入" },
  1122. ],
  1123. projectSparkle: [
  1124. { required: true, trigger: "blur", message: "请输入" },
  1125. ],
  1126. listFile: [{ required: true, validator: validateLogo }],
  1127. },
  1128. // 投决申请
  1129. titleTJApply: "",
  1130. openTJApply: false,
  1131. formTJApply: {
  1132. id: null,
  1133. projectPoolId: null,
  1134. projectName: null,
  1135. provision: null,
  1136. listFile: null,
  1137. participants: null,
  1138. participantsId: null,
  1139. flag:null,
  1140. },
  1141. fileListTJApply: [],
  1142. rulesTJApply: {
  1143. provision: [{ required: true, trigger: "blur", message: "请输入" }],
  1144. listFile: [{ required: true, validator: validateLogo1 }],
  1145. },
  1146. // 终止申请
  1147. titleZZApply: "",
  1148. openZZApply: false,
  1149. formZZApply: {
  1150. id: null,
  1151. projectPoolId: null,
  1152. projectName: null,
  1153. reason:null,
  1154. participants: null,
  1155. participantsId: null,
  1156. flag:null,
  1157. },
  1158. rulesZZApply: {
  1159. reason: [{ required: true, trigger: "blur", message: "请输入" }],
  1160. },
  1161. };
  1162. },
  1163. computed: {
  1164. ...mapGetters(["user"]),
  1165. },
  1166. created() {
  1167. this.showAllType = this.type === "3";
  1168. // 查询该id下的列表信息
  1169. if (this.$route.query.id) {
  1170. this.queryParams.projectPoolId = this.$route.query.id;
  1171. }
  1172. // 会议类型
  1173. if (this.$route.query.meetingType) {
  1174. this.meetingType = this.$route.query.meetingType;
  1175. }
  1176. // 直接弹出新增
  1177. if (this.$route.query.type === "1") {
  1178. this.pageType = this.$route.query.type;
  1179. this.handleAdd();
  1180. }
  1181. if (this.projectId) {
  1182. this.queryParams.projectPoolId = this.projectId;
  1183. }
  1184. if (this.type !== "3") {
  1185. this.getList();
  1186. }
  1187. },
  1188. methods: {
  1189. handleSelectPeople() {
  1190. // this.userVisible = true;
  1191. this.$refs.flowUser.handleUserVisible(true);
  1192. },
  1193. /*用户选中赋值*/
  1194. // checkUserComplete() {
  1195. // this.userVisible = false;
  1196. // this.checkType = "";
  1197. // },
  1198. // 用户选中数据
  1199. handleUserSelect(selection) {
  1200. const that = this;
  1201. if (selection && selection[0]) {
  1202. let form;
  1203. if (this.open) {
  1204. form = this.form;
  1205. } else if (this.openLXApply) {
  1206. form = this.formLXApply;
  1207. } else if (this.openTJApply) {
  1208. form = this.formTJApply;
  1209. }
  1210. if (selection instanceof Array) {
  1211. const userIds = selection.map((item) => item.userId);
  1212. const nickName = selection.map((item) => item.nickName);
  1213. form.participants = nickName.join(",");
  1214. form.participantsId = userIds.join(",");
  1215. this.selectNameValues = nickName.join(",");
  1216. this.selectValues = userIds.join(",");
  1217. } else {
  1218. form.participants = selection.nickName;
  1219. form.participantsId = selection.userId;
  1220. this.selectNameValues = selection.nickName;
  1221. this.selectValues = selection.userId;
  1222. }
  1223. this.$refs.form.clearValidate(["participants"]);
  1224. }
  1225. },
  1226. getButtonItem(row) {
  1227. this.showMarkBtn = false;
  1228. this.isInitiator = false;
  1229. // 是否是发起人
  1230. let isInitiator = row.promoterId == this.user.userId;
  1231. this.isInitiator = isInitiator;
  1232. // 参与人数组
  1233. let participantsIdList = row.participantsId.split(",");
  1234. // console.log("是否是发起人",this.isInitiator)
  1235. // console.log("参与人数组",participantsIdList,"this.user.userId=",this.user.userId,participantsIdList.indexOf(this.user.userId) > -1)
  1236. // 参与人里面包含发起人
  1237. if (participantsIdList.indexOf(this.user.userId) > -1) {
  1238. this.showMarkBtn = true;
  1239. }
  1240. // console.log("this.showMarkBtn=",this.showMarkBtn)
  1241. getCanScoringMeetingId(row.id).then((response) => {
  1242. // 查看打分
  1243. if (response.tProjectScoring) {
  1244. this.showLookMark = true;
  1245. this.$store.commit("SET_TPROJECTSCORING", response.tProjectScoring);
  1246. } else {
  1247. // 去打分
  1248. this.showLookMark = false;
  1249. if (!this.showMarkBtn && !isInitiator) {
  1250. this.$message({
  1251. message: "暂无更多操作权限",
  1252. duration: 1500,
  1253. type: "warning",
  1254. });
  1255. }
  1256. }
  1257. });
  1258. },
  1259. // getCanScoringMeetingId
  1260. handleCommand(command, row) {
  1261. // console.log("handleCommand", command);
  1262. // console.log("row", row);
  1263. let type = "1",
  1264. readonly = true;
  1265. if (command === "1") {
  1266. readonly = false;
  1267. }
  1268. if (command === "3") {
  1269. type = "2";
  1270. }
  1271. this.handleMark(row, type, readonly);
  1272. },
  1273. // 去打分
  1274. handleMark(row, type, readonly) {
  1275. this.$router.push({
  1276. path: "/invest/meeting/mark",
  1277. query: { id: row.id, formType: type, readonly: readonly },
  1278. });
  1279. },
  1280. // 查看打分表
  1281. handleLookMark(row, type) {
  1282. this.$router.push({
  1283. path: "/invest/meeting/mark",
  1284. query: { id: row.id, formType: type },
  1285. });
  1286. },
  1287. // 选择部门人
  1288. openSelectDept(type) {
  1289. if (type == 2) {
  1290. // this.$refs.selecDepts1.show(type);
  1291. } else {
  1292. this.$refs.selecDepts.show(type, this.form.promoterId);
  1293. }
  1294. },
  1295. getDeptUserInfo(info) {
  1296. if (info.length > 0) {
  1297. this.form.promoter = info[0].nickName;
  1298. this.form.promoterId = info[0].userId.toString();
  1299. this.$refs.form.clearValidate(["promoter"]);
  1300. }
  1301. },
  1302. // 多选人
  1303. getDeptMoreUserInfo(info) {
  1304. let peoList = [],
  1305. peoIdList = [];
  1306. for (let i in info) {
  1307. peoList.push(info[i].nickName);
  1308. peoIdList.push(info[i].userId.toString());
  1309. }
  1310. let peopleStr = peoList.join(",");
  1311. let peopleIdStr = peoIdList.join(",");
  1312. this.form.participants = peopleStr;
  1313. this.form.participantsId = peopleIdStr;
  1314. this.$refs.form.clearValidate(["participants"]);
  1315. },
  1316. // 会议申请附件回显
  1317. getFileList(fileList) {
  1318. if (fileList && fileList.length > 0) {
  1319. this.fileList = fileList;
  1320. } else {
  1321. this.fileList = [];
  1322. }
  1323. },
  1324. // 展示立项申请弹窗
  1325. showLXApplyPop(row) {
  1326. this.resetLXApply(row);
  1327. this.fileListLXApply = [];
  1328. this.openLXApply = true;
  1329. this.titleLXApply = "立项申请";
  1330. setTimeout(() => {
  1331. this.$refs.fileItemLXApply.fileList = [];
  1332. }, 200);
  1333. },
  1334. // 展示投决申请弹窗
  1335. showTJApplyPop(row) {
  1336. this.resetTJApply(row);
  1337. this.fileListLXApply = [];
  1338. this.openTJApply = true;
  1339. this.titleTJApply = "投决申请";
  1340. setTimeout(() => {
  1341. this.$refs.fileItemTJApply.fileList = [];
  1342. }, 200);
  1343. },
  1344. // 展示终止申请弹窗
  1345. showZZApplyPop() {
  1346. // this.resetZZApply(row);
  1347. //this.fileListZZApply = [];
  1348. this.openZZApply = true;
  1349. this.titleZZApply = "终止申请";
  1350. /*setTimeout(() => {
  1351. this.$refs.fileItemZZApply.fileList = [];
  1352. }, 200);*/
  1353. },
  1354. // 立项申请附件回显
  1355. getFileListLXApply(fileList) {
  1356. this.fileListLXApply = fileList;
  1357. if (fileList && fileList.length > 0) {
  1358. this.$refs.formLXApply.clearValidate(["listFile"]);
  1359. } else {
  1360. this.fileListLXApply = [];
  1361. }
  1362. },
  1363. // 投决申请附件回显
  1364. getFileListTJApply(fileList) {
  1365. this.fileListTJApply = fileList;
  1366. if (fileList && fileList.length > 0) {
  1367. this.$refs.formTJApply.clearValidate(["listFile"]);
  1368. } else {
  1369. this.fileListTJApply = [];
  1370. }
  1371. },
  1372. // 获取公司信息
  1373. getProjectInfo(info) {
  1374. if (info.length > 0) {
  1375. this.form.projectPoolId = info[0].id;
  1376. this.form.projectName = info[0].projectName;
  1377. this.formLXApply.projectPoolId = info[0].id;
  1378. this.formLXApply.projectName = info[0].projectName;
  1379. this.formTJApply.projectPoolId = info[0].id;
  1380. this.formTJApply.projectName = info[0].projectName;
  1381. this.formZZApply.projectPoolId = info[0].id;
  1382. this.formZZApply.projectName = info[0].projectName;
  1383. }
  1384. },
  1385. //展示人员
  1386. handleProjectItem() {
  1387. this.$refs.projectItem.showProjectItem = true;
  1388. // 2. 调用子组件的刷新方法,重新加载项目列表
  1389. // 确保子组件已加载且存在刷新方法
  1390. if (this.$refs.projectItem && typeof this.$refs.projectItem.refreshProjectList === 'function') {
  1391. this.$refs.projectItem.refreshProjectList();
  1392. }
  1393. },
  1394. /** 查询会议记录列表 */
  1395. getList() {
  1396. this.loading = true;
  1397. if (this.projectId) {
  1398. this.queryParams.projectPoolId = this.projectId;
  1399. }
  1400. listMeeting(this.queryParams).then((response) => {
  1401. this.meetingList = response.rows;
  1402. this.total = response.total;
  1403. this.loading = false;
  1404. });
  1405. },
  1406. // 取消按钮
  1407. cancel() {
  1408. this.open = false;
  1409. this.reset();
  1410. },
  1411. // 会议申请表单重置
  1412. reset() {
  1413. this.form = {
  1414. id: null,
  1415. meetingTheme: null,
  1416. meetingCode: null,
  1417. meetingType: null,
  1418. projectPoolId: null,
  1419. projectName: null,
  1420. projectStage: null,
  1421. projectGroup: "",
  1422. startTime: null,
  1423. endTime: null,
  1424. place: null,
  1425. promoter: this.user.nickName,
  1426. promoterId: this.user.userId,
  1427. participants: null,
  1428. participantsId: null,
  1429. delFlag: null,
  1430. createBy: null,
  1431. createTime: null,
  1432. updateBy: null,
  1433. updateTime: null,
  1434. projectGroup: "",
  1435. };
  1436. this.resetForm("form");
  1437. },
  1438. // 立项申请表单重置
  1439. resetLXApply(row) {
  1440. this.formLXApply = {
  1441. id: null,
  1442. projectPoolId: null,
  1443. projectName: null,
  1444. projectOverview: null,
  1445. projectSparkle: null,
  1446. listFile: null,
  1447. };
  1448. this.resetForm("formLXApply");
  1449. },
  1450. // 投决申请表单重置
  1451. resetTJApply(row) {
  1452. this.formTJApply = {
  1453. id: null,
  1454. projectPoolId: null,
  1455. projectName: null,
  1456. projectOverview: null,
  1457. projectSparkle: null,
  1458. listFile: null,
  1459. };
  1460. this.resetForm("formTJApply");
  1461. },
  1462. // 终止申请表单重置
  1463. resetZZApply(row) {
  1464. this.formZZApply = {
  1465. id: null,
  1466. projectPoolId: row.id,
  1467. projectName: row.projectName,
  1468. projectOverview: null,
  1469. projectSparkle: null,
  1470. listFile: null,
  1471. };
  1472. this.resetForm("formZZApply");
  1473. },
  1474. /** 搜索按钮操作 */
  1475. handleQuery() {
  1476. this.queryParams.pageNum = 1;
  1477. if (this.queryParams.timeVal && this.queryParams.timeVal.length > 0) {
  1478. this.queryParams.startTime = this.queryParams.timeVal[0];
  1479. this.queryParams.endTime = this.queryParams.timeVal[1];
  1480. }
  1481. this.getList();
  1482. },
  1483. /** 重置按钮操作 */
  1484. resetQuery() {
  1485. this.resetForm("queryForm");
  1486. this.queryParams.timeVal = null;
  1487. this.queryParams.startTime = null;
  1488. this.queryParams.endTime = null;
  1489. this.queryParams.orderByColumn = "createTime";
  1490. this.queryParams.isAsc = "desc";
  1491. this.handleQuery();
  1492. },
  1493. // 多选框选中数据
  1494. handleSelectionChange(selection) {
  1495. this.ids = selection.map((item) => item.id);
  1496. this.idsName = selection.map((item) => item.meetingTheme);
  1497. this.single = selection.length !== 1;
  1498. this.multiple = !selection.length;
  1499. this.selectRowList = selection;
  1500. },
  1501. /** 新增按钮操作 */
  1502. handleAdd(projectId, meetingType) {
  1503. let that = this;
  1504. this.fileList = [];
  1505. this.showAllType = this.type === "3";
  1506. this.meetingTypeDisabled = false;
  1507. this.selectValues = null;
  1508. this.selectNameValues = null;
  1509. this.reset();
  1510. if (meetingType) {
  1511. this.meetingType = meetingType;
  1512. this.meetingTypeDisabled = true;
  1513. }
  1514. if (projectId && typeof projectId === "string") {
  1515. this.pageType = "1";
  1516. }
  1517. // 直接绑定好项目
  1518. if (this.pageType === "1") {
  1519. let projectItemMessage = this.$store.getters.projectItemMessage;
  1520. this.form.projectPoolId = projectItemMessage.id;
  1521. this.form.projectName = projectItemMessage.projectName;
  1522. this.form.projectStage = projectItemMessage.projectStage;
  1523. this.form.projectGroup = projectItemMessage.projectGroup;
  1524. this.form.meetingType = this.meetingType;
  1525. }
  1526. this.open = true;
  1527. this.title = "添加会议";
  1528. setTimeout(() => {
  1529. that.$refs.fileItems.fileList = [];
  1530. }, 200);
  1531. },
  1532. /** 修改按钮操作 */
  1533. handleUpdate(row) {
  1534. this.selectValues = null;
  1535. this.selectNameValues = null;
  1536. this.showAllType = true;
  1537. this.reset();
  1538. const id = row.id || this.ids;
  1539. this.meetingTypeDisabled = true;
  1540. getMeeting(id).then((response) => {
  1541. this.form = response.data;
  1542. this.form.projectName = response.data.tProjectPool.projectName;
  1543. this.form.projectStage = response.data.tProjectPool.projectStage;
  1544. this.form.projectGroup = response.data.tProjectPool.projectGroup;
  1545. this.open = true;
  1546. this.title = "修改会议";
  1547. this.selectValues = response.data.participantsId;
  1548. this.selectNameValues = response.data.participants;
  1549. setTimeout(() => {
  1550. this.$refs.fileItems.fileList = [];
  1551. this.$refs.fileItems.getListFileBusinessId(id);
  1552. }, 300);
  1553. });
  1554. },
  1555. // 详情
  1556. handleDetail(row) {
  1557. this.selectValues = null;
  1558. this.selectNameValues = null;
  1559. this.showAllType = true;
  1560. this.reset();
  1561. const id = row.id || this.ids;
  1562. this.meetingTypeDisabled = true;
  1563. getMeeting(id).then((response) => {
  1564. this.form = response.data;
  1565. this.form.projectName = response.data.tProjectPool.projectName;
  1566. this.form.projectStage = response.data.tProjectPool.projectStage;
  1567. this.form.projectGroup = response.data.tProjectPool.projectGroup;
  1568. this.openDetail = true;
  1569. this.selectValues = response.data.participantsId;
  1570. this.selectNameValues = response.data.participants;
  1571. setTimeout(() => {
  1572. this.$refs.fileItemsDet.fileList = [];
  1573. this.$refs.fileItemsDet.getListFileBusinessId(id);
  1574. this.$refs.fileItemsDet.handleButton();
  1575. }, 300);
  1576. });
  1577. },
  1578. /** 会议-提交按钮 */
  1579. submitForm() {
  1580. this.$refs["form"].validate((valid) => {
  1581. if (valid) {
  1582. if (!this.form.projectGroup) {
  1583. this.form.projectGroup = "";
  1584. }
  1585. if (
  1586. new Date(this.form.endTime).getTime() <
  1587. new Date(this.form.startTime).getTime()
  1588. ) {
  1589. this.$confirm("会议结束时间不能小于开始时间,请重新选择!", "提示", {
  1590. confirmButtonText: "确定",
  1591. cancelButtonText: "取消",
  1592. type: "warning",
  1593. })
  1594. .then(() => {})
  1595. .catch(() => {});
  1596. return false;
  1597. }
  1598. this.form.listFile = this.fileList;
  1599. if (this.form.id != null) {
  1600. updateMeeting(this.form).then((response) => {
  1601. this.$modal.msgSuccess("修改成功");
  1602. this.open = false;
  1603. this.getList();
  1604. });
  1605. } else {
  1606. addMeeting(this.form).then((response) => {
  1607. this.$modal.msgSuccess("新增成功");
  1608. this.open = false;
  1609. this.getList();
  1610. });
  1611. }
  1612. }
  1613. });
  1614. },
  1615. // 项目申请-提交
  1616. submitFormLXApply(flag) {
  1617. this.$refs["formLXApply"].validate((valid) => {
  1618. if (valid) {
  1619. this.formLXApply.listFile = this.fileListLXApply;
  1620. if (this.formLXApply.id != null) {
  1621. /*updateApproval(this.formLXApply).then((response) => {
  1622. this.$modal.msgSuccess("修改成功");
  1623. this.openLXApply = false;
  1624. this.$emit("getList");
  1625. });*/
  1626. } else {
  1627. /*addApproval(this.formLXApply).then((response) => {
  1628. this.$modal.msgSuccess("新增成功");
  1629. this.openLXApply = false;
  1630. this.$emit("getList");
  1631. });*/
  1632. }
  1633. this.formLXApply.flag=flag;
  1634. approvalStart(this.formLXApply).then((response) => {
  1635. this.$modal.msgSuccess("新增成功");
  1636. this.openLXApply = false;
  1637. this.$emit("getList");
  1638. });
  1639. }
  1640. });
  1641. },
  1642. // 投决申请-提交
  1643. submitFormTJApply(flag) {
  1644. this.$refs["formTJApply"].validate((valid) => {
  1645. if (valid) {
  1646. this.formTJApply.listFile = this.fileListTJApply;
  1647. /*if (this.formTJApply.id != null) {
  1648. updateDecision(this.formTJApply).then((response) => {
  1649. this.$modal.msgSuccess("修改成功");
  1650. this.openTJApply = false;
  1651. this.$emit("getList");
  1652. });
  1653. } else {
  1654. addDecision(this.formTJApply).then((response) => {
  1655. this.$modal.msgSuccess("新增成功");
  1656. this.openTJApply = false;
  1657. this.$emit("getList");
  1658. });
  1659. }*/
  1660. this.formTJApply.flag=flag;
  1661. decisionStart(this.formTJApply).then((response) => {
  1662. this.$modal.msgSuccess("新增成功");
  1663. this.openTJApply = false;
  1664. this.$emit("getList");
  1665. });
  1666. }
  1667. });
  1668. },
  1669. // 终止申请-提交
  1670. submitFormZZApply(flag) {
  1671. this.$refs["formZZApply"].validate((valid) => {
  1672. if (valid) {
  1673. this.formZZApply.flag=flag;
  1674. terminationStart(this.formZZApply).then((response) => {
  1675. this.$modal.msgSuccess("新增成功");
  1676. this.openZZApply = false;
  1677. this.$emit("getList");
  1678. });
  1679. }
  1680. });
  1681. },
  1682. /** 删除按钮操作 */
  1683. handleDelete(row) {
  1684. const ids = row.id || this.ids;
  1685. const idsName = row.meetingTheme ? row.meetingTheme : this.idsName;
  1686. this.$modal
  1687. .confirm('是否确认删除"' + idsName + '"?')
  1688. .then(function () {
  1689. return delMeeting(ids);
  1690. })
  1691. .then(() => {
  1692. this.getList();
  1693. this.$modal.msgSuccess("删除成功");
  1694. })
  1695. .catch(() => {});
  1696. },
  1697. /** 导出按钮操作 */
  1698. handleExport() {
  1699. this.download(
  1700. "invest/meeting/export",
  1701. {
  1702. ...this.queryParams,
  1703. },
  1704. `meeting_${new Date().getTime()}.xlsx`
  1705. );
  1706. },
  1707. clickRow(row) {
  1708. this.$refs.dataTable.toggleRowSelection(row);
  1709. },
  1710. handleSelectData(type) {
  1711. // type 1=修改 2=删除
  1712. if (this.selectRowList.length == 1) {
  1713. const row = this.selectRowList[0];
  1714. // 创建人
  1715. if (row.createBy === this.user.nickName) {
  1716. if (type === 1) {
  1717. // 修改
  1718. this.handleUpdate(row);
  1719. } else if (type === 2) {
  1720. // 删除
  1721. this.handleDelete(row);
  1722. }
  1723. } else {
  1724. this.$message({
  1725. message: "无权限",
  1726. duration: 1500,
  1727. type: "error",
  1728. });
  1729. }
  1730. } else {
  1731. this.$message({
  1732. message: "只能选择一条数据",
  1733. duration: 1500,
  1734. type: "warning",
  1735. });
  1736. }
  1737. },
  1738. },
  1739. };
  1740. </script>