|
|
@ -254,17 +254,43 @@ const formsSuccess = async (formType,data) => { |
|
|
|
getList() |
|
|
|
} |
|
|
|
// 标签打印 |
|
|
|
// const handlePoint = async (row) => { |
|
|
|
// console.log(row,66666666666); |
|
|
|
// |
|
|
|
// // 判断是采购还是制造 |
|
|
|
// if (row.asnNumber !== null && row.asnNumber !== '') { |
|
|
|
// const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) |
|
|
|
// window.open(src.value+'&asn_number='+row.id) |
|
|
|
// } else { |
|
|
|
// const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) |
|
|
|
// window.open(src.value+'&asn_number='+row.id) |
|
|
|
// } |
|
|
|
// } |
|
|
|
const labelType = ref('') // 标签类别 采购还是制造等 |
|
|
|
const handlePoint = async (row) => { |
|
|
|
console.log(row,66666666666); |
|
|
|
|
|
|
|
console.log(row.packingNumber,445555555555555); |
|
|
|
PackageApi.getBalanceToPackage(row.number).then(res => { |
|
|
|
console.log(777,res); |
|
|
|
if (res.productionLineCode != null) { |
|
|
|
labelType.value = 'zz' |
|
|
|
} else { |
|
|
|
labelType.value = 'cg' |
|
|
|
} |
|
|
|
PackageApi.batchPrintingLable((res.number)).then((resLable) =>{ |
|
|
|
console.log(159,resLable ) |
|
|
|
// 判断是采购还是制造 |
|
|
|
if (row.asnNumber !== null && row.asnNumber !== '') { |
|
|
|
if (labelType.value == 'cg') { |
|
|
|
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) |
|
|
|
window.open(src.value+'&asn_number='+row.id) |
|
|
|
console.log(159,resLable ) |
|
|
|
window.open(src.value+'&asn_number='+resLable) |
|
|
|
} else { |
|
|
|
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) |
|
|
|
window.open(src.value+'&asn_number='+row.id) |
|
|
|
window.open(src.value+'&asn_number='+resLable) |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
/** 导入 */ |
|
|
|