|
|
@@ -956,8 +956,14 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
confirmPrescribe() {
|
|
|
+ // 检查必填字段
|
|
|
+ const missingField = this.getFirstMissingField();
|
|
|
+ if (missingField) {
|
|
|
+ this.$message.error(`请填写${missingField}`);
|
|
|
+ return;
|
|
|
+ }
|
|
|
//确认处方的同时保存处方
|
|
|
- this.submitForm();
|
|
|
+ this.savePrescribe();
|
|
|
confirmPrescribe(this.form).then(response => {
|
|
|
if (response.code === 200) {
|
|
|
this.$message.success("确认成功!");
|