Преглед изворни кода

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

see999 пре 3 година
родитељ
комит
ff41003323

+ 21 - 1
src/xt_pages/dialysis/details/DialysisPrescription.vue Прегледај датотеку

@@ -312,7 +312,16 @@
312 312
           <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour == 0 && this.prescription.anticoagulant_stop_time_min == 0 "></span>
313 313
           <span class="unit"></span>
314 314
         </li>
315
+       
316
+        <li v-if="isShow('病情')">
317
+          <label>病情: </label>
318
+          <span class="content">{{getIllness(this.prescription.illness)}}</span>
319
+        </li>
315 320
 
321
+         <li v-if="isShow('葡萄糖')">
322
+          <label>葡萄糖: </label>
323
+          <span class="content">{{this.prescription.amylaceum}}</span>
324
+        </li>
316 325
 
317 326
       </ul>
318 327
     </div>
@@ -628,7 +637,8 @@ export default {
628 637
     },
629 638
     displace_speed:function(){
630 639
       return this.getValueStr('displace_speed','displace_speed')
631
-    }
640
+    },
641
+   
632 642
   },
633 643
   created() {
634 644
 
@@ -685,6 +695,16 @@ export default {
685 695
         }
686 696
       }
687 697
       return false
698
+    },
699
+     getIllness(id){
700
+       var illnessList = getDataConfig('hemodialysis','illness')
701
+       var name = ""
702
+       for(let i=0;i<illnessList.length;i++){
703
+          if(id == illnessList[i].id){
704
+            name = illnessList[i].name
705
+          }
706
+       }
707
+       return name
688 708
     }
689 709
   }
690 710
 }

+ 23 - 1
src/xt_pages/dialysis/details/assessmentBefore.vue Прегледај датотеку

@@ -335,12 +335,34 @@
335 335
         </li>
336 336
 
337 337
 
338
-         <li v-if="isShow('预增脱水量')">
338
+        <li v-if="isShow('预增脱水量')">
339 339
           <label>预增脱水量(L): </label>
340 340
           <span class="content">{{this.record.dehydration}}</span>
341 341
           <span class="unit"></span>
342 342
         </li>
343 343
 
344
+
345
+         <li v-if="isShow('透析前药物')">
346
+          <label>透析前药物: </label>
347
+          <span class="content">{{this.record.pre_dialysis_drugs}}</span>
348
+          <span class="unit"></span>
349
+        </li>
350
+       
351
+        <li v-if="isShow('围手术期')">
352
+          <label>围手术期: </label>
353
+          <span class="content">
354
+            <span v-if="this.record.period==1">无</span>
355
+            <span v-if="this.record.period==2">有</span>
356
+          </span>
357
+          <span class="unit"></span>
358
+        </li>
359
+
360
+
361
+         <li v-if="isShow('预计进食量')">
362
+          <label>预计进食量: </label>
363
+          <span class="content">{{this.record.estimated_food_intake}}</span>
364
+          <span class="unit"></span>
365
+        </li>
344 366
        
345 367
       </ul>
346 368
     </div>

+ 34 - 9
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Прегледај датотеку

@@ -604,7 +604,6 @@
604 604
         <el-col :span="8" v-if="isShow('透析相关高血压')">
605 605
             <el-form-item label="透析相关高血压:">
606 606
              <el-select v-model="form.hypertenison">
607
-              <el-option :key="0" label="请选择" :value="0"></el-option>
608 607
               <el-option
609 608
                 v-for="item in option"
610 609
                 :label="item.name"
@@ -617,7 +616,6 @@
617 616
          <el-col :span="8" v-if="isShow('透析相关低血压')">
618 617
             <el-form-item label="透析相关低血压">
619 618
              <el-select v-model="form.hypopiesia">
620
-              <el-option :key="0" label="请选择" :value="0"></el-option>
621 619
               <el-option
622 620
                 v-for="item in option"
623 621
                 :label="item.name"
@@ -629,12 +627,26 @@
629 627
         </el-col>
630 628
         <el-col :span="8" v-if="isShow('离科方式')">
631 629
             <el-form-item label="离科方式">
632
-               <el-input v-model="form.leave_office_method"></el-input>
630
+               <el-select v-model="form.leave_office_method">
631
+                <el-option
632
+                  v-for="item in leaveOfficeMethod"
633
+                  :label="item.name"
634
+                  :value="item.id"
635
+                  :key="item.id"
636
+                ></el-option>
637
+             </el-select>
633 638
             </el-form-item>
634 639
         </el-col>
635 640
          <el-col :span="8" v-if="isShow('转归')">
636 641
             <el-form-item label="转归">
637
-               <el-input v-model="form.lapse"></el-input>
642
+             <el-select v-model="form.lapse">
643
+              <el-option
644
+                v-for="item in lapseList"
645
+                :label="item.name"
646
+                :value="item.id"
647
+                :key="item.id"
648
+              ></el-option>
649
+             </el-select>
638 650
             </el-form-item>
639 651
         </el-col>
640 652
         <el-col :span="24" v-if="isShow('KT/V')">
@@ -728,8 +740,8 @@ export default {
728 740
       sealing_fluid_special_name: '',
729 741
       option:[
730 742
         {id:0,name:"请选择"},
731
-        {id:1,name:"有"},
732
-        {id:2,name:"无"},
743
+        {id:"1",name:"有"},
744
+        {id:"2",name:"无"},
733 745
       ],
734 746
       InnerDialogProps: {
735 747
         values: [],
@@ -802,7 +814,9 @@ export default {
802 814
         other_complication:'',
803 815
         ktv:"",
804 816
         urr:"",
805
-      }
817
+      },
818
+      lapseList:[],
819
+      leaveOfficeMethod:[]
806 820
     }
807 821
   },
