|
@@ -87,12 +87,12 @@ |
|
@@ -87,12 +87,12 @@ |
|
87
|
</el-table-column>
|
87
|
</el-table-column>
|
|
88
|
<el-table-column label="甲方" align="center" prop="partyA" width="200">
|
88
|
<el-table-column label="甲方" align="center" prop="partyA" width="200">
|
|
89
|
<template slot-scope="scope">
|
89
|
<template slot-scope="scope">
|
|
90
|
- <a :href="scope.row.partyAAddress" target="_blank" style="color: blue;">{{ scope.row.partyA }}</a>
|
90
|
+ <a :href="scope.row.partyAAddress" target="_blank" style="color: #1890ff;;">{{ scope.row.partyA }}</a>
|
|
91
|
</template>
|
91
|
</template>
|
|
92
|
</el-table-column>
|
92
|
</el-table-column>
|
|
93
|
<el-table-column label="乙方" align="center" prop="partyB" width="200">
|
93
|
<el-table-column label="乙方" align="center" prop="partyB" width="200">
|
|
94
|
<template slot-scope="scope">
|
94
|
<template slot-scope="scope">
|
|
95
|
- <a :href="scope.row.partyBAddress" target="_blank" style="color: blue;">{{ scope.row.partyB }}</a>
|
95
|
+ <a :href="scope.row.partyBAddress" target="_blank" style="color: #1890ff;;">{{ scope.row.partyB }}</a>
|
|
96
|
</template>
|
96
|
</template>
|
|
97
|
</el-table-column>
|
97
|
</el-table-column>
|
|
98
|
<el-table-column label="付款方式" align="center" prop="paymentMethod" width="200"/>
|
98
|
<el-table-column label="付款方式" align="center" prop="paymentMethod" width="200"/>
|
|
@@ -102,7 +102,14 @@ |
|
@@ -102,7 +102,14 @@ |
|
102
|
</template>
|
102
|
</template>
|
|
103
|
</el-table-column>
|
103
|
</el-table-column>
|
|
104
|
<el-table-column label="标的物信息" align="center" prop="subjectInformation" width="200" />
|
104
|
<el-table-column label="标的物信息" align="center" prop="subjectInformation" width="200" />
|
|
105
|
- <el-table-column label="附件" align="center" prop="attachments" width="100"/>
|
105
|
+ <el-table-column label="附件" align="center" prop="attachments" width="100">
|
|
|
|
106
|
+ <!-- <template slot-scope="scope">
|
|
|
|
107
|
+ <img :src="baseUrl + scope.row.attachments" width="40px" height="auto" style="cursor: pointer"/>
|
|
|
|
108
|
+ </template> -->
|
|
|
|
109
|
+ <template slot-scope="scope">
|
|
|
|
110
|
+ <img v-if="scope.row.attachments" src="@/assets/images/PDF.png" @click="preview(scope.row.attachments)" width="40px" height="auto" style="cursor: pointer"/>
|
|
|
|
111
|
+ </template>
|
|
|
|
112
|
+ </el-table-column>
|
|
106
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
|
113
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
|
|
107
|
<template slot-scope="scope">
|
114
|
<template slot-scope="scope">
|
|
108
|
<el-button
|
115
|
<el-button
|
|
@@ -145,7 +152,9 @@ |
|
@@ -145,7 +152,9 @@ |
|
145
|
:limit.sync="queryParams.pageSize"
|
152
|
:limit.sync="queryParams.pageSize"
|
|
146
|
@pagination="getList"
|
153
|
@pagination="getList"
|
|
147
|
/>
|
154
|
/>
|
|
148
|
-
|
155
|
+ <el-dialog title="合同预览" :visible.sync="dialogVisibleContract" width="50%" center :before-close="handleClose">
|
|
|
|
156
|
+ <vue-pdf :src="pdfUrl" type="application/pdf" width="100%" height="800px" />
|
|
|
|
157
|
+ </el-dialog>
|
|
149
|
<!-- 添加或修改【请填写功能名称】对话框 -->
|
158
|
<!-- 添加或修改【请填写功能名称】对话框 -->
|
|
150
|
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
159
|
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
|
151
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
160
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
@@ -196,14 +205,17 @@ |
|
@@ -196,14 +205,17 @@ |
|
196
|
|
205
|
|
|
197
|
<script>
|
206
|
<script>
|
|
198
|
import { listContract, getContract, delContract, addContract, updateContract } from "@/api/compliancemanagement/contract";
|
207
|
import { listContract, getContract, delContract, addContract, updateContract } from "@/api/compliancemanagement/contract";
|
|
199
|
-import FileUpload from '@/components/FileUpload';
|
208
|
+import VuePdf from 'vue-pdf';
|
|
200
|
export default {
|
209
|
export default {
|
|
201
|
name: "Contract",
|
210
|
name: "Contract",
|
|
202
|
components: {
|
211
|
components: {
|
|
203
|
- FileUpload
|
212
|
+ VuePdf
|
|
204
|
},
|
213
|
},
|
|
205
|
data() {
|
214
|
data() {
|
|
206
|
return {
|
215
|
return {
|
|
|
|
216
|
+ pdfUrl: '',
|
|
|
|
217
|
+ dialogVisibleContract:false,
|
|
|
|
218
|
+ baseUrl:process.env.VUE_APP_BASE_API+ '/',
|
|
207
|
// 按钮loading
|
219
|
// 按钮loading
|
|
208
|
buttonLoading: false,
|
220
|
buttonLoading: false,
|
|
209
|
// 遮罩层
|
221
|
// 遮罩层
|
|
@@ -307,6 +319,16 @@ export default { |
|
@@ -307,6 +319,16 @@ export default { |
|
307
|
this.open = false;
|
319
|
this.open = false;
|
|
308
|
this.reset();
|
320
|
this.reset();
|
|
309
|
},
|
321
|
},
|
|
|
|
322
|
+ //合同附件预览
|
|
|
|
323
|
+ preview(contract) {
|
|
|
|
324
|
+ this.dialogVisibleContract = true
|
|
|
|
325
|
+ console.log('contract:',contract)
|
|
|
|
326
|
+ this.pdfUrl = this.baseUrl + contract
|
|
|
|
327
|
+ },
|
|
|
|
328
|
+ handleClose() {
|
|
|
|
329
|
+ this.pdfUrl = ''
|
|
|
|
330
|
+ this.dialogVisibleContract = false
|
|
|
|
331
|
+ },
|
|
310
|
// 表单重置
|
332
|
// 表单重置
|
|
311
|
reset() {
|
333
|
reset() {
|
|
312
|
this.form = {
|
334
|
this.form = {
|