修复分量估算错误

This commit is contained in:
huangdeliang 2021-03-05 18:57:58 +08:00
parent e81cb62e51
commit e08a5e24c6
2 changed files with 9 additions and 0 deletions

View File

@ -115,6 +115,7 @@ export default {
this.active = 1;
this.dishesTypeOptions = (this.type || data.type)
.split(",")
.sort((a, b) => a - b)
.reduce((arr, cur, idx) => {
if (idx === 0) {
this.selDishes.type = cur;

View File

@ -95,6 +95,14 @@ export default {
this.mUnit = value;
},
},
watch: {
weight(val) {
this.mWeight = val;
},
unit(val) {
this.mUnit = val;
},
},
computed: {
unitWeight() {
return (