浏览代码

益寿缘医生端-完善医生开方时的必填校验

cgp 2 月之前
父节点
当前提交
adc8a5ddbe
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/views/his/prescribe/index.vue

+ 7 - 1
src/views/his/prescribe/index.vue

@@ -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("确认成功!");