From 0d474bf4ff07242c366f8cc959ecde201fcf1a75 Mon Sep 17 00:00:00 2001
From: X_Rian <904416525@qq.com>
Date: Fri, 23 Aug 2024 10:00:34 +0800
Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E6=8F=90=E4=BA=A4=E6=89=BF?=
=?UTF-8?q?=E5=8C=85=E5=95=86=E5=85=A5=E5=9C=BA=E5=B7=A5=E4=BD=9C=E6=B5=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/js/api/company/project.js | 5 ++++-
.../projectSummary/contractorAudit.vue | 16 ++++++++++------
2 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/src/assets/js/api/company/project.js b/src/assets/js/api/company/project.js
index 74720850..73daae6f 100644
--- a/src/assets/js/api/company/project.js
+++ b/src/assets/js/api/company/project.js
@@ -61,4 +61,7 @@ export const getPlayUrlFromHikvisionApi = data => get('/xmgl/videoItem/getPlayUr
export const getDConstructionStageListApi = data => post('/xmgl/project/countConstructionStage', data);
// 工作流异常日志
-export const getFlowExceptionLogPageApi = data => get('/xmgl/flowExceptionLog/page', data);
\ No newline at end of file
+export const getFlowExceptionLogPageApi = data => get('/xmgl/flowExceptionLog/page', data);
+
+// 承包商工作流接口
+export const getContractorFlowPageApi = data => get('/xmgl/xzSupplierQualificationApply/flow/start/token', data);
\ No newline at end of file
diff --git a/src/views/projectFront/projectSummary/contractorAudit.vue b/src/views/projectFront/projectSummary/contractorAudit.vue
index 6973a7de..8a15117e 100644
--- a/src/views/projectFront/projectSummary/contractorAudit.vue
+++ b/src/views/projectFront/projectSummary/contractorAudit.vue
@@ -600,10 +600,10 @@
}}
邀请时间: {{ selectNowDate() }}
- 点击链接进入承包商入场申请:
+
点击链接进入承包商入场申请:
{{ inviteCBSUrl1 }}
@@ -629,7 +629,7 @@ import {
auditQualificationApplyPassApi,
auditQualificationApplyRefuseApi,
} from "@/assets/js/api/supplier.js";
-import { getComapnyStatisticsListApi } from "@/assets/js/api/company/project";
+import { getComapnyStatisticsListApi, getContractorFlowPageApi } from "@/assets/js/api/company/project";
import { getEnterpriseTypeList } from "@/assets/js/api/laborPerson";
import { getDictionaryItemApi } from "@/assets/js/api/companyDiagram";
import moment from "moment";
@@ -765,13 +765,17 @@ export default {
// 邀请新承包商入场
inviteCBS() {
console.log(this.inviteCBSDialog);
- this.inviteCBSUrl = `${this.$store.state.CONTRACTORURL}?sn=${this.$store.state.projectSn}`;
- this.inviteCBSUrl1 = `${this.$store.state.CONTRACTORURL2}?token=${this.$store.state.userInfo.token}&sn=${this.$store.state.projectSn}`;
+ getContractorFlowPageApi({}).then((res) => {
+ console.log(res, "邀请新承包商入场");
+ this.inviteCBSUrl1 = `${this.$store.state.CONTRACTORURL2}?token=${res.result}&sn=${this.$store.state.projectSn}`;
+ });
+ // this.inviteCBSUrl = `${this.$store.state.CONTRACTORURL}?sn=${this.$store.state.projectSn}`;
+
console.log(this.$store.state);
this.inviteCBSDialog = true;
},
onCopy() {
- const resultUrl = `${this.$store.state.userInfo.account}邀请您加入${this.$store.state.currentProDetail.name}\n邀请时间:${this.selectNowDate()}\n点击链接进入承包商入场申请:\n${this.inviteCBSUrl}`;
+ const resultUrl = `${this.$store.state.userInfo.account}邀请您加入${this.$store.state.currentProDetail.name}\n邀请时间:${this.selectNowDate()}\n点击链接进入承包商入场申请:\n${this.inviteCBSUrl1}`;
if (navigator.clipboard && window.isSecureContext) {
navigator.clipboard.writeText(resultUrl);
} else {