浏览代码

hah阿凡达

28169 4 个月前
父节点
当前提交
0b2b0a140c

+ 7 - 4
src/xt_pages/data/druguseTemplate.vue 查看文件

2863
                 obj.delivery_way = medicalList[i].delivery_way
2863
                 obj.delivery_way = medicalList[i].delivery_way
2864
                 obj.execution_frequency = medicalList[i].execution_frequency
2864
                 obj.execution_frequency = medicalList[i].execution_frequency
2865
                 obj.single_dose = medicalList[i].single_dose
2865
                 obj.single_dose = medicalList[i].single_dose
2866
+                obj.single_dose_unit  = medicalList[i].dose_unit
2866
                 obj.prescribing_number = medicalList[i].prescribing_number
2867
                 obj.prescribing_number = medicalList[i].prescribing_number
2867
                 obj.type_id = medicalList[i].id
2868
                 obj.type_id = medicalList[i].id
2868
                 obj.type = 2
2869
                 obj.type = 2
2900
                 obj.delivery_way = base_drug_list[i].delivery_way
2901
                 obj.delivery_way = base_drug_list[i].delivery_way
2901
                 obj.execution_frequency = base_drug_list[i].execution_frequency
2902
                 obj.execution_frequency = base_drug_list[i].execution_frequency
2902
                 obj.single_dose = base_drug_list[i].single_dose
2903
                 obj.single_dose = base_drug_list[i].single_dose
2904
+                obj.single_dose_unit = base_drug_list[i].dose_unit
2903
                 obj.prescribing_number = base_drug_list[i].prescribing_number
2905
                 obj.prescribing_number = base_drug_list[i].prescribing_number
2904
                 obj.type_id = base_drug_list[i].id
2906
                 obj.type_id = base_drug_list[i].id
2905
                 obj.type = 1
2907
                 obj.type = 1
2917
     changeDrugName(name){
2919
     changeDrugName(name){
2918
        this.current_drug_name = name
2920
        this.current_drug_name = name
2919
        this.templateForm.advice_desc = ''
2921
        this.templateForm.advice_desc = ''
2922
+       console.log("all_drug=============",this.all_drug)
2920
       this.drugSpec = []
2923
       this.drugSpec = []
2921
       for (let i = 0; i < this.all_drug.length; i++) {
2924
       for (let i = 0; i < this.all_drug.length; i++) {
2922
         if (this.all_drug[i].drug_name == name) {
2925
         if (this.all_drug[i].drug_name == name) {
3031
        return a.sort - b.sort
3034
        return a.sort - b.sort
3032
      },
3035
      },
3033
      hangleSelectChange(val){
3036
      hangleSelectChange(val){
3034
-        console.log("==val==",val)
3037
+      console.log("==val==",val)
3035
        var tmp = val.drug_specs[0]
3038
        var tmp = val.drug_specs[0]
3036
        console.log("tmp",tmp)
3039
        console.log("tmp",tmp)
3037
        this.templateForm.advice_desc=this.drugSpec[0].drug_spec
3040
        this.templateForm.advice_desc=this.drugSpec[0].drug_spec
3038
-       this.templateForm.drug_spec_unit=this.drugSpec[0].min_unit
3041
+       this.templateForm.drug_spec_unit= this.drugSpec[0].min_unit
3039
        this.templateForm.prescribing_number=this.drugSpec[0].prescribing_number
3042
        this.templateForm.prescribing_number=this.drugSpec[0].prescribing_number
3040
        this.templateForm.prescribing_number_unit=this.drugSpec[0].prescribing_number_unit
3043
        this.templateForm.prescribing_number_unit=this.drugSpec[0].prescribing_number_unit
3041
-       this.templateForm.single_dose=this.drugSpec[0].single_dose
3042
-       this.templateForm.single_dose_unit=this.drugSpec[0].min_unit
3044
+       this.templateForm.single_dose= this.drugSpec[0].single_dose
3045
+       this.templateForm.single_dose_unit= val.single_dose_unit
3043
        this.templateForm.delivery_way=this.drugSpec[0].delivery_way
3046
        this.templateForm.delivery_way=this.drugSpec[0].delivery_way
3044
        this.templateForm.execution_frequency=this.drugSpec[0].execution_frequency
3047
        this.templateForm.execution_frequency=this.drugSpec[0].execution_frequency
3045
        this.templateForm.advice_desc=tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格
3048
        this.templateForm.advice_desc=tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格

+ 24 - 2
src/xt_pages/dialysis/PatientBox.vue 查看文件

161
         </p>
161
         </p>
162
 
162
 
163
 
163
 
164
-        <p v-if="$store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340">
164
+        <p v-if="$store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340 && $store.getters.xt_user.org.id!=0&& $store.getters.xt_user.org.id!=10742">
165
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
165
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
166
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
166
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
167
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
167
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
168
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
168
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
169
         </p>
169
         </p>
170
+
171
+        <p v-if="$store.getters.xt_user.org.id ==0 ||  $store.getters.xt_user.org.id ==10742">
172
+          透析器/灌流器/滤过器:
173
+        
174
+          <span v-if="schedule.prescription != null">
175
+            <span v-if="schedule.prescription.id > 0">
176
+              {{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}
177
+            </span>
178
+            <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
179
+            <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
180
+          </span>
181
+
182
+          <span v-if="schedule.prescription== null && schedule.dialysis_solution!=null">
183
+             <span v-if="schedule.dialysis_solution.id>0">
184
+                {{ schedule.dialysis_solution.dialysis_dialyszers }} 
185
+               <span v-if="schedule.dialysis_solution.dialysis_dialyszers!=''"> {{ schedule.dialysis_solution.dialysis_irrigation }}</span>
186
+               <span v-if="schedule.dialysis_solution.dialysis_strainer!=''"> {{ schedule.dialysis_solution.dialysis_strainer }}</span>
187
+             </span>
188
+          </span>
189
+        
190
+        </p>
191
+
170
         <p v-if="$store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
192
         <p v-if="$store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
171
              透析器/灌流器:
193
              透析器/灌流器:
172
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
194
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
173
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
195
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
174
              
196
              
175
         </p>
197
         </p>
176
-        <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==10445">
198
+        <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==10445 ||  $store.getters.xt_user.org.id==10579 ">
177
            滤过器:
199
            滤过器:
178
            <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_strainer: ""}}</span>
200
            <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_strainer: ""}}</span>
179
         </p>
201
         </p>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue 查看文件

1749
           }
1749
           }
1750
       }
