增加:企业签署链接获取并且跳转
This commit is contained in:
parent
2f298a33ab
commit
4df1a1979b
|
|
@ -867,6 +867,10 @@ export function contractConfigSet(data) {
|
||||||
export function contractDownload(id) {
|
export function contractDownload(id) {
|
||||||
return request.get(`common/contract/download/${id}`)
|
return request.get(`common/contract/download/${id}`)
|
||||||
}
|
}
|
||||||
|
// 合同管理 - 企业签署
|
||||||
|
export function contractSignInfo(id) {
|
||||||
|
return request.get(`common/contract/sign_info/${id}`)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,9 @@
|
||||||
<template slot-scope="scope">
|
<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 == 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" 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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -81,7 +84,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {contractDownload, contractList} from "@/api/marketing";
|
import {contractDownload, contractList, contractSignInfo} from "@/api/marketing";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ContractList",
|
name: "ContractList",
|
||||||
|
|
@ -143,8 +146,21 @@ export default {
|
||||||
}).catch((res) => {
|
}).catch((res) => {
|
||||||
_this.$message.error(res.message);
|
_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);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue