|
@@ -156,6 +156,7 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import ItdmWeituoYangpinModal from './modules/ItdmWeituoYangpinModal'
|
|
|
import { httpAction, getAction } from '@/api/manage'
|
|
|
+ import { downWeituo_info } from '@api/api'
|
|
|
export default {
|
|
|
name: 'ItdmWeituoYangpinList',
|
|
|
mixins:[JeecgListMixin, mixinDevice],
|
|
@@ -447,7 +448,15 @@
|
|
|
|
|
|
// 下载委托
|
|
|
handleDownload(record){
|
|
|
- console.log(record)
|
|
|
+ downWeituo_info({ id: record.weituoId }).then(response => {
|
|
|
+ console.log(response)
|
|
|
+ const blob = new Blob([response])
|
|
|
+ const url = window.URL.createObjectURL(blob)
|
|
|
+ let a = document.createElement('a')
|
|
|
+ a.setAttribute('href', url)
|
|
|
+ a.setAttribute('download', `${record.weituoNo}委托单.docx`)
|
|
|
+ a.click()
|
|
|
+ })
|
|
|
},
|
|
|
// handlewcChange(data){
|
|
|
|