1750
       }
1751
 
1751
 
1752
-      if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587 || this.$store.getters.xt_user.org.id == 10597 || this.$store.getters.xt_user.org.id == 10551 || this.$store.getters.xt_user.org.id == 10679 || this.$store.getters.xt_user.org.id == 10693 ||  this.$store.getters.xt_user.org.id == 10694 || this.$store.getters.xt_user.org.id == 10702 || this.$store.getters.xt_user.org.id == 10495){
1752
+      if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587 || this.$store.getters.xt_user.org.id == 10597 || this.$store.getters.xt_user.org.id == 10551 || this.$store.getters.xt_user.org.id == 10679 || this.$store.getters.xt_user.org.id == 10693 ||  this.$store.getters.xt_user.org.id == 10694 || this.$store.getters.xt_user.org.id == 10702 || this.$store.getters.xt_user.org.id == 10495 || this.$store.getters.xt_user.org.id == 10742){
1753
         var date = new Date()
1753
         var date = new Date()
1754
           var year = date.getFullYear()
1754
           var year = date.getFullYear()
1755
           var month = date.getMonth() + 1
1755
           var month = date.getMonth() + 1

+ 23 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

3064
               minites = '0' + minites
3064
               minites = '0' + minites
3065
             }
3065
             }
3066
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
3066
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
3067
+           }else if(this.$store.getters.xt_user.org.id == 10742){
3068
+            var date = new Date()
3069
+            var year = date.getFullYear()
3070
+            var month = date.getMonth() + 1
3071
+            var day = date.getDate()
3072
+
3073
+            var hours = date.getHours()
3074
+            var minites = date.getMinutes()
3075
+
3076
+            if (month < 10) {
3077
+              month = '0' + month
3078
+            }
3079
+            if (day < 10) {
3080
+              day = '0' + day
3081
+            }
3082
+            if (hours < 10) {
3083
+              hours = '0' + hours
3084
+            }
3085
+            if (minites < 10) {
3086
+              minites = '0' + minites
3087
+            }
3088
+            this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
3089
+
3067
            }else if(this.$store.getters.xt_user.org.id == 10495){
3090
            }else if(this.$store.getters.xt_user.org.id == 10495){
3068
 
3091
 
3069
             var date = new Date()
3092
             var date = new Date()