提交测试问题修改
This commit is contained in:
parent
79c559abb3
commit
cc20ccc560
|
|
@ -67,7 +67,7 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="原料单位" prop="unitId">
|
||||
<el-select v-model="form.unitId" filterable placeholder="请选择原料单位" style="width: 100%">
|
||||
<el-select v-model="form.unitId" placeholder="请选择原料单位" style="width: 100%">
|
||||
<el-option v-for="item in this.unitOptions"
|
||||
:key="item.unitId"
|
||||
:label="item.unitName"
|
||||
|
|
@ -242,7 +242,7 @@ export default {
|
|||
materialName: '',//原料名称
|
||||
areaId: null,//所属区域
|
||||
materialTypeId: null,//原料类别
|
||||
salesMode: '2',//计量类型
|
||||
salesMode: '1',//计量类型
|
||||
unitId: '',//原料单位
|
||||
unitPrice: '',//原料进价(元)
|
||||
barCode: '',//条码
|
||||
|
|
@ -417,6 +417,11 @@ export default {
|
|||
//选中营养信息
|
||||
chosenNutrition(){
|
||||
console.log("选中营养信息",this.form.nutritionId)
|
||||
if (!this.form.nutritionId) {
|
||||
// 清空选择时重置为默认值
|
||||
this.resetNutritionTable();
|
||||
return;
|
||||
}
|
||||
getNutritionInfo({nutritionId: this.form.nutritionId}).then((response) => {
|
||||
if(response.data){
|
||||
this.form.menuMaterialNutritionDTO = response.data
|
||||
|
|
@ -560,7 +565,7 @@ export default {
|
|||
materialName: '',//原料名称
|
||||
areaId: null,//所属区域
|
||||
materialTypeId: null,//原料类别
|
||||
salesMode: '2',//计量类型
|
||||
salesMode: '1',//计量类型
|
||||
unitId: '',//原料单位
|
||||
unitPrice: '',//原料进价(元)
|
||||
barCode: '',//条码
|
||||
|
|
|
|||
Loading…
Reference in New Issue