修复修改病人配餐错误
This commit is contained in:
parent
2651c88c6b
commit
92e53c810a
@ -199,7 +199,7 @@ export default {
|
|||||||
components: {},
|
components: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
departOptions:[],
|
departOptions: [],
|
||||||
foodList: [],
|
foodList: [],
|
||||||
flagOptions: [{
|
flagOptions: [{
|
||||||
value: 1,
|
value: 1,
|
||||||
@ -398,6 +398,14 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
this.form.foods = this.form.foods.toString();
|
this.form.foods = this.form.foods.toString();
|
||||||
|
if (this.form.type === '早餐')
|
||||||
|
this.form.type = 1;
|
||||||
|
else if (this.form.type === '午餐')
|
||||||
|
this.form.type = 2;
|
||||||
|
else if (this.form.type === '晚餐')
|
||||||
|
this.form.type = 3;
|
||||||
|
else
|
||||||
|
this.form.type = 4;
|
||||||
updateFoodDemand(this.form).then(response => {
|
updateFoodDemand(this.form).then(response => {
|
||||||
this.msgSuccess("修改成功");
|
this.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user