优化
This commit is contained in:
@@ -5,10 +5,10 @@ ENV = development
|
|||||||
# VITE_API_WSS = 'wss://sockets.sxczgkj.com/wss'
|
# VITE_API_WSS = 'wss://sockets.sxczgkj.com/wss'
|
||||||
|
|
||||||
# 正式ws
|
# 正式ws
|
||||||
VITE_API_WSS = 'wss://czgeatws.sxczgkj.com/wss'
|
# VITE_API_WSS = 'wss://czgeatws.sxczgkj.com/wss'
|
||||||
|
|
||||||
# 本地ws
|
# 本地ws
|
||||||
# VITE_API_WSS = 'ws://192.168.1.31:2348'
|
VITE_API_WSS = 'ws://192.168.1.31:2348'
|
||||||
|
|
||||||
# 正式 php
|
# 正式 php
|
||||||
VITE_API_PHP_URL = 'https://newblockwlx.sxczgkj.cn/index.php/api'
|
VITE_API_PHP_URL = 'https://newblockwlx.sxczgkj.cn/index.php/api'
|
||||||
@@ -20,10 +20,10 @@ VITE_API_PHP_URL = 'https://newblockwlx.sxczgkj.cn/index.php/api'
|
|||||||
VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api'
|
VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api'
|
||||||
|
|
||||||
# 本地调试连接
|
# 本地调试连接
|
||||||
# VITE_API_URL = 'http://192.168.1.31/'
|
VITE_API_URL = 'http://192.168.1.31/'
|
||||||
|
|
||||||
# 线上测试
|
# 线上测试
|
||||||
# VITE_API_URL = 'https://tapi.cashier.sxczgkj.cn'
|
# VITE_API_URL = 'https://tapi.cashier.sxczgkj.cn'
|
||||||
|
|
||||||
# 线上正式
|
# 线上正式
|
||||||
VITE_API_URL = 'https://cashier.sxczgkj.com'
|
# VITE_API_URL = 'https://cashier.sxczgkj.com'
|
||||||
@@ -156,6 +156,16 @@ export const useGlobal = defineStore("global", {
|
|||||||
label: "管理员消费",
|
label: "管理员消费",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
refundType: [
|
||||||
|
{
|
||||||
|
type: "cash",
|
||||||
|
label: "手动退款",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "payBack",
|
||||||
|
label: "原路退回",
|
||||||
|
},
|
||||||
|
],
|
||||||
}),
|
}),
|
||||||
actions: {
|
actions: {
|
||||||
// 更新状态
|
// 更新状态
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ function printHandle() {
|
|||||||
printStore.pushReceiptData(printData, false);
|
printStore.pushReceiptData(printData, false);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
printDataLoading.value = false;
|
printDataLoading.value = false;
|
||||||
}, 1500);
|
}, 2500);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 提交打印机
|
// 提交打印机
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ const printHandle = _.throttle(function () {
|
|||||||
);
|
);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
printLoading.value = false;
|
printLoading.value = false;
|
||||||
}, 1000);
|
}, 2500);
|
||||||
}, 1500, { leading: true, trailing: false })
|
}, 1500, { leading: true, trailing: false })
|
||||||
|
|
||||||
// 提交打印机
|
// 提交打印机
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ async function printHandle(type) {
|
|||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
printLoading.value = false;
|
printLoading.value = false;
|
||||||
}, 1500);
|
}, 2500);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function show(row) {
|
async function show(row) {
|
||||||
|
|||||||
@@ -50,9 +50,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" width="100">
|
<el-table-column label="状态" width="150">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
{{ filterLable("orderStatus", scope.row.status) }}
|
{{ filterLable("orderStatus", scope.row.status) }}
|
||||||
|
<span v-if="scope.row.status == 'refund'" class="refund">
|
||||||
|
({{ filterLable("refundType", scope.row.refundType) }})
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="订单信息" width="340">
|
<el-table-column label="订单信息" width="340">
|
||||||
@@ -216,6 +219,7 @@ function filterLable(key, type) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 过滤退款条件
|
// 过滤退款条件
|
||||||
function refundState(row) {
|
function refundState(row) {
|
||||||
switch (row.status) {
|
switch (row.status) {
|
||||||
@@ -297,6 +301,10 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
.refund {
|
||||||
|
color: var(--el-color-danger);
|
||||||
|
}
|
||||||
|
|
||||||
.flex {
|
.flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user