| | |
| | | console.log(err) |
| | | }) |
| | | } else { |
| | | params.id=this.editConfig.infomation.id |
| | | updateSupplier(params).then((res) => { |
| | | this.editConfig.visible = false |
| | | if (res.code === 200) { |
| | |
| | | detailAddress: data.detailAddress || "", |
| | | email: data.email || "", |
| | | fileId: this.file_id || 0, |
| | | id: data.id || 0, |
| | | // id: data.id || 0, |
| | | industry: data.industry || "", |
| | | name: data.name || "", |
| | | number: data.number || "", |
| | | phone: data.phone || "", |
| | | responsiblePersonName: |
| | | data.responsiblePersonName || document.cookie.replace(/(?:(?:^|.*;\s*)username\s*=\s*([^;]*).*$)|^.*$/, "$1"), |
| | | data.responsiblePersonName || document.cookie.replace(/(?:(?:^|.*;\s*)username\s*=\s*([^;]*).*$)|^.*$/, "$1"), |
| | | status: data.status || 0, |
| | | supplierType: data.supplierType || "", |
| | | url: data.url || "" |
| | |
| | | }, |
| | | // 下载合同 |
| | | downloadClick() { |
| | | let url = "/api/downloadContract?id=" + this.file_id |
| | | let url = "/api-srm/downloadContract?id=" + this.file_id |
| | | download(url, "", "") |
| | | }, |
| | | // 删除合同 |
| | |
| | | }, |
| | | // 预览合同 |
| | | // async previewClick() { |
| | | // this.previewUrl = "/api/con/previewContract?id=" + this.file_id |
| | | // this.previewUrl = "/api-srm/con/previewContract?id=" + this.file_id |
| | | // if (this.file_name.includes("pdf")) { |
| | | // window.open(this.previewUrl, "_blank") |
| | | // } else { |
| | |
| | | // } |
| | | // } |
| | | async previewClick() { |
| | | this.previewUrl = "/api/previewContract?id=" + this.file_id |
| | | this.previewUrl = "/api-srm/previewContract?id=" + this.file_id |
| | | if (this.file_name.includes("pdf")) { |
| | | console.log("是pdf文件") |
| | | await axios |