From 79139c7d4e27ef7038125f70a502058933efe06d Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@local>
Date: 星期三, 04 十一月 2026 14:45:35 +0800
Subject: [PATCH] feat(wls): 发货通知/销售出库列表增加「提交」按钮
---
src/views/wls/salesnotice/index.vue | 27 +++++++++++++++++++++++++++
src/views/wls/productsales/index.vue | 27 +++++++++++++++++++++++++++
2 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/src/views/wls/productsales/index.vue b/src/views/wls/productsales/index.vue
index 2e2c67f..115c56e 100644
--- a/src/views/wls/productsales/index.vue
+++ b/src/views/wls/productsales/index.vue
@@ -14,6 +14,7 @@
deleteProductSales,
exportProductSales,
getProductSalesPage,
+ submitProductSales,
} from '#/api/mes/wm/productsales';
import { $t } from '#/locales';
@@ -43,6 +44,21 @@
/** 缂栬緫閿�鍞嚭搴撳崟 */
function handleEdit(row: MesWmProductSalesApi.ProductSales) {
formModalApi.setData({ formType: 'update', id: row.id }).open();
+}
+
+/** 鎻愪氦閿�鍞嚭搴撳崟锛堣崏绋� 鈫� 寰呮嫞璐э級 */
+async function handleSubmitSales(row: MesWmProductSalesApi.ProductSales) {
+ const hideLoading = message.loading({
+ content: '姝e湪鎻愪氦...',
+ duration: 0,
+ });
+ try {
+ await submitProductSales(row.id!);
+ message.success('鎻愪氦鎴愬姛锛屽彲浠ユ嫞璐т簡');
+ handleRefresh();
+ } finally {
+ hideLoading();
+ }
}
/** 鎵ц鎷h揣 */
@@ -172,6 +188,17 @@
},
},
{
+ label: '鎻愪氦',
+ type: 'link',
+ icon: 'ant-design:check-circle-outlined',
+ auth: ['mes:wm-product-sales:submit'],
+ ifShow: row.status === MesWmProductSalesStatusEnum.PREPARE,
+ popConfirm: {
+ title: '纭鎻愪氦璇ラ攢鍞嚭搴撳崟锛熸彁浜ゅ悗鎵嶈兘鎷h揣銆�',
+ confirm: handleSubmitSales.bind(null, row),
+ },
+ },
+ {
label: '鎷h揣',
type: 'link',
auth: ['mes:wm-product-sales:stock'],
diff --git a/src/views/wls/salesnotice/index.vue b/src/views/wls/salesnotice/index.vue
index b3d6456..4e2c9b3 100644
--- a/src/views/wls/salesnotice/index.vue
+++ b/src/views/wls/salesnotice/index.vue
@@ -19,6 +19,7 @@
generateFromSaleOrder,
generateProductSales,
getSalesNoticePage,
+ submitSalesNotice,
} from '#/api/mes/wm/salesnotice';
import { $t } from '#/locales';
import SaleOrderSelectDialog from '#/views/erp/sale/order/components/select-dialog.vue';
@@ -92,6 +93,21 @@
});
} catch (e) {
console.error(e);
+ }
+}
+
+/** 鎻愪氦鍙戣揣閫氱煡鍗曪紙鑽夌 鈫� 寰呭嚭搴擄級 */
+async function handleSubmitNotice(row: MesWmSalesNoticeApi.SalesNotice) {
+ const hideLoading = message.loading({
+ content: '姝e湪鎻愪氦...',
+ duration: 0,
+ });
+ try {
+ await submitSalesNotice(row.id!);
+ message.success('鎻愪氦鎴愬姛锛屽彲浠ョ敓鎴愬嚭搴撳崟浜�');
+ handleRefresh();
+ } finally {
+ hideLoading();
}
}
@@ -207,6 +223,17 @@
},
},
{
+ label: '鎻愪氦',
+ type: 'link',
+ icon: 'ant-design:check-circle-outlined',
+ auth: ['mes:wm-sales-notice:update'],
+ ifShow: row.status === MesWmSalesNoticeStatusEnum.PREPARE,
+ popConfirm: {
+ title: '纭鎻愪氦璇ュ彂璐ч�氱煡鍗曪紵鎻愪氦鍚庢墠鑳界敓鎴愬嚭搴撳崟銆�',
+ confirm: handleSubmitNotice.bind(null, row),
+ },
+ },
+ {
label: '鐢熸垚鍑哄簱鍗�',
type: 'link',
icon: 'ant-design:file-protect-outlined',
--
Gitblit v1.9.3