|
@ -177,8 +177,7 @@ const butttondata = (row) => { |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
const BASE_URL = getJmreportBaseUrl() |
|
|
const BASE_URL = getJmreportBaseUrl() |
|
|
const src = ref(BASE_URL + '/jmreport/view/924811818898698240?token=' + getAccessToken()) |
|
|
const srcPoint = ref(BASE_URL + '/jmreport/view/1049193724513161216?token=' + getAccessToken()) |
|
|
const srcPoint = ref(BASE_URL + '/jmreport/view/940818992169918464?token=' + getAccessToken()) |
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
if (val == 'edit') { // 编辑 |
|
|
if (val == 'edit') { // 编辑 |
|
@ -226,9 +225,9 @@ const openForm = async(type: string, row?: any) => { |
|
|
'by': 'ASC', |
|
|
'by': 'ASC', |
|
|
} |
|
|
} |
|
|
const data = await LocationApi.getLocationPage(param) |
|
|
const data = await LocationApi.getLocationPage(param) |
|
|
let locationCode = data[0]?.code; |
|
|
let locationCode = data.list[0].code; |
|
|
console.log('row',row); |
|
|
console.log('row',row); |
|
|
row.locationCode = locationCode; |
|
|
// row.locationCode = locationCode; |
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -334,13 +333,18 @@ const handleDisable = async (id: number) => { |
|
|
} catch {} |
|
|
} catch {} |
|
|
} |
|
|
} |
|
|
const handlePoint = async (row) => { |
|
|
const handlePoint = async (row) => { |
|
|
|
|
|
// let rows = [row.id]; // 将单个 row.id 转换成数组 |
|
|
|
|
|
// await PackageApi.batchPrintingLable(rows.join(',')).then(res => { |
|
|
|
|
|
// window.open(srcPoint.value + '&relateNumber=' + res); |
|
|
|
|
|
// message.success('创建标签成功'); |
|
|
|
|
|
// }).catch(err => { |
|
|
|
|
|
// message.error('创建标签失败'); |
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
|
let rows = [row.id]; // 将单个 row.id 转换成数组 |
|
|
let rows = [row.id]; // 将单个 row.id 转换成数组 |
|
|
await PackageApi.batchPrintingLable(rows.join(',')).then(res => { |
|
|
window.open(srcPoint.value + '&relateNumber=' + rows.join(',')); |
|
|
window.open(srcPoint.value + '&relateNumber=' + res); |
|
|
|
|
|
message.success('创建标签成功'); |
|
|
message.success('创建标签成功'); |
|
|
}).catch(err => { |
|
|
|
|
|
message.error('创建标签失败'); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 批量打印 |
|
|
// 批量打印 |
|
@ -350,14 +354,16 @@ const handleSelectionPoint = async ()=>{ |
|
|
rows = [...rows,...item.selectionRows.map(item1=>item1.id)] |
|
|
rows = [...rows,...item.selectionRows.map(item1=>item1.id)] |
|
|
}) |
|
|
}) |
|
|
console.log('批量打印',rows.join(',')) |
|
|
console.log('批量打印',rows.join(',')) |
|
|
await PackageApi.batchPrintingLable(rows.join(',')).then(res => { |
|
|
window.open(srcPoint.value + '&relateNumber=' + rows.join(',')); |
|
|
console.log(res) |
|
|
message.success('创建标签成功'); |
|
|
window.open(srcPoint.value+'&relateNumber='+res) |
|
|
// await PackageApi.batchPrintingLable(rows.join(',')).then(res => { |
|
|
message.success('创建标签成功') |
|
|
// console.log(res) |
|
|
}).catch(err => { |
|
|
// window.open(srcPoint.value+'&relateNumber='+res) |
|
|
console.log(err) |
|
|
// message.success('创建标签成功') |
|
|
message.error('创建标签失败') |
|
|
// }).catch(err => { |
|
|
}) |
|
|
// console.log(err) |
|
|
|
|
|
// message.error('创建标签失败') |
|
|
|
|
|
// }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const selectionRows = ref<any>([]) |
|
|
const selectionRows = ref<any>([]) |
|
|