正在显示
3 个修改的文件
包含
41 行增加
和
9 行删除
| @@ -85,8 +85,16 @@ | @@ -85,8 +85,16 @@ | ||
| 85 | <span>{{ parseTime(scope.row.expirationDate, '{y}-{m}-{d}') }}</span> | 85 | <span>{{ parseTime(scope.row.expirationDate, '{y}-{m}-{d}') }}</span> |
| 86 | </template> | 86 | </template> |
| 87 | </el-table-column> | 87 | </el-table-column> |
| 88 | - <el-table-column label="甲方" align="center" prop="partyA" width="200"/> | ||
| 89 | - <el-table-column label="乙方" align="center" prop="partyB" width="200"/> | 88 | + <el-table-column label="甲方" align="center" prop="partyA" width="200"> |
| 89 | + <template slot-scope="scope"> | ||
| 90 | + <a :href="scope.row.partyAAddress" target="_blank" style="color: blue;">{{ scope.row.partyA }}</a> | ||
| 91 | + </template> | ||
| 92 | + </el-table-column> | ||
| 93 | + <el-table-column label="乙方" align="center" prop="partyB" width="200"> | ||
| 94 | + <template slot-scope="scope"> | ||
| 95 | + <a :href="scope.row.partyBAddress" target="_blank" style="color: blue;">{{ scope.row.partyB }}</a> | ||
| 96 | + </template> | ||
| 97 | + </el-table-column> | ||
| 90 | <el-table-column label="付款方式" align="center" prop="paymentMethod" width="200"/> | 98 | <el-table-column label="付款方式" align="center" prop="paymentMethod" width="200"/> |
| 91 | <el-table-column label="签订日期" align="center" prop="signingDate" width="100"> | 99 | <el-table-column label="签订日期" align="center" prop="signingDate" width="100"> |
| 92 | <template slot-scope="scope"> | 100 | <template slot-scope="scope"> |
| @@ -45,12 +45,24 @@ | @@ -45,12 +45,24 @@ | ||
| 45 | </el-form-item> | 45 | </el-form-item> |
| 46 | </el-col> | 46 | </el-col> |
| 47 | <el-col :span="24"> | 47 | <el-col :span="24"> |
| 48 | + <el-form-item label="甲方链接地址" prop="partyAAddress"> | ||
| 49 | + <el-input v-model="formData.partyAAddress" placeholder="请输入甲方链接地址" clearable :style="{width: '50%'}"> | ||
| 50 | + </el-input> | ||
| 51 | + </el-form-item> | ||
| 52 | + </el-col> | ||
| 53 | + <el-col :span="24"> | ||
| 48 | <el-form-item label="乙方" prop="partyB"> | 54 | <el-form-item label="乙方" prop="partyB"> |
| 49 | <el-input v-model="formData.partyB" placeholder="请输入乙方" clearable :style="{width: '50%'}"> | 55 | <el-input v-model="formData.partyB" placeholder="请输入乙方" clearable :style="{width: '50%'}"> |
| 50 | </el-input> | 56 | </el-input> |
| 51 | </el-form-item> | 57 | </el-form-item> |
| 52 | </el-col> | 58 | </el-col> |
| 53 | <el-col :span="24"> | 59 | <el-col :span="24"> |
| 60 | + <el-form-item label="乙方链接地址" prop="partyBAddress"> | ||
| 61 | + <el-input v-model="formData.partyBAddress" placeholder="请输入乙方链接地址" clearable :style="{width: '50%'}"> | ||
| 62 | + </el-input> | ||
| 63 | + </el-form-item> | ||
| 64 | + </el-col> | ||
| 65 | + <el-col :span="24"> | ||
| 54 | <el-form-item label="付款方式" prop="paymentMethod"> | 66 | <el-form-item label="付款方式" prop="paymentMethod"> |
| 55 | <el-input v-model="formData.paymentMethod" placeholder="请输入付款方式" clearable | 67 | <el-input v-model="formData.paymentMethod" placeholder="请输入付款方式" clearable |
| 56 | :style="{width: '50%'}"></el-input> | 68 | :style="{width: '50%'}"></el-input> |
| @@ -168,7 +180,9 @@ | @@ -168,7 +180,9 @@ | ||
| 168 | effectiveDate: null, | 180 | effectiveDate: null, |
| 169 | expirationDate: null, | 181 | expirationDate: null, |
| 170 | partyA: undefined, | 182 | partyA: undefined, |
| 183 | + partyAAddress:undefined, | ||
| 171 | partyB: undefined, | 184 | partyB: undefined, |
| 185 | + partyBAddress:undefined, | ||
| 172 | paymentMethod: undefined, | 186 | paymentMethod: undefined, |
| 173 | signingDate: null, | 187 | signingDate: null, |
| 174 | subjectInformation: undefined, | 188 | subjectInformation: undefined, |
| @@ -210,11 +224,21 @@ | @@ -210,11 +224,21 @@ | ||
| 210 | message: '请输入甲方', | 224 | message: '请输入甲方', |
| 211 | trigger: 'blur' | 225 | trigger: 'blur' |
| 212 | }], | 226 | }], |
| 227 | + partyAAddress: [{ | ||
| 228 | + required: true, | ||
| 229 | + message: '请输入甲方链接', | ||
| 230 | + trigger: 'blur' | ||
| 231 | + }], | ||
| 213 | partyB: [{ | 232 | partyB: [{ |
| 214 | required: true, | 233 | required: true, |
| 215 | message: '请输入乙方', | 234 | message: '请输入乙方', |
| 216 | trigger: 'blur' | 235 | trigger: 'blur' |
| 217 | }], | 236 | }], |
| 237 | + partyBAddress: [{ | ||
| 238 | + required: true, | ||
| 239 | + message: '请输入乙方链接', | ||
| 240 | + trigger: 'blur' | ||
| 241 | + }], | ||
| 218 | paymentMethod: [ | 242 | paymentMethod: [ |
| 219 | {required: true, message: '请输入付款方式',trigger: 'blur'} | 243 | {required: true, message: '请输入付款方式',trigger: 'blur'} |
| 220 | ], | 244 | ], |
| @@ -109,9 +109,8 @@ | @@ -109,9 +109,8 @@ | ||
| 109 | <el-table-column label="模板名称" align="center" prop="templatename" /> | 109 | <el-table-column label="模板名称" align="center" prop="templatename" /> |
| 110 | <el-table-column label="模板文件" align="center" prop="templatefile"> | 110 | <el-table-column label="模板文件" align="center" prop="templatefile"> |
| 111 | <template slot-scope="scope"> | 111 | <template slot-scope="scope"> |
| 112 | - <el-button type="text" icon="el-icon-document" @click="openFile(scope.row.templatefile)"> | ||
| 113 | - 打开文件 | ||
| 114 | - </el-button> | 112 | + |
| 113 | + <img src="@/assets/images/PDF.png" @click="openFile(scope.row.templatefile)" width="40px" height="auto" style="cursor: pointer"/> | ||
| 115 | </template> | 114 | </template> |
| 116 | </el-table-column> | 115 | </el-table-column> |
| 117 | <el-table-column | 116 | <el-table-column |
| @@ -157,7 +156,7 @@ | @@ -157,7 +156,7 @@ | ||
| 157 | @pagination="getList" | 156 | @pagination="getList" |
| 158 | /> | 157 | /> |
| 159 | 158 | ||
| 160 | - <el-dialog :visible.sync="dialogVisible" title="文件预览" width="50%"> | 159 | + <el-dialog :visible.sync="dialogVisible" title="合同预览" width="50%"> |
| 161 | <vue-pdf :src="currentFile" /> | 160 | <vue-pdf :src="currentFile" /> |
| 162 | <span slot="footer" class="dialog-footer"> | 161 | <span slot="footer" class="dialog-footer"> |
| 163 | <el-button @click="dialogVisible = false">关闭</el-button> | 162 | <el-button @click="dialogVisible = false">关闭</el-button> |
| @@ -250,6 +249,7 @@ export default { | @@ -250,6 +249,7 @@ export default { | ||
| 250 | headers: { Authorization: "Bearer " + getToken() }, | 249 | headers: { Authorization: "Bearer " + getToken() }, |
| 251 | // 上传的地址 | 250 | // 上传的地址 |
| 252 | url: process.env.VUE_APP_BASE_API + "/common/uploads", | 251 | url: process.env.VUE_APP_BASE_API + "/common/uploads", |
| 252 | + urlhead: "http://joycart.zgftlm.com", | ||
| 253 | fileList: [], | 253 | fileList: [], |
| 254 | dialogVisible: false, | 254 | dialogVisible: false, |
| 255 | dialogImageUrl: "", | 255 | dialogImageUrl: "", |
| @@ -309,8 +309,9 @@ export default { | @@ -309,8 +309,9 @@ export default { | ||
| 309 | }, | 309 | }, |
| 310 | methods: { | 310 | methods: { |
| 311 | openFile(filePath) { | 311 | openFile(filePath) { |
| 312 | - console.log(filePath) | ||
| 313 | - this.currentFile = filePath; | 312 | + |
| 313 | + this.currentFile = this.urlhead+filePath; | ||
| 314 | + console.log(this.currentFile) | ||
| 314 | this.dialogVisible = true; | 315 | this.dialogVisible = true; |
| 315 | 316 | ||
| 316 | }, | 317 | }, |
| @@ -339,7 +340,6 @@ export default { | @@ -339,7 +340,6 @@ export default { | ||
| 339 | // 可以从中获取文件地址或文件名 | 340 | // 可以从中获取文件地址或文件名 |
| 340 | // 假设后端返回的数据结构中有一个字段 url 表示文件地址 | 341 | // 假设后端返回的数据结构中有一个字段 url 表示文件地址 |
| 341 | const fileUrl = response.data.fileNames; | 342 | const fileUrl = response.data.fileNames; |
| 342 | - | ||
| 343 | // 将文件地址或文件名赋值给表单的字段 | 343 | // 将文件地址或文件名赋值给表单的字段 |
| 344 | this.form.templatefile =fileUrl; | 344 | this.form.templatefile =fileUrl; |
| 345 | }, | 345 | }, |
-
请 注册 或 登录 后发表评论