|
@ -140,15 +140,15 @@ const butttondata = (row,$index) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
if (val == 'documentPrint') { |
|
|
if (val == 'documentPrint') { |
|
|
// 单据打印 |
|
|
// 单据打印 |
|
|
handleDocumentPrint(row.masterId) |
|
|
handleDocumentPrint(row.id,row.masterId) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 单据打印 |
|
|
// 单据打印 |
|
|
const BASE_URL = getJmreportBaseUrl() |
|
|
const BASE_URL = getJmreportBaseUrl() |
|
|
const documentSrc = ref(BASE_URL + '/jmreport/view/920874172025987072?token=' + getAccessToken()) |
|
|
const documentSrc = ref(BASE_URL + '/jmreport/view/920874172025987072?token=' + getAccessToken()) |
|
|
const handleDocumentPrint = async (id) => { |
|
|
const handleDocumentPrint = async (id,masterId) => { |
|
|
window.open(documentSrc.value + '&id=' + id) |
|
|
window.open(documentSrc.value + '&id=' + id+ '&masterId=' + masterId) |
|
|
} |
|
|
} |
|
|
// 获取部门 用于详情 部门回显 |
|
|
// 获取部门 用于详情 部门回显 |
|
|
const { wsCache } = useCache() |
|
|
const { wsCache } = useCache() |
|
|