From 8fdff2010801033723de71ba6ea7a28ddeeacf81 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Mon, 5 Feb 2024 11:39:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=89=93=E5=8D=B0=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=E9=9C=80=E8=A6=81=E5=85=88=E5=88=9B=E5=BB=BA=E8=87=AA?= =?UTF-8?q?=E6=A3=80=E6=8A=A5=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/supplierdeliverRequestMain/index.ts | 8 ++++++++ .../supplierdeliverRequestMain/index.vue | 12 +++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/api/wms/supplierdeliverRequestMain/index.ts b/src/api/wms/supplierdeliverRequestMain/index.ts index 676a7200c..b6f9f4bc8 100644 --- a/src/api/wms/supplierdeliverRequestMain/index.ts +++ b/src/api/wms/supplierdeliverRequestMain/index.ts @@ -83,10 +83,18 @@ export const appSupplierdeliverRequestMain = async (id: number) => { export const rejSupplierdeliverRequestMain = async (id: number) => { return await request.post({ url: `/wms/supplierdeliver-request-main/rej?id=` + id }) } + +// 校验是否上传自检报告 +export const selfCheckReport = async (id) => { + return await request.post({ url: `/wms/supplierdeliver-request-main/selfCheckReport?id=` + id }) +} + // 生成标签 export const genLabel = async (id) => { return await request.post({ url: `/wms/supplierdeliver-request-main/genLabel?id=` + id }) } + + // 生成记录 export const genRecordsSupplierdeliverRequestMain = async (id) => { return await request.post({ url: `/wms/supplierdeliver-request-main/genRecords?id=` + id }) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index c40a8abac..ccb447b40 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -543,7 +543,17 @@ const genLabelId = ref() // 生成标签 const pointRef = ref() const handlePoint = async (row) => { - pointRef.value.openPoint(row.id) + await SupplierdeliverRequestMainApi.selfCheckReport(row.id).then(res => { + console.log(row.id) + if(!res){ + message.warning("请先上传自检报告!") + return + }else{ + pointRef.value.openPoint(row.id) + } + }).catch(err => { + console.log("自检报告校验异常",err) + }) } // 标签打印 const labelPrint = async (row) => {