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

更新

parent 720690bb
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<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>
...@@ -32,30 +32,31 @@ ...@@ -32,30 +32,31 @@
</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: { methods: {
back() { back() {
this.$router.go(-1) this.$router.go(-1);
}, // 删除操作 }, // 删除操作
revoke(row, index) { revoke(row, index) {
// 二次确认删除 // 二次确认删除
...@@ -63,69 +64,32 @@ ...@@ -63,69 +64,32 @@
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
this.$message.success('撤销成功') this.$message.success('撤销成功');
})
.catch(() => {})
},
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(() => { .catch(() => {});
this.$router.go(-1)
}, 1500)
}else{
this.$message.error(msg)
}
} catch (e) {
console.log(e)
}
}, },
down(url) {
window.open(url);
} }
} }
};
</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