From fe18243755250e4ad59a76afc3693362335c13a1 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Tue, 26 Nov 2024 15:29:30 +0800 Subject: [PATCH] =?UTF-8?q?YT-1238=EF=BC=9A=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E5=8F=91=E8=B4=A7=E7=94=B3=E8=AF=B7=E7=82=B9=E5=87=BB=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E4=B9=8B=E5=90=8E=E6=B2=A1=E6=9C=89=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=88=B0=E6=89=93=E5=8D=B0=E5=8F=91=E8=B4=A7=E5=8D=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliver/supplierdeliverRequestMain/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index 2555afd6a..05ba7a993 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/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)