增加:企业签署链接获取并且跳转

This commit is contained in:
wuhui_zzw 2024-07-05 17:53:57 +08:00
parent 2f298a33ab
commit 4df1a1979b
3 changed files with 22 additions and 2 deletions

View File

@ -867,6 +867,10 @@ export function contractConfigSet(data) {
export function contractDownload(id) {
return request.get(`common/contract/download/${id}`)
}
// 合同管理 - 企业签署
export function contractSignInfo(id) {
return request.get(`common/contract/sign_info/${id}`)
}

View File

@ -68,6 +68,9 @@
<template slot-scope="scope">
<el-button v-if="scope.row.binding_status == 1" type="text" size="small" @click="downloadContract(scope.row.id)">查看合同</el-button>
<el-button v-if="scope.row.binding_status == 2" type="text" size="small" @click="lookRejectedReason(scope.row)">拒绝原因</el-button>
<el-button v-if="scope.row.binding_status != 2 && Number(scope.row.sign_task_id) > 0" type="text" size="small" @click="signInfo(scope.row.id)">
签署合同
</el-button>
</template>
</el-table-column>
</el-table>
@ -81,7 +84,7 @@
</template>
<script>
import {contractDownload, contractList} from "@/api/marketing";
import {contractDownload, contractList, contractSignInfo} from "@/api/marketing";
export default {
name: "ContractList",
@ -143,10 +146,23 @@ export default {
}).catch((res) => {
_this.$message.error(res.message);
});
},
//
signInfo(id){
let _this = this;
contractSignInfo(id).then((res) => {
if(Number(res.status) === 200){
let actorSignTaskEmbedUrl = res.data.actorSignTaskEmbedUrl || '';
if(actorSignTaskEmbedUrl) window.open(actorSignTaskEmbedUrl, '_blank');
}else{
_this.$message.error(res.message);
}
}).catch((res) => {
_this.$message.error(res.message);
});
}
}
};
</script>

BIN
wmbtcs.keystore Normal file

Binary file not shown.