From 20eae58b25403e8cc58f9e72e411f40798f0bd2c Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 16 七月 2026 13:49:59 +0800
Subject: [PATCH] 银川 1.确认收货与质检流程
---
src/views/erp/purchase/order/index.vue | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/src/views/erp/purchase/order/index.vue b/src/views/erp/purchase/order/index.vue
index a4e1bec..1d76f59 100644
--- a/src/views/erp/purchase/order/index.vue
+++ b/src/views/erp/purchase/order/index.vue
@@ -11,6 +11,7 @@
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import {
+ confirmReceipt,
deletePurchaseOrder,
exportPurchaseOrder,
getPurchaseOrderPage,
@@ -77,6 +78,21 @@
try {
await updatePurchaseOrderStatus(row.id!, status);
message.success(`${status === 20 ? '瀹℃壒' : '鍙嶅鎵�'}鎴愬姛`);
+ handleRefresh();
+ } finally {
+ hideLoading();
+ }
+}
+
+/** 纭鏀惰揣 */
+async function handleConfirmReceipt(row: ErpPurchaseOrderApi.PurchaseOrder) {
+ const hideLoading = message.loading({
+ content: '纭鏀惰揣涓�...',
+ duration: 0,
+ });
+ try {
+ const arrivalNoticeId = await confirmReceipt(row.id!);
+ message.success(`纭鏀惰揣鎴愬姛锛屽凡鐢熸垚鍒拌揣閫氱煡鍗昤);
handleRefresh();
} finally {
hideLoading();
@@ -200,6 +216,17 @@
},
},
{
+ label: '纭鏀惰揣',
+ type: 'link',
+ icon: ACTION_ICON.VIEW,
+ auth: ['erp:purchase-order:confirm-receipt'],
+ ifShow: () => row.status === 20 && row.inStatus !== 2,
+ popConfirm: {
+ title: `纭鏀惰揣${row.no}鍚楋紵`,
+ confirm: handleConfirmReceipt.bind(null, row),
+ },
+ },
+ {
label: $t('common.delete'),
type: 'link',
danger: true,
--
Gitblit v1.9.3