HuRongxin пре 1 месец
родитељ
комит
f7e2c38349
2 измењених фајлова са 9 додато и 1 уклоњено
  1. 6 0
      src/api/patients/diagnosis/types.ts
  2. 3 1
      src/views/patients/nutriDiagnosis/index.vue

+ 6 - 0
src/api/patients/diagnosis/types.ts

@@ -14,6 +14,8 @@ export interface DiagnosisVO {
  */
     type: string;
 
+    deptId: string | number;
+
     /**
      * 门诊号
      */
@@ -62,6 +64,8 @@ export interface DiagnosisForm extends BaseEntity {
  */
     type?: string;
 
+    deptId?: string | number;
+
     /**
      * 门诊号
      */
@@ -116,6 +120,8 @@ export interface DiagnosisQuery extends PageQuery {
   */
     type?: string;
 
+    deptId?: string | number;
+
     /**
      * 门诊号
      */

+ 3 - 1
src/views/patients/nutriDiagnosis/index.vue

@@ -220,8 +220,10 @@
     });
 
     const initFormData: DiagnosisForm = {
-        id: undefined,
+        id: undefined,        
         labelList: [],
+        type: props.patientInfo ?.type,
+        deptId: props.patientInfo ?.deptId,
         treatmentUserId: props.patientInfo ?.id,
         consultantTemplateId: undefined,
         diagnosisLableId: undefined,