|
|
@ -293,7 +293,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.id) |
|
|
|
} else if (val == 'point') { // 标签打印 |
|
|
|
handleDocumentPrint(row.id) |
|
|
|
handleDocumentPrint(row) |
|
|
|
} else if (val == 'enable') { |
|
|
|
handleEnable(row.id) |
|
|
|
} else if (val == 'disable') { |
|
|
@ -378,8 +378,13 @@ const handleExport = async () => { |
|
|
|
|
|
|
|
const BASE_URL = getJmreportBaseUrl() |
|
|
|
const documentSrc = ref(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()) |
|
|
|
const handleDocumentPrint = async (id) => { |
|
|
|
window.open(documentSrc.value + '&id=' + id) |
|
|
|
const handleDocumentPrint = async (row) => { |
|
|
|
if (row.itemType == 'TOOL') { |
|
|
|
documentSrc.value =BASE_URL + '/jmreport/view/1028102732077142016?token=' + getAccessToken()//采购标签协定品模板 |
|
|
|
} else { |
|
|
|
documentSrc.value = BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()//采购标签模板 |
|
|
|
} |
|
|
|
window.open(documentSrc.value + '&id=' + row.id) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|