Browse Source

需求:YT-2317

intex
赵雪冰 3 days ago
parent
commit
737e54da17
  1. 65
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue

65
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue

@ -140,39 +140,46 @@ const buttonTableClick = async (val, row) => {
}
const BASE_URL = getJmreportBaseUrl()
const documentSrc = ref(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken())
const labelType = ref('') //
//
const handlePoint = async (row) => {
//
await PackageApi.getPackagePage({
requestNumber: row.number,
pageSize: 500,
pageNo: 1
}).then((res) => {
if(res.list.length > 0) {
if (res.list[0].productionLineCode != null) {
labelType.value = 'zz'
} else {
labelType.value = 'cg'
}
PackageApi.batchPrintingLable(res.list.map(item1=>item1.number).join(',')).then((resLable) =>{
console.log(159,resLable )
//
if (labelType.value == 'cg') {
// const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
const src = ref(BASE_URL + '/jmreport/view/998431235767558144?token=' + getAccessToken())
window.open(src.value+'&asn_number='+resLable)
} else {
// const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
const src = ref(BASE_URL + '/jmreport/view/998438158579556352?token=' + getAccessToken())
window.open(src.value+'&asn_number='+resLable)
}
})
}
}).catch(err => {
console.log(err)
})
// await PackageApi.getPackagePage({
// requestNumber: row.number,
// pageSize: 500,
// pageNo: 1
// }).then((res) => {
// if(res.list.length > 0) {
// if (res.list[0].productionLineCode != null) {
// labelType.value = 'zz'
// } else {
// labelType.value = 'cg'
// }
// PackageApi.batchPrintingLable(res.list.map(item1=>item1.number).join(',')).then((resLable) =>{
// console.log(159,resLable )
// //
// if (labelType.value == 'cg') {
// // const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
// const src = ref(BASE_URL + '/jmreport/view/998431235767558144?token=' + getAccessToken())
// window.open(src.value+'&asn_number='+resLable)
// } else {
// // const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
// const src = ref(BASE_URL + '/jmreport/view/998438158579556352?token=' + getAccessToken())
// window.open(src.value+'&asn_number='+resLable)
// }
// })
// }
// }).catch(err => {
// console.log(err)
// })
if (row.itemType == 'TOOL') {
documentSrc.value =BASE_URL + '/jmreport/view/1028102732077142016?token=' + getAccessToken()//
} else {
documentSrc.value = BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()//
}
window.open(documentSrc.value + '&request_number=' + row.number)
}
/** 详情操作 */

Loading…
Cancel
Save