|
@ -66,6 +66,7 @@ import { PurchasereturnRecordMain,PurchasereturnRecordMainRules,PurchasereturnRe |
|
|
import * as PurchasereturnRecordMainApi from '@/api/wms/purchasereturnRecordMain' |
|
|
import * as PurchasereturnRecordMainApi from '@/api/wms/purchasereturnRecordMain' |
|
|
import * as PurchasereturnRecordDetailApi from '@/api/wms/purchasereturnRecordDetail' |
|
|
import * as PurchasereturnRecordDetailApi from '@/api/wms/purchasereturnRecordDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
|
|
|
|
|
// 采购退货记录主 |
|
|
// 采购退货记录主 |
|
|
defineOptions({ name: 'PurchasereturnRecordMain' }) |
|
|
defineOptions({ name: 'PurchasereturnRecordMain' }) |
|
@ -126,11 +127,22 @@ const buttonBaseClick = (val, item) => { |
|
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row) => { |
|
|
return [] |
|
|
return [defaultButtons.mainListDocumentPrintBtn(null)] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
|
|
if (val == 'documentPrint') { |
|
|
|
|
|
// 单据打印 |
|
|
|
|
|
handleDocumentPrint(row.id) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 单据打印 |
|
|
|
|
|
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL |
|
|
|
|
|
const documentSrc = ref(BASE_URL + '/jmreport/view/920874172025987072?token=' + getAccessToken()) |
|
|
|
|
|
const handleDocumentPrint = async (id) => { |
|
|
|
|
|
window.open(documentSrc.value + '&id=' + id) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|