ViewPlatformContract.vue
3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<template>
<a-descriptions v-if="contract" :bordered="false" :column="2" size="small">
<template #title>
<title-tip-icon/>
合同基本信息
</template>
<a-descriptions-item label="合同编号" :span="2">
{{ contract.contractCode }}
</a-descriptions-item>
<a-descriptions-item label="合同名称" :span="2">
{{ contract.contractName }}
</a-descriptions-item>
<a-descriptions-item label="发起时间">
{{ contract.createTime || '-' }}
</a-descriptions-item>
<a-descriptions-item label="合同签署时间">
{{ contract.signTime || '-' }}
</a-descriptions-item>
<a-descriptions-item label="签署状态">
<a-tag :color="contract.contractStatus == '已签署' ? 'success' : 'orange'">{{contract.contractStatus}}</a-tag>
</a-descriptions-item>
<a-descriptions-item label="合同附件">
<template v-if="contract.contractFiles && contract.contractFiles.length > 0">
<a v-for="(file, index) in contract.contractFiles" :key="index" :href="file.url" target="_blank" style="margin-right: 8px;">
{{ file.name }}
</a>
</template>
<span v-else>-</span>
</a-descriptions-item>
</a-descriptions>
<a-card size="default" :bordered="false" style="margin-top: 16px;">
<template #title>
<title-tip-icon/>
合同内容预览
</template>
<iframe
v-if="contract.contractFiles && contract.contractFiles.length > 0"
:src="contract.contractFiles[0].url"
style="width: 100%; height: 400px; border: none;"
></iframe>
<a-empty v-else description="暂无合同附件" :image="simpleImage"></a-empty>
</a-card>
<a-descriptions :bordered="false" :column="4" size="small" style="margin-top: 16px;">
<template #title>
<title-tip-icon/>
签署方信息
</template>
<a-descriptions-item label="买受方" :span="2">
{{ contract.signerName || '-' }} (ID: {{ contract.signerIdCard || '-' }})
</a-descriptions-item>
<a-descriptions-item label="联系方式" :span="2">
{{ contract.signerMobile || '-' }}
</a-descriptions-item>
</a-descriptions>
</template>
<script lang="ts">
import { Component, Prop, Vue } from "vue-facing-decorator";
import { Contract } from "lib/src/entity/auction/entity/Contract";
import TitleTipIcon from "@/components/icons/TitleTipIcon.vue";
import { Empty } from "ant-design-vue";
@Component({
name: "ViewMasterContract",
components: { TitleTipIcon }
})
export default class ViewMasterContract extends Vue {
@Prop({ type: Object, required: true })
contract!: Contract;
simpleImage = Empty.PRESENTED_IMAGE_SIMPLE;
created(): void {
// 组件初始化逻辑
}
mounted(): void {
// 组件挂载完成
}
}
</script>
<style scoped lang="less">
// 可以在这里添加自定义样式
</style>