@@ -37,6 +37,6 @@ export default {
},
// 获取一线径予放行业务记账管理记账打印
qySecondlineWarehousePrintPdf(data) {
- return request('printPdf', data, 'get')
+ return request('printPdf', data, 'post')
}
@@ -357,7 +357,20 @@ const onDetail = (record = null, view) => {
})
const onPrint = () => {
- qySecondlineWarehouseApi.qySecondlineWarehousePrintPdf(searchFormStateReal.value).then(res => {
+ const params = {
+ ...filterParam.value
+ }
+ if (selectedRowKeys.value.length > 0) {
+ params.ids = selectedRowKeys.value
+ } else {
+ Object.entries(searchFormStateReal.value).forEach(([key, value]) => {
+ console.log(key)
+ if (proxy.$util.isValue(value)) {
+ params[key] = value
+ })
+ qySecondlineWarehouseApi.qySecondlineWarehousePrintPdf(params).then(res => {
printJS(res, 'pdf')