meetingList.vue 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739
  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"
  704. >
  705. <el-input
  706. type="textarea"
  707. rows="2"
  708. v-model="formLXApply.projectName"
  709. disabled
  710. />
  711. </el-form-item>
  712. <el-form-item
  713. label="项目概况"
  714. prop="projectOverview"
  715. class="special-el-form-item"
  716. >
  717. <el-input
  718. rows="4"
  719. type="textarea"
  720. maxlength="200"
  721. v-model="formLXApply.projectOverview"
  722. placeholder="请输入项目概况"
  723. />
  724. </el-form-item>
  725. <el-form-item
  726. label="项目亮点"
  727. prop="projectSparkle"
  728. class="special-el-form-item"
  729. >
  730. <el-input
  731. rows="4"
  732. type="textarea"
  733. maxlength="200"
  734. v-model="formLXApply.projectSparkle"
  735. placeholder="请输入项目亮点"
  736. />
  737. </el-form-item>
  738. <el-form-item
  739. label="立项资料"
  740. prop="listFile"
  741. class="special-el-form-item"
  742. >
  743. <fileItem
  744. ref="fileItemLXApply"
  745. :id="formLXApply.id"
  746. @getFileList="getFileListLXApply"
  747. ></fileItem>
  748. </el-form-item>
  749. <!-- <el-form-item
  750. label="通知名单"
  751. prop="participants"
  752. class="special-el-form-item public-input-height-2"
  753. >
  754. <div
  755. class="el-input__inner inputSimulation yichu1"
  756. @click="handleSelectPeople()"
  757. :title="formLXApply.participants"
  758. >
  759. {{ formLXApply.participants ? formLXApply.participants : "请选择" }}
  760. </div>
  761. </el-form-item>-->
  762. </el-form>
  763. <div slot="footer" class="dialog-footer">
  764. <!-- <el-button type="primary" @click="submitFormLXApply" v-preventReClick
  765. >确 定</el-button
  766. >-->
  767. <el-button @click="openLXApply = false">取 消</el-button>
  768. <el-button type="warning" @click="submitFormLXApply(false)" v-preventReClick>暂 存</el-button>
  769. <el-button type="primary" @click="submitFormLXApply(true)" v-preventReClick>提 交</el-button>
  770. </div>
  771. </el-dialog>
  772. <!-- 投决申请弹窗 -->
  773. <el-dialog
  774. :title="titleTJApply"
  775. :visible.sync="openTJApply"
  776. width="1000px"
  777. append-to-body
  778. >
  779. <el-form
  780. class="special-el-form"
  781. ref="formTJApply"
  782. :model="formTJApply"
  783. :rules="rulesTJApply"
  784. label-width="120px"
  785. >
  786. <el-form-item
  787. label="项目名称"
  788. prop="projectName"
  789. class="special-el-form-item"
  790. >
  791. <el-input
  792. type="textarea"
  793. rows="2"
  794. v-model="formTJApply.projectName"
  795. disabled
  796. />
  797. </el-form-item>
  798. <el-form-item
  799. label="股权/其他合作商务条款"
  800. prop="provision"
  801. class="special-el-form-item"
  802. >
  803. <el-input
  804. rows="4"
  805. type="textarea"
  806. maxlength="200"
  807. v-model="formTJApply.provision"
  808. placeholder="请输入股权/其他合作商务条款"
  809. />
  810. </el-form-item>
  811. <el-form-item
  812. label="投决资料"
  813. prop="listFile"
  814. class="special-el-form-item"
  815. >
  816. <fileItem
  817. ref="fileItemTJApply"
  818. :id="formTJApply.id"
  819. @getFileList="getFileListTJApply"
  820. ></fileItem>
  821. </el-form-item>
  822. <!-- <el-form-item
  823. label="通知名单"
  824. prop="participants"
  825. class="special-el-form-item public-input-height-2"
  826. >
  827. <div
  828. class="el-input__inner inputSimulation yichu1"
  829. @click="handleSelectPeople()"
  830. :title="formTJApply.participants"
  831. >
  832. {{ formTJApply.participants ? formTJApply.participants : "请选择" }}
  833. </div>
  834. </el-form-item>-->
  835. </el-form>
  836. <div slot="footer" class="dialog-footer">
  837. <el-button @click="openTJApply = false">取 消</el-button>
  838. <el-button type="warning" @click="submitFormTJApply(false)" v-preventReClick>暂 存</el-button>
  839. <el-button type="primary" @click="submitFormTJApply(true)" v-preventReClick>提 交</el-button>
  840. </div>
  841. </el-dialog>
  842. <!-- 终止申请弹窗 -->
  843. <el-dialog
  844. :title="titleZZApply"
  845. :visible.sync="openZZApply"
  846. width="1000px"
  847. append-to-body
  848. >
  849. <el-form
  850. class="special-el-form"
  851. ref="formZZApply"
  852. :model="formZZApply"
  853. :rules="rulesZZApply"
  854. label-width="120px"
  855. >
  856. <el-form-item
  857. label="项目名称"
  858. prop="projectName"
  859. class="special-el-form-item"
  860. >
  861. <el-input
  862. type="textarea"
  863. rows="2"
  864. v-model="formZZApply.projectName"
  865. disabled
  866. />
  867. </el-form-item>
  868. <el-form-item
  869. label="终止原因"
  870. prop="reason"
  871. class="special-el-form-item"
  872. >
  873. <el-input
  874. rows="4"
  875. type="textarea"
  876. maxlength="200"
  877. v-model="formZZApply.reason"
  878. placeholder="请输入终止原因"
  879. />
  880. </el-form-item>
  881. </el-form>
  882. <div slot="footer" class="dialog-footer">
  883. <el-button @click="openTJApply = false">取 消</el-button>
  884. <el-button type="warning" @click="submitFormZZApply(false)" v-preventReClick>暂 存</el-button>
  885. <el-button type="primary" @click="submitFormZZApply(true)" v-preventReClick>提 交</el-button>
  886. </div>
  887. </el-dialog>
  888. </div>
  889. </template>
  890. <script>
  891. import {
  892. listMeeting,
  893. getMeeting,
  894. delMeeting,
  895. addMeeting,
  896. updateMeeting,
  897. getCanScoringMeetingId,
  898. } from "@/api/invest/meeting";
  899. import {approvalStart} from "@/api/project/approval/pool";
  900. import {decisionStart} from "@/api/project/decision/pool";
  901. import {terminationStart} from "@/api/project/termination/pool";
  902. import projectItem from "../invest/components/projectItem";
  903. import fileItem from "../invest/components/fileItem";
  904. import selecDept from "../invest/components/selecDept";
  905. import selecUser from "../invest/components/selecUser";
  906. import { mapGetters } from "vuex";
  907. export default {
  908. props: {
  909. type: {
  910. type: String,
  911. default: "1", //1=显示全部列表 2=显示某项目下的详情列表 3=只展示弹窗
  912. },
  913. projectId: {
  914. type: String,
  915. },
  916. },
  917. dicts: ["meeting_type", "project_stage", "project_group"],
  918. components: { projectItem, selecDept, fileItem, selecUser },
  919. watch: {
  920. "form.meetingType": function (newValue, oldValue) {
  921. if (this.form.meetingType == "LX" || this.form.meetingType == "TJ") {
  922. this.verifyProjectName = true;
  923. } else {
  924. this.verifyProjectName = false;
  925. }
  926. },
  927. open: function (newValue, oldValue) {
  928. if (newValue === false) {
  929. this.selectValues = null;
  930. this.selectNameValues = null;
  931. this.queryParams.projectPoolId = null;
  932. this.meetingType = null;
  933. this.pageType = null;
  934. }
  935. },
  936. },
  937. data() {
  938. const validateLogo = (rule, value, callback) => {
  939. if (this.fileListLXApply.length <= 0) {
  940. callback(new Error("请上传文件"));
  941. } else {
  942. callback();
  943. }
  944. };
  945. const validateLogo1 = (rule, value, callback) => {
  946. if (this.fileListTJApply.length <= 0) {
  947. callback(new Error("请上传文件"));
  948. } else {
  949. callback();
  950. }
  951. };
  952. return {
  953. meetingTypeDisabled: false, //会议类别
  954. showMenu: false,
  955. // 人员选择器
  956. checkType: "multiple",
  957. // 数据回显
  958. selectValues: null,
  959. selectNameValues: null,
  960. userVisible: false,
  961. pageType: null,
  962. meetingType: null,
  963. verifyProjectName: false,
  964. fileList: [],
  965. showProjectItem: false,
  966. deptId: process.env.VUE_APP_DEPTID,
  967. // 遮罩层
  968. loading: true,
  969. // 选中数组
  970. ids: [],
  971. idsName: [],
  972. // 非单个禁用
  973. single: true,
  974. // 非多个禁用
  975. multiple: true,
  976. // 选中数组
  977. selectRowList: [],
  978. // 显示搜索条件
  979. showSearch: false,
  980. // 总条数
  981. total: 0,
  982. // 会议记录表格数据
  983. meetingList: [],
  984. // 弹出层标题
  985. title: "",
  986. // 是否显示弹出层
  987. open: false,
  988. // 查询参数
  989. queryParams: {
  990. pageNum: 1,
  991. pageSize: 10,
  992. meetingTheme: null,
  993. meetingCode: null,
  994. meetingType: null,
  995. startTime: null,
  996. endTime: null,
  997. timeVal: null,
  998. orderByColumn: "createTime",
  999. isAsc: "desc",
  1000. },
  1001. // 表单参数
  1002. form: {
  1003. id: null,
  1004. meetingTheme: null,
  1005. meetingCode: null,
  1006. meetingType: null,
  1007. projectPoolId: null,
  1008. projectName: null,
  1009. projectStage: null,
  1010. projectGroup: "",
  1011. startTime: null,
  1012. endTime: null,
  1013. place: null,
  1014. promoter: null,
  1015. promoterId: null,
  1016. participants: null,
  1017. participantsId: null,
  1018. delFlag: null,
  1019. createBy: null,
  1020. createTime: null,
  1021. updateBy: null,
  1022. updateTime: null,
  1023. },
  1024. // 表单校验
  1025. rules: {
  1026. meetingTheme: [{ required: true, trigger: "blur", message: "请输入" }],
  1027. meetingType: [{ required: true, trigger: "change", message: "请选择" }],
  1028. // projectGroup: [{ required: true, trigger: "change", message: "请选择" }],
  1029. // projectName: [{ required: true, trigger: "blur", message: "请选择" }],
  1030. startTime: [{ required: true, trigger: "change", message: "请选择" }],
  1031. endTime: [{ required: true, trigger: "blur", message: "请选择" }],
  1032. place: [{ required: true, trigger: "blur", message: "请输入" }],
  1033. promoter: [{ required: true, trigger: "blur", message: "请选择" }],
  1034. participants: [{ required: true, trigger: "blur", message: "请选择" }],
  1035. },
  1036. isInitiator: false, //是否是发起人
  1037. showLookMark: false, //是否查看打分表
  1038. showMarkBtn: false,
  1039. meetingTypeList1: [
  1040. {
  1041. value: "A",
  1042. label: "管理会议",
  1043. },
  1044. {
  1045. value: "X",
  1046. label: "临时会议",
  1047. },
  1048. ],
  1049. meetingTypeList: [
  1050. {
  1051. value: "A",
  1052. label: "管理会议",
  1053. },
  1054. {
  1055. value: "LX",
  1056. label: "项目立项会",
  1057. },
  1058. {
  1059. value: "TJ",
  1060. label: "项目投决会",
  1061. },
  1062. {
  1063. value: "X",
  1064. label: "临时会议",
  1065. },
  1066. ],
  1067. showAllType: false,
  1068. openDetail: false,
  1069. // 立项申请
  1070. titleLXApply: "",
  1071. openLXApply: false,
  1072. formLXApply: {
  1073. id: null,
  1074. projectPoolId: null,
  1075. projectName: null,
  1076. projectOverview: null,
  1077. projectSparkle: null,
  1078. listFile: null,
  1079. participants: null,
  1080. participantsId: null,
  1081. flag:null,
  1082. },
  1083. fileListLXApply: [],
  1084. rulesLXApply: {
  1085. projectOverview: [
  1086. { required: true, trigger: "blur", message: "请输入" },
  1087. ],
  1088. projectSparkle: [
  1089. { required: true, trigger: "blur", message: "请输入" },
  1090. ],
  1091. listFile: [{ required: true, validator: validateLogo }],
  1092. },
  1093. // 投决申请
  1094. titleTJApply: "",
  1095. openTJApply: false,
  1096. formTJApply: {
  1097. id: null,
  1098. projectPoolId: null,
  1099. projectName: null,
  1100. provision: null,
  1101. listFile: null,
  1102. participants: null,
  1103. participantsId: null,
  1104. flag:null,
  1105. },
  1106. fileListTJApply: [],
  1107. rulesTJApply: {
  1108. provision: [{ required: true, trigger: "blur", message: "请输入" }],
  1109. listFile: [{ required: true, validator: validateLogo1 }],
  1110. },
  1111. // 终止申请
  1112. titleZZApply: "",
  1113. openZZApply: false,
  1114. formZZApply: {
  1115. id: null,
  1116. projectPoolId: null,
  1117. projectName: null,
  1118. reason:null,
  1119. participants: null,
  1120. participantsId: null,
  1121. flag:null,
  1122. },
  1123. rulesZZApply: {
  1124. reason: [{ required: true, trigger: "blur", message: "请输入" }],
  1125. },
  1126. };
  1127. },
  1128. computed: {
  1129. ...mapGetters(["user"]),
  1130. },
  1131. created() {
  1132. this.showAllType = this.type === "3";
  1133. // 查询该id下的列表信息
  1134. if (this.$route.query.id) {
  1135. this.queryParams.projectPoolId = this.$route.query.id;
  1136. }
  1137. // 会议类型
  1138. if (this.$route.query.meetingType) {
  1139. this.meetingType = this.$route.query.meetingType;
  1140. }
  1141. // 直接弹出新增
  1142. if (this.$route.query.type === "1") {
  1143. this.pageType = this.$route.query.type;
  1144. this.handleAdd();
  1145. }
  1146. if (this.projectId) {
  1147. this.queryParams.projectPoolId = this.projectId;
  1148. }
  1149. if (this.type !== "3") {
  1150. this.getList();
  1151. }
  1152. },
  1153. methods: {
  1154. handleSelectPeople() {
  1155. // this.userVisible = true;
  1156. this.$refs.flowUser.handleUserVisible(true);
  1157. },
  1158. /*用户选中赋值*/
  1159. // checkUserComplete() {
  1160. // this.userVisible = false;
  1161. // this.checkType = "";
  1162. // },
  1163. // 用户选中数据
  1164. handleUserSelect(selection) {
  1165. const that = this;
  1166. if (selection && selection[0]) {
  1167. let form;
  1168. if (this.open) {
  1169. form = this.form;
  1170. } else if (this.openLXApply) {
  1171. form = this.formLXApply;
  1172. } else if (this.openTJApply) {
  1173. form = this.formTJApply;
  1174. }
  1175. if (selection instanceof Array) {
  1176. const userIds = selection.map((item) => item.userId);
  1177. const nickName = selection.map((item) => item.nickName);
  1178. form.participants = nickName.join(",");
  1179. form.participantsId = userIds.join(",");
  1180. this.selectNameValues = nickName.join(",");
  1181. this.selectValues = userIds.join(",");
  1182. } else {
  1183. form.participants = selection.nickName;
  1184. form.participantsId = selection.userId;
  1185. this.selectNameValues = selection.nickName;
  1186. this.selectValues = selection.userId;
  1187. }
  1188. this.$refs.form.clearValidate(["participants"]);
  1189. }
  1190. },
  1191. getButtonItem(row) {
  1192. this.showMarkBtn = false;
  1193. this.isInitiator = false;
  1194. // 是否是发起人
  1195. let isInitiator = row.promoterId == this.user.userId;
  1196. this.isInitiator = isInitiator;
  1197. // 参与人数组
  1198. let participantsIdList = row.participantsId.split(",");
  1199. // console.log("是否是发起人",this.isInitiator)
  1200. // console.log("参与人数组",participantsIdList,"this.user.userId=",this.user.userId,participantsIdList.indexOf(this.user.userId) > -1)
  1201. // 参与人里面包含发起人
  1202. if (participantsIdList.indexOf(this.user.userId) > -1) {
  1203. this.showMarkBtn = true;
  1204. }
  1205. // console.log("this.showMarkBtn=",this.showMarkBtn)
  1206. getCanScoringMeetingId(row.id).then((response) => {
  1207. // 查看打分
  1208. if (response.tProjectScoring) {
  1209. this.showLookMark = true;
  1210. this.$store.commit("SET_TPROJECTSCORING", response.tProjectScoring);
  1211. } else {
  1212. // 去打分
  1213. this.showLookMark = false;
  1214. if (!this.showMarkBtn && !isInitiator) {
  1215. this.$message({
  1216. message: "暂无更多操作权限",
  1217. duration: 1500,
  1218. type: "warning",
  1219. });
  1220. }
  1221. }
  1222. });
  1223. },
  1224. // getCanScoringMeetingId
  1225. handleCommand(command, row) {
  1226. // console.log("handleCommand", command);
  1227. // console.log("row", row);
  1228. let type = "1",
  1229. readonly = true;
  1230. if (command === "1") {
  1231. readonly = false;
  1232. }
  1233. if (command === "3") {
  1234. type = "2";
  1235. }
  1236. this.handleMark(row, type, readonly);
  1237. },
  1238. // 去打分
  1239. handleMark(row, type, readonly) {
  1240. this.$router.push({
  1241. path: "/invest/meeting/mark",
  1242. query: { id: row.id, formType: type, readonly: readonly },
  1243. });
  1244. },
  1245. // 查看打分表
  1246. handleLookMark(row, type) {
  1247. this.$router.push({
  1248. path: "/invest/meeting/mark",
  1249. query: { id: row.id, formType: type },
  1250. });
  1251. },
  1252. // 选择部门人
  1253. openSelectDept(type) {
  1254. if (type == 2) {
  1255. // this.$refs.selecDepts1.show(type);
  1256. } else {
  1257. this.$refs.selecDepts.show(type, this.form.promoterId);
  1258. }
  1259. },
  1260. getDeptUserInfo(info) {
  1261. if (info.length > 0) {
  1262. this.form.promoter = info[0].nickName;
  1263. this.form.promoterId = info[0].userId.toString();
  1264. this.$refs.form.clearValidate(["promoter"]);
  1265. }
  1266. },
  1267. // 多选人
  1268. getDeptMoreUserInfo(info) {
  1269. let peoList = [],
  1270. peoIdList = [];
  1271. for (let i in info) {
  1272. peoList.push(info[i].nickName);
  1273. peoIdList.push(info[i].userId.toString());
  1274. }
  1275. let peopleStr = peoList.join(",");
  1276. let peopleIdStr = peoIdList.join(",");
  1277. this.form.participants = peopleStr;
  1278. this.form.participantsId = peopleIdStr;
  1279. this.$refs.form.clearValidate(["participants"]);
  1280. },
  1281. // 会议申请附件回显
  1282. getFileList(fileList) {
  1283. if (fileList && fileList.length > 0) {
  1284. this.fileList = fileList;
  1285. } else {
  1286. this.fileList = [];
  1287. }
  1288. },
  1289. // 展示立项申请弹窗
  1290. showLXApplyPop(row) {
  1291. this.resetLXApply(row);
  1292. this.fileListLXApply = [];
  1293. this.openLXApply = true;
  1294. this.titleLXApply = "立项申请";
  1295. setTimeout(() => {
  1296. this.$refs.fileItemLXApply.fileList = [];
  1297. }, 200);
  1298. },
  1299. // 展示投决申请弹窗
  1300. showTJApplyPop(row) {
  1301. this.resetTJApply(row);
  1302. this.fileListLXApply = [];
  1303. this.openTJApply = true;
  1304. this.titleTJApply = "投决申请";
  1305. setTimeout(() => {
  1306. this.$refs.fileItemTJApply.fileList = [];
  1307. }, 200);
  1308. },
  1309. // 展示终止申请弹窗
  1310. showZZApplyPop(row) {
  1311. this.resetZZApply(row);
  1312. //this.fileListZZApply = [];
  1313. this.openZZApply = true;
  1314. this.titleZZApply = "终止申请";
  1315. /*setTimeout(() => {
  1316. this.$refs.fileItemZZApply.fileList = [];
  1317. }, 200);*/
  1318. },
  1319. // 立项申请附件回显
  1320. getFileListLXApply(fileList) {
  1321. this.fileListLXApply = fileList;
  1322. if (fileList && fileList.length > 0) {
  1323. this.$refs.formLXApply.clearValidate(["listFile"]);
  1324. } else {
  1325. this.fileListLXApply = [];
  1326. }
  1327. },
  1328. // 投决申请附件回显
  1329. getFileListTJApply(fileList) {
  1330. this.fileListTJApply = fileList;
  1331. if (fileList && fileList.length > 0) {
  1332. this.$refs.formTJApply.clearValidate(["listFile"]);
  1333. } else {
  1334. this.fileListTJApply = [];
  1335. }
  1336. },
  1337. // 获取公司信息
  1338. getProjectInfo(info) {
  1339. if (info.length > 0) {
  1340. //console.log("info=", info);
  1341. this.form.projectPoolId = info[0].id;
  1342. this.form.projectName = info[0].projectName;
  1343. this.form.projectStage = info[0].projectStage;
  1344. this.form.projectState = info[0].projectState;
  1345. if (info[0].tProjectChannel && info[0].tProjectChannel.channelGroup) {
  1346. this.form.projectGroup = info[0].tProjectChannel.channelGroup;
  1347. } else {
  1348. this.form.projectGroup = "";
  1349. }
  1350. this.$refs.form.clearValidate(["projectName"]);
  1351. }
  1352. },
  1353. //展示人员
  1354. handleProjectItem() {
  1355. this.$refs.projectItem.showProjectItem = true;
  1356. },
  1357. /** 查询会议记录列表 */
  1358. getList() {
  1359. this.loading = true;
  1360. if (this.projectId) {
  1361. this.queryParams.projectPoolId = this.projectId;
  1362. }
  1363. listMeeting(this.queryParams).then((response) => {
  1364. this.meetingList = response.rows;
  1365. this.total = response.total;
  1366. this.loading = false;
  1367. });
  1368. },
  1369. // 取消按钮
  1370. cancel() {
  1371. this.open = false;
  1372. this.reset();
  1373. },
  1374. // 会议申请表单重置
  1375. reset() {
  1376. this.form = {
  1377. id: null,
  1378. meetingTheme: null,
  1379. meetingCode: null,
  1380. meetingType: null,
  1381. projectPoolId: null,
  1382. projectName: null,
  1383. projectStage: null,
  1384. projectGroup: "",
  1385. startTime: null,
  1386. endTime: null,
  1387. place: null,
  1388. promoter: this.user.nickName,
  1389. promoterId: this.user.userId,
  1390. participants: null,
  1391. participantsId: null,
  1392. delFlag: null,
  1393. createBy: null,
  1394. createTime: null,
  1395. updateBy: null,
  1396. updateTime: null,
  1397. };
  1398. this.resetForm("form");
  1399. },
  1400. // 立项申请表单重置
  1401. resetLXApply(row) {
  1402. this.formLXApply = {
  1403. id: null,
  1404. projectPoolId: row.id,
  1405. projectName: row.projectName,
  1406. projectOverview: null,
  1407. projectSparkle: null,
  1408. listFile: null,
  1409. };
  1410. this.resetForm("formLXApply");
  1411. },
  1412. // 投决申请表单重置
  1413. resetTJApply(row) {
  1414. this.formTJApply = {
  1415. id: null,
  1416. projectPoolId: row.id,
  1417. projectName: row.projectName,
  1418. projectOverview: null,
  1419. projectSparkle: null,
  1420. listFile: null,
  1421. };
  1422. this.resetForm("formTJApply");
  1423. },
  1424. // 终止申请表单重置
  1425. resetZZApply(row) {
  1426. this.formZZApply = {
  1427. id: null,
  1428. projectPoolId: row.id,
  1429. projectName: row.projectName,
  1430. projectOverview: null,
  1431. projectSparkle: null,
  1432. listFile: null,
  1433. };
  1434. this.resetForm("formZZApply");
  1435. },
  1436. /** 搜索按钮操作 */
  1437. handleQuery() {
  1438. this.queryParams.pageNum = 1;
  1439. if (this.queryParams.timeVal && this.queryParams.timeVal.length > 0) {
  1440. this.queryParams.startTime = this.queryParams.timeVal[0];
  1441. this.queryParams.endTime = this.queryParams.timeVal[1];
  1442. }
  1443. this.getList();
  1444. },
  1445. /** 重置按钮操作 */
  1446. resetQuery() {
  1447. this.resetForm("queryForm");
  1448. this.queryParams.timeVal = null;
  1449. this.queryParams.startTime = null;
  1450. this.queryParams.endTime = null;
  1451. this.queryParams.orderByColumn = "createTime";
  1452. this.queryParams.isAsc = "desc";
  1453. this.handleQuery();
  1454. },
  1455. // 多选框选中数据
  1456. handleSelectionChange(selection) {
  1457. this.ids = selection.map((item) => item.id);
  1458. this.idsName = selection.map((item) => item.meetingTheme);
  1459. this.single = selection.length !== 1;
  1460. this.multiple = !selection.length;
  1461. this.selectRowList = selection;
  1462. },
  1463. /** 新增按钮操作 */
  1464. handleAdd(projectId, meetingType) {
  1465. let that = this;
  1466. this.fileList = [];
  1467. this.showAllType = this.type === "3";
  1468. this.meetingTypeDisabled = false;
  1469. this.selectValues = null;
  1470. this.selectNameValues = null;
  1471. this.reset();
  1472. if (meetingType) {
  1473. this.meetingType = meetingType;
  1474. this.meetingTypeDisabled = true;
  1475. }
  1476. if (projectId && typeof projectId === "string") {
  1477. this.pageType = "1";
  1478. }
  1479. // 直接绑定好项目
  1480. if (this.pageType === "1") {
  1481. let projectItemMessage = this.$store.getters.projectItemMessage;
  1482. this.form.projectPoolId = projectItemMessage.id;
  1483. this.form.projectName = projectItemMessage.projectName;
  1484. this.form.projectStage = projectItemMessage.projectStage;
  1485. this.form.projectGroup = projectItemMessage.projectGroup;
  1486. this.form.meetingType = this.meetingType;
  1487. }
  1488. this.open = true;
  1489. this.title = "添加会议";
  1490. setTimeout(() => {
  1491. that.$refs.fileItems.fileList = [];
  1492. }, 200);
  1493. },
  1494. /** 修改按钮操作 */
  1495. handleUpdate(row) {
  1496. this.selectValues = null;
  1497. this.selectNameValues = null;
  1498. this.showAllType = true;
  1499. this.reset();
  1500. const id = row.id || this.ids;
  1501. this.meetingTypeDisabled = true;
  1502. getMeeting(id).then((response) => {
  1503. this.form = response.data;
  1504. this.form.projectName = response.data.tProjectPool.projectName;
  1505. this.form.projectStage = response.data.tProjectPool.projectStage;
  1506. this.form.projectGroup = response.data.tProjectPool.projectGroup;
  1507. this.open = true;
  1508. this.title = "修改会议";
  1509. this.selectValues = response.data.participantsId;
  1510. this.selectNameValues = response.data.participants;
  1511. setTimeout(() => {
  1512. this.$refs.fileItems.fileList = [];
  1513. this.$refs.fileItems.getListFileBusinessId(id);
  1514. }, 300);
  1515. });
  1516. },
  1517. // 详情
  1518. handleDetail(row) {
  1519. this.selectValues = null;
  1520. this.selectNameValues = null;
  1521. this.showAllType = true;
  1522. this.reset();
  1523. const id = row.id || this.ids;
  1524. this.meetingTypeDisabled = true;
  1525. getMeeting(id).then((response) => {
  1526. this.form = response.data;
  1527. this.form.projectName = response.data.tProjectPool.projectName;
  1528. this.form.projectStage = response.data.tProjectPool.projectStage;
  1529. this.form.projectGroup = response.data.tProjectPool.projectGroup;
  1530. this.openDetail = true;
  1531. this.selectValues = response.data.participantsId;
  1532. this.selectNameValues = response.data.participants;
  1533. setTimeout(() => {
  1534. this.$refs.fileItemsDet.fileList = [];
  1535. this.$refs.fileItemsDet.getListFileBusinessId(id);
  1536. this.$refs.fileItemsDet.handleButton();
  1537. }, 300);
  1538. });
  1539. },
  1540. /** 会议-提交按钮 */
  1541. submitForm() {
  1542. this.$refs["form"].validate((valid) => {
  1543. if (valid) {
  1544. if (!this.form.projectGroup) {
  1545. this.form.projectGroup = "";
  1546. }
  1547. if (
  1548. new Date(this.form.endTime).getTime() <
  1549. new Date(this.form.startTime).getTime()
  1550. ) {
  1551. this.$confirm("会议结束时间不能小于开始时间,请重新选择!", "提示", {
  1552. confirmButtonText: "确定",
  1553. cancelButtonText: "取消",
  1554. type: "warning",
  1555. })
  1556. .then(() => {})
  1557. .catch(() => {});
  1558. return false;
  1559. }
  1560. this.form.listFile = this.fileList;
  1561. if (this.form.id != null) {
  1562. updateMeeting(this.form).then((response) => {
  1563. this.$modal.msgSuccess("修改成功");
  1564. this.open = false;
  1565. this.getList();
  1566. });
  1567. } else {
  1568. addMeeting(this.form).then((response) => {
  1569. this.$modal.msgSuccess("新增成功");
  1570. this.open = false;
  1571. this.getList();
  1572. });
  1573. }
  1574. }
  1575. });
  1576. },
  1577. // 项目申请-提交
  1578. submitFormLXApply(flag) {
  1579. this.$refs["formLXApply"].validate((valid) => {
  1580. if (valid) {
  1581. this.formLXApply.listFile = this.fileListLXApply;
  1582. if (this.formLXApply.id != null) {
  1583. /*updateApproval(this.formLXApply).then((response) => {
  1584. this.$modal.msgSuccess("修改成功");
  1585. this.openLXApply = false;
  1586. this.$emit("getList");
  1587. });*/
  1588. } else {
  1589. /*addApproval(this.formLXApply).then((response) => {
  1590. this.$modal.msgSuccess("新增成功");
  1591. this.openLXApply = false;
  1592. this.$emit("getList");
  1593. });*/
  1594. }
  1595. this.formLXApply.flag=flag;
  1596. try {
  1597. approvalStart(this.formLXApply).then((response) => {
  1598. this.$modal.msgSuccess("新增成功");
  1599. this.openLXApply = false;
  1600. this.$emit("getList");
  1601. this.$store.dispatch("getMyTaskApprovalNumber"); //更新代办数量
  1602. });
  1603. } catch (err) {
  1604. // 捕获重复提交错误
  1605. this.$message.error(err.message);
  1606. }
  1607. }
  1608. });
  1609. },
  1610. // 投决申请-提交
  1611. submitFormTJApply(flag) {
  1612. this.$refs["formTJApply"].validate((valid) => {
  1613. if (valid) {
  1614. this.formTJApply.listFile = this.fileListTJApply;
  1615. /*if (this.formTJApply.id != null) {
  1616. updateDecision(this.formTJApply).then((response) => {
  1617. this.$modal.msgSuccess("修改成功");
  1618. this.openTJApply = false;
  1619. this.$emit("getList");
  1620. });
  1621. } else {
  1622. addDecision(this.formTJApply).then((response) => {
  1623. this.$modal.msgSuccess("新增成功");
  1624. this.openTJApply = false;
  1625. this.$emit("getList");
  1626. });
  1627. }*/
  1628. this.formTJApply.flag=flag;
  1629. try {
  1630. decisionStart(this.formTJApply).then((response) => {
  1631. this.$modal.msgSuccess("新增成功");
  1632. this.openTJApply = false;
  1633. this.$emit("getList");
  1634. this.$store.dispatch("getMyTaskDecisionNumber"); //更新代办数量
  1635. });
  1636. } catch (err) {
  1637. // 捕获重复提交错误
  1638. this.$message.error(err.message);
  1639. }
  1640. }
  1641. });
  1642. },
  1643. // 终止申请-提交
  1644. submitFormZZApply(flag) {
  1645. this.$refs["formZZApply"].validate((valid) => {
  1646. if (valid) {
  1647. this.formZZApply.flag=flag;
  1648. try {
  1649. terminationStart(this.formZZApply).then((response) => {
  1650. this.$modal.msgSuccess("新增成功");
  1651. this.openZZApply = false;
  1652. this.$emit("getList");
  1653. this.$store.dispatch("getMyTaskTerminationNumber"); //更新代办数量
  1654. });
  1655. } catch (err) {
  1656. // 捕获重复提交错误
  1657. this.$message.error(err.message);
  1658. }
  1659. }
  1660. });
  1661. },
  1662. /** 删除按钮操作 */
  1663. handleDelete(row) {
  1664. const ids = row.id || this.ids;
  1665. const idsName = row.meetingTheme ? row.meetingTheme : this.idsName;
  1666. this.$modal
  1667. .confirm('是否确认删除"' + idsName + '"?')
  1668. .then(function () {
  1669. return delMeeting(ids);
  1670. })
  1671. .then(() => {
  1672. this.getList();
  1673. this.$modal.msgSuccess("删除成功");
  1674. })
  1675. .catch(() => {});
  1676. },
  1677. /** 导出按钮操作 */
  1678. handleExport() {
  1679. this.download(
  1680. "invest/meeting/export",
  1681. {
  1682. ...this.queryParams,
  1683. },
  1684. `meeting_${new Date().getTime()}.xlsx`
  1685. );
  1686. },
  1687. clickRow(row) {
  1688. this.$refs.dataTable.toggleRowSelection(row);
  1689. },
  1690. handleSelectData(type) {
  1691. // type 1=修改 2=删除
  1692. if (this.selectRowList.length == 1) {
  1693. const row = this.selectRowList[0];
  1694. // 创建人
  1695. if (row.createBy === this.user.nickName) {
  1696. if (type === 1) {
  1697. // 修改
  1698. this.handleUpdate(row);
  1699. } else if (type === 2) {
  1700. // 删除
  1701. this.handleDelete(row);
  1702. }
  1703. } else {
  1704. this.$message({
  1705. message: "无权限",
  1706. duration: 1500,
  1707. type: "error",
  1708. });
  1709. }
  1710. } else {
  1711. this.$message({
  1712. message: "只能选择一条数据",
  1713. duration: 1500,
  1714. type: "warning",
  1715. });
  1716. }
  1717. },
  1718. },
  1719. };
  1720. </script>