优化退菜原因
This commit is contained in:
@@ -8,7 +8,8 @@ VITE_APP_BASE_API=/dev-api
|
|||||||
|
|
||||||
# VITE_APP_API_URL=https://tapi.cashier.sxczgkj.cn/ # 测试
|
# VITE_APP_API_URL=https://tapi.cashier.sxczgkj.cn/ # 测试
|
||||||
# VITE_APP_API_URL=https://cashier.sxczgkj.com/ # 正式
|
# VITE_APP_API_URL=https://cashier.sxczgkj.com/ # 正式
|
||||||
VITE_APP_API_URL=http://192.168.1.42/ # 本地
|
# VITE_APP_API_URL=http://192.168.1.42/ # 本地
|
||||||
|
VITE_APP_API_URL=https://frp.sxczgkj.com # 本地映射地址
|
||||||
VITE_APP_API_PHP_URL=http://192.168.1.42:8000 #php抖音美团测试环境
|
VITE_APP_API_PHP_URL=http://192.168.1.42:8000 #php抖音美团测试环境
|
||||||
VITE_APP_API_PHP_IMPORT_URL=http://192.168.1.42:8789 #本地php批量导入
|
VITE_APP_API_PHP_IMPORT_URL=http://192.168.1.42:8789 #本地php批量导入
|
||||||
# VITE_APP_API_PHP_IMPORT_URL=https://diftcs.sxczgkj.com #本地线上php批量导入
|
# VITE_APP_API_PHP_IMPORT_URL=https://diftcs.sxczgkj.com #本地线上php批量导入
|
||||||
@@ -17,7 +18,8 @@ VITE_APP_BASE_API=/dev-api
|
|||||||
# WebSocket 端点(不配置则关闭),线上 ws://api.youlai.tech/ws ,本地 ws://localhost:8989/ws
|
# WebSocket 端点(不配置则关闭),线上 ws://api.youlai.tech/ws ,本地 ws://localhost:8989/ws
|
||||||
# VITE_APP_WS_ENDPOINT=wss://sockets.sxczgkj.com/wss
|
# VITE_APP_WS_ENDPOINT=wss://sockets.sxczgkj.com/wss
|
||||||
# VITE_APP_WS_ENDPOINT=wss://czgeatws.sxczgkj.com/wss # 正式
|
# VITE_APP_WS_ENDPOINT=wss://czgeatws.sxczgkj.com/wss # 正式
|
||||||
VITE_APP_WS_ENDPOINT=ws://192.168.1.42:2348 # 本地
|
# VITE_APP_WS_ENDPOINT=ws://192.168.1.42:2348 # 本地
|
||||||
|
VITE_APP_WS_ENDPOINT=ws://frp.sxczgkj.com/wss # 本地
|
||||||
# VITE_APP_API_PHP_URL=https://newblockwlx.sxczgkj.cn #php抖音美团正式环境
|
# VITE_APP_API_PHP_URL=https://newblockwlx.sxczgkj.cn #php抖音美团正式环境
|
||||||
|
|
||||||
# 启用 Mock 服务
|
# 启用 Mock 服务
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ VITE_APP_NAME=production
|
|||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
VITE_APP_BASE_API = https://cashier.sxczgkj.com/
|
VITE_APP_BASE_API = https://cashier.sxczgkj.com/
|
||||||
|
# VITE_APP_BASE_API = https://frp.sxczgkj.com/
|
||||||
|
|
||||||
VITE_APP_API_PHP_URL=https://newblockwlx.sxczgkj.cn #php抖音美团正式环境
|
VITE_APP_API_PHP_URL=https://newblockwlx.sxczgkj.cn #php抖音美团正式环境
|
||||||
|
|
||||||
@@ -18,7 +19,9 @@ VITE_APP_API_PHP_URL=https://newblockwlx.sxczgkj.cn #php抖音美团正式环
|
|||||||
|
|
||||||
|
|
||||||
# WebSocket 端点(不配置则关闭),线上 ws://api.youlai.tech/ws ,本地 ws://localhost:8989/ws
|
# WebSocket 端点(不配置则关闭),线上 ws://api.youlai.tech/ws ,本地 ws://localhost:8989/ws
|
||||||
VITE_APP_WS_ENDPOINT=wss://czgeatws.sxczgkj.com/wss
|
VITE_APP_WS_ENDPOINT=wss://czgeatws.sxczgkj.com/wss
|
||||||
|
|
||||||
|
# VITE_APP_WS_ENDPOINT=wss://frp.sxczgkj.com/wss
|
||||||
|
|
||||||
# 启用 Mock 服务
|
# 启用 Mock 服务
|
||||||
VITE_MOCK_DEV_SERVER=false
|
VITE_MOCK_DEV_SERVER=false
|
||||||
|
|||||||
@@ -141,12 +141,12 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeSel(item) {
|
changeSel(item) {
|
||||||
// item.checked = !item.checked;
|
item.checked = !item.checked;
|
||||||
if (this.note == '') {
|
// if (this.note == '') {
|
||||||
this.note = item.label
|
// this.note = item.label
|
||||||
} else {
|
// } else {
|
||||||
this.note += `,${item.label}`
|
// this.note += `,${item.label}`
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
reset() {
|
reset() {
|
||||||
this.note = "";
|
this.note = "";
|
||||||
@@ -224,8 +224,10 @@ export default {
|
|||||||
this.refundNext()
|
this.refundNext()
|
||||||
},
|
},
|
||||||
refundNext() {
|
refundNext() {
|
||||||
|
const note = this.tags.filter(item => item.checked).map(item => item.label).join(',') + (this.note ? `,${this.note}` : '')
|
||||||
|
|
||||||
this.$emit("confirm", {
|
this.$emit("confirm", {
|
||||||
refundReason: this.note,
|
refundReason: note,
|
||||||
refundAmount: 0,
|
refundAmount: 0,
|
||||||
refundDetails: toRaw(this.selectData).map(item => ({
|
refundDetails: toRaw(this.selectData).map(item => ({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -238,13 +240,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 确认退菜
|
// 确认退菜
|
||||||
confirm() {
|
confirm() {
|
||||||
|
const note = this.tags.filter(item => item.checked).map(item => item.label).join(',') + (this.note ? `,${this.note}` : '')
|
||||||
// const selTag = this.tags
|
// const selTag = this.tags
|
||||||
// .filter((item) => item.checked)
|
// .filter((item) => item.checked)
|
||||||
// .map((item) => item.label)
|
// .map((item) => item.label)
|
||||||
// .join(",");
|
// .join(",");
|
||||||
// this.note = selTag + (this.note.length > 0 ? "," + this.note : "");
|
// this.note = selTag + (this.note.length > 0 ? "," + this.note : "");
|
||||||
|
|
||||||
if (!this.note) {
|
if (!note) {
|
||||||
return ElMessage.error("请输入退菜原因");
|
return ElMessage.error("请输入退菜原因");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user