From 816ecad73f5b8be37b1d7beb0b7a375d5e136f19 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 12 Jul 2024 13:30:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E9=85=8D=E6=94=B6=E8=B4=A7=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productreceiptAssembleRecordMain/index.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue index ea1a36e30..94a762bc6 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue @@ -241,8 +241,23 @@ const butttondata = (row,$index) => { const buttonTableClick = async (val, row) => { if (val == 'point') { // 标签打印 labelPrint(row) + }else if(val == 'inspectRequest'){//生成到货检验申请 + handleCreateInspectRequest(row.number) } } +/** 生成到货检验申请按钮操作 */ +const handleCreateInspectRequest = async (number:string) => { + try{ + await message.confirm(t('ts.确认生成到货检验申请吗?')) + tableObject.loading = true + await ProductreceiptRecordMainApi.createInspectRequest(number) + message.success(t('ts.到货检验申请生成成功')) + await getList() + }catch{}finally{ + tableObject.loading = false + } +} + const searchTableRef = ref() const labelType = ref('') // 标签类别 采购还是制造等 const labelPrint = async (row) => {