Browse Source

标签前端还原代码

intex_online20250609
叶佳兴 2 weeks ago
parent
commit
9035e05d3f
  1. 6
      src/api/wms/package/index.ts
  2. 30
      src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue

6
src/api/wms/package/index.ts

@ -182,6 +182,6 @@ export const jasperExportAll = async(params: any) => {
} }
//WMS采购标签和协定品标签 //WMS采购标签和协定品标签
export const jasperExportWMS = async(params: any) => { // export const jasperExportWMS = async(params: any) => {
return await request.download({url: `/wms/package/jasperExportWMS`, params}) // return await request.download({url: `/wms/package/jasperExportWMS`, params})
} // }

30
src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue

@ -440,22 +440,22 @@ const handleExport = async () => {
const BASE_URL = getJmreportBaseUrl() const BASE_URL = getJmreportBaseUrl()
const documentSrc = ref(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()) const documentSrc = ref(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken())
const handleDocumentPrint = async (row) => { const handleDocumentPrint = async (row) => {
// if (row.itemType == 'TOOL') { if (row.itemType == 'TOOL') {
// documentSrc.value =BASE_URL + '/jmreport/view/1028102732077142016?token=' + getAccessToken()// documentSrc.value =BASE_URL + '/jmreport/view/1028102732077142016?token=' + getAccessToken()//
// } else { } else {
// documentSrc.value = BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()// documentSrc.value = BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()//
// }
// window.open(documentSrc.value + '&id=' + row.id)
let id
if (row.itemType == 'TOOL') {
//
id = row.id
doHandlePrintAllExport(id, 'xdp')
} else {
//
id = row.id
doHandlePrintAllExport(id, 'cg')
} }
window.open(documentSrc.value + '&id=' + row.id)
// let id
// if (row.itemType == 'TOOL') {
// //
// id = row.id
// doHandlePrintAllExport(id, 'xdp')
// } else {
// //
// id = row.id
// doHandlePrintAllExport(id, 'cg')
// }
} }
/** 导出明细按钮操作 */ /** 导出明细按钮操作 */

Loading…
Cancel
Save