808 822
   watch: {
@@ -1006,6 +1020,12 @@ export default {
1006 1020
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
1007 1021
       data["other_complication"] = this.form.other_complication
1008 1022
       data["ktv"] = this.form.ktv
1023
+      data["urr"] = this.form.urr
1024
+      data["hypertenison"] = parseInt(this.form.hypertenison)
1025
+      data["hypopiesia"] = parseInt(this.form.hypopiesia)
1026
+      data["leave_office_method"] = this.form.leave_office_method
1027
+      data["lapse"] = this.form.lapse
1028
+      console.log("Paramsquery",data)
1009 1029
       postAssessmentAfterDislysis(ParamsQuery, data)
1010 1030
         .then(response => {
1011 1031
           this.loading = false
@@ -1154,8 +1174,11 @@ export default {
1154 1174
       this.predialysis = predialysis
1155 1175
       this.form.observation_content = predialysis.observation_content
1156 1176
       this.form.inpatient_department = predialysis.inpatient_department
1157
-      this.form.observation_content_other =
1158
-        predialysis.observation_content_other
1177
+      this.form.observation_content_other = predialysis.observation_content_other
1178
+      this.form.hypertenison = predialysis.hypertenison.toString()
1179
+      this.form.hypopiesia = predialysis.hypopiesia.toString()
1180
+      this.form.leave_office_method = predialysis.leave_office_method
1181
+      this.form.lapse = predialysis.lapse
1159 1182
       // console.log("透后", predialysis);
1160 1183
 
1161 1184
       if(predialysis != null && predialysis.id == 0){
@@ -1267,6 +1290,8 @@ export default {
1267 1290
     this.complicationOptions = getDataConfig('hemodialysis', 'complication')
1268 1291
     this.bloodFlowOptions = getDataConfig('hemodialysis', 'blood_flow')
1269 1292
     this.sealingFluidDisposeOptions = getDataConfig('hemodialysis', 'sealing_fluid_dispose')
1293
+    this.lapseList = getDataConfig('hemodialysis', 'lapse')
1294
+    this.leaveOfficeMethod = getDataConfig('hemodialysis','leave_office_method')
1270 1295
     this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
1271 1296
     this.patientGoseOptions = this.$store.getters.patient_gose
1272 1297
     this.observationContentOptions = this.$store.getters.observation_content

+ 2 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Прегледај датотеку

@@ -1255,8 +1255,8 @@ export default {
1255 1255
       this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar)
1256 1256
       this.form.monitor_anticoagulant = parseInt(this.form.monitor_anticoagulant)
1257 1257
       this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value
1258
-      this.form.blood_pressure_monitoring_site = this.form.blood_pressure_monitoring_site
1259
-      this.form.complication = this.form.complication
1258
+      this.form.blood_pressure_monitoring_site = parseInt(this.form.blood_pressure_monitoring_site)
1259
+      this.form.complication = parseInt(this.form.complication)
1260 1260
       let mode = '1'
1261 1261
       if (this.form.id > 0) {
1262 1262
         mode = '2'

+ 32 - 7
src/xt_pages/dialysis/details/dialysisMonitoring.vue Прегледај датотеку

@@ -31,8 +31,11 @@
31 31
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
32 32
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
33 33
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
34
+          <!-- <th v-if="isShow('血压监测部位')" width="92px">血压监测部位</th>
35
+          <th v-if="isShow('并发症')" width="92px">并发症</th> -->
34 36
           <th v-if="isShow('KT/V') && org_id == 9987" width="92px">KT/V</th>
35 37
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
38
+
36 39
           <th v-if="isShow('处理')" width="92px">处理</th>
37 40
           <th v-if="isShow('结果')" width="92px">结果</th>
38 41
         </tr>
@@ -43,6 +46,7 @@
43 46
           <td v-if="isShow('脉搏')"> {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }} </td>
44 47
           <td v-if="isShow('呼吸频率')"> {{ monitor.breathing_rate ? monitor.breathing_rate : "" }} </td>
45 48
           <td> {{ monitor.venous_pressure ? monitor.venous_pressure : "" }} /{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}  </td>
49
+          
46 50
           <td v-if="isShow('血流量')"> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
47 51
           <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
48 52
           <td v-if="isShow('超滤量')"> {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }} </td>
@@ -53,10 +57,10 @@
53 57
           <td v-if="isShow('置换量')"> {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }} </td>
54 58
           <td v-if="isShow('SpO₂')"> {{ monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "" }} </td>
55 59
           <td v-if="isShow('电导度')"> {{ monitor.conductivity ? monitor.conductivity : "" }} </td>
56
-          <th v-if="isShow('置换液流量')"> {{ monitor.displacement_flow_quantity  ? monitor.displacement_flow_quantity : "" }} </th>
57
-          <th v-if="isShow('透析液流量')"> {{ monitor.dialysate_flow  ? monitor.dialysate_flow : "" }} </th>
58
-          <th v-if="isShow('肝素用量余量')"> {{ monitor.heparin ? monitor.heparin : "" }} </th> 
59
-          <th v-if="isShow('抗凝剂')">
60
+          <td v-if="isShow('置换液流量')"> {{ monitor.displacement_flow_quantity  ? monitor.displacement_flow_quantity : "" }} </td>
61
+          <td v-if="isShow('透析液流量')"> {{ monitor.dialysate_flow  ? monitor.dialysate_flow : "" }} </td>
62
+          <td v-if="isShow('肝素用量余量')"> {{ monitor.heparin ? monitor.heparin : "" }} </td> 
63
+          <td v-if="isShow('抗凝剂')">
60 64
             <span v-if="monitor.monitor_anticoagulant == 1">无肝素</span>
61 65
             <span v-if="monitor.monitor_anticoagulant == 2">普通肝素</span>
62 66
             <span v-if="monitor.monitor_anticoagulant == 3">低分子肝素</span>
@@ -67,7 +71,9 @@
67 71
             <span v-if="monitor.monitor_anticoagulant == 8">依诺肝素</span>
68 72
             <span v-if="monitor.monitor_anticoagulant == 9">达肝素</span>
69 73
             <span v-if="monitor.monitor_anticoagulant_value!=''">({{monitor.monitor_anticoagulant_value ? monitor.monitor_anticoagulant_value : ""  }})</span>
70
-          </th>
74
+          </td>
75
+          <!-- <th v-if="isShow('血压监测部位')">{{getBloodPressure(monitor.blood_pressure_monitoring_site)}}</th>
76
+          <th v-if="isShow('并发症')">{{getComplication(monitor.complication)}}</th> -->
71 77
           <td v-if="isShow('KT/V') && org_id == 9987">{{ monitor.ktv?monitor.ktv:""}}</td>
72 78
           <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
73 79
           <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
@@ -81,9 +87,8 @@
81 87
 
82 88
 <script>
83 89
 import store from '@/store'
84
-
85 90
 import { parseTime } from '@/utils'
86
-
91
+import { getDataConfig } from '@/utils/data'
87 92
 export default {
88 93
   name: 'statOrder',
89 94
   data() {
@@ -113,6 +118,26 @@ export default {
113 118
         }
114 119
       }
115 120
       return false
121
+    },
122
+    getBloodPressure(id){
123
+       var bloodPressureMmonitoringSite = getDataConfig('hemodialysis','blood_pressure_monitoring_site')
124
+       var name = ""
125
+       for(let i=0;i<bloodPressureMmonitoringSite.length;i++){
126
+         if(id == bloodPressureMmonitoringSite[i].id){
127
+            name = bloodPressureMmonitoringSite[i].name
128
+         }
129
+       }
130
+       return name
131
+    },
132
+    getComplication(id){
133
+      var complication = getDataConfig('hemodialysis','complication')
134
+      var name = ""
135
+      for(let i=0;i<complication.length;i++){
136
+         if(id == complication[i].id){
137
+            name = complication[i].name
138
+         }
139
+      }
140
+      return name
116 141
     }
117 142
   }
118 143
 }

+ 6 - 2
src/xt_pages/hospitalStation/components/callPrescription.vue Прегледај датотеку

@@ -188,14 +188,18 @@
188 188
         let params={
189 189
           patient_id:this.patient_id,
190 190
           start_time: this.start_time,
191
-          end_time:this.end_time
191
+          end_time:this.end_time,
192
+          p_type:1,
193
+
192 194
         };
193 195
         this.GetCallHisPrescription(params)
194 196
       },changeEndTime(){
195 197
         let params={
196 198
           patient_id:this.patient_id,
197 199
           start_time: this.start_time,
198
-          end_time:this.end_time
200
+          end_time:this.end_time,
201
+          p_type:1,
202
+
199 203
         };
200 204
         this.GetCallHisPrescription(params)
201 205
       },

+ 50 - 44
src/xt_pages/hospitalStation/components/deskPrescription.vue Прегледај датотеку

@@ -23,43 +23,43 @@
23 23
           <el-form-item label="证件号: " prop="name" label-position="right">
24 24
             <el-input v-model="patientInfo.id_card_no" placeholder="" readonly></el-input>
25 25
           </el-form-item>
26
-          <el-form-item label="处方类型: " prop="name" label-position="right">
27
-            <el-select style="width:100%;" v-model="register_type" placeholder="">
28
-              <el-option
29
-                v-for="(item,index) in register"
30
-                :key="index"
31
-                :label="item.label"
32
-                :value="item.value">
33
-              </el-option>
34
-            </el-select>
35
-          </el-form-item>
36
-          <el-form-item label="疾病类型:" prop="name" label-position="right">
26
+          <!--<el-form-item label="处方类型: " prop="name" label-position="right">-->
27
+            <!--<el-select style="width:100%;" v-model="register_type" placeholder="">-->
28
+              <!--<el-option-->
29
+                <!--v-for="(item,index) in register"-->
30
+                <!--:key="index"-->
31
+                <!--:label="item.label"-->
32
+                <!--:value="item.value">-->
33
+              <!--</el-option>-->
34
+            <!--</el-select>-->
35
+          <!--</el-form-item>-->
36
+          <!--<el-form-item label="疾病类型:" prop="name" label-position="right">-->
37 37
 
38
-            <el-select style="width:100%;" v-model="state1" placeholder="">
39
-              <el-option
40
-                v-for="(item,index) in sick"
41
-                :key="index"
42
-                :label="item.class_name"
43
-                :value="item.id">
44
-              </el-option>
45
-            </el-select>
38
+            <!--<el-select style="width:100%;" v-model="state1" placeholder="">-->
39
+              <!--<el-option-->
40
+                <!--v-for="(item,index) in sick"-->
41
+                <!--:key="index"-->
42
+                <!--:label="item.class_name"-->
43
+                <!--:value="item.id">-->
44
+              <!--</el-option>-->
45
+            <!--</el-select>-->
46 46
 
47
-          </el-form-item>
47
+          <!--</el-form-item>-->
48 48
 
49
-          <el-form-item label="诊断:" prop="name" label-position="right">
49
+          <!--<el-form-item label="诊断:" prop="name" label-position="right">-->
50 50
 
51
-            <el-select style="width:100%;" v-model="diagnose" placeholder="">
52
-              <el-option
53
-                v-for="(item,index) in diagnoses"
54
-                :key="index"
55
-                :label="item.class_name"
56
-                :value="item.id">
57
-              </el-option>
58
-            </el-select>
59
-
60
-          </el-form-item>
51
+            <!--<el-select style="width:100%;" v-model="diagnose" placeholder="">-->
52
+              <!--<el-option-->
53
+                <!--v-for="(item,index) in diagnoses"-->
54
+                <!--:key="index"-->
55
+                <!--:label="item.class_name"-->
56
+                <!--:value="item.id">-->
57
+              <!--</el-option>-->
58
+            <!--</el-select>-->
61 59
 
60
+          <!--</el-form-item>-->
62 61
 
62
+<!--
63 63
           <el-form-item label="过敏病史: " prop="name" label-position="right">
64 64
             <el-autocomplete
65 65
               style="width:100%;"
@@ -68,7 +68,8 @@
68 68
               :fetch-suggestions="querySearch2"
69 69
               placeholder="请输入内容"
70 70
             ></el-autocomplete>
71
-          </el-form-item>
71
+          </el-form-item>-->
72
+
72 73
         </el-form>
73 74
         <div class="tabsBox">
74 75
 
@@ -425,8 +426,6 @@
425 426
     getDayOrMonthHisPrescription,
426 427
     getInitData,
427 428
     getNextOrLastHisPrescription,
428
-    getPatientInfo,
429
-    getSchedulePatientList
430 429
   } from '@/api/his/his'
431 430
   import { getDictionaryDataConfig } from '@/utils/data'
432 431
   import prescriptionTable from './prescriptionTable'
@@ -967,7 +966,8 @@
967 966
         let params = {
968 967
           patient_id: this.patientInfo.id,
969 968
           start_time: val,
970
-          end_time: this.end_time
969
+          end_time: this.end_time,
970
+          p_type:1,
971 971
         };
972 972
         getDayOrMonthHisPrescription(params).then(response => {
973 973
           if (response.data.state == 1) {
@@ -1070,7 +1070,8 @@
1070 1070
         let params = {
1071 1071
           patient_id: this.patientInfo.id,
1072 1072
           start_time: this.start_time,
1073
-          end_time: val
1073
+          end_time: val,
1074
+          p_type:1
1074 1075
         };
1075 1076
         getDayOrMonthHisPrescription(params).then(response => {
1076 1077
           if (response.data.state == 1) {
@@ -1326,7 +1327,9 @@
1326 1327
           let params = {
1327 1328
             patient_id: this.patientInfo.id,
1328 1329
             record_time: this.request_record_date,
1329
-            type: 2
1330
+            type: 2,
1331
+            p_type:1,
1332
+
1330 1333
           };
1331 1334
 
1332 1335
           this.GetNextOrLastHisPrescription(params)
@@ -1334,7 +1337,8 @@
1334 1337
           let params = {
1335 1338
             patient_id: this.patientInfo.id,
1336 1339
             record_time: this.request_record_date,
1337
-            type: 2
1340
+            type: 2,
1341
+            p_type:1,
1338 1342
           };
1339 1343
           this.GetNextOrLastHisPrescription(params)
1340 1344
 
@@ -1837,7 +1841,8 @@
1837 1841
           let params = {
1838 1842
             end_time: this.record_date,
1839 1843
             start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
1840
-            patient_id: this.patientInfo.id
1844
+            patient_id: this.patientInfo.id,
1845
+            p_type: 1,
1841 1846
           };
1842 1847
           getCallHisPrescription(params).then(response => {
1843 1848
             if (response.data.state == 1) {
@@ -1877,10 +1882,10 @@
1877 1882
             return
1878 1883
           }
1879 1884
 
1880
-          if (this.state1  <= 0) {
1881
-            this.$message.error('疾病类型不能为空');
1882
-            return
1883
-          }
1885
+          // if (this.state1  <= 0) {
1886
+          //   this.$message.error('疾病类型不能为空');
1887
+          //   return
1888
+          // }
1884 1889
 
1885 1890
 
1886 1891
 
@@ -1896,7 +1901,8 @@
1896 1901
               department: this.departmentValue,
1897 1902
               record_date: this.record_date,
1898 1903
               his_patient_id: this.hisPatientInfo.id,
1899
-              reg_type: this.register_type
1904
+              reg_type: this.register_type,
1905
+
1900 1906
             };
1901 1907
 
1902 1908
             for (let i = 0; i < this.prescriptions.length; i++) {

+ 31 - 7
src/xt_pages/hospitalStation/doctorDesk.vue Прегледај датотеку

@@ -5,7 +5,17 @@
5 5
     </div>
6 6
     <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
7 7
       <div class="mainLeft">
8
-
8
+        <div class="mainCell" style="justify-content: space-between;">
9
+          <p style="font-size:14px;">未就诊:<span>{{cal_one}}</span>人</p>
10
+          <p style="font-size:14px;">已就诊:<span>{{cal_two}}</span>人</p>
11
+        </div>
12
+        <div class="mainCell">
13
+          <el-radio-group v-model="radio" @change="change">
14
+            <el-radio :label="1">未就诊</el-radio>
15
+            <el-radio :label="2">已就诊</el-radio>
16
+            <el-radio :label="0">全部</el-radio>
17
+          </el-radio-group>
18
+        </div>
9 19
         <div class="mainCell" style="margin-bottom:10px;">
10 20
           <el-input size="small" placeholder="请输入姓名或就诊号" @input="searchAction" @keyup.enter.native='searchAction'
11 21
                     v-model="search_input" class="filter-item"/>
@@ -674,6 +684,8 @@
674 684
           } else {
675 685
             this.patientTableData = response.data.data.list;
676 686
             this.patientTableDataTwo = response.data.data.list;
687
+            this.cal_one = response.data.data.total_one;
688
+            this.cal_two = response.data.data.total_two;
677 689
             this.admin_info = response.data.data.info;
678 690
 
679 691
             if (this.patientTableData.length > 0) {
@@ -714,7 +726,8 @@
714 726
           'record_date': this.record_date,
715 727
           'patient_id': val.id,
716 728
           'start_time': moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
717
-          'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD")
729
+          'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD"),
730
+          'p_type':1,
718 731
 
719 732
         };
720 733
         this.isloading = true;
@@ -910,7 +923,10 @@
910 923
                 'record_date': this.record_date,
911 924
                 'patient_id': val.id,
912 925
                 'start_time': moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
913
-                'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD")
926
+                'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD"),
927
+                'p_type':1,
928
+
929
+
914 930
               };
915 931
               getPatientInfo(params).then(response => {
916 932
                 if (response.data.state == 0) {
@@ -1077,7 +1093,9 @@
1077 1093
                 'record_date': this.record_date,
1078 1094
                 'patient_id': val.id,
1079 1095
                 'start_time': moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
1080
-                'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD")
1096
+                'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD"),
1097
+                'p_type':1,
1098
+
1081 1099
               };
1082 1100
               getPatientInfo(params).then(response => {
1083 1101
                 if (response.data.state == 0) {
@@ -1245,7 +1263,9 @@
1245 1263
               'record_date': this.record_date,
1246 1264
               'patient_id': val.id,
1247 1265
               'start_time': moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
1248
-              'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD")
1266
+              'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD"),
1267
+              'p_type':1,
1268
+
1249 1269
             };
1250 1270
             getPatientInfo(params).then(response => {
1251 1271
                 if (response.data.state == 0) {
@@ -1467,7 +1487,9 @@
1467 1487
               'record_date': this.record_date,
1468 1488
               'patient_id': val.id,
1469 1489
               'start_time': moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
1470
-              'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD")
1490
+              'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD"),
1491
+              'p_type':1,
1492
+
1471 1493
             };
1472 1494
             getPatientInfo(params).then(response => {
1473 1495
               if (response.data.state == 0) {
@@ -1638,7 +1660,9 @@
1638 1660
             'record_date': this.record_date,
1639 1661
             'patient_id': val.id,
1640 1662
             'start_time': moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
1641
-            'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD")
1663
+            'end_time': moment(new Date()).add('year', 0).format("YYYY-MM-DD"),
1664
+            'p_type':1,
1665
+
1642 1666
           };
1643 1667
           getPatientInfo(params).then(response => {
1644 1668
             if (response.data.state == 0) {

+ 13 - 8
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Прегледај датотеку

@@ -113,7 +113,7 @@
113 113
                       >发票打印
114 114
                       </el-button>
115 115
                     </div>
116
-                    
116
+
117 117
 
118 118
 
119 119
                 </div>
@@ -544,7 +544,8 @@
544 544
         let params = {
545 545
           patient_id: this.patientInfo.id,
546 546
           start_time: val,
547
-          end_time: this.other_end_time
547
+          end_time: this.other_end_time,
548
+          p_type:1
548 549
         };
549 550
         getDayOrMonthHisPrescription(params).then(response => {
550 551
           if (response.data.state == 1) {
@@ -561,7 +562,8 @@
561 562
         let params = {
562 563
           patient_id: this.patientInfo.id,
563 564
           start_time: this.other_start_time,
564
-          end_time: val
565
+          end_time: val,
566
+          p_type:1
565 567
         };
566 568
         getDayOrMonthHisPrescription(params).then(response => {
567 569
           if (response.data.state == 1) {
@@ -943,7 +945,8 @@
943 945
           'his_patient_id':val.his_patient.id,
944 946
           'record_date': val,
945 947
           'patient_id': this.patientInfo.id,
946
-          'type': this.radio
948
+          'type': this.radio,
949
+          'p_type': 1,
947 950
         };
948 951
         GetHisHospitalChargePatientInfo(params).then(response => {
949 952
           if (response.data.state == 0) {
@@ -2469,7 +2472,9 @@
2469 2472
           'number': batch_number,
2470 2473
           'start_time': this.other_start_time,
2471 2474
           'end_time': this.other_end_time,
2472
-          'type': this.radio
2475
+          'type': this.radio,
2476
+          'p_type': 1,
2477
+
2473 2478
 
2474 2479
         };
2475 2480
         this.loading = true;
@@ -2814,15 +2819,15 @@
2814 2819
 
2815 2820
       },
2816 2821
       invoicePrint(obj){
2817
-        console.log(this.hisPatientInfo)
2822
+        console.log(this.hisPatientInfo);
2818 2823
         let paramsObj = {
2819 2824
           order_id: this.hisPatientInfo.id,
2820 2825
           patient_id: this.hisPatientInfo.patient_id,
2821 2826
           name:this.hisPatientInfo.name,
2822 2827
           gend:this.hisPatientInfo.gend,
2823 2828
           setl_time:this.hisPatientInfo.out_hosptial_time
2824
-        }
2825
-        this.invoiceParams = paramsObj
2829
+        };
2830
+        this.invoiceParams = paramsObj;
2826 2831
         this.invoiceVisible = true
2827 2832
       }
2828 2833
     },

+ 48 - 48
src/xt_pages/outpatientCharges/11.vue Прегледај датотеку

@@ -117,7 +117,7 @@
117 117
   import { getPatientInformation, getPatientList } from '@/api/project/project'
118 118
   import { getPatientInfo, getSchedulePatientList, register,upload } from '@/api/his/his'
119 119
 
120
-  const moment = require('moment')
120
+  const moment = require('moment');
121 121
   export default {
122 122
     components: {
123 123
       BreadCrumb,
@@ -161,16 +161,16 @@
161 161
       }
162 162
     },
163 163
     created() {
164
-      var nowDate = new Date()
165
-      var nowYear = nowDate.getFullYear()
166
-      var nowMonth = nowDate.getMonth() + 1
167
-      var nowDay = nowDate.getDate()
164
+      var nowDate = new Date();
165
+      var nowYear = nowDate.getFullYear();
166
+      var nowMonth = nowDate.getMonth() + 1;
167
+      var nowDay = nowDate.getDate();
168 168
       this.record_date =
169 169
         nowYear +
170 170
         '-' +
171 171
         (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
172 172
         '-' +
173
-        (nowDay < 10 ? '0' + nowDay : nowDay)
173
+        (nowDay < 10 ? '0' + nowDay : nowDay);
174 174
 
175 175
       //获取患者信息
176 176
       this.getPatientList()
@@ -179,9 +179,9 @@
179 179
       tabclickEvent(val) {
180 180
         for (let i = 0; i < this.prescriptions.length; i++) {
181 181
           if (this.prescriptions[i].name == val.name) {
182
-            this.curPrescriptions = {}
183
-            var temp = this.deepClone(this.prescriptions[i])
184
-            this.curPrescriptions = temp
182
+            this.curPrescriptions = {};
183
+            var temp = this.deepClone(this.prescriptions[i]);
184
+            this.curPrescriptions = temp;
185 185
             console.log(this.curPrescriptions)
186 186
           }
187 187
         }
@@ -189,19 +189,19 @@
189 189
         if (!source && typeof source !== 'object') {
190 190
           throw new Error('error arguments', 'shallowClone')
191 191
         }
192
-        const targetObj = source.constructor === Array ? [] : {}
192
+        const targetObj = source.constructor === Array ? [] : {};
193 193
         Object.keys(source).forEach((keys) => {
194 194
           if (source[keys] && typeof source[keys] === 'object') {
195 195
             targetObj[keys] = this.deepClone(source[keys])
196 196
           } else {
197 197
             targetObj[keys] = source[keys]
198 198
           }
199
-        })
199
+        });
200 200
         return targetObj
201 201
       },
202 202
       getTotal() {
203
-        var total = 0
204
-        console.log(this.prescriptions)
203
+        var total = 0;
204
+        console.log(this.prescriptions);
205 205
         for (let i = 0; i < this.prescriptions.length; i++) {
206 206
           if (this.prescriptions[i].advices != null) {
207 207
             for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
@@ -230,12 +230,12 @@
230 230
           let params = {
231 231
             'id': this.patientInfo.id,
232 232
             'record_time': this.record_date
233
-          }
234
-          this.loadingtwo = true
233
+          };
234
+          this.loadingtwo = true;
235 235
           upload(params).then(response => {
236 236
             if (response.data.state == 0) {
237
-              this.$message.error(response.data.msg)
238
-              this.loadingtwo = false
237
+              this.$message.error(response.data.msg);
238
+              this.loadingtwo = false;
239 239
 
240 240
               return false
241 241
 
@@ -243,53 +243,53 @@
243 243
               this.loadingtwo = false
244 244
 
245 245
             }
246
-          })
246
+          });
247 247
 
248
-          this.state = '已收费'
248
+          this.state = '已收费';
249 249
           this.$message({ message: '收费成功', type: 'success' })
250 250
         } else if (index == 5) {
251 251
           this.$message({ message: '退费成功', type: 'success' })
252 252
         } else if (index == 6) {
253 253
 
254 254
           if (this.patientInfo.id == 0) {
255
-            this.$message.error('请先选择要挂号的病人')
255
+            this.$message.error('请先选择要挂号的病人');
256 256
             return
257 257
           }
258 258
           let params = {
259 259
             'id': this.patientInfo.id,
260 260
             'record_time': this.record_date
261
-          }
262
-          this.loadingone = true
261
+          };
262
+          this.loadingone = true;
263 263
           register(params).then(response => {
264 264
             if (response.data.state == 0) {
265
-              this.$message.error(response.data.msg)
266
-              this.loadingone = false
265
+              this.$message.error(response.data.msg);
266
+              this.loadingone = false;
267 267
 
268 268
               return false
269 269
 
270 270
             } else {
271
-              this.loadingone = false
272
-              var his_info = response.data.data.his_info
271
+              this.loadingone = false;
272
+              var his_info = response.data.data.his_info;
273 273
               this.hisPatientInfo = his_info
274 274
             }
275 275
           })
276 276
         }
277 277
       },
278 278
       addTab(targetName) {
279
-        let newTabName = ++this.tabIndex + ''
279
+        let newTabName = ++this.tabIndex + '';
280 280
         this.editableTabs.push({
281 281
           title: '处方' + this.tabIndex,
282 282
           name: newTabName
283
-        })
283
+        });
284 284
         this.editableTabsValue = newTabName
285 285
       },
286 286
       removeTab(targetName) {
287
-        let tabs = this.editableTabs
288
-        let activeName = this.editableTabsValue
287
+        let tabs = this.editableTabs;
288
+        let activeName = this.editableTabsValue;
289 289
         if (activeName === targetName) {
290 290
           tabs.forEach((tab, index) => {
291 291
             if (tab.name === targetName) {
292
-              let nextTab = tabs[index + 1] || tabs[index - 1]
292
+              let nextTab = tabs[index + 1] || tabs[index - 1];
293 293
               if (nextTab) {
294 294
                 activeName = nextTab.name
295 295
               }
@@ -297,7 +297,7 @@
297 297
           })
298 298
         }
299 299
 
300
-        this.editableTabsValue = activeName
300
+        this.editableTabsValue = activeName;
301 301
         this.editableTabs = tabs.filter(tab => tab.name !== targetName)
302 302
       },
303 303
       addCharges() {
@@ -307,8 +307,8 @@
307 307
 
308 308
       },
309 309
       changeRadio(id) {
310
-        console.log(id)
311
-        this.radioStatus = id
310
+        console.log(id);
311
+        this.radioStatus = id;
312 312
         this.getPatientList()
313 313
       },
314 314
 
@@ -316,13 +316,13 @@
316 316
       getPatientList() {
317 317
         let params = {
318 318
           'record_date': this.record_date
319
-        }
319
+        };
320 320
         getSchedulePatientList(params).then(response => {
321 321
           if (response.data.state == 0) {
322
-            this.$message.error(response.data.msg)
322
+            this.$message.error(response.data.msg);
323 323
             return false
324 324
           } else {
325
-            this.patientTableData = []
325
+            this.patientTableData = [];
326 326
             // let cal_one = 0
327 327
             // let cal_two = 0
328 328
             for (let i = 0; i < response.data.data.list.length; i++) {
@@ -342,7 +342,7 @@
342 342
       },
343 343
 
344 344
       unique(arr) {
345
-        const res = new Map()
345
+        const res = new Map();
346 346
         return arr.filter((arr) => !res.has(arr.id_card_no) && res.set(arr.id_card_no, 1))
347 347
       },
348 348
       handleCurrentChange(val) {
@@ -351,26 +351,26 @@
351 351
       getPatientInformation(id) {
352 352
         let params = {
353 353
           'record_date': this.record_date,
354
-          'patient_id': id
355
-        }
354
+          'patient_id': id,
355
+        };
356 356
         getPatientInfo(params).then(response => {
357 357
           if (response.data.state == 0) {
358
-            this.$message.error(response.data.msg)
358
+            this.$message.error(response.data.msg);
359 359
             return false
360 360
           } else {
361
-            this.patientInfo = response.data.data.xt_info
362
-            this.hisPatientInfo = response.data.data.his_info
363
-            this.prescriptions = []
361
+            this.patientInfo = response.data.data.xt_info;
362
+            this.hisPatientInfo = response.data.data.his_info;
363
+            this.prescriptions = [];
364 364
             for (let i = 0; i < response.data.data.prescription.length; i++) {
365
-              var prescription = response.data.data.prescription[i]
366
-              let index = i + 1
365
+              var prescription = response.data.data.prescription[i];
366
+              let index = i + 1;
367 367
               let obj = {
368 368
                 name: '处方' + index,
369 369
                 advices: prescription.advices,
370 370
                 project: prescription.project,
371 371
                 type: response.data.data.prescription[i].type
372
-              }
373
-              this.prescriptions.push(obj)
372
+              };
373
+              this.prescriptions.push(obj);
374 374
               this.curPrescriptions = this.prescriptions[0]
375 375
 
376 376
             }

Разлика између датотеке није приказан због своје велике величине
+ 530 - 523
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


+ 46 - 46
src/xt_pages/outpatientCharges/summary.vue Прегледај датотеку

@@ -247,8 +247,8 @@
247 247
         }
248 248
 
249 249
       },toRefund(row){
250
-        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
251
-          var that = this
250
+        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
251
+          var that = this;
252 252
           this.$confirm('是否退费', '退费', {
253 253
             confirmButtonText: '确 定',
254 254
             cancelButtonText: '取 消',
@@ -259,19 +259,19 @@
259 259
               'patient_id': row.patient_id,
260 260
               'record_time': that.getTimes(row.settle_accounts_date),
261 261
               'admin_user_id': that.$store.getters.xt_user.user.id,
262
-            }
262
+            };
263 263
             axios.get('http://127.0.0.1:9532/api/refund/post', {
264 264
               params: params
265 265
             })
266 266
               .then(function(response) {
267 267
                 if (response.data.state == 0) {
268
-                  that.$message.error(response.data.msg)
268
+                  that.$message.error(response.data.msg);
269 269
                   return false
270 270
                 } else {
271 271
                   if (response.data.data.failed_code == -10) {
272 272
                     that.$message.error(response.data.data.msg)
273 273
                   } else {
274
-                    that.$message({ message: '退费成功', type: 'success', duration: 5000 })
274
+                    that.$message({ message: '退费成功', type: 'success', duration: 5000 });
275 275
                     that.getHisOrderList()
276 276
 
277 277
                   }
@@ -293,13 +293,13 @@
293 293
               'patient_id': this.patientInfo.id,
294 294
               'record_time': this.record_date
295 295
 
296
-            }
296
+            };
297 297
             Refund(params).then(response => {
298 298
               if (response.data.state == 0) {
299
-                this.$message.error(response.data.msg)
299
+                this.$message.error(response.data.msg);
300 300
                 return false
301 301
               } else {
302
-                this.$message({ message: '退费成功', type: 'success' })
302
+                this.$message({ message: '退费成功', type: 'success' });
303 303
                 this.getHisOrderList()
304 304
               }
305 305
             })
@@ -309,51 +309,51 @@
309 309
       },
310 310
       toPrint(row) {
311 311
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
312
-          this.statementVisible9504 = true
312
+          this.statementVisible9504 = true;
313 313
           let obj = {
314 314
             order_id: row.id,
315 315
             patient_id: row.patient_id,
316 316
             record_time: this.getTimes(row.settle_accounts_date),
317 317
             admin_user_id: this.$store.getters.xt_user.user.id
318
-          }
318
+          };
319 319
           this.orderObj9504 = obj
320 320
         } else {
321
-          this.statementVisible = true
321
+          this.statementVisible = true;
322 322
           let obj = {
323 323
             order_id: row.id
324
-          }
324
+          };
325 325
           this.orderObj = obj
326 326
         }
327 327
 
328 328
       },
329 329
       settlementPrint(row){
330
-        this.settlementVisible = true
330
+        this.settlementVisible = true;
331 331
         let obj = {
332 332
           order_id: row.id
333
-        }
333
+        };
334 334
         this.settlementObj = obj
335 335
       },
336 336
       export_detail() {
337 337
         let params = {
338 338
           start_time: this.start_time,
339 339
           end_time: this.end_time
340
-        }
340
+        };
341 341
         getExportConsumeDetailList(params).then(response => {
342 342
           if (response.data.state == 0) {
343
-            this.$message.error(response.data.msg)
343
+            this.$message.error(response.data.msg);
344 344
             return false
345 345
           } else {
346 346
 
347
-            let list = []
347
+            let list = [];
348 348
             for (let i = 0; i < response.data.data.order.length; i++) {
349
-              let order = response.data.data.order[i]
350
-              let number = ''
351
-              let name = ''
352
-              let department = ''
353
-              let doctor_name = ''
354
-              let balance_accounts = ''
349
+              let order = response.data.data.order[i];
350
+              let number = '';
351
+              let name = '';
352
+              let department = '';
353
+              let doctor_name = '';
354
+              let balance_accounts = '';
355 355
 
356
-              let order_status = ''
356
+              let order_status = '';
357 357
 
358 358
               if (order.his_patient != null && order.his_patient.number.length > 0) {
359 359
                 number = order.his_patient.number
@@ -414,13 +414,13 @@
414 414
                 '收费日期': '',
415 415
                 '收费状态': order_status,
416 416
                 '退费日期': ''
417
-              }
417
+              };
418 418
               list.push(obj)
419 419
             }
420 420
             import('@/vendor/Export2Excel').then(excel => {
421
-              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
422
-              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
423
-              const data = this.formatJson(filterVal, list)
421
+              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
422
+              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
423
+              const data = this.formatJson(filterVal, list);
424 424
               excel.export_json_to_excel({
425 425
                 header: tHeader,
426 426
                 data,
@@ -435,30 +435,30 @@
435 435
         return jsonData.map(v => filterVal.map(j => v[j]))
436 436
       },
437 437
       changeDoctor() {
438
-        this.page = 1
439
-        this.keywords = ''
438
+        this.page = 1;
439
+        this.keywords = '';
440 440
         this.getHisOrderList()
441 441
       },
442 442
       handleSizeChange(limit) {
443
-        this.limit = limit
443
+        this.limit = limit;
444 444
         this.getHisOrderList()
445 445
 
446 446
       }, handleCurrentChange(page) {
447
-        this.page = page
447
+        this.page = page;
448 448
         this.getHisOrderList()
449 449
 
450 450
       },
451 451
       handleStartTimeChange() {
452
-        this.page = 1
453
-        this.keywords = ''
452
+        this.page = 1;
453
+        this.keywords = '';
454 454
         this.getHisOrderList()
455 455
       }, handleEndTimeChange() {
456
-        this.page = 1
457
-        this.keywords = ''
456
+        this.page = 1;
457
+        this.keywords = '';
458 458
         this.getHisOrderList()
459 459
       },
460 460
       searchAction() {
461
-        this.page = 1
461
+        this.page = 1;
462 462
         this.getHisOrderList()
463 463
 
464 464
       },
@@ -480,13 +480,13 @@
480 480
           start_time: this.start_time,
481 481
           end_time: this.end_time,
482 482
           type: this.admin_user_id
483
-        }
483
+        };
484 484
         getHisOrderList(params).then(response => {
485 485
           if (response.data.state == 0) {
486
-            this.$message.error(response.data.msg)
486
+            this.$message.error(response.data.msg);
487 487
             return false
488 488
           } else {
489
-            this.tableData = response.data.data.order
489
+            this.tableData = response.data.data.order;
490 490
             this.total = response.data.data.total
491 491
           }
492 492
         })
@@ -494,7 +494,7 @@
494 494
       }, getDoctorList() {
495 495
         getDoctorList().then(response => {
496 496
           if (response.data.state == 0) {
497
-            this.$message.error(response.data.msg)
497
+            this.$message.error(response.data.msg);
498 498
             return false
499 499
           } else {
500 500
             this.doctors = response.data.data.doctors
@@ -509,7 +509,7 @@
509 509
         }
510 510
       },
511 511
       invoicePrint(obj){
512
-        console.log(obj)
512
+        console.log(obj);
513 513
         let paramsObj = {
514 514
           order_id: obj.id,
515 515
           patient_id: obj.patient_id,
@@ -517,15 +517,15 @@
517 517
           age:obj.age,
518 518
           gend:obj.gend,
519 519
           setl_time:obj.setl_time
520
-        }
521
-        this.invoiceParams = paramsObj
520
+        };
521
+        this.invoiceParams = paramsObj;
522 522
         this.invoiceVisible = true
523 523
       }
524 524
     }, created() {
525 525
 
526 526
 
527
-      this.fetchAllAdminUsers()
528
-      this.getDoctorList()
527
+      this.fetchAllAdminUsers();
528
+      this.getDoctorList();
529 529
       this.getHisOrderList()
530 530
 
531 531
 

+ 33 - 30
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Прегледај датотеку

@@ -188,21 +188,24 @@
188 188
         let params={
189 189
           patient_id:this.patient_id,
190 190
           start_time: this.start_time,
191
-          end_time:this.end_time
192
-        }
191
+          end_time:this.end_time,
192
+          p_type:2,
193
+        };
193 194
         this.GetCallHisPrescription(params)
194 195
       },changeEndTime(){
195 196
         let params={
196 197
           patient_id:this.patient_id,
197 198
           start_time: this.start_time,
198
-          end_time:this.end_time
199
-        }
199
+          end_time:this.end_time,
200
+          p_type:2,
201
+
202
+        };
200 203
         this.GetCallHisPrescription(params)
201 204
       },
202 205
       GetCallHisPrescription(params){
203 206
         getCallHisPrescription(params).then(response => {
204 207
           if (response.data.state == 1) {
205
-            this.allPrescription = response.data.data.prescriptions
208
+            this.allPrescription = response.data.data.prescriptions;
206 209
             for (let i = 0; i < this.allPrescription.length; i++){
207 210
               this.allPrescription[i].check_group = []
208 211
             }
@@ -214,13 +217,13 @@
214 217
         })
215 218
       },
216 219
       save() {
217
-        let replace_one = []
218
-        let replace_two = []
220
+        let replace_one = [];
221
+        let replace_two = [];
219 222
 
220
-        let checkGroup = []
221
-        let allPrescriptions = []
222
-        let targetPrescriptions = []
223
-        let prescriptions = []
223
+        let checkGroup = [];
224
+        let allPrescriptions = [];
225
+        let targetPrescriptions = [];
226
+        let prescriptions = [];
224 227
         for (let i = 0; i < this.allPrescription.length; i++) {
225 228
           for (let a = 0; a < this.allPrescription[i].check_group.length; a++) {
226 229
             checkGroup.push(this.allPrescription[i].check_group[a])
@@ -239,10 +242,10 @@
239 242
 
240 243
         if (targetPrescriptions.length > 0) {
241 244
           for (let i = 0; i < targetPrescriptions.length; i++) {
242
-            var prescription = targetPrescriptions[i]
243
-            let tempAdvice = []
244
-            let tempProject = []
245
-            let tempAddition = []
245
+            var prescription = targetPrescriptions[i];
246
+            let tempAdvice = [];
247
+            let tempProject = [];
248
+            let tempAddition = [];
246 249
             for (let b = 0; b < prescription.doctor_advice.length; b++) {
247 250
               let obj = {
248 251
                 advice_id: 0,
@@ -258,7 +261,7 @@
258 261
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
259 262
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
260 263
                 id:prescription.doctor_advice[b].drug_id
261
-              }
264
+              };
262 265
               tempAdvice.push(obj)
263 266
 
264 267
             }
@@ -278,7 +281,7 @@
278 281
                 price:prescription.project[b].price,
279 282
                 remark:prescription.project[b].remark,
280 283
                 medical_code:prescription.project[b].project.medical_code,
281
-              }
284
+              };
282 285
               tempProject.push(obj)
283 286
             }
284 287
             let obj = {
@@ -288,32 +291,32 @@
288 291
               addition:tempAddition,
289 292
               type:prescription.type,
290 293
               order_status:0,
291
-            }
294
+            };
292 295
             prescriptions.push(obj)
293 296
           }
294 297
         }
295 298
 
296 299
         if(this.srcPrescriptions.length == 1){
297 300
           if(this.srcPrescriptions[0].advices.length == 0 && this.srcPrescriptions[0].project.length == 0){
298
-            this.srcPrescriptions = []
299
-            this.srcPrescriptions = prescriptions
301
+            this.srcPrescriptions = [];
302
+            this.srcPrescriptions = prescriptions;
300 303
             this.$emit('call', this.srcPrescriptions)
301 304
           }else{
302 305
 
303
-            this.srcPrescriptions =  this.srcPrescriptions.concat(prescriptions)
306
+            this.srcPrescriptions =  this.srcPrescriptions.concat(prescriptions);
304 307
             this.$emit('call', this.srcPrescriptions)
305 308
           }
306 309
         }else{
307
-          this.srcPrescriptions =  this.srcPrescriptions.concat(prescriptions)
310
+          this.srcPrescriptions =  this.srcPrescriptions.concat(prescriptions);
308 311
           this.$emit('call', this.srcPrescriptions)
309 312
         }
310 313
       },show(name,id,end_time, start_time,srcPrescriptions,prescriptions){
311
-        this.srcPrescriptions = srcPrescriptions
312
-        this.start_time  = start_time
313
-        this.end_time = end_time
314
-        this.patient_id = id
315
-        this.name = '处方调用' + '('+name +')'
316
-        this.allPrescription = prescriptions
314
+        this.srcPrescriptions = srcPrescriptions;
315
+        this.start_time  = start_time;
316
+        this.end_time = end_time;
317
+        this.patient_id = id;
318
+        this.name = '处方调用' + '('+name +')';
319
+        this.allPrescription = prescriptions;
317 320
         for (let i = 0; i < this.allPrescription.length; i++){
318 321
           this.allPrescription[i].check_group = []
319 322
         }
@@ -327,8 +330,8 @@
327 330
         return uParseTime(time,template)
328 331
 
329 332
       }, getGroup(id){
330
-        var name = ""
331
-        var statistics_category =  getDictionaryDataConfig('system','statistics_category')
333
+        var name = "";
334
+        var statistics_category =  getDictionaryDataConfig('system','statistics_category');
332 335
         for(let i=0;i<statistics_category.length;i++){
333 336
           if(id == statistics_category[i].id){
334 337
             name = statistics_category[i].name

+ 17 - 9
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Прегледај датотеку

@@ -425,8 +425,6 @@
425 425
     getDayOrMonthHisPrescription,
426 426
     getInitData,
427 427
     getNextOrLastHisPrescription,
428
-    getPatientInfo,
429
-    getSchedulePatientList
430 428
   } from '@/api/his/his'
431 429
   import { getDictionaryDataConfig } from '@/utils/data'
432 430
   import prescriptionTable from './prescriptionTable'
@@ -967,7 +965,8 @@
967 965
         let params = {
968 966
           patient_id: this.patientInfo.id,
969 967
           start_time: val,
970
-          end_time: this.end_time
968
+          end_time: this.end_time,
969
+          p_type:2
971 970
         };
972 971
         getDayOrMonthHisPrescription(params).then(response => {
973 972
           if (response.data.state == 1) {
@@ -1070,7 +1069,10 @@
1070 1069
         let params = {
1071 1070
           patient_id: this.patientInfo.id,
1072 1071
           start_time: this.start_time,
1073
-          end_time: val
1072
+          end_time: val,
1073
+          p_type:2
1074
+
1075
+
1074 1076
         };
1075 1077
         getDayOrMonthHisPrescription(params).then(response => {
1076 1078
           if (response.data.state == 1) {
@@ -1295,7 +1297,9 @@
1295 1297
           let params = {
1296 1298
             patient_id: this.patientInfo.id,
1297 1299
             record_time: this.request_record_date,
1298
-            type: 1
1300
+            type: 1,
1301
+            p_type:2,
1302
+
1299 1303
           };
1300 1304
 
1301 1305
           this.GetNextOrLastHisPrescription(params)
@@ -1303,7 +1307,8 @@
1303 1307
           let params = {
1304 1308
             patient_id: this.patientInfo.id,
1305 1309
             record_time: this.request_record_date,
1306
-            type: 1
1310
+            type: 1,
1311
+            p_type:2,
1307 1312
           };
1308 1313
 
1309 1314
           this.GetNextOrLastHisPrescription(params)
@@ -1326,7 +1331,8 @@
1326 1331
           let params = {
1327 1332
             patient_id: this.patientInfo.id,
1328 1333
             record_time: this.request_record_date,
1329
-            type: 2
1334
+            type: 2,
1335
+            p_type:2,
1330 1336
           };
1331 1337
 
1332 1338
           this.GetNextOrLastHisPrescription(params)
@@ -1334,7 +1340,8 @@
1334 1340
           let params = {
1335 1341
             patient_id: this.patientInfo.id,
1336 1342
             record_time: this.request_record_date,
1337
-            type: 2
1343
+            type: 2,
1344
+            p_type:2,
1338 1345
           };
1339 1346
           this.GetNextOrLastHisPrescription(params)
1340 1347
 
@@ -1837,7 +1844,8 @@
1837 1844
           let params = {
1838 1845
             end_time: this.record_date,
1839 1846
             start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
1840
-            patient_id: this.patientInfo.id
1847
+            patient_id: this.patientInfo.id,
1848
+            p_type:2,
1841 1849
           };
1842 1850
           getCallHisPrescription(params).then(response => {
1843 1851
             if (response.data.state == 1) {

+ 34 - 31
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue Прегледај датотеку

@@ -239,8 +239,9 @@
239 239
           let params = {
240 240
             patient_id: this.patient_id,
241 241
             record_time: this.request_record_date,
242
-            type: 1
243
-          }
242
+            type: 1,
243
+            p_type:2,
244
+          };
244 245
 
245 246
           this.GetNextOrLastHisPrescription(params)
246 247
 
@@ -251,15 +252,17 @@
251 252
           let params = {
252 253
             patient_id: this.patient_id,
253 254
             record_time: this.request_record_date,
254
-            type: 2
255
-          }
255
+            type: 2,
256
+            p_type:2,
257
+
258
+          };
256 259
           this.GetNextOrLastHisPrescription(params)
257 260
         }
258 261
       },
259 262
       GetNextOrLastHisPrescription(params){
260 263
         getNextOrLastHisPrescription(params).then(response => {
261 264
           if (response.data.state == 1) {
262
-            this.allPrescription = response.data.data.prescriptions
265
+            this.allPrescription = response.data.data.prescriptions;
263 266
             for (let i = 0; i < this.allPrescription.length; i++){
264 267
               this.allPrescription[i].check_group = []
265 268
             }
@@ -271,13 +274,13 @@
271 274
         })
272 275
       },
273 276
       save() {
274
-        let replace_one = []
275
-        let replace_two = []
277
+        let replace_one = [];
278
+        let replace_two = [];
276 279
 
277
-        let checkGroup = []
278
-        let allPrescriptions = []
279
-        let targetPrescriptions = []
280
-        let prescriptions = []
280
+        let checkGroup = [];
281
+        let allPrescriptions = [];
282
+        let targetPrescriptions = [];
283
+        let prescriptions = [];
281 284
         for (let i = 0; i < this.allPrescription.length; i++) {
282 285
           for (let a = 0; a < this.allPrescription[i].check_group.length; a++) {
283 286
             checkGroup.push(this.allPrescription[i].check_group[a])
@@ -296,10 +299,10 @@
296 299
 
297 300
         if (targetPrescriptions.length > 0) {
298 301
           for (let i = 0; i < targetPrescriptions.length; i++) {
299
-            var prescription = targetPrescriptions[i]
300
-            let tempAdvice = []
301
-            let tempProject = []
302
-            let tempAddition = []
302
+            var prescription = targetPrescriptions[i];
303
+            let tempAdvice = [];
304
+            let tempProject = [];
305
+            let tempAddition = [];
303 306
             for (let b = 0; b < prescription.doctor_advice.length; b++) {
304 307
               let obj = {
305 308
                 advice_id: 0,
@@ -315,7 +318,7 @@
315 318
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
316 319
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
317 320
                 id:prescription.doctor_advice[b].drug_id
318
-              }
321
+              };
319 322
               tempAdvice.push(obj)
320 323
 
321 324
             }
@@ -335,7 +338,7 @@
335 338
                 price:prescription.project[b].price,
336 339
                 remark:prescription.project[b].remark,
337 340
                 medical_code:prescription.project[b].project.medical_code,
338
-              }
341
+              };
339 342
               tempProject.push(obj)
340 343
             }
341 344
             let obj = {
@@ -345,40 +348,40 @@
345 348
               addition:tempAddition,
346 349
               order_status:0,
347 350
               // type: type,
348
-            }
351
+            };
349 352
             prescriptions.push(obj)
350 353
           }
351 354
         }
352 355
 
353
-        console.log(this.srcPrescriptions)
356
+        console.log(this.srcPrescriptions);
354 357
 
355 358
         if(this.srcPrescriptions.length == 1){
356 359
           if(this.srcPrescriptions[0].advices.length == 0 && this.srcPrescriptions[0].project.length == 0){
357
-            this.srcPrescriptions = []
358
-            this.srcPrescriptions = prescriptions
360
+            this.srcPrescriptions = [];
361
+            this.srcPrescriptions = prescriptions;
359 362
             this.$emit('save', this.srcPrescriptions)
360 363
           }else{
361 364
 
362
-            this.srcPrescriptions =  this.srcPrescriptions.concat(prescriptions)
365
+            this.srcPrescriptions =  this.srcPrescriptions.concat(prescriptions);
363 366
             this.$emit('save', this.srcPrescriptions)
364 367
           }
365 368
         }else{
366
-          this.srcPrescriptions =  this.srcPrescriptions.concat(prescriptions)
369
+          this.srcPrescriptions =  this.srcPrescriptions.concat(prescriptions);
367 370
           this.$emit('save', this.srcPrescriptions)
368 371
         }
369 372
 
370 373
 
371 374
 
372 375
       },show(prescriptions,name,id,srcPrescriptions){
373
-        this.srcPrescriptions = srcPrescriptions
374
-        this.patient_id = id
375
-        this.request_record_date = uParseTime(prescriptions[0].record_date, '{y}-{m}-{d}')
376
-        this.name = name
377
-        this.allPrescription = prescriptions
376
+        this.srcPrescriptions = srcPrescriptions;
377
+        this.patient_id = id;
378
+        this.request_record_date = uParseTime(prescriptions[0].record_date, '{y}-{m}-{d}');
379
+        this.name = name;
380
+        this.allPrescription = prescriptions;
378 381
         for (let i = 0; i < this.allPrescription.length; i++){
379 382
           this.allPrescription[i].check_group = []
380 383
         }
381
-        console.log(this.allPrescription)
384
+        console.log(this.allPrescription);
382 385
         this.isLastOrNextVisible = true
383 386
       },close(){
384 387
         this.isLastOrNextVisible = false
@@ -389,8 +392,8 @@
389 392
         return uParseTime(time,template)
390 393
 
391 394
       }, getGroup(id){
392
-        var name = ""
393
-        var statistics_category =  getDictionaryDataConfig('system','statistics_category')
395
+        var name = "";
396
+        var statistics_category =  getDictionaryDataConfig('system','statistics_category');
394 397
         for(let i=0;i<statistics_category.length;i++){
395 398
           if(id == statistics_category[i].id){
396 399
             name = statistics_category[i].name

Разлика између датотеке није приказан због своје велике величине
+ 362 - 351
src/xt_pages/outpatientDoctorStation/doctorDesk.vue