对采样列表、制作类别菜品重量进行格式化保留3位小数,采样添加食材增加非零判断
This commit is contained in:
@@ -196,8 +196,9 @@ class DishSamplingActivity : BaseActivity() {
|
||||
toast("请选择主辅材类型")
|
||||
return@setOnClickListener
|
||||
}
|
||||
if (tempDishEntity!!.useWeight == null) {
|
||||
toast("请将食材放在称上称重")
|
||||
val realWeight = tempDishEntity!!.useWeight ?: 0.0
|
||||
if (realWeight < 0.toDouble()) {
|
||||
toast("食材用量需要大于0")
|
||||
return@setOnClickListener
|
||||
}
|
||||
tempDishEntity!!.apply {
|
||||
|
||||
@@ -74,9 +74,9 @@ class HomeActivity : BaseActivity() {
|
||||
// appViewModel.clearAllSeasoning(){}
|
||||
|
||||
|
||||
binding.btnDeviceConfig.setOnClickListener {
|
||||
startActivity<SubmitFoodActivity>{}
|
||||
}
|
||||
// binding.btnDeviceConfig.setOnClickListener {
|
||||
// startActivity<SubmitFoodActivity>{}
|
||||
// }
|
||||
}
|
||||
|
||||
private fun initRecyclerView() {
|
||||
|
||||
Reference in New Issue
Block a user