From 93f6871f4617af6f9032fff08bcf9eaf842a6fda Mon Sep 17 00:00:00 2001
From: zjf <1799650030@qq.com>
Date: Tue, 11 Feb 2025 17:07:34 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A1=E5=88=92-2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 6 +-
.gitignore | 2 +-
package.json | 3 +-
src/api/supermarketerp/smErpCgPlan.ts | 41 ++++
src/views/supermarketerp/smErpCgPlan/form.vue | 197 ++++++++++++++++++
.../supermarketerp/smErpCgPlan/index.vue | 153 ++++++++++++++
6 files changed, 397 insertions(+), 5 deletions(-)
create mode 100644 src/api/supermarketerp/smErpCgPlan.ts
create mode 100644 src/views/supermarketerp/smErpCgPlan/form.vue
create mode 100644 src/views/supermarketerp/smErpCgPlan/index.vue
diff --git a/.env.development b/.env.development
index 17c96dd..0b88f07 100644
--- a/.env.development
+++ b/.env.development
@@ -8,9 +8,9 @@ VITE_OPEN = true
ENV = 'development'
# ADMIN 服务地址
-VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 线上
+#VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 线上
# VITE_ADMIN_PROXY_PATH = http://pjcloud.center.takin.cc/
-# VITE_ADMIN_PROXY_PATH = http://localhost:9999/
+VITE_ADMIN_PROXY_PATH = http://localhost:9999/
# VITE_ADMIN_PROXY_PATH = http://192.168.101.29:9999/ # 邓-本地
# VITE_ADMIN_PROXY_PATH = http://192.168.101.37:9999/ # 邓-本地
# VITE_ADMIN_PROXY_PATH = http://59.202.170.152:81/api # 正式环境
@@ -18,7 +18,7 @@ VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 线上
# 图片访问基础地址
VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api # 线上
# VITE_IMAGE_BASE_PATH = http://pjcloud.center.takin.cc
-# VITE_IMAGE_BASE_PATH = http://localhost:9999
+VITE_IMAGE_BASE_PATH = http://localhost:9999
# VITE_IMAGE_BASE_PATH = http://192.168.101.29:9999 # 邓-本地
# VITE_IMAGE_BASE_PATH = http://192.168.101.37:9999 # 邓-本地
# VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api/ # 正式环境
diff --git a/.gitignore b/.gitignore
index 2554c2c..201fec3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,7 +8,7 @@ docker/dist
.env
.env.development
.env.prod
-.env.local
+.env.dev-local
.env.*.local
# Log files
diff --git a/package.json b/package.json
index d4a4d7b..67917ff 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
"license": "不对外分发 pig4cloud 版权所有,请购买商业版权",
"scripts": {
"dev": "vite --force",
+ "dev:local": "vite --force --mode dev-local",
"build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build",
"build:prod": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode prod",
"build:docker": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --outDir ./docker/dist/",
@@ -108,4 +109,4 @@
"type": "git",
"url": "https://gitee.com/log4j/pig"
}
-}
\ No newline at end of file
+}
diff --git a/src/api/supermarketerp/smErpCgPlan.ts b/src/api/supermarketerp/smErpCgPlan.ts
new file mode 100644
index 0000000..8cd86d4
--- /dev/null
+++ b/src/api/supermarketerp/smErpCgPlan.ts
@@ -0,0 +1,41 @@
+import request from "/@/utils/request"
+
+export function fetchList(query?: Object) {
+ return request({
+ url: '/supermarket/smErpCgPlan/page',
+ method: 'get',
+ params: query
+ })
+}
+
+export function addObj(obj?: Object) {
+ return request({
+ url: '/supermarket/smErpCgPlan',
+ method: 'post',
+ data: obj
+ })
+}
+
+export function getObj(id?: string) {
+ return request({
+ url: '/supermarket/smErpCgPlan/' + id,
+ method: 'get'
+ })
+}
+
+export function delObjs(ids?: Object) {
+ return request({
+ url: '/supermarket/smErpCgPlan',
+ method: 'delete',
+ data: ids
+ })
+}
+
+export function putObj(obj?: Object) {
+ return request({
+ url: '/supermarket/smErpCgPlan',
+ method: 'put',
+ data: obj
+ })
+}
+
diff --git a/src/views/supermarketerp/smErpCgPlan/form.vue b/src/views/supermarketerp/smErpCgPlan/form.vue
new file mode 100644
index 0000000..7e3b908
--- /dev/null
+++ b/src/views/supermarketerp/smErpCgPlan/form.vue
@@ -0,0 +1,197 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/supermarketerp/smErpCgPlan/index.vue b/src/views/supermarketerp/smErpCgPlan/index.vue
new file mode 100644
index 0000000..0bb5268
--- /dev/null
+++ b/src/views/supermarketerp/smErpCgPlan/index.vue
@@ -0,0 +1,153 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 查询
+
+ 重置
+
+
+
+
+
+
+ 新 增
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+