Commit 1f0100f7 authored by 张冬's avatar 张冬

更新

parent 720690bb
<template> <template>
<div> <div>
<div class="content-head"> <div class="content-head">
<dataBreadcrumb :breads="breads"></dataBreadcrumb> <dataBreadcrumb :breads="breads"></dataBreadcrumb>
<h3>签署合同</h3> <h3>签署合同</h3>
<h5>签署合同</h5> <h5>签署合同</h5>
</div> </div>
<div class="content"> <div class="content">
<iframe :src="url" frameborder="0" style="width:100%;height:600px"></iframe> <iframe :src="url" frameborder="0" style="width: 100%; height: 600px"></iframe>
<!-- <div class="flex"> <!-- <div class="flex">
<div>下载合同:</div> <div>下载合同:</div>
<ul> <ul>
<li class="flex-item"> <li class="flex-item">
...@@ -23,109 +23,73 @@ ...@@ -23,109 +23,73 @@
<el-button @click="revoke">撤销签章</el-button> <el-button @click="revoke">撤销签章</el-button>
<el-button>电子签章</el-button> <el-button>电子签章</el-button>
</div> --> </div> -->
</div> </div>
<!-- <div class="bottomButton"> <!-- <div class="bottomButton">
<el-button @click="back">取消</el-button> <el-button @click="back">取消</el-button>
<el-button type="primary" @click="submitData">提交</el-button> <el-button type="primary" @click="submitData">提交</el-button>
</div> --> </div> -->
</div> </div>
</template> </template>
<script> <script>
import { signContract, contract } from '@api/purchaser/buyOut';
import { signContract,contract} from '@api/purchaser/buyOut' import dataBreadcrumb from '@components/dataBreadcrumb.vue';
import dataBreadcrumb from '@components/dataBreadcrumb.vue' import PDF from '@components/PDF/PDF.vue';
import PDF from '@components/PDF/PDF.vue' export default {
export default { components: {
components: { dataBreadcrumb,
dataBreadcrumb, PDF
PDF },
}, data() {
data() { return {
return { url: '',
url:"", breads: ['应收账款买断管理', '应收账款买断列表'],
breads: ['应收账款买断管理', '应收账款买断列表'], detail: '',
detail:"", id: '',
id:"" url:""
} };
}, },
created() { created() {
this.id=this.$route.query.id this.id=this.$route.params.id
this.getcontract() this.url=this.$route.params.url
}, this.getcontract();
methods: { },
back() { methods: {
this.$router.go(-1) back() {
}, // 删除操作 this.$router.go(-1);
revoke(row, index) { }, // 删除操作
// 二次确认删除 revoke(row, index) {
this.$confirm('该操作撤销全部电子签章,你还要继续吗?', '是否撤销电子签章', { // 二次确认删除
type: 'warning' this.$confirm('该操作撤销全部电子签章,你还要继续吗?', '是否撤销电子签章', {
}) type: 'warning'
.then(() => { })
this.$message.success('撤销成功') .then(() => {
}) this.$message.success('撤销成功');
.catch(() => {}) })
}, .catch(() => {});
down(url){ },
window.open(url) down(url) {
}, window.open(url);
// 查看详情 }
async getcontract(){ }
let projectId=this.id };
const {
data,
code
} = await contract(projectId)
if(code==200){
this.detail=data
}
},
// 提出
async submitData() {
try {
let projectId = this.id
const {
msg,
code
} = await signContract(projectId)
if (code == 200) {
this.$message({
message: msg,
type: 'success',
duration: 1500
})
setTimeout(() => {
this.$router.go(-1)
}, 1500)
}else{
this.$message.error(msg)
}
} catch (e) {
console.log(e)
}
},
}
}
</script> </script>
<style scoped> <style scoped>
.contractContent { .contractContent {
width: 100%; width: 100%;
height: 500px; height: 500px;
border: 1px solid #000000; border: 1px solid #000000;
margin-top: 30px; margin-top: 30px;
} }
.button { .button {
margin-top: 30px; margin-top: 30px;
height: 50px; height: 50px;
width: 100%; width: 100%;
} }
ul>li>div { ul > li > div {
margin-right: 10px; margin-right: 10px;
} }
</style> </style>
...@@ -526,13 +526,11 @@ export default new Router({ ...@@ -526,13 +526,11 @@ export default new Router({
}, },
{ {
path: '/purchaser/buyOut/voucherSee', path: '/purchaser/buyOut/voucherSee',
name:"/purchaser/buyOut/voucherSee",
show: true, show: true,
component: () => import('../pages/purchaser/buyOut/voucherSee.vue') component: () => import('../pages/purchaser/buyOut/voucherSee.vue')
}, },
{ {
path: '/purchaser/buyOut/voucherSign', path: '/purchaser/buyOut/voucherSign',
name:"/purchaser/buyOut/voucherSign",
show: true, show: true,
component: () => import('../pages/purchaser/buyOut/voucherSign.vue') component: () => import('../pages/purchaser/buyOut/voucherSign.vue')
}, },
...@@ -761,16 +759,19 @@ export default new Router({ ...@@ -761,16 +759,19 @@ export default new Router({
}, },
{ {
path: '/supply/buyOut/contractSign', path: '/supply/buyOut/contractSign',
name:"/supply/buyOut/contractSign",
show: true, show: true,
component: () => import('../pages/supply/buyOut/contractSign.vue') component: () => import('../pages/supply/buyOut/contractSign.vue')
}, },
{ {
path: '/supply/buyOut/contractSee', path: '/supply/buyOut/contractSee',
name:"/supply/buyOut/contractSee",
show: true, show: true,
component: () => import('../pages/supply/buyOut/contractSee.vue') component: () => import('../pages/supply/buyOut/contractSee.vue')
}, },
{ {
path: '/supply/buyOut/voucherSign', path: '/supply/buyOut/voucherSign',
show: true, show: true,
component: () => import('../pages/supply/buyOut/voucherSign.vue') component: () => import('../pages/supply/buyOut/voucherSign.vue')
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment