代码更新

Signed-off-by: liuxy <lxy1605052545@163.com>
This commit is contained in:
2022-11-24 22:10:05 +08:00
parent 5070c92f55
commit 54a2e6e8d5
6 changed files with 152 additions and 6 deletions

View File

@@ -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
})
}
}
}