|
@@ -75,6 +75,8 @@
|
|
|
|
|
|
<script>
|
|
|
import request from '@/utils/request'
|
|
|
+import { exportFile } from '@/utils/index'
|
|
|
+
|
|
|
export default {
|
|
|
name: 'PurchaseContractSign',
|
|
|
components: {
|
|
@@ -163,13 +165,23 @@ export default {
|
|
|
downloadFile() {
|
|
|
if(!this.detailInfo.files || this.detailInfo.files.length === 0) return
|
|
|
request({
|
|
|
- url: '/bill/downloadPdfSign',
|
|
|
- method: 'get',
|
|
|
- responseType: 'arraybuffer',
|
|
|
- params: { settlementBasicInfoId: this.detailInfo.settlementBasicInfoId }
|
|
|
- }).then(data => {
|
|
|
- exportFile(data)
|
|
|
- })
|
|
|
+ url: '/bill/downloadPdfSign',
|
|
|
+ responseType: 'arraybuffer',
|
|
|
+ params: {
|
|
|
+ settlementBasicInfoId: this.detailInfo.settlementBasicInfoId
|
|
|
+ },
|
|
|
+ method: 'get'
|
|
|
+ }).then(res => {
|
|
|
+ exportFile(res)
|
|
|
+ })
|
|
|
+ // request({
|
|
|
+ // url: '/bill/downloadPdfSign',
|
|
|
+ // method: 'get',
|
|
|
+ // responseType: 'arraybuffer',
|
|
|
+ // params: { settlementBasicInfoId: this.detailInfo.settlementBasicInfoId }
|
|
|
+ // }).then(data => {
|
|
|
+ // exportFile(data)
|
|
|
+ // })
|
|
|
}
|
|
|
},
|
|
|
watch: {
|