Browse Source

YT-1238:供应商发货申请点击发货之后没有跳转到打印发货单页面

intex_online20241228
宋国强 2 months ago
parent
commit
fe18243755
  1. 9
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

9
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -696,7 +696,7 @@ const buttonTableClick = async (val, row) => {
labelPrint(row)
} else if (val == 'documentPrint') {
//
handleDocumentPrint(row.masterId)
handleDocumentPrint(row.masterId,row.masterId)
}
}
const footButttondata = ref([
@ -1080,13 +1080,14 @@ const genRecords = async (id: number) => {
//
SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id)
.then((res) => {
console.log('res',res)
message.success(t('ts.处理成功!'))
//
getList()
getLoading?.close()
//
handleDocumentPrint(id)
handleDocumentPrint(res,id)
})
.catch((err) => {
getLoading?.close()
@ -1242,8 +1243,8 @@ const print = async () => {
const documentSrc = ref(BASE_URL + '/jmreport/view/1019060741381099520?token=' + getAccessToken())
//
const documentSrc2 = ref(BASE_URL + '/jmreport/view/1019406772438372352?token=' + getAccessToken())
const handleDocumentPrint = async (id) => {
await SupplierdeliverRequestMainApi.getItemStatus(id).then(async (res) => {
const handleDocumentPrint = async (id,stausId) => {
await SupplierdeliverRequestMainApi.getItemStatus(stausId).then(async (res) => {
if (res) {
//
window.open(documentSrc2.value + '&id=' + id)

Loading…
Cancel
Save