feat:编辑菜品时自动切换是否涨价

This commit is contained in:
dzc committed 2026-04-29 15:45:57 +08:00
1 parent 0a138d258d
commit 1d132425b6
2 files changed
+14 -4

No files matched your search

+4 -4
View File
@@ -11,15 +11,15 @@ ENV = 'development'
# VITE_ADMIN_PROXY_PATH = http://123.157.250.162:8089/api/ # 测试线上
# VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 测试线上-过期
# VITE_ADMIN_PROXY_PATH = http://localhost:9999/
VITE_ADMIN_PROXY_PATH = https://dzc-test-1.fy.takin.cc # 邓-本地
# VITE_ADMIN_PROXY_PATH = https://stgl.pj.gov.cn/api # 正式环境线上
# VITE_ADMIN_PROXY_PATH = https://dzc-test-1.fy.takin.cc # 邓-本地
VITE_ADMIN_PROXY_PATH = https://stgl.pj.gov.cn/api # 正式环境线上
# 图片访问基础地址
# VITE_IMAGE_BASE_PATH = http://123.157.250.162:8089/api/ # 测试线上
# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api/ # 测试线上-过期
# VITE_IMAGE_BASE_PATH = http://localhost:9999
VITE_IMAGE_BASE_PATH = https://dzc-test-1.fy.takin.cc # 邓-本地
# VITE_IMAGE_BASE_PATH = https://stgl.pj.gov.cn/api/ # 正式环境线上
# VITE_IMAGE_BASE_PATH = https://dzc-test-1.fy.takin.cc # 邓-本地
VITE_IMAGE_BASE_PATH = https://stgl.pj.gov.cn/api/ # 正式环境线上
# 代码生成服务地址
VITE_GEN_PROXY_PATH = http://192.168.110.156:5003
+10
View File
@@ -165,6 +165,16 @@ const dataRules = ref({
virtualSalesCount: [{ validator: rule.number, trigger: "blur" }],
})
watch(() => form.categoryId, (newVal, oldVal) => {
if (newVal !== oldVal) {
if (["1906350354126798850", "1879343931557081090"].includes(newVal)) {
form.isPriceIncreased = '0'
} else {
form.isPriceIncreased = '1'
}
}
}, { deep: true })
// 打开弹窗
const openDialog = async (id: string) => {
visible.value = true