动态获取单价
This commit is contained in:
parent
a941fb178d
commit
a11b7f565f
|
|
@ -633,8 +633,8 @@ export default {
|
|||
return
|
||||
}
|
||||
this.formOptions.data.soil_quality_material_id = data.id;
|
||||
this.formOptions.data.buy_unit_price = data.price;
|
||||
this.formOptions.data.unit_price = data.price;
|
||||
// this.formOptions.data.buy_unit_price = data.price;
|
||||
// this.formOptions.data.unit_price = data.price;
|
||||
this.handleSoilName();
|
||||
}
|
||||
}
|
||||
|
|
@ -769,8 +769,7 @@ export default {
|
|||
return
|
||||
}
|
||||
this.formOptions.data.train_number[this.nowIndex].soil_quality_material_id = data.id;
|
||||
this.formOptions.data.train_number[this.nowIndex].buy_unit_price = data.price;
|
||||
this.formOptions.data.train_number[this.nowIndex].unit_price = data.price;
|
||||
|
||||
this.handleSoilName1();
|
||||
}
|
||||
}
|
||||
|
|
@ -1067,6 +1066,7 @@ export default {
|
|||
useBigInt: true,
|
||||
}).then((res) => {
|
||||
this.formOptions.data.soil_name_1 = res.data.soil_quality_material.name
|
||||
this.formOptions.data.unit_price = res.data.soil_quality_material.price;
|
||||
})
|
||||
}
|
||||
if(this.formOptions.data.supplier_name&&this.formOptions.data.soil_quality_material_id){
|
||||
|
|
@ -1079,7 +1079,8 @@ export default {
|
|||
data: postdata,
|
||||
useBigInt: true,
|
||||
}).then((res) => {
|
||||
this.formOptions.data.soil_name_2 = res.data.soil_quality_material.name
|
||||
this.formOptions.data.soil_name_2 = res.data.soil_quality_material.name;
|
||||
this.formOptions.data.buy_unit_price = res.data.soil_quality_material.price;
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
@ -1094,7 +1095,8 @@ export default {
|
|||
data: postdata,
|
||||
useBigInt: true,
|
||||
}).then((res) => {
|
||||
this.formOptions.data.train_number[this.nowIndex].soil_name_1 = res.data.soil_quality_material.name
|
||||
this.formOptions.data.train_number[this.nowIndex].soil_name_1 = res.data.soil_quality_material.name;
|
||||
this.formOptions.data.train_number[this.nowIndex].unit_price = res.data.soil_quality_material.price;
|
||||
})
|
||||
}
|
||||
if(this.formOptions.data.train_number[this.nowIndex].supplier_name&&this.formOptions.data.train_number[this.nowIndex].soil_quality_material_id){
|
||||
|
|
@ -1107,7 +1109,8 @@ export default {
|
|||
data: postdata,
|
||||
useBigInt: true,
|
||||
}).then((res) => {
|
||||
this.formOptions.data.train_number[this.nowIndex].soil_name_2 = res.data.soil_quality_material.name
|
||||
this.formOptions.data.train_number[this.nowIndex].soil_name_2 = res.data.soil_quality_material.name;
|
||||
this.formOptions.data.train_number[this.nowIndex].buy_unit_price = res.data.soil_quality_material.price;
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue