|
|
@ -154,11 +154,7 @@ const handlePoint = async (row) => { |
|
|
|
}).then((res) => { |
|
|
|
if(res.list.length > 0) { |
|
|
|
isCreateLabel.value = true |
|
|
|
if (res.list[0].productionLineCode != null) { |
|
|
|
labelType.value = 'zz' |
|
|
|
} else { |
|
|
|
labelType.value = 'cg' |
|
|
|
} |
|
|
|
} else { |
|
|
|
isCreateLabel.value = false |
|
|
|
} |
|
|
@ -662,13 +658,8 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r |
|
|
|
|
|
|
|
await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { |
|
|
|
console.log(res) |
|
|
|
if (labelType.value == 'cg') { |
|
|
|
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) |
|
|
|
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) |
|
|
|
window.open(src.value+'&asn_number='+res) |
|
|
|
} else { |
|
|
|
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) |
|
|
|
window.open(src.value+'&asn_number='+res) |
|
|
|
} |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
message.error('创建标签失败') |
|
|
|