see999 3 vuotta sitten
vanhempi
commit
0ee977889f

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue Näytä tiedosto

139
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
139
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
140
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
140
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
141
           &nbsp;
141
           &nbsp;
142
-          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股') > -1 ? true : false" showValue="中心静脉置管"></label-box>
142
+          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左') > -1 ? true : false" showValue="中心静脉置管"></label-box>
143
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股') > -1 ? true : false" showValue="左"></label-box>
143
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股') > -1 ? true : false" showValue="左"></label-box>
144
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股') > -1 ? true : false" showValue="右"></label-box>)部位
144
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股') > -1 ? true : false" showValue="右"></label-box>)部位
145
           &nbsp;
145
           &nbsp;

+ 12 - 31
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Näytä tiedosto

540
           {value: 18, label: "预防接种"},
540
           {value: 18, label: "预防接种"},
541
           {value: 19, label: "门诊输血"},
541
           {value: 19, label: "门诊输血"},
542
           {value: 91, label: "新冠肺炎门诊"},
542
           {value: 91, label: "新冠肺炎门诊"},
543
+          {value: 1111, label: "精一"},
544
+          {value: 1112, label: "精二"},
545
+
543
         ],
546
         ],
544
 
547
 
545
         isLastOrNextVisible: false,
548
         isLastOrNextVisible: false,
1951
               this.doctorValue = info.doctor_id
1954
               this.doctorValue = info.doctor_id
1952
               this.departmentValue = info.departments
1955
               this.departmentValue = info.departments
1953
             } else {
1956
             } else {
1954
-              if (hisPatientInfo.doctor != 0 && hisPatientInfo.department != 0) {
1955
-                this.doctorValue = hisPatientInfo.doctor
1956
-                this.departmentValue = hisPatientInfo.department
1957
-              } else {
1958
-                if (admin_info.user_type == 2) {
1959
-                  this.doctorValue = admin_info.admin_user_id
1960
-                  if (admin_info.department_id == 0) {
1961
-                    if (this.department.length > 0) {
1962
-                      if (department && department.length > 0) {
1963
-                        this.departmentValue = department[0].id
1964
-
1965
-                      } else {
1966
-
1967
-                        this.departmentValue = ''
1957
+              this.doctorValue = this.doctors[0].id
1958
+              this.departmentValue = this.department[0].id
1968
 
1959
 
1969
-                      }
1970
-                    } else {
1971
-                      this.departmentValue = ''
1972
-                    }
1973
-                  } else {
1974
-                    this.departmentValue = admin_info.department_id
1975
-                  }
1976
-                } else {
1977
-                  this.doctorValue = doctors[0].admin_user_id
1978
-                }
1979
-                if (this.doctorValue == 0) {
1980
-                  this.doctorValue = ''
1981
-                }
1982
-              }
1983
             }
1960
             }
1961
+
1984
             if (info.register_type == 0) {
1962
             if (info.register_type == 0) {
1985
               for (let i = 0; i < this.register.length; i++) {
1963
               for (let i = 0; i < this.register.length; i++) {
1986
                 this.register_type = this.register[0].value
1964
                 this.register_type = this.register[0].value
1990
             }
1968
             }
1991
             this.diagnose = []
1969
             this.diagnose = []
1992
 
1970
 
1993
-
1994
             if(info.id == 0){
1971
             if(info.id == 0){
1995
               if(last_info.diagnosis.length == 0){
1972
               if(last_info.diagnosis.length == 0){
1996
                 this.diagnose = []
1973
                 this.diagnose = []
2008
                   this.diagnose.push(parseInt(info.diagnosis.split(",")[i]))
1985
                   this.diagnose.push(parseInt(info.diagnosis.split(",")[i]))
2009
 
1986
 
2010
                 }
1987
                 }
2011
-                // this.diagnose = info.diagnosis.split(",")
2012
 
1988
 
2013
               }
1989
               }
2014
 
1990
 
2827
         })
2803
         })
2828
       },
2804
       },
