diff --git a/.env.development b/.env.development index afdb6f6..d6df8ef 100644 --- a/.env.development +++ b/.env.development @@ -8,18 +8,18 @@ VITE_OPEN = true ENV = 'development' # ADMIN 服务地址 -# VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 测试线上 +VITE_ADMIN_PROXY_PATH = http://47.96.250.9:8089/api/ # 测试线上 # VITE_ADMIN_PROXY_PATH = http://pjcloud.center.takin.cc/ # VITE_ADMIN_PROXY_PATH = http://localhost:9999/ -VITE_ADMIN_PROXY_PATH = http://192.168.101.64:9999/ # 邓-本地 +# VITE_ADMIN_PROXY_PATH = http://192.168.101.64:9999/ # 邓-本地 # VITE_ADMIN_PROXY_PATH = http://59.202.170.152:81/api # 正式环境线上 # 图片访问基础地址 -# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api # 测试线上 +# VITE_IMAGE_BASE_PATH = http://47.96.250.9:8089/api # 测试线上 # VITE_IMAGE_BASE_PATH = http://pjcloud.center.takin.cc # VITE_IMAGE_BASE_PATH = http://localhost:9999 -VITE_IMAGE_BASE_PATH = http://192.168.101.64:9999 # 邓-本地 -# VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api/ # 正式环境线上 +# VITE_IMAGE_BASE_PATH = http://192.168.101.64:9999 # 邓-本地 +VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api/ # 正式环境线上 # 代码生成服务地址 VITE_GEN_PROXY_PATH = http://192.168.110.156:5003 diff --git a/src/stores/purchase.ts b/src/stores/purchase.ts new file mode 100644 index 0000000..ac02974 --- /dev/null +++ b/src/stores/purchase.ts @@ -0,0 +1,27 @@ +import { defineStore } from "pinia" + +export const usePurchase = defineStore("purchase", { + state: () => ({ + smErpCgPlan: { + id: "", + disabled: false, + }, + }), + actions: { + setSmErpCgPlanId(id: string) { + this.smErpCgPlan.id = id + }, + setSmErpCgPlanDisabled(disabled: boolean) { + this.smErpCgPlan.disabled = disabled + }, + }, + persist: { + enabled: true, + strategies: [ + { + key: "smErpCgPlan", //自定义 Key值 + storage: localStorage, // 选择存储方式 + }, + ], + }, +}) diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgBack/index.vue b/src/views/supermarketerp/purchaseManagement/smErpCgBack/index.vue index 040df97..e0ea296 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgBack/index.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgBack/index.vue @@ -18,11 +18,11 @@ - + 查询 重置 @@ -76,11 +76,11 @@ - - - - - + + + @@ -120,7 +120,7 @@ import { useMessage, useMessageBox } from "/@/hooks/message" import { useDict } from "/@/hooks/dict" const router = useRouter() -const { erp_order_type, inventory_type, check_status } = useDict("erp_order_type", "inventory_type", "check_status") +const { check_status } = useDict("check_status") // 搜索变量 const queryRef = ref() const showSearch = ref(true) diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgInventory/index.vue b/src/views/supermarketerp/purchaseManagement/smErpCgInventory/index.vue index ba3493b..08e8203 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgInventory/index.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgInventory/index.vue @@ -76,11 +76,11 @@ - - - + + + diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue index 9b35eba..241cf8d 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue @@ -165,7 +165,9 @@ import { getObj, addObj, putObj } from "/@/api/supermarketerp/smErpCgPlan" import { getPlanCode, getErpSpuSimpleAll } from "/@/api/supermarketerp/common" import erpSpuSelectDialog from "/@/views/supermarketerp/components/erpSpuSelectDialog.vue" import { formatDate } from "/@/utils/formatTime" +import { usePurchase } from "/@/stores/purchase" +const purchaseStore = usePurchase() const router = useRouter() const route = useRoute() const erpSpuSelectDialogRef = ref() // 商品选择对话框ref @@ -212,7 +214,8 @@ const validRules = ref>({ // 初始化数据 const getInitData = async () => { baseDataForm.id = undefined - const id = route.query.id as string + // const id = route.query.id as string + const id = purchaseStore.smErpCgPlan.id if (id) { loading.value = true // 获取补货申请编号 & 获取简要商品列表 diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgPlan/index.vue b/src/views/supermarketerp/purchaseManagement/smErpCgPlan/index.vue index 3d8bbc4..36acada 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgPlan/index.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgPlan/index.vue @@ -14,7 +14,7 @@ - + @@ -64,7 +64,11 @@ - + + +