Browse Source

物料变更打印制造标签修改

hella_online_20240829
chenfang 4 months ago
parent
commit
7a5fc104a3
  1. 11
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

11
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

@ -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('创建标签失败')

Loading…
Cancel
Save