+
+
+
@@ -111,4 +114,8 @@ onMounted(() => {
margin-top: 14px;
}
}
+
+.tips {
+ margin-top: 14px;
+}
\ No newline at end of file
diff --git a/src/views/marketing_center/drainage/index.vue b/src/views/marketing_center/drainage/index.vue
index 59aa57f..6806938 100644
--- a/src/views/marketing_center/drainage/index.vue
+++ b/src/views/marketing_center/drainage/index.vue
@@ -8,10 +8,10 @@
-
{{ form.title || '请输入模块标题' }}
+
{{ form.title || defaultTitle }}
{{ form.content || '请输入模块内容' }}
-
{{ form.note || '请输入模块提示语' }}
+
{{ form.note || defaultNote }}
@@ -32,7 +32,7 @@
-
+
@@ -42,7 +42,7 @@
-
+
保存
@@ -59,13 +59,14 @@ import { ref, reactive, onMounted } from 'vue'
import { ElNotification } from 'element-plus'
import { drainageConfigGet, drainageConfigPost } from '@/api/coupon/index'
+const defaultTitle = ref('扫码进群,优惠多多')
const defaultNote = ref('长按识别,微信内扫一扫加好友')
const form = ref({
id: '',
useType: ['dine-in'],
qrCode: '',
- title: '',
+ title: defaultTitle.value,
content: '',
note: '长按识别,微信内扫一扫加好友',
isEnable: '',
@@ -129,6 +130,14 @@ function submitHandle() {
let data = { ...form.value }
+ if (data.title == '') {
+ data.title = defaultTitle.value
+ }
+
+ if (data.note == '') {
+ data.note = defaultNote.value
+ }
+
await drainageConfigPost(data);
ElNotification({
title: '注意',
@@ -151,6 +160,13 @@ async function drainageConfigGetAjax() {
res.useType = []
}
form.value = res
+
+ if (form.value.title == '') {
+ form.value.title = defaultTitle.value
+ }
+ if (form.value.note == '') {
+ form.value.note = defaultNote.value
+ }
} catch (error) {
console.log(error);
}
diff --git a/src/views/marketing_center/note_push/noteList.vue b/src/views/marketing_center/note_push/noteList.vue
index ad993e0..e7697f8 100644
--- a/src/views/marketing_center/note_push/noteList.vue
+++ b/src/views/marketing_center/note_push/noteList.vue
@@ -137,7 +137,7 @@ const statusList = ref([
},
{
value: 2,
- label: '发送成功',
+ label: '发送完成',
type: 'success'
},
{
diff --git a/src/views/marketing_center/note_push/record.vue b/src/views/marketing_center/note_push/record.vue
index d88c9b1..b4a8ae6 100644
--- a/src/views/marketing_center/note_push/record.vue
+++ b/src/views/marketing_center/note_push/record.vue
@@ -28,8 +28,8 @@
-
+
diff --git a/src/views/product/indexconfig/addgoods.vue b/src/views/product/indexconfig/addgoods.vue
index 87850a6..93ca7e8 100644
--- a/src/views/product/indexconfig/addgoods.vue
+++ b/src/views/product/indexconfig/addgoods.vue
@@ -70,7 +70,7 @@
可选套餐
-
+
@@ -95,7 +95,7 @@
-
+
@@ -382,7 +382,7 @@ const ruleForm = reactive({
// 规格id
specId: "",
// 套餐类型
- groupType: "0",
+ groupType: 0,
// 套餐入参
proGroupVo: [
{
@@ -569,7 +569,7 @@ function selectShopRes(res: Array) {
return item;
});
- if (ruleForm.groupType == "0") {
+ if (ruleForm.groupType == 0) {
let obj = {
title: "",
count: newres.length,
@@ -726,7 +726,7 @@ function cartesian(arr) {
// 套餐类型切换
function typeChange() {
// ruleForm.typeEnum = 'normal'
- if (ruleForm.groupType == "0") {
+ if (ruleForm.groupType == 0) {
ruleForm.proGroupVo = [];
ruleForm.proGroupVo[0] = {
title: "",
@@ -783,7 +783,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
// 标题和几选几是否填写
if (ruleForm.type == "package") {
- if (ruleForm.groupType == "1") {
+ if (ruleForm.groupType == 1) {
let selectTitle = false;
ruleForm.proGroupVo.forEach((item: any) => {
if (item.number == "" || item.title == "") {
diff --git a/src/views/shop/config/components/shopInfo.vue b/src/views/shop/config/components/shopInfo.vue
index c7a350b..66111e3 100644
--- a/src/views/shop/config/components/shopInfo.vue
+++ b/src/views/shop/config/components/shopInfo.vue
@@ -3,25 +3,14 @@
-
+
-
+
-
+
-
+
-
+
-
-
-
+
-
+
+ 是否允许用户在小程序端支付订单
+ -->
-
+
-
+
@@ -249,24 +169,11 @@
-
-
+
+
点击上传
请勿上传违法文件,且文件不超过15M
@@ -465,7 +372,6 @@ export default {
...this.form,
eatModel: this.form.eatModel.join(","),
});
- this.formLoading = false;
ElMessage.success({
title: "成功",
message: "提交成功",
@@ -473,7 +379,8 @@ export default {
setTimeout(() => {
// location.reload();
}, 1000);
- } catch (error) {}
+ } catch (error) { }
+ this.formLoading = false;
}
});
},
@@ -487,7 +394,7 @@ export default {
handleBeforeRemove(file, fileList) {
for (let i = 0; i < this.files.length; i++) {
if (this.files[i].uid === file.uid) {
- crudQiNiu.del([this.files[i].id]).then((res) => {});
+ crudQiNiu.del([this.files[i].id]).then((res) => { });
return true;
}
}
diff --git a/src/views/tool/Instead/components/carts/item.vue b/src/views/tool/Instead/components/carts/item.vue
index 3b76247..48fa00e 100644
--- a/src/views/tool/Instead/components/carts/item.vue
+++ b/src/views/tool/Instead/components/carts/item.vue
@@ -30,10 +30,7 @@
{{ item.name }}
-
+
临时菜
![]()
@@ -62,7 +59,9 @@
备注:{{ item.remark }}
备注:
-
+
+
+
备注:{{ item.remark || "" }}
@@ -75,17 +74,13 @@
X{{ item.number }}
-
-
+
¥{{ to2(allPrice) }}
¥{{ to2(discount_before_price) }}
-
+
+
+ ¥{{ to2(item.limitDiscountPrice) }}
+
+
+ ¥{{ to2(item.salePrice) }}
+
+
+
¥{{ to2(vipAllPrice) }}
-
@@ -349,7 +347,7 @@ onMounted(() => {
flex-direction: column;
gap: 2px;
- > span {
+ >span {
display: block;
width: 18px;
height: 18px;
@@ -367,6 +365,7 @@ onMounted(() => {
.pack {
background: #35ac6a;
+
.number {
background: #f56c6c;
color: #fff;
@@ -379,8 +378,10 @@ onMounted(() => {
border-radius: 50%;
}
}
+
.tui {
position: relative;
+
.number {
background: #f56c6c;
color: #fff;
@@ -393,6 +394,7 @@ onMounted(() => {
border-radius: 50%;
}
}
+
.da {
background: #35ac6a;
}
diff --git a/src/views/tool/Instead/components/goods-item.vue b/src/views/tool/Instead/components/goods-item.vue
index 9389802..7821506 100644
--- a/src/views/tool/Instead/components/goods-item.vue
+++ b/src/views/tool/Instead/components/goods-item.vue
@@ -1,58 +1,34 @@
-
+
称重
{{ item.name }}
-
¥{{ item.lowPrice }}
+
+ ¥{{ item.lowPrice }}
+ ¥{{ item.limitDiscountPrice }}
+
+
¥{{ item.lowPrice }}
-
@@ -105,10 +81,12 @@ function isProductAvailable(sellDaysStr, startTimeStr, endTimeStr) {
position: relative;
overflow: hidden;
cursor: pointer;
+
.goods-image {
width: 100%;
height: 100%;
}
+
.info {
position: absolute;
box-sizing: border-box;
@@ -122,6 +100,7 @@ function isProductAvailable(sellDaysStr, startTimeStr, endTimeStr) {
background-color: rgba(46, 46, 46, 0.38);
z-index: 1;
}
+
.status {
position: absolute;
box-sizing: border-box;
@@ -134,9 +113,11 @@ function isProductAvailable(sellDaysStr, startTimeStr, endTimeStr) {
background-color: rgba($color: #000000, $alpha: 0.5);
}
}
+
:deep(.svg-icon) {
margin-right: 0;
}
+
.weight {
height: 15px;
background: linear-gradient(124deg, rgb(115, 201, 105) 6%, rgb(39, 146, 27) 93%);
@@ -147,4 +128,10 @@ function isProductAvailable(sellDaysStr, startTimeStr, endTimeStr) {
padding: 0px 2px;
margin-right: 2px;
}
+
+.o_price {
+ font-size: 10px;
+ text-decoration: line-through;
+ opacity: .8;
+}
\ No newline at end of file
diff --git a/src/views/tool/Instead/components/order.vue b/src/views/tool/Instead/components/order.vue
index e46bcb2..9a3a858 100644
--- a/src/views/tool/Instead/components/order.vue
+++ b/src/views/tool/Instead/components/order.vue
@@ -42,22 +42,11 @@
部分抵扣
-->
-
+
-
+
*
{{ pointsRes.unusableReason }}
@@ -70,7 +59,9 @@
团购代金券
@@ -78,7 +69,9 @@
优惠券
@@ -121,16 +114,13 @@
选择支付方式
-
- {{ item.payName }}
-
+
+
+ {{ item.payName }}
+
+
立即支付
@@ -206,26 +196,17 @@
-
+
-
+
-
+
+
\ No newline at end of file
diff --git a/src/views/tool/table/index.vue b/src/views/tool/table/index.vue
index 32a15e3..9fbe447 100644
--- a/src/views/tool/table/index.vue
+++ b/src/views/tool/table/index.vue
@@ -2,12 +2,7 @@
-
+
@@ -31,6 +26,7 @@
添加区域
添加台桌
+
清台设置
下载桌台码
@@ -41,12 +37,9 @@
@@ -54,14 +47,9 @@
-
+
@@ -80,10 +68,7 @@
编辑
-
+
绑定桌码
@@ -102,20 +87,14 @@
item.bookingInfo.bookingPerson
}}「{{ item.bookingInfo.gender == 1 ? "先生" : "女士" }}」
-
-

+ ">
+

{{ item.bookingInfo.bookingTime.substring(11, 19) }}
@@ -128,71 +107,47 @@
-
+
¥{{ item.totalAmount || 0 }}「{{ item.productNum }}件」
-
+
取消预约
-
-
+
+
到店
-
-
+
+
点餐
-
+
-
+
加菜
-
+
结账
@@ -200,13 +155,10 @@
已关台
-
+
清理中
@@ -216,26 +168,17 @@
-
+
-

+
{{ item.useNum || 0 }}/{{ item.maxCapacity }}
-

+
{{ formatTime(item.durationTime) }}
@@ -256,6 +199,8 @@
+
+
@@ -270,6 +215,9 @@ import addEara from "./components/addEara.vue";
import addTable from "./components/addTable.vue";
import bindCode from "./components/bind-table-code.vue";
import downloadTableCode from "./components/downloadTableCode.vue";
+import clearTabDialog from "./components/clearTabDialog.vue";
+
+const clearTabDialogRef = ref(null)
const envName = import.meta.env.VITE_APP_NAME;
@@ -298,7 +246,7 @@ function formatTime(milliseconds) {
return `${days ? days + "天" : ""} ${hours ? hours + "时" : ""} ${minutes + "分"}`;
}
-function downloadTableCpde() {}
+function downloadTableCpde() { }
function downloadShopCpde() {
try {
const link = document.createElement("a");
@@ -341,7 +289,7 @@ function tableComman(command, item) {
ElMessage.success("删除成功");
tableInit();
})
- .catch(() => {});
+ .catch(() => { });
return;
}
}
@@ -417,7 +365,7 @@ function init() {
areainit();
tableInit();
}
-onMounted(() => {});
+onMounted(() => { });