|
|
@@ -515,6 +515,11 @@ export default {
|
|
|
this.$message.error(`请填写${missingField}`);
|
|
|
return;
|
|
|
}
|
|
|
+ // 2. 药品数量校验(至少需要一种药品)
|
|
|
+ if (!this.drugList || this.drugList.length === 0) {
|
|
|
+ this.$message.warning('请至少添加一种药品后再确认处方');
|
|
|
+ return;
|
|
|
+ }
|
|
|
try {
|
|
|
const response = await confirmPrescribeAfterPayment(this.form);
|
|
|
if (response.code === 200) {
|