@@ -180,7 +180,7 @@
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-printer"
|
||||
@click="print(scope.row)"
|
||||
@click="printExcel(scope.row)"
|
||||
>
|
||||
打印
|
||||
</el-button>
|
||||
@@ -234,6 +234,8 @@ import TaskDialog from '@/views/wms/st/outbill/TaskDialog'
|
||||
import ViewDialog from '@/views/wms/st/outbill/ViewDialog'
|
||||
import crudStorattr from '@/views/wms/basedata/st/stor/storattr'
|
||||
import { getLodop } from '@/assets/js/lodop/LodopFuncs'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
|
||||
export default {
|
||||
name: 'Checkoutbill',
|
||||
@@ -546,6 +548,14 @@ export default {
|
||||
}
|
||||
arr.push('</table>')
|
||||
return strStyle + arr.join('')
|
||||
},
|
||||
printExcel(jo) {
|
||||
download('/api/checkoutbill/downloadExcel', { 'iostorinv_id': jo.iostorinv_id }).then(result => {
|
||||
downloadFile(result, '', 'xlsx')
|
||||
crud.downloadLoading = false
|
||||
}).catch(() => {
|
||||
crud.downloadLoading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user