Browse Source

需求:YT-2317

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

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

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

Loading…
Cancel
Save