detail.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. <template>
  2. <div class="detailWrapper">
  3. <section class="section1 public-flex">
  4. <div class="public-margin-r-20">
  5. <h4>
  6. 投资项目
  7. <span class="alreadyStop" v-if="detailInfo.delFlag === '1'"
  8. >已终止</span
  9. >
  10. </h4>
  11. <p class="projectNameTit">{{ detailInfo.projectName }}</p>
  12. </div>
  13. </section>
  14. <el-divider></el-divider>
  15. <section>
  16. <!-- :space="200" -->
  17. <el-divider></el-divider>
  18. <div
  19. class="public-flex-between basicsInfo"
  20. v-if="detailInfo.projectState != '1'"
  21. >
  22. <div class="public-flex-center-column">
  23. <div>项目公司名称</div>
  24. <p
  25. style="width: 250px; text-align: center"
  26. class="yichu1"
  27. v-if="
  28. detailInfo.tProjectCompany &&
  29. detailInfo.tProjectCompany.companyName
  30. "
  31. >
  32. {{ detailInfo.tProjectCompany.companyName }}
  33. </p>
  34. </div>
  35. <div class="public-flex-center-column">
  36. <div>渠道</div>
  37. <p
  38. v-if="
  39. detailInfo.tProjectChannel &&
  40. detailInfo.tProjectChannel.channelName
  41. "
  42. >
  43. {{ detailInfo.tProjectChannel.channelName }}
  44. </p>
  45. <p v-else-if="scope.row.channel=='1'" >
  46. 直接触达
  47. </p>
  48. <p v-else="scope.row.channel=='2'" >
  49. 内部推荐
  50. </p>
  51. </div>
  52. <div class="public-flex-center-column">
  53. <div>项目负责人</div>
  54. <p>{{ detailInfo.investHead }}</p>
  55. </div>
  56. <div class="public-flex-center-column" v-if="detailInfo.projectDate">
  57. <div>立项通过日期</div>
  58. <p>{{ detailInfo.projectDate }}</p>
  59. </div>
  60. <div class="public-flex-center-column" v-if="detailInfo.decisionDate">
  61. <div>投决通过日期</div>
  62. <p>{{ detailInfo.decisionDate }}</p>
  63. </div>
  64. <div class="public-flex-center-column">
  65. <div>投前估值(万元)</div>
  66. <p>{{ detailInfo.investValuation }}</p>
  67. </div>
  68. <div class="public-flex-center-column">
  69. <div>预计投资金额(万元)</div>
  70. <p>{{ detailInfo.investMoney }}</p>
  71. </div>
  72. </div>
  73. </section>
  74. <section class="section3">
  75. <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
  76. <el-tab-pane label="尽职背调信息" name="0"></el-tab-pane>
  77. <el-tab-pane label="项目基本信息" name="1"></el-tab-pane>
  78. </el-tabs>
  79. <section>
  80. <div v-if="activeName === '0'" class="public-padded-20 detail-meeting">
  81. <el-tabs type="border-card" >
  82. <el-tab-pane label="尽职背调申请表">
  83. <el-form
  84. v-if="dueForm.id"
  85. ref="dueForm"
  86. class="special-el-form public-padded-t-20"
  87. :model="dueForm"
  88. label-width="170px"
  89. >
  90. <el-form-item label="尽调名称" class="special-el-form-item">
  91. <el-input
  92. disabled
  93. v-model="dueForm.investigateName"
  94. placeholder="请输入尽调名称"
  95. />
  96. </el-form-item>
  97. <el-form-item
  98. label="尽调地点"
  99. prop="investigatePlace"
  100. class="special-el-form-item"
  101. >
  102. <el-input
  103. disabled
  104. maxlength="100"
  105. v-model="dueForm.investigatePlace"
  106. />
  107. </el-form-item>
  108. <el-form-item label="期望尽调开始时间" prop="startTime">
  109. <el-date-picker
  110. disabled
  111. clearable
  112. v-model="dueForm.startTime"
  113. type="date"
  114. value-format="yyyy-MM-dd"
  115. >
  116. </el-date-picker>
  117. </el-form-item>
  118. <el-form-item label="期望尽调结束时间" prop="endTime">
  119. <el-date-picker
  120. disabled
  121. clearable
  122. v-model="dueForm.endTime"
  123. type="date"
  124. value-format="yyyy-MM-dd"
  125. >
  126. </el-date-picker>
  127. </el-form-item>
  128. <el-form-item label="尽调资料是否齐全" prop="readiness">
  129. <el-radio-group v-model="dueForm.readiness" disabled>
  130. <el-radio label="1">是</el-radio>
  131. <el-radio label="0">否</el-radio>
  132. </el-radio-group>
  133. </el-form-item>
  134. <el-form-item label="是否有第三方投资机构" prop="thirdParty">
  135. <el-radio-group v-model="dueForm.thirdParty" disabled>
  136. <el-radio label="1">是</el-radio>
  137. <el-radio label="0">否</el-radio>
  138. </el-radio-group>
  139. </el-form-item>
  140. <el-form-item label="尽调费用(元)">
  141. <el-input disabled v-model="dueForm.investigateCost" />
  142. </el-form-item>
  143. <el-form-item label="尽调财务数据截止日期" prop="deadDate">
  144. <el-date-picker
  145. disabled
  146. clearable
  147. v-model="dueForm.deadDate"
  148. type="date"
  149. value-format="yyyy-MM-dd"
  150. >
  151. </el-date-picker>
  152. </el-form-item>
  153. <el-form-item label="尽调人员" class="special-el-form-item">
  154. <el-input
  155. type="textarea"
  156. rows="2"
  157. disabled
  158. v-model="dueForm.investigatePerson"
  159. />
  160. </el-form-item>
  161. <el-form-item label="尽调资料" class="special-el-form-item">
  162. <fileItem ref="fileItems1" :id="dueForm.id" :is-detail="true"></fileItem>
  163. </el-form-item>
  164. <el-form-item label="描述" class="special-el-form-item">
  165. <el-input
  166. disabled
  167. rows="4"
  168. v-model="dueForm.describe"
  169. type="textarea"
  170. />
  171. </el-form-item>
  172. <el-form-item label="备注" class="special-el-form-item">
  173. <el-input
  174. disabled
  175. rows="4"
  176. type="textarea"
  177. v-model="dueForm.remark"
  178. />
  179. </el-form-item>
  180. <el-form-item label="财务评估报告" class="special-el-form-item">
  181. <fileItem ref="financeFileItem" :id="dueForm.id" :is-detail="true"></fileItem>
  182. </el-form-item>
  183. <el-form-item label="法务评估报告" class="special-el-form-item">
  184. <fileItem ref="legalFileItem" :id="dueForm.id" :is-detail="true"></fileItem>
  185. </el-form-item>
  186. <el-form-item label="其他" class="special-el-form-item">
  187. <fileItem ref="otherFileItem" :id="dueForm.id" :is-detail="true"></fileItem>
  188. </el-form-item>
  189. </el-form>
  190. <div
  191. v-else
  192. class="public-flex-center public-padded-20"
  193. style="color: #909399"
  194. >
  195. 暂无数据
  196. </div>
  197. </el-tab-pane>
  198. <el-tab-pane label="尽职背调报告汇总表" v-if="dueAllPeportList.length > 0&&dueForm.taskDefKey!='modifyApply'&&dueForm.taskDefKey!='deptLeader'&&dueForm.taskDefKey!='upload'">
  199. <div v-if="dueAllPeportList.length > 0">
  200. <el-form
  201. v-for="(item, index) in dueAllPeportList"
  202. :key="index"
  203. class="special-el-form public-padded-t-20"
  204. :model="item"
  205. label-width="100px"
  206. >
  207. <el-form-item label="尽调人员" class="special-el-form-item">
  208. <el-input disabled v-model="item.investigatePerson" />
  209. </el-form-item>
  210. <el-form-item label="报告" class="special-el-form-item">
  211. <fileItem
  212. ref="dueAllreportFileItems"
  213. :id="item.id"
  214. :is-detail="true"
  215. ></fileItem>
  216. </el-form-item>
  217. <!-- <el-form-item label="备注" class="special-el-form-item">
  218. <el-input
  219. disabled
  220. rows="4"
  221. type="textarea"
  222. v-model="item.remark"
  223. placeholder="请输入备注"
  224. />
  225. </el-form-item>-->
  226. <el-divider></el-divider>
  227. </el-form>
  228. </div>
  229. <div
  230. v-else
  231. class="public-flex-center public-padded-20"
  232. style="color: #909399"
  233. >
  234. 暂无数据
  235. </div>
  236. </el-tab-pane>
  237. </el-tabs>
  238. </div>
  239. <div v-show="activeName === '1'">
  240. <poolForm :type="type" :id="id"></poolForm>
  241. </div>
  242. </section>
  243. </section>
  244. <section>
  245. <flowBase :procInstId="pInstId" v-if="pInstId"></flowBase>
  246. </section>
  247. </div>
  248. </template>
  249. <script>
  250. import poolForm from "../../invest/components/poolForm";
  251. import fileItem from "../../invest/components/fileItem";
  252. import flowBase from "../flowBase.vue";
  253. import {
  254. getPool,
  255. getDueAllPeportList,
  256. } from "@/api/invest/pool";
  257. import{
  258. getInvestigateInfo,
  259. } from "@/api/project/investigate/pool"
  260. import { mapGetters } from "vuex";
  261. export default {
  262. name: "decisionDetail",
  263. components: {
  264. poolForm,
  265. fileItem,
  266. flowBase
  267. },
  268. data() {
  269. return {
  270. meetingId: "0",
  271. type: "2",
  272. id: "",
  273. active: 0,
  274. detailInfo: {
  275. projectName: "",
  276. },
  277. activeName: "0",
  278. pInstId: null,
  279. dueForm: {
  280. id: null,
  281. investigateName: null,
  282. investigateCode: null,
  283. projectPoolId: null,
  284. investigatePerson: null,
  285. investigatePersonId: null,
  286. investigateCost: null,
  287. //
  288. startTime: null,
  289. endTime: null,
  290. investigatePlace: null,
  291. readiness: null,
  292. thirdParty: null,
  293. deadDate: null,
  294. //
  295. describe: null,
  296. remark: null,
  297. delFlag: null,
  298. createBy: null,
  299. createTime: null,
  300. updateBy: null,
  301. updateTime: null,
  302. projectName: null,
  303. flag:null,
  304. taskDefKey:null,
  305. },
  306. dueAllPeportList:[]
  307. };
  308. },
  309. computed: {
  310. ...mapGetters(["user"]),
  311. },
  312. created() {
  313. this.id = this.$route.query.id;
  314. this.pInstId=this.$route.query.pInstId;
  315. this.getDetail();
  316. this.getInvestigateListProjectPoolIdNew();
  317. if (this.$route.query.activeName) {
  318. this.activeName = this.$route.query.activeName;
  319. }
  320. },
  321. methods: {
  322. handleClick(tab, event) {
  323. let that = this;
  324. if (this.activeName === "0") {
  325. // 尽职背调
  326. this.getInvestigateListProjectPoolIdNew();
  327. } else if (this.activeName === "1") {
  328. // 项目报备
  329. this.getDetail();
  330. }
  331. },
  332. // 根据项目ID获取最新尽调申请
  333. getInvestigateListProjectPoolIdNew() {
  334. let that = this;
  335. getInvestigateInfo(this.$route.query.pInstId).then((response) => {
  336. if (response && response.data) {
  337. that.dueForm = response.data;
  338. setTimeout(() => {
  339. this.$refs.fileItems1.handleButton();
  340. this.$refs.fileItems1.listFile = [];
  341. this.$refs.fileItems1.getListFileBusinessId(that.dueForm.id,"11");
  342. //财务评估报告
  343. this.$refs.financeFileItem.handleButton();
  344. this.$refs.financeFileItem.fileList = [];
  345. this.$refs.financeFileItem.getListFileBusinessId(that.dueForm.id, "14");
  346. //法务评估报告
  347. this.$refs.legalFileItem.handleButton();
  348. this.$refs.legalFileItem.fileList = [];
  349. this.$refs.legalFileItem.getListFileBusinessId(that.dueForm.id, "15");
  350. //其他
  351. this.$refs.otherFileItem.handleButton();
  352. this.$refs.otherFileItem.fileList = [];
  353. this.$refs.otherFileItem.getListFileBusinessId(that.dueForm.id, "0");
  354. }, 300);
  355. this.handleLook(response.data);
  356. }
  357. });
  358. },
  359. // 根据尽调申请id查下面所有的报告
  360. handleLook(row) {
  361. let that = this;
  362. getDueAllPeportList(row.id).then((response) => {
  363. let rows = response.rows;
  364. this.dueAllPeportList = rows;
  365. this.dueDiligenceOpen2 = true;
  366. if (rows && rows.length > 0) {
  367. setTimeout(() => {
  368. for (let i in rows) {
  369. this.$refs.dueAllreportFileItems[i].handleButton();
  370. this.$refs.dueAllreportFileItems[i].getListFileBusinessId(
  371. rows[i].id
  372. );
  373. }
  374. }, 300);
  375. }
  376. });
  377. },
  378. getDetail() {
  379. getPool(this.id).then((response) => {
  380. this.detailInfo = response.data;
  381. // 项目退出完成n
  382. if (response.data.projectState === "n") {
  383. this.active = parseInt(response.data.projectStage);
  384. } else {
  385. this.active = parseInt(response.data.projectStage) - 1;
  386. }
  387. });
  388. },
  389. },
  390. };
  391. </script>
  392. <style lang="scss" scoped>
  393. .detailWrapper {
  394. padding: 20px 0;
  395. width: 92%;
  396. margin: 0 auto;
  397. .section1 {
  398. p {
  399. font-size: 24px;
  400. font-weight: bold;
  401. margin: 0;
  402. }
  403. > div:first-child {
  404. // width: calc(100% - 700px);
  405. width: 100%;
  406. }
  407. .btnList {
  408. width: 700px;
  409. display: flex;
  410. justify-content: flex-end;
  411. }
  412. }
  413. .basicsInfo {
  414. font-size: 14px;
  415. background: #f1f1f1;
  416. margin-top: -24px;
  417. width: 100%;
  418. padding: 30px 20px 10px;
  419. div {
  420. color: #7e7d7d;
  421. }
  422. p {
  423. font-size: 16px;
  424. color: #333;
  425. font-weight: bold;
  426. }
  427. }
  428. .section3 {
  429. border: 1px solid #DCDFE6;
  430. margin-top: 40px;
  431. }
  432. }
  433. .projectNameTit {
  434. }
  435. .alreadyStop {
  436. font-weight: normal;
  437. font-size: 12px;
  438. background: #ff0000;
  439. color: #fff;
  440. border-radius: 5px;
  441. padding: 5px 10px;
  442. margin-left: 10px;
  443. }
  444. /*表格样式开始*/
  445. .ss_scoreTable {
  446. padding-bottom: 50px;
  447. ::v-deep .el-input.is-disabled .el-input__inner {
  448. background-color: #fff !important;
  449. color: #606266;
  450. }
  451. ::v-deep .el-input__inner {
  452. border: 1px solid transparent;
  453. text-align: center;
  454. }
  455. ::v-deep.el-textarea__inner {
  456. border: none;
  457. height: 50px;
  458. resize: none;
  459. }
  460. ::v-deep .el-textarea.is-disabled .el-textarea__inner {
  461. background-color: #fff !important;
  462. }
  463. textarea:disabled,
  464. input:disabled {
  465. background-color: #fff !important;
  466. }
  467. // ::v-deep .el-textarea__inner {
  468. // // border: 1px solid transparent!important;
  469. // }
  470. table {
  471. // width:80%;
  472. // width: 600px;
  473. margin: 0 30px;
  474. -moz-user-select: none;
  475. -webkit-user-select: none;
  476. -ms-user-select: none;
  477. -khtml-user-selece: none;
  478. /*上面都是兼容性问题,具体看浏览器版本或什么浏览器*/
  479. user-select: none; /*内容禁止选中*/
  480. }
  481. tbody td {
  482. font-size: 14px;
  483. }
  484. thead th,
  485. .big-font {
  486. font-size: 16px !important;
  487. font-weight: bold;
  488. }
  489. .public-pedded-0 {
  490. padding: 0;
  491. }
  492. .text-center {
  493. text-align: center;
  494. }
  495. .text-left {
  496. text-align: left;
  497. }
  498. .table-textarea {
  499. width: 100%;
  500. // width: 180px;
  501. border: none;
  502. height: 50px;
  503. resize: none;
  504. }
  505. .table-input {
  506. width: 100%;
  507. // width: 100%;
  508. // height: 80px;
  509. border: none;
  510. font-size: 20px;
  511. font-weight: bold;
  512. text-align: center;
  513. margin-top: 20px;
  514. }
  515. .bg-blue,
  516. .specificTr > th:nth-child(2n-1) {
  517. background-color: #9bc2e6;
  518. }
  519. .specificTr > th:nth-child(2n-1) {
  520. white-space: nowrap;
  521. padding: 0 15px;
  522. }
  523. .specificTr .table-textarea {
  524. padding-top: 16px;
  525. background-color: #fff;
  526. }
  527. tr > th {
  528. height: 50px;
  529. }
  530. input:disabled {
  531. // background-color: #fff !important;
  532. }
  533. .btnList {
  534. width: 100%;
  535. display: flex;
  536. justify-content: center;
  537. padding-bottom: 40px;
  538. margin-top: 30px;
  539. }
  540. }
  541. </style>