diff --git a/src/api/Instead.js b/src/api/Instead.js
new file mode 100644
index 0000000..5a8081b
--- /dev/null
+++ b/src/api/Instead.js
@@ -0,0 +1,21 @@
+// 代客下单
+import request from "@/utils/request";
+//就餐形式,默认堂食后付费
+const useType='dine-in-after'
+function getUseType(){
+ const type=localStorage.getItem("useType")
+ return type?type:useType
+}
+
+// 购物车-临时菜添加
+export function $temporaryDishes(data) {
+ return request({
+ url: '/api/place/temporaryDishes',
+ method: "post",
+ data:{
+ shopId: localStorage.getItem("shopId"),
+ useType:getUseType(),
+ ...data
+ }
+ });
+}
\ No newline at end of file
diff --git a/src/views/tool/Instead/components/popup-linshiCai.vue b/src/views/tool/Instead/components/popup-linshiCai.vue
index 03879fb..7a692cd 100644
--- a/src/views/tool/Instead/components/popup-linshiCai.vue
+++ b/src/views/tool/Instead/components/popup-linshiCai.vue
@@ -8,12 +8,20 @@
将临时菜添加至购物车,不会影响总商品库
-
-
-
+
+
+
-
-
+
+
-
-
- 元
+
+
+ 元
-
-
+
+
-
-
+
+
-
-
+
@@ -57,22 +77,32 @@
@@ -131,7 +189,7 @@ input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
-::v-deep .el-input__inner::-webkit-inner-spin-button {
+::v-deep .el-input__inner::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
diff --git a/src/views/tool/Instead/index.vue b/src/views/tool/Instead/index.vue
index eae9e76..d1294e7 100644
--- a/src/views/tool/Instead/index.vue
+++ b/src/views/tool/Instead/index.vue
@@ -713,7 +713,7 @@
-
+
+
@@ -1468,6 +1468,7 @@ import {
$calcUsablePoints,
$calcDeDuctionPoints,
} from "@/api/table";
+
import { tbShopCategoryGet } from "@/api/shop";
import {
isCanBuy,
@@ -2172,7 +2173,11 @@ export default {
},
methods: {
lingshicaiShow() {
- this.$refs.refPopAddCai.open();
+ this.$refs.refPopAddCai.open({
+ masterId:this.masterId,
+ tableId:this.table.tableId,
+ vipUserId:this.vipUser.id,
+ });
},
delQuan(row) {
const index = this.quansSelArr.findIndex((v) => v.id == row.id);