2829
       selectTeam(row) {
2805
       selectTeam(row) {
2806
+        console.log(row)
2830
         var arr = []
2807
         var arr = []
2831
         for (let i = 0; i < row.length; i++) {
2808
         for (let i = 0; i < row.length; i++) {
2832
           arr.push(row[i].item_id)
2809
           arr.push(row[i].item_id)
2833
         }
2810
         }
2811
+        console.log(arr)
2834
         var ids = arr.join(',')
2812
         var ids = arr.join(',')
2813
+        console.log(ids)
2835
         var strArr = ids.split(',')
2814
         var strArr = ids.split(',')
2815
+        console.log(strArr)
2836
         var res = []//接收不重复的数据
2816
         var res = []//接收不重复的数据
2837
 
2817
 
2838
         for (var i = 0; i < strArr.length; i++) {
2818
         for (var i = 0; i < strArr.length; i++) {
2848
             res.push(strArr[i])
2828
             res.push(strArr[i])
2849
           }
2829
           }
2850
         }
2830
         }
2831
+        console.log(res)
2851
         var idstr = res.join(',')
2832
         var idstr = res.join(',')
2852
         const params = {
2833
         const params = {
2853
           project_id: idstr
2834
           project_id: idstr
3266
         height: 15px;
3247
         height: 15px;
3267
     }
3248
     }
3268
 
3249
 
3269
-</style>
3250
+</style>

+ 7 - 7
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Näytä tiedosto

117
       </el-table-column>
117
       </el-table-column>
118
       <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
118
       <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
119
         <template slot-scope="scope">
119
         <template slot-scope="scope">
120
-          <el-input v-model="scope.row.execution_frequency" placeholder=""></el-input>
120
+          <el-input v-model="scope.row.execution_frequency" @input="getProjectSingleDose(scope)" placeholder=""></el-input>
121
         </template>
121
         </template>
122
       </el-table-column>
122
       </el-table-column>
123
       <el-table-column align="center" prop="number_days" width="70" label="天数">
123
       <el-table-column align="center" prop="number_days" width="70" label="天数">
124
         <template slot-scope="scope">
124
         <template slot-scope="scope">
125
           <div style="display:flex;align-items:center;">
125
           <div style="display:flex;align-items:center;">
126
-            <el-input v-model="scope.row.number_days" @input="getProjectDay(scope)" placeholder=""></el-input>
126
+            <el-input v-model="scope.row.number_days" @input="getProjectSingleDose(scope)" placeholder=""></el-input>
127
             <div>{{'天'}}</div>
127
             <div>{{'天'}}</div>
128
           </div>
128
           </div>
129
         </template>
129
         </template>
399
         if(scope.row.drug.min_unit == scope.row.single_dose_unit){
399
         if(scope.row.drug.min_unit == scope.row.single_dose_unit){
400
           if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
400
           if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
401
             console.log(1)
401
             console.log(1)
402
-            scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
402
+            scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
403
           }else{
403
           }else{
404
             console.log(12)
404
             console.log(12)
405
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency)) * scope.row.day / scope.row.drug.min_number) 
405
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number) 
406
           }
406
           }
407
         }else{
407
         }else{
408
           if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
408
           if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
409
             console.log(123)
409
             console.log(123)
410
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose) 
410
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose) 
411
           }else{
411
           }else{
412
             console.log(1234)
412
             console.log(1234)
413
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose / scope.row.drug.min_number)
413
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
414
           }
414
           }
415
         }
415
         }
416
         if(scope.row.prescribing_number == 0){
416
         if(scope.row.prescribing_number == 0){
472
         }
472
         }
473
       },
473
       },
474
       getProjectSingleDose(scope){
474
       getProjectSingleDose(scope){
475
-        this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
475
+        this.prescription.project[scope.$index].total = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.number_days ? scope.row.number_days : 1)
476
         if(this.prescription.project[scope.$index].total == 0){
476
         if(this.prescription.project[scope.$index].total == 0){
477
           this.prescription.project[scope.$index].total = 1
477
           this.prescription.project[scope.$index].total = 1
478
         }
478
         }

+ 6 - 1
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue Näytä tiedosto

78
         </div>
78
         </div>
79
         <div class="otherInfo">
79
         <div class="otherInfo">
80
             <div class="otherName">体格检查:</div>
80
             <div class="otherName">体格检查:</div>
81
-            <div style="flex:1;">无</div>
81
+            <div style="flex:1;">
82
+                <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
83
+                <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
84
+                <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
85
+                <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
86
+            </div>
82
         </div>
87
         </div>
83
         <div class="otherInfo">
88
         <div class="otherInfo">
84
             <div class="otherName">门诊诊断:</div>
89
             <div class="otherName">门诊诊断:</div>