diff --git a/src/views/canteen/dish/menu/detail.vue b/src/views/canteen/dish/menu/detail.vue
index a129f25b..57a71799 100644
--- a/src/views/canteen/dish/menu/detail.vue
+++ b/src/views/canteen/dish/menu/detail.vue
@@ -108,7 +108,7 @@
- 提 交
+ 提 交
返 回
@@ -352,6 +352,7 @@ export default {
dicts: [],
data() {
return {
+ loading:false,
baseInfo: {
recipeName:undefined,
recipeType:undefined,
@@ -982,8 +983,8 @@ export default {
if(subItem.dishesList.length>0){
this.noDishes=false
subItem.dishesList.forEach(dishItem=>{
- dishItem.price = Number(dishItem.price*100)
- dishItem.salePrice = Number(dishItem.salePrice*100)
+ dishItem.price = Number(dishItem.price)
+ dishItem.salePrice = Number(dishItem.salePrice)
})
}
})
@@ -991,9 +992,13 @@ export default {
if(this.noDishes){
this.$modal.msgError("请选中菜品!");
}else{
- addMenuRecipeApi(param).then((response) => {
+ this.loading=true
+ addMenuRecipeApi(param).then((response) => {
+ this.loading=false
this.jumpList()
- });
+ }).catch(() => {
+ this.loading=false
+ });
}
}
});
diff --git a/src/views/canteen/dish/menu/edit.vue b/src/views/canteen/dish/menu/edit.vue
index 2c87ddfb..13b4aee6 100644
--- a/src/views/canteen/dish/menu/edit.vue
+++ b/src/views/canteen/dish/menu/edit.vue
@@ -108,7 +108,7 @@
- 提 交
+ 提 交
返 回
@@ -352,6 +352,7 @@ export default {
dicts: [],
data() {
return {
+ loading:false,
baseInfo: {
recipeName:undefined,
recipeType:undefined,
@@ -1196,8 +1197,8 @@ export default {
if(subItem.dishesList.length>0){
this.noDishes=false
subItem.dishesList.forEach(dishItem=>{
- dishItem.price = Number(dishItem.price*100)
- dishItem.salePrice = Number(dishItem.salePrice*100)
+ dishItem.price = Number(dishItem.price)
+ dishItem.salePrice = Number(dishItem.salePrice)
})
}
})
@@ -1206,9 +1207,14 @@ export default {
if(this.noDishes){
this.$modal.msgError("请选中菜品!");
}else{
+ this.loading=true
editMenuRecipeApi(param).then((response) => {
+ this.loading=false
this.jumpList()
- });
+ }).catch(() => {
+ this.loading=false;
+
+ });
}
}
diff --git a/src/views/kitchen/staffManage/staff/index.vue b/src/views/kitchen/staffManage/staff/index.vue
index 6bd2ea41..a2362e79 100644
--- a/src/views/kitchen/staffManage/staff/index.vue
+++ b/src/views/kitchen/staffManage/staff/index.vue
@@ -125,7 +125,7 @@
-
+
@@ -175,7 +175,7 @@
-
+