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 @@ + + +