From 2a21372bee3ecf363e4d6ffee372eee50fe91557 Mon Sep 17 00:00:00 2001 From: weiwei Date: Tue, 25 Mar 2025 16:03:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E7=AE=A1=E7=90=86=E5=92=8C?= =?UTF-8?q?=E9=9B=B6=E5=94=AE=E7=AE=A1=E7=90=86=E7=9B=B8=E5=85=B3=E7=9A=84?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=9F=A5=E7=9C=8B=E5=92=8C=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/supermarketerp/stockTaking.ts | 9 -- src/stores/purchase.ts | 12 +- .../purchaseManagement/smErpCgBack/form.vue | 105 ++++++++++++---- .../purchaseManagement/smErpCgBack/index.vue | 31 ++++- .../purchaseManagement/smErpCgDd/form.vue | 105 ++++++++++++---- .../purchaseManagement/smErpCgDd/index.vue | 34 +++-- .../smErpCgInventory/form.vue | 107 ++++++++++++---- .../smErpCgInventory/index.vue | 34 ++++- .../purchaseManagement/smErpCgPlan/form.vue | 99 +++++++++++---- .../purchaseManagement/smErpCgPlan/index.vue | 20 ++- .../retailManagement/smErpRetailBack/form.vue | 117 ++++++++++++++---- .../smErpRetailBack/index.vue | 31 ++++- .../smErpRetailDelivery/form.vue | 107 ++++++++++++---- .../smErpRetailDelivery/index.vue | 41 ++++-- src/views/supermarketerp/stockTaking/form.vue | 99 +++++++++++---- .../supermarketerp/stockTaking/index.vue | 31 ++++- .../supermarketerp/supermarketSpu/form.vue | 2 +- src/views/supermarketerp/supermarketUtils.ts | 48 +++++++ 18 files changed, 823 insertions(+), 209 deletions(-) create mode 100644 src/views/supermarketerp/supermarketUtils.ts diff --git a/src/api/supermarketerp/stockTaking.ts b/src/api/supermarketerp/stockTaking.ts index 8778f22..28901f0 100644 --- a/src/api/supermarketerp/stockTaking.ts +++ b/src/api/supermarketerp/stockTaking.ts @@ -1,14 +1,5 @@ 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({ diff --git a/src/stores/purchase.ts b/src/stores/purchase.ts index ac02974..a8a25a2 100644 --- a/src/stores/purchase.ts +++ b/src/stores/purchase.ts @@ -2,24 +2,24 @@ import { defineStore } from "pinia" export const usePurchase = defineStore("purchase", { state: () => ({ - smErpCgPlan: { + purchaseFormState: { id: "", disabled: false, }, }), actions: { - setSmErpCgPlanId(id: string) { - this.smErpCgPlan.id = id + setPurchaseFormId(id: string) { + this.purchaseFormState.id = id }, - setSmErpCgPlanDisabled(disabled: boolean) { - this.smErpCgPlan.disabled = disabled + setPurchaseFormDisabled(disabled: boolean) { + this.purchaseFormState.disabled = disabled }, }, persist: { enabled: true, strategies: [ { - key: "smErpCgPlan", //自定义 Key值 + key: "purchaseFormState", //自定义 Key值 storage: localStorage, // 选择存储方式 }, ], diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue index cbc98f9..9707673 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue @@ -1,13 +1,13 @@