audit.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  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" @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="formZZApply.id"
  85. class="special-el-form public-padded-t-20"
  86. ref="formZZApply"
  87. :model="formZZApply"
  88. label-width="120px"
  89. >
  90. <el-form-item
  91. label="终止原因"
  92. prop="reason"
  93. class="special-el-form-item"
  94. >
  95. <el-input
  96. rows="4"
  97. type="textarea"
  98. maxlength="200"
  99. v-model="formZZApply.reason"
  100. disabled
  101. />
  102. </el-form-item>
  103. </el-form>
  104. <div
  105. v-else
  106. class="public-flex-center public-padded-20"
  107. style="color: #909399"
  108. >
  109. 暂无数据
  110. </div>
  111. </el-tab-pane>
  112. </el-tabs>
  113. </div>
  114. <div v-show="activeName === '1'">
  115. <poolForm :type="type" :id="id"></poolForm>
  116. </div>
  117. </section>
  118. </section>
  119. <section>
  120. <flowBase :procInstId="formZZApply.procInstId" :id="id" v-if="formZZApply.procInstId "></flowBase>
  121. </section>
  122. <section>
  123. <el-form
  124. ref="flowBaseInfo"
  125. :model="flowBaseInfo"
  126. label-width="120px"
  127. >
  128. <el-form-item label="审批意见" prop="comment">
  129. <el-input
  130. maxlength="200"
  131. rows="4"
  132. type="textarea"
  133. v-model="flowBaseInfo.comment"
  134. placeholder="请填写审批意见"
  135. >
  136. </el-input>
  137. </el-form-item>
  138. <el-form-item class="btnList">
  139. <!-- <div class="btn-group">-->
  140. <el-button @click="goBack">返 回</el-button>
  141. <el-button type="success" @click="handleComplete(true)">同意</el-button>
  142. <el-button type="warning" @click="handleComplete(false)">驳回</el-button>
  143. <!-- </div>-->
  144. </el-form-item>
  145. </el-form>
  146. </section>
  147. </div>
  148. </template>
  149. <script>
  150. import poolForm from "../../invest/components/poolForm";
  151. import flowBase from "../flowBase.vue";
  152. import {getPool} from "@/api/invest/pool";
  153. import{
  154. terminationComplete,
  155. getTerminationInfo,
  156. } from "@/api/project/termination/pool"
  157. import { mapGetters } from "vuex";
  158. export default {
  159. name: "decisionAudit",
  160. props: {
  161. readonly: {
  162. type: Boolean,
  163. },
  164. },
  165. dicts: ["meeting_type", "project_stage", "project_group"],
  166. components: {
  167. flowBase,
  168. poolForm,
  169. },
  170. data() {
  171. return {
  172. type: "2",
  173. id: "",
  174. active: 0,
  175. detailInfo: {
  176. projectName: "",
  177. },
  178. activeName: "0",
  179. formType:3,
  180. formZZApply: {
  181. id: null,
  182. procInstId:null,
  183. projectPoolId: null,
  184. projectName: null,
  185. reason: null,
  186. taskDefKey:null,
  187. },
  188. flowBaseInfo:{
  189. comment:null,
  190. taskId:null
  191. },
  192. rulesFlow:{
  193. comment: [{ required: true, trigger: "blur", message: "请输入" }],
  194. }
  195. };
  196. },
  197. computed: {
  198. ...mapGetters(["user"]),
  199. },
  200. created() {
  201. this.id = this.$route.query.id;
  202. this.flowBaseInfo.taskId=this.$route.query.taskId;
  203. this.getDetail();
  204. this.getlistProjectPoolIdNewTermination();
  205. if (this.$route.query.activeName) {
  206. this.activeName = this.$route.query.activeName;
  207. }
  208. },
  209. methods: {
  210. handleClick(tab, event) {
  211. let that = this;
  212. if (this.activeName === "0") {
  213. // 项目投决
  214. this.getlistProjectPoolIdNewDecision();
  215. } else if (this.activeName === "1") {
  216. // 项目报备
  217. this.getDetail();
  218. }
  219. },
  220. // 获取投决申请
  221. getlistProjectPoolIdNewTermination() {
  222. let that = this;
  223. getTerminationInfo(this.$route.query.pInstId).then((response) => {
  224. if (response && response.data) {
  225. that.formZZApply = response.data;
  226. /*setTimeout(() => {
  227. that.$refs.fileItemTJApply.handleButton();
  228. that.$refs.fileItemTJApply.fileList = [];
  229. that.$refs.fileItemTJApply.getListFileBusinessId(
  230. that.formTJApply.id
  231. );
  232. }, 300);*/
  233. }
  234. });
  235. },
  236. //项目报备
  237. getDetail() {
  238. getPool(this.id).then((response) => {
  239. this.detailInfo = response.data;
  240. // 项目退出完成n
  241. if (response.data.projectState === "n") {
  242. this.active = parseInt(response.data.projectStage);
  243. } else {
  244. this.active = parseInt(response.data.projectStage) - 1;
  245. }
  246. });
  247. },
  248. /** 加载审批任务弹框 */
  249. handleComplete(flag) {
  250. this.taskComplete(flag);
  251. },
  252. /** 用户审批任务 */
  253. taskComplete(flag) {
  254. if (!flag&&!this.flowBaseInfo.comment) {
  255. this.$modal.msgError("请输入审批意见!");
  256. return;
  257. }
  258. //会议人
  259. this.formZZApply.flag=flag;
  260. const params={
  261. projectTermination: this.formZZApply, // 拆分明确字段
  262. flowBaseInfo: this.flowBaseInfo
  263. }
  264. try{
  265. terminationComplete(params).then(response => {
  266. this.$modal.msgSuccess(response.msg);
  267. this.$store.dispatch("getMyTaskTerminationNumber"); //更新代办数量
  268. this.goMyTask();
  269. });
  270. } catch (err) {
  271. // 捕获重复提交错误
  272. this.$message.error(err.message);
  273. }
  274. },
  275. /*返回*/
  276. goBack() {
  277. this.$router.go(-1);
  278. },
  279. //跳转到我的任务
  280. goMyTask(){
  281. //this.$router.push({ path: "/myTask/project/termination/myTask"});
  282. // 关闭当前标签页并返回指定页面
  283. const obj = { path: "/myTask/project/termination/myTask", query: { t: Date.now()} };
  284. this.$tab.closeOpenPage(obj);
  285. },
  286. },
  287. };
  288. </script>
  289. <style lang="scss" scoped>
  290. .detailWrapper {
  291. padding: 20px 0;
  292. width: 92%;
  293. margin: 0 auto;
  294. .section1 {
  295. p {
  296. font-size: 24px;
  297. font-weight: bold;
  298. margin: 0;
  299. }
  300. > div:first-child {
  301. // width: calc(100% - 700px);
  302. width: 100%;
  303. }
  304. .btnList {
  305. width: 700px;
  306. display: flex;
  307. justify-content: flex-end;
  308. }
  309. }
  310. .basicsInfo {
  311. font-size: 14px;
  312. background: #f1f1f1;
  313. margin-top: -24px;
  314. width: 100%;
  315. padding: 30px 20px 10px;
  316. div {
  317. color: #7e7d7d;
  318. }
  319. p {
  320. font-size: 16px;
  321. color: #333;
  322. font-weight: bold;
  323. }
  324. }
  325. .section3 {
  326. margin-top: 40px;
  327. }
  328. .btnList {
  329. display: flex;
  330. justify-content: flex-end;
  331. /* 让内部元素(按钮)整体靠右 */
  332. gap: 10px; /* 替代 margin,给按钮之间加间距,可选 */
  333. }
  334. }
  335. .projectNameTit {
  336. }
  337. .alreadyStop {
  338. font-weight: normal;
  339. font-size: 12px;
  340. background: #ff0000;
  341. color: #fff;
  342. border-radius: 5px;
  343. padding: 5px 10px;
  344. margin-left: 10px;
  345. }
  346. /*表格样式开始*/
  347. .ss_scoreTable {
  348. padding-bottom: 50px;
  349. ::v-deep .el-input.is-disabled .el-input__inner {
  350. background-color: #fff !important;
  351. color: #606266;
  352. }
  353. ::v-deep .el-input__inner {
  354. border: 1px solid transparent;
  355. text-align: center;
  356. }
  357. ::v-deep.el-textarea__inner {
  358. border: none;
  359. height: 50px;
  360. resize: none;
  361. }
  362. ::v-deep .el-textarea.is-disabled .el-textarea__inner {
  363. background-color: #fff !important;
  364. }
  365. textarea:disabled,
  366. input:disabled {
  367. background-color: #fff !important;
  368. }
  369. // ::v-deep .el-textarea__inner {
  370. // // border: 1px solid transparent!important;
  371. // }
  372. table {
  373. // width:80%;
  374. // width: 600px;
  375. margin: 0 30px;
  376. -moz-user-select: none;
  377. -webkit-user-select: none;
  378. -ms-user-select: none;
  379. -khtml-user-selece: none;
  380. /*上面都是兼容性问题,具体看浏览器版本或什么浏览器*/
  381. user-select: none; /*内容禁止选中*/
  382. }
  383. tbody td {
  384. font-size: 14px;
  385. }
  386. thead th,
  387. .big-font {
  388. font-size: 16px !important;
  389. font-weight: bold;
  390. }
  391. .public-pedded-0 {
  392. padding: 0;
  393. }
  394. .text-center {
  395. text-align: center;
  396. }
  397. .text-left {
  398. text-align: left;
  399. }
  400. .table-textarea {
  401. width: 100%;
  402. // width: 180px;
  403. border: none;
  404. height: 50px;
  405. resize: none;
  406. }
  407. .table-input {
  408. width: 100%;
  409. // width: 100%;
  410. // height: 80px;
  411. border: none;
  412. font-size: 20px;
  413. font-weight: bold;
  414. text-align: center;
  415. margin-top: 20px;
  416. }
  417. .bg-blue,
  418. .specificTr > th:nth-child(2n-1) {
  419. background-color: #9bc2e6;
  420. }
  421. .specificTr > th:nth-child(2n-1) {
  422. white-space: nowrap;
  423. padding: 0 15px;
  424. }
  425. .specificTr .table-textarea {
  426. padding-top: 16px;
  427. background-color: #fff;
  428. }
  429. tr > th {
  430. height: 50px;
  431. }
  432. input:disabled {
  433. // background-color: #fff !important;
  434. }
  435. .btnList {
  436. width: 100%;
  437. display: flex;
  438. justify-content: center;
  439. padding-bottom: 40px;
  440. margin-top: 30px;
  441. }
  442. }
  443. </style>