Commit e44e0db7 by lujunyi

麻黄素药品判断

parent 07a77554
......@@ -43,7 +43,8 @@ public function form()
$this->number('doses_limit', '中药剂量限制')->required()->default(($data['doses_limit'] ?? 1))->min(1)->max(100)->help('剂量可选择最大值100');
// $this->switch('prescription_auto', '医师自动开方')->default(($data['prescription_auto'] ?? 0));
$this->text('limit_keywords', '限制关键词')->default($data['limit_keywords'] ?? '')->required()->help('多个关键词请用英文逗号分隔');
$this->text('limit_keywords', '麻黄素类药品限制关键词')->default($data['limit_keywords'] ?? '')->required()->help('多个关键词请用英文逗号分隔');
$this->number('ephedrine_limit_buy_7', '麻黄素类药品7日内限购(全局)')->required()->default(($data['ephedrine_limit_buy_7'] ?? 1))->min(1)->max(10)->help('最多可设置10');
$this->disableResetButton();
}
......
......@@ -154,7 +154,7 @@ public function drugLimit(Request $request)
}
}
}
$canBuyMahuangCount = 4 - $buyed_mahuang_counts; // 麻黄素药品剩余可购买数量,最多可以购买4个
$canBuyMahuangCount = $site_config['ephedrine_limit_buy_7'] - $buyed_mahuang_counts; // 麻黄素药品剩余可购买数量
// 处理麻黄素药品数据
$mahuangsu_buy_num = 0; // 本次购买麻黄素药品数量
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment