|
|
@ -199,7 +199,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
|
|
|
|
|
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
if (type == 'create') { |
|
|
|
// nextTick(() => { |
|
|
@ -272,8 +272,17 @@ const BASE_URL = getJmreportBaseUrl() |
|
|
|
const src = ref(BASE_URL + '/jmreport/view/924811818898698240?token=' + getAccessToken()) |
|
|
|
const srcPoint = ref(BASE_URL + '/jmreport/view/940818992169918464?token=' + getAccessToken()) |
|
|
|
// 标签打印 |
|
|
|
// const handlePoint = async (row) => { |
|
|
|
// window.open(src.value+'&relateNumber='+row.id) |
|
|
|
// } |
|
|
|
const handlePoint = async (row) => { |
|
|
|
window.open(src.value+'&relateNumber='+row.id) |
|
|
|
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('创建标签失败'); |
|
|
|
}); |
|
|
|
} |
|
|
|
// 批量打印 |
|
|
|
const handleSelectionPoint = async ()=>{ |
|
|
|