From e89adb223114bb144a7b1b029a6ec95e628d30dc Mon Sep 17 00:00:00 2001 From: weiwei Date: Mon, 17 Mar 2025 16:10:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E7=9B=98=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/supermarketerp/stockTaking.ts | 27 ++++ src/views/supermarketerp/stockTaking/form.vue | 152 +++++++++++------- .../supermarketerp/stockTaking/index.vue | 29 ++-- 3 files changed, 136 insertions(+), 72 deletions(-) create mode 100644 src/api/supermarketerp/stockTaking.ts diff --git a/src/api/supermarketerp/stockTaking.ts b/src/api/supermarketerp/stockTaking.ts new file mode 100644 index 0000000..8778f22 --- /dev/null +++ b/src/api/supermarketerp/stockTaking.ts @@ -0,0 +1,27 @@ +import request from "/@/utils/request" + +// 获取库存盘点列表 +export function getStockTakingPage(params?: object) { + return request({ + url: "/supermarket/smErpInventoryRecords/savePD", + method: "get", + params, + }) +} + +// 库存盘点新增 +export function stockTakingAdd(data?: object) { + return request({ + url: "/supermarket/smErpInventoryRecords/savePD", + method: "post", + data, + }) +} + +// 查看库存盘点详情 +export function getStockTakingDeatil(params: { id: string }) { + return request({ + url: `/supermarket/smErpInventoryRecords/getPD/${params.id}`, + method: "get", + }) +} diff --git a/src/views/supermarketerp/stockTaking/form.vue b/src/views/supermarketerp/stockTaking/form.vue index 45fdbf2..09f0499 100644 --- a/src/views/supermarketerp/stockTaking/form.vue +++ b/src/views/supermarketerp/stockTaking/form.vue @@ -73,6 +73,7 @@ " @checkbox-all="selectChangeEvent" @checkbox-change="selectChangeEvent" + @edit-change="handleEditChange" size="mini" align="center" > @@ -92,7 +93,7 @@ @@ -117,16 +118,12 @@ @@ -144,7 +141,7 @@ - + @@ -152,7 +149,10 @@ @@ -189,11 +189,12 @@