ソースを参照

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

csx 5 年 前
コミット
5f3c3e516f

+ 7 - 5
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue ファイルの表示

@@ -997,14 +997,15 @@
997 997
             ParamsQuery['patient'] = this.patient.id
998 998
             ParamsQuery['record_date'] = this.record_date
999 999
 
1000
-            console.log(this.prescription)
1001 1000
 
1002 1001
             if (this.prescription.creater <= 0) {
1003
-              mode = 1
1002
+              ParamsQuery['mode'] = "1"
1004 1003
             } else {
1005
-              mode = 2
1004
+              ParamsQuery['mode'] = "2"
1005
+              if (this.$store.getters.xt_user.user.id  != this.dialysisPrescription.creater){
1006
+                ParamsQuery['mode'] = "3"
1007
+              }
1006 1008
             }
1007
-
1008 1009
             postPrescription(ParamsQuery).then(response => {
1009 1010
               if (response.data.state == 0) {
1010 1011
                 this.$message.error(response.data.msg)
@@ -1124,12 +1125,13 @@
1124 1125
             ParamsQuery['patient'] = this.patient.id
1125 1126
             ParamsQuery['record_date'] = this.record_date
1126 1127
             console.log(this.prescription)
1127
-
1128
+            let mode = ""
1128 1129
             if (this.prescription.creater <= 0) {
1129 1130
               mode = 1
1130 1131
             } else {
1131 1132
               mode = 2
1132 1133
             }
1134
+            ParamsQuery['mode'] = mode
1133 1135
 
1134 1136
             postPrescription(ParamsQuery).then(response => {
1135 1137
               if (response.data.state == 0) {

+ 2 - 1
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue ファイルの表示

@@ -1058,6 +1058,7 @@ export default {
1058 1058
             parseFloat(this.form.displacement_flow_quantity) == NaN
1059 1059
               ? 0
1060 1060
               : parseFloat(this.form.displacement_flow_quantity);
1061
+
1061 1062
           this.form.ktv =
1062 1063
             parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
1063 1064
 
@@ -1131,7 +1132,7 @@ export default {
1131 1132
 
1132 1133
           const params = {
1133 1134
             patient_id: this.patient_id,
1134
-            record_id: this.table_current_row.id
1135
+            record_id: this.table_current_row.id,
1135 1136
             mode: mode
1136 1137
 
1137 1138
           };

+ 64 - 30
src/xt_pages/user/components/EditGroupAdvice.vue ファイルの表示

@@ -821,33 +821,65 @@
821 821
         this.$refs[formName].validate(valid => {
822 822
           if (valid) {
823 823
             if (_this.nameForm.isEdit) {
824
-              var submitForm = {
825
-                advice_type: _this.groupForm.advice_type,
826
-                advice_date: _this.groupForm.advice_date,
827
-                start_time: _this.groupForm.start_time,
828
-                advice_name: _this.nameForm.advice_name,
829
-                advice_desc: _this.nameForm.advice_desc,
830
-                single_dose: '' + _this.nameForm.single_dose,
831
-                single_dose_unit: _this.nameForm.single_dose_unit,
832
-                drug_spec: '' + _this.nameForm.drug_spec,
833
-                drug_spec_unit: _this.nameForm.drug_spec_unit,
834
-                prescribing_number: '' + _this.nameForm.prescribing_number,
835
-                prescribing_number_unit: _this.nameForm.prescribing_number_unit,
836
-                delivery_way: _this.nameForm.delivery_way,
837
-                execution_frequency: _this.nameForm.execution_frequency,
838
-                isEdit: 0,
839
-                id: 0,
840
-                advice_doctor: '',
841
-                remark: _this.groupForm.remark,
842
-                parent_id: _this.groupSelectRow.parent_id,
843
-                groupno: _this.groupForm.groupno,
844
-                frequency_type: _this.nameForm.frequency_type,
845
-                day_count: _this.nameForm.day_count.toString(),
846
-                week_days: this.weeks
847
-                  .filter(function(s) {
848
-                    return s && s.trim()
849
-                  })
850
-                  .join(',')
824
+              var submitForm = null
825
+              if(!this.isChild){
826
+
827
+                 submitForm = {
828
+                  advice_type: _this.groupForm.advice_type,
829
+                  advice_date: _this.groupForm.advice_date,
830
+                  start_time: _this.groupForm.start_time,
831
+                  advice_name: _this.nameForm.advice_name,
832
+                  advice_desc: _this.nameForm.advice_desc,
833
+                  single_dose: '' + _this.nameForm.single_dose,
834
+                  single_dose_unit: _this.nameForm.single_dose_unit,
835
+                  drug_spec: '' + _this.nameForm.drug_spec,
836
+                  drug_spec_unit: _this.nameForm.drug_spec_unit,
837
+                  prescribing_number: '' + _this.nameForm.prescribing_number,
838
+                  prescribing_number_unit: _this.nameForm.prescribing_number_unit,
839
+                  delivery_way: _this.nameForm.delivery_way,
840
+                  execution_frequency: _this.nameForm.execution_frequency,
841
+                  isEdit: 0,
842
+                  id: 0,
843
+                  advice_doctor: '',
844
+                  remark: _this.groupForm.remark,
845
+                  parent_id: _this.groupSelectRow.parent_id,
846
+                  groupno: _this.groupForm.groupno,
847
+                  frequency_type: _this.nameForm.frequency_type,
848
+                  day_count: _this.nameForm.day_count.toString(),
849
+                  week_days: this.weeks
850
+                    .filter(function(s) {
851
+                      return s && s.trim()
852
+                    })
853
+                    .join(',')
854
+                }
855
+
856
+              }else{
857
+                 submitForm = {
858
+                  advice_type: _this.groupForm.advice_type,
859
+                  advice_date: _this.groupForm.advice_date,
860
+                  start_time: _this.groupForm.start_time,
861
+                  advice_name: _this.nameForm.advice_name,
862
+                  advice_desc: _this.nameForm.advice_desc,
863
+                  single_dose: '' + _this.nameForm.single_dose,
864
+                  single_dose_unit: _this.nameForm.single_dose_unit,
865
+                  drug_spec: '' + _this.nameForm.drug_spec,
866
+                  drug_spec_unit: _this.nameForm.drug_spec_unit,
867
+                  prescribing_number: '' + _this.nameForm.prescribing_number,
868
+                  prescribing_number_unit: _this.nameForm.prescribing_number_unit,
869
+                  delivery_way: _this.nameForm.delivery_way,
870
+                  execution_frequency: _this.nameForm.execution_frequency,
871
+                  isEdit: 0,
872
+                  id: 0,
873
+                  advice_doctor: '',
874
+                  remark: _this.groupForm.remark,
875
+                  parent_id: _this.groupSelectRow.parent_id,
876
+                  groupno: _this.groupForm.groupno,
877
+                  frequency_type: 0,
878
+                  day_count: "0",
879
+                  week_days: "",
880
+                }
881
+
882
+
851 883
               }
852 884
               let mode = ''
853 885
 
@@ -1402,11 +1434,13 @@
1402 1434
             week_days: this.groupSelectRow.week_day,
1403 1435
             frequency_type: this.groupSelectRow.frequency_type
1404 1436
           }
1405
-          // console.log(this.nameForm.week_days)
1406
-          if(this.isChild = true){
1407
-          }else{
1437
+
1438
+          if(!this.isChild){
1408 1439
             this.weeks = this.groupSelectRow.week_day.split(',')
1440
+
1409 1441
           }
1442
+
1443
+
1410 1444
           this.nameFormTitle = '修改医嘱内容'
1411 1445
         } else {
1412 1446
           this.nameForm = {