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

更新

parent 720690bb
......@@ -6,7 +6,7 @@
<h5>签署合同</h5>
</div>
<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>下载合同:</div>
<ul>
......@@ -32,30 +32,31 @@
</template>
<script>
import { signContract,contract} from '@api/purchaser/buyOut'
import dataBreadcrumb from '@components/dataBreadcrumb.vue'
import PDF from '@components/PDF/PDF.vue'
export default {
import { signContract, contract } from '@api/purchaser/buyOut';
import dataBreadcrumb from '@components/dataBreadcrumb.vue';
import PDF from '@components/PDF/PDF.vue';
export default {
components: {
dataBreadcrumb,
PDF
},
data() {
return {
url:"",
url: '',
breads: ['应收账款买断管理', '应收账款买断列表'],
detail:"",
id:""
}
detail: '',
id: '',
url:""
};
},
created() {
this.id=this.$route.query.id
this.getcontract()
this.id=this.$route.params.id
this.url=this.$route.params.url
this.getcontract();
},
methods: {
back() {
this.$router.go(-1)
this.$router.go(-1);
}, // 删除操作
revoke(row, index) {
// 二次确认删除
......@@ -63,69 +64,32 @@
type: 'warning'
})
.then(() => {
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
this.$message.success('撤销成功');
})
setTimeout(() => {
this.$router.go(-1)
}, 1500)
}else{
this.$message.error(msg)
}
} catch (e) {
console.log(e)
}
.catch(() => {});
},
down(url) {
window.open(url);
}
}
};
</script>
<style scoped>
.contractContent {
.contractContent {
width: 100%;
height: 500px;
border: 1px solid #000000;
margin-top: 30px;
}
}
.button {
.button {
margin-top: 30px;
height: 50px;
width: 100%;
}
}
ul>li>div {
ul > li > div {
margin-right: 10px;
}
}
</style>
......@@ -526,13 +526,11 @@ export default new Router({
},
{
path: '/purchaser/buyOut/voucherSee',
name:"/purchaser/buyOut/voucherSee",
show: true,
component: () => import('../pages/purchaser/buyOut/voucherSee.vue')
},
{
path: '/purchaser/buyOut/voucherSign',
name:"/purchaser/buyOut/voucherSign",
show: true,
component: () => import('../pages/purchaser/buyOut/voucherSign.vue')
},
......@@ -761,16 +759,19 @@ export default new Router({
},
{
path: '/supply/buyOut/contractSign',
name:"/supply/buyOut/contractSign",
show: true,
component: () => import('../pages/supply/buyOut/contractSign.vue')
},
{
path: '/supply/buyOut/contractSee',
name:"/supply/buyOut/contractSee",
show: true,
component: () => import('../pages/supply/buyOut/contractSee.vue')
},
{
path: '/supply/buyOut/voucherSign',
show: true,
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