Bläddra i källkod

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

28169 8 månader sedan
förälder
incheckning
6462e9a139

+ 28 - 24
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue Visa fil

@@ -211,7 +211,7 @@
211 211
 
212 212
                   <div class="row"
213 213
                     style="padding: 2px 0; line-height: 23px; display: flex"
214
-                  > 
214
+                  >
215 215
                     <!-- <div class="inline_block" style=" flex: 1">
216 216
                       透析期间:
217 217
                       <div
@@ -276,14 +276,14 @@
276 276
                         {{ predialysis.complication ? predialysis.complication : "/" }}
277 277
                       </div>
278 278
                     </div>
279
-                    <div class="inline_block" style=" flex: 1">
279
+                    <!-- <div class="inline_block" style=" flex: 1">
280 280
                       跌倒评估:
281 281
                       <div
282 282
                         style="width: 50%; text-align: center;display: inline-block;border-bottom: 1px solid #999;"
283 283
                       >
284 284
                         {{ receiverTreatmentAccess.score ? receiverTreatmentAccess.score : '/' }}
285 285
                       </div>
286
-                    </div>
286
+                    </div> -->
287 287
                   </div>
288 288
 
289 289
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
@@ -300,7 +300,7 @@
300 300
                       <div
301 301
                         style="width: 50%; text-align: center;display: inline-block;border-bottom: 1px solid #999;"
302 302
                       >
303
-                        {{ predialysis.weight_before ? 
303
+                        {{ predialysis.weight_before ?
304 304
                           parseFloat( predialysis.weight_before - predialysis.additional_weight ).toFixed(1) : "/"
305 305
                         }}
306 306
                       </div>kg
@@ -313,17 +313,17 @@
313 313
                         class="under_line"
314 314
                         style=" width: 50%;text-align: center;white-space: normal;"
315 315
                       >
316
-                      {{ predialysis.weight_before > 0 && predialysis.dry_weight > 0 ? 
316
+                      {{ predialysis.weight_before > 0 && predialysis.dry_weight > 0 ?
317 317
                       parseFloat(predialysis.weight_before - predialysis.dry_weight - predialysis.additional_weight).toFixed(2): "/" }}
318 318
                       </div>kg
319 319
                     </div>
320 320
                     <div class="inline_block" style=" flex: 1">
321
-                      预增脱水量:
321
+                      <!-- 预增脱水量:
322 322
                       <div
323 323
                         style="width: 50%; text-align: center;display: inline-block;border-bottom: 1px solid #999;"
324 324
                       >
325 325
                          {{predialysis.dehydration?predialysis.dehydration:"" }}
326
-                      </div>L
326
+                      </div>L -->
327 327
                     </div>
328 328
                   </div>
329 329
                 </td>
@@ -409,7 +409,7 @@
409 409
                         {{ afterdialysis.symptom_after_dialysis ? afterdialysis.symptom_after_dialysis : "/" }}
410 410
                       </div>
411 411
                     </div>
412
-                    
412
+
413 413
                   </div>
414 414
 
415 415
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex"
@@ -615,7 +615,7 @@
615 615
                         {{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}
616 616
                       </div>ml/min
617 617
                     </div>
618
-                    
618
+
619 619
                   </div>
620 620
 
621 621
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
@@ -631,13 +631,13 @@
631 631
                      <div class="inline_block" style="flex: 1">
632 632
                       膜面积:
633 633
                       <div class="under_line" style="width: 50px; text-align: center">
634
-                      
634
+
635 635
                       </div>㎡
636 636
                     </div>
637 637
                     <div class="inline_block" style="flex: 1">
638 638
                       膜材质:
639 639
                       <div class="under_line" style="width: 80px; text-align: center">
640
-                        
640
+
641 641
                       </div>
642 642
                     </div>
643 643
                     <div class="inline_block" style="flex: 1">
@@ -652,7 +652,7 @@
652 652
                         {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0
653 653
                         ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
654 654
                       </div>
655
-                      
655
+
656 656
                     </div>
657 657
                   </div>
658 658
 
@@ -669,7 +669,7 @@
669 669
                             : "/"
670 670
                         }}
671 671
                         </span>
672
-                        
672
+
673 673
                       </div>
674 674
                     </div>
675 675
                     <div
@@ -701,7 +701,7 @@
701 701
                      <span v-if="prescription.anticoagulant == 11">iu</span>
702 702
                      <span v-if="prescription.anticoagulant == 13">iu</span>
703 703
 
704
-                  
704
+
705 705
                     </div>
706 706
                     <div class="inline_block" style="margin-left: 20px">
707 707
                       维持:
@@ -805,9 +805,9 @@
805 805
                        <span v-if="prescription.anticoagulant == 10">iu</span>
806 806
                       <span v-if="prescription.anticoagulant == 11">iu</span>
807 807
                       <span v-if="prescription.anticoagulant == 13">iu</span>
808
-                   
808
+
809 809
                     </div>
810
-                    
810
+
811 811
                   </div>
812 812
 
813 813
                   <div class="row" style="padding: 2px 0; line-height: 23px">
@@ -937,7 +937,7 @@
937 937
                             >({{ advice.remark }})</span
938 938
                           >
939 939
                         </td>
940
-                       
940
+
941 941
                         <td height="32px">
942 942
                           <span v-if="advice!=null && advice.advice_doctor>0">
943 943
                               <span
@@ -979,7 +979,7 @@
979 979
                           <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
980 980
                         </td>
981 981
                       </tr>
982
-                  
982
+
983 983
                     </tbody>
984 984
                   </table>
985 985
                 </td>
@@ -1046,12 +1046,12 @@
1046 1046
                           {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : '0'  }}
1047 1047
                         </td>
1048 1048
                         <td>
1049
-                          {{ monitor.replacement_rate ? monitor.replacement_rate : '0' }} / 
1049
+                          {{ monitor.replacement_rate ? monitor.replacement_rate : '0' }} /
1050 1050
                           {{ monitor.displacement_quantity ? monitor.displacement_quantity : '0'  }}
1051 1051
                         </td>
1052 1052
                         <!-- 钠浓度(mmol/L)/温度°C -->
1053 1053
                         <td>
1054
-                          {{ monitor.sodium_concentration ? monitor.sodium_concentration : "0" }} / 
1054
+                          {{ monitor.sodium_concentration ? monitor.sodium_concentration : "0" }} /
1055 1055
                           {{ monitor.temperature ? monitor.temperature : '0' }}
1056 1056
                         </td>
1057 1057
 
@@ -1076,7 +1076,7 @@
1076 1076
                                 "
1077 1077
                                 >【开始透析】引血{{ dialysisOrder.blood_drawing }} ml/min
1078 1078
                                 </template>
1079
-                              
1079
+
1080 1080
                                 {{ monitor.dispose }} {{ monitor.end }}  &nbsp;
1081 1081
                               &nbsp;
1082 1082
                             </span>
@@ -1304,7 +1304,7 @@
1304 1304
                       透后宣教:
1305 1305
                       <div class="under_line" style="width: 70%; text-align: center">
1306 1306
                         {{ summary.mission ? summary.mission : '/' }}
1307
-                      </div>                     
1307
+                      </div>
1308 1308
                     </div>
1309 1309
                   </div>
1310 1310
 
@@ -1634,7 +1634,7 @@
1634 1634
         </div>
1635 1635
       </div>
1636 1636
     </div>
1637
-     
1637
+
1638 1638
   </div>
1639 1639
 </template>
1640 1640
 
@@ -1938,7 +1938,11 @@ export default {
1938 1938
         this.predialysis.diastolic_blood_pressure == 0
1939 1939
       ) {
1940 1940
         this.$message.error("透前血压未填完整");
1941
-      } else if (this.predialysis.symptom_before_dialysis == "") {
1941
+      }
1942
+      // else if (this.predialysis.dialysis_interphase == "") {
1943
+      //   this.$message.error("透析期间未填");
1944
+      // }
1945
+      else if (this.predialysis.symptom_before_dialysis == "") {
1942 1946
         this.$message.error("透前症状未填");
1943 1947
       } else if (this.predialysis.internal_fistula == "") {
1944 1948
         this.$message.error("透前内瘘未填");

+ 24 - 9
src/xt_pages/hospitalStation/listPrint.vue Visa fil

@@ -13,7 +13,8 @@
13 13
     </template>
14 14
 
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16
-       <printOne :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
16
+       <!-- <printOne :list="list" :patient="patient" :order="order" :admin="admin"></printOne> -->
17
+       <printthree :list="list" :patient="patient" :order="order" :admin="admin"></printthree>
17 18
 <!--      <printTwo :list="list" :patient="patient" :order="order" :admin="admin"></printTwo>-->
18 19
     </div>
19 20
   </div>
@@ -22,14 +23,16 @@
22 23
 <script>
23 24
   import printOne from './listTemplate/printOne'
24 25
   import printTwo from './listTemplate/printTwo'
26
+  import printthree from './listTemplate/printthree'
25 27
   import { getHisOrderDetail } from '@/api/his/his'
26 28
   import { uParseTime } from '@/utils/tools'
27
-
29
+  import print from "print-js";
28 30
   export default {
29 31
     name: 'listPrint',
30 32
     components: {
31 33
       printOne,
32
-      printTwo
34
+      printTwo,
35
+      printthree
33 36
     },
34 37
     props: {
35 38
       paramsObj: Object
@@ -63,13 +66,15 @@
63 66
             this.patient = response.data.data.patient
64 67
             this.admin = response.data.data.admin_info
65 68
 
66
-
69
+            console.log('response.data.data',response.data.data);
70
+            
67 71
             for (let i = 0; i < response.data.data.order_info.length; i++) {
68 72
               var infos = response.data.data.order_info[i]
69 73
               let obj = {
70 74
                 med_chrgitm_type: this.getType(infos.med_chrgitm_type),
71 75
                 price: infos.pric,
72
-                count: infos.cnt
76
+                count: infos.cnt,
77
+                selfpay_prop:infos.selfpay_prop,
73 78
               }
74 79
               console.log("-----1-------")
75 80
 
@@ -77,13 +82,21 @@
77 82
                 obj['p_time'] = this.getTimes(infos.project.prescription.ctime)
78 83
                 if(infos.project.type == 2){
79 84
                   obj['name'] = infos.project.project.project_name
85
+                  obj['code'] = infos.project.project.medical_code
86
+                  obj['spec'] = ''
87
+                  obj['unit'] =  infos.project.project.unit
88
+                  obj['is_total']= 0
89
+                  obj['start_time'] = infos.project.start_time
80 90
 
81 91
                 }else if (infos.project.type == 3){
82 92
                   obj['name'] = infos.project.good_info.good_name
83
-
93
+                  obj['code'] = infos.project.good_info.medical_insurance_number
94
+                  obj['unit'] = infos.project.good_info.packing_unit
95
+                  obj['is_total']= 0
96
+                  obj['start_time'] = infos.project.start_time
84 97
                 }
85
-                obj['spec'] = 1
86
-                obj['unit'] = infos.project.unit
98
+                // obj['spec'] = 1
99
+                // obj['unit'] = infos.project.unit
87 100
 
88 101
               }
89 102
               console.log("-----2-------")
@@ -93,7 +106,9 @@
93 106
                 obj['name'] = infos.advice.advice_name
94 107
                 obj['spec'] = infos.advice.drug.drug_spec
95 108
                 obj['unit'] = infos.advice.drug.max_unit
96
-
109
+                obj['code'] = infos.advice.drug.medical_insurance_number
110
+                obj['start_time'] = infos.advice.created_time
111
+                obj['spec'] =  infos.advice.drug.dose +  infos.advice.drug.dose_unit+"*" + infos.advice.drug.min_number +  infos.advice.drug.min_unit+"/"+infos.advice.drug.max_unit
97 112
               }
98 113
               console.log("~~~3~~~~~~")
99 114
 

+ 232 - 0
src/xt_pages/hospitalStation/listTemplate/printthree.vue Visa fil

@@ -0,0 +1,232 @@
1
+<template>
2
+  <div id="list-print" class="list-print">
3
+      <div style="page-break-after: always;">
4
+        <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用清单</div>
5
+        <div class="listInfo">
6
+            <div>患者姓名:{{patient.name}}</div>
7
+            <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
8
+            <div>身份证号:{{patient.id_card_no}}</div>
9
+            <div>年龄:{{patient.age}}  岁</div>
10
+            <!-- <div>开方日期:{{getTimes(order.settle_accounts_date) }}</div> -->
11
+        </div>
12
+        <div class="listInfo">
13
+            <div>结算类型:{{order.is_medicine_insurance == 1 ? "医保" : "自费"}}</div>
14
+            <div>就诊流水号:{{ order.mdtrt_id }}</div>
15
+            <div>透析号:{{patient.dialysis_no}}</div>
16
+            <div>发票号:{{order.fa_piao_number}}</div>
17
+        </div>
18
+        <div class="listInfo">
19
+            <div>总金额:{{ order.medfee_sumamt }}</div>
20
+            <div>个人支付金额:{{ order.psn_part_amt }}</div>
21
+            <div>基金支付金额:{{ order.fund_pay_sumamt }}</div>
22
+            <div>收费日期:{{getTimes(order.ctime)}}</div>
23
+        </div>
24
+        
25
+        <table class="listTable" style="text-align: center;">
26
+            <tr style="border-bottom: 1px solid black;">
27
+              <td style="width:12%">开方日期</td>
28
+              <td style="width:20%">医保编码</td>
29
+              <td style="width:20%">项目名称</td>
30
+              <td style="width:13%">规格</td>
31
+              <td style="width:5%">数量</td>
32
+              <td style="width:5%">单位</td>
33
+              <td style="width:8%">单价(元)</td>
34
+              <td style="width:8%">金额(元)</td>
35
+              <td style="width:10%">自付比例</td>
36
+            </tr>
37
+            <tr v-for="(item,index) in list" style="line-height: 30px;">
38
+                <!-- <template v-if="index == (list.length)-1">
39
+                    <tr style="border-bottom: 1px solid black;"></tr>
40
+                </template> -->
41
+                <td style="width:12%">{{getTimes(item.start_time)}}</td>
42
+                <td style="width:20%">{{item.code}}</td>
43
+                <td style="width:20%">{{item.name}}</td>
44
+                <td style="width:13%">{{item.spec}}</td>
45
+                <td style="width:5%" >
46
+                  <span v-if="item.code!=undefined">{{item.count}}</span>
47
+                </td>
48
+                <td style="width:5%" >{{item.unit}}</td>
49
+                <td style="width:7%">
50
+                  <span v-if="item.code!=undefined">{{(item.price*1).toFixed(2)}}</span>
51
+                </td>
52
+                <td style="width:7%">{{(item.price * item.count).toFixed(2)}}</td>
53
+                <td style="width:10%" v-if="item.code!=undefined">
54
+                  {{(item.selfpay_prop)*100}}
55
+                  <span v-if="item.selfpay_prop !=''">%</span>
56
+                </td>
57
+            </tr>
58
+        </table>
59
+        <div style="border-top: 1px solid black;">
60
+          <div style="text-align: right;">
61
+            合计金额:{{order.medfee_sumamt}}
62
+          </div>
63
+        </div>
64
+      </div>
65
+  </div>
66
+</template>
67
+
68
+<script>
69
+import { uParseTime } from '@/utils/tools'
70
+
71
+export default {
72
+  props: {
73
+    list: {
74
+      type: Array,
75
+      default: function () {
76
+        return [];
77
+      }
78
+    },
79
+    patient: {
80
+      type: Object,
81
+      default: function () {
82
+        return {};
83
+      }
84
+    }, order: {
85
+      type: Object,
86
+      default: function () {
87
+        return {};
88
+      }
89
+    }, admin: {
90
+      type: Object,
91
+      default: function () {
92
+        return {};
93
+      }
94
+    },
95
+  },
96
+  data(){
97
+      return{
98
+          page:1,
99
+          pageArr:[],
100
+          org_id:'',
101
+          list:[]
102
+      }
103
+  },
104
+  // mounted(){
105
+  //     this.getPage()
106
+  // },
107
+  methods:{
108
+    getMedicineInsuranceKind(type){
109
+      switch (type) {
110
+        case "01":
111
+          return '甲类';
112
+        case "02":
113
+          return '乙类';
114
+        case "03":
115
+          return '自费';
116
+          break;
117
+      }
118
+
119
+    },
120
+    getNowTime: function () {
121
+      let dateTime
122
+      let yy = new Date().getFullYear()
123
+      let mm = new Date().getMonth() + 1
124
+      let dd = new Date().getDate()
125
+      let hh = new Date().getHours()
126
+      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
127
+        :
128
+        new Date().getMinutes()
129
+      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
130
+        :
131
+        new Date().getSeconds()
132
+      dateTime = yy + '-' + mm + '-' + dd
133
+      return dateTime
134
+    },
135
+    getTimes(time) {
136
+      return uParseTime(time, '{y}-{m}-{d}')
137
+    },
138
+    getPage(){
139
+
140
+      if(this.list.length <= 17){
141
+          this.page = 1
142
+          this.pageArr.push(this.list.length)
143
+      }else if(this.list.length > 17){
144
+          this.page = parseInt(this.list.length / 17)
145
+          let num = this.list.length % 17
146
+          for (var i=0;i<this.page;i++){
147
+              this.pageArr.push(17)
148
+          }
149
+          if(num != 0){
150
+              this.pageArr.push(num)
151
+          }
152
+      }
153
+      console.log('this.pageArr',this.list);
154
+    },
155
+    getlist(){
156
+      // if(this.list.length <= 17){
157
+          this.page = 1
158
+          this.pageArr.push(this.list.length)
159
+          console.log('this.pageArr',this.pageArr);
160
+      // }else if(this.list.length > 17){
161
+      //     this.page = parseInt(this.list.length / 17)
162
+      //     let num = this.list.length % 17
163
+      //     for (var i=0;i<this.page;i++){
164
+      //         this.pageArr.push(17)
165
+      //     }
166
+      //     if(num != 0){
167
+      //         this.pageArr.push(num)
168
+      //     }
169
+      // }
170
+    }
171
+  },
172
+  created(){
173
+   
174
+    this.org_id = this.$store.getters.xt_user.org_id
175
+  },
176
+  watch:{
177
+      list: {
178
+          handler(newVal) {
179
+            // this.list = newVal
180
+              this.getPage()
181
+              // this.getlist()
182
+          },
183
+          deep: true
184
+      }
185
+  }
186
+
187
+}
188
+
189
+
190
+</script>
191
+
192
+<style lang="scss" scoped>
193
+.list-print{
194
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
195
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
196
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
197
+  margin-bottom: 20px;
198
+  padding:20px 10px;
199
+}
200
+.listTitle{
201
+  font-size: 24px;
202
+  text-align: center;
203
+  font-weight: bold;
204
+  margin-bottom: 10px;
205
+}
206
+.listInfo{
207
+  display: flex;
208
+  font-size: 16px;
209
+  justify-content: space-between;
210
+  margin: 10px 0;
211
+}
212
+.listTable{
213
+  width: 100%;
214
+  text-align: center;
215
+  border-collapse: collapse;
216
+  line-height: 20px;
217
+  font-size: 14px;
218
+  border-color: #000;
219
+  text-align: left;
220
+}
221
+.listTable tr td {
222
+  padding: 0 5px;
223
+}
224
+.tableBottom{
225
+  font-size: 12px;
226
+  display: flex;
227
+  margin-top: 20px;
228
+}
229
+.tableBottomOne{
230
+  margin-right: 20px;
231
+}
232
+</style>

+ 12 - 10
src/xt_pages/outpatientCharges/chargeDetailManagement.vue Visa fil

@@ -119,7 +119,7 @@
119 119
 
120 120
                       </el-tab-pane>
121 121
 
122
-                      <charge-month-prescription-table v-if="this.radio == 1"
122
+                      <charge-month-prescription-table v-loading="loading_two" v-if="this.radio == 1"
123 123
                                                        :prescription="curPrescriptions"></charge-month-prescription-table>
124 124
 
125 125
                     </el-tabs>
@@ -232,23 +232,18 @@
232 232
                       <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
233 233
                       <!--<month-prescription-table ref="prescription_tables"-->
234 234
                       <!--:activeType="activeType"  :prescription="curMonthPrescriptions"></month-prescription-table>-->
235
-                      <charge-month-prescription-table v-if="this.radio == 1"
235
+                      <charge-month-prescription-table v-loading="loading_two" v-if="this.radio == 1"
236 236
                                                        :prescription="curMonthPrescriptions"></charge-month-prescription-table>
237 237
 
238
-                      <settle-prescription-table v-if="this.radio == 2"
238
+                      <settle-prescription-table v-loading="loading_two"  v-if="this.radio == 2"
239 239
                                                  :prescription="curMonthPrescriptions"></settle-prescription-table>
240
-
241 240
                     </el-tabs>
242
-
243 241
                   </div>
244 242
                   <div class="costBox">
245 243
                     <span>当前处方总费用:<span style="color:red;">{{ month_total }}元</span></span>
246 244
                     <span>处方总价:<span style="color:red;">{{ all_month_total }}元</span></span>
247
-
248
-
249 245
                   </div>
250 246
                 </div>
251
-
252 247
               </div>
253 248
             </el-tab-pane>
254 249
           </el-tabs>
@@ -306,6 +301,7 @@ export default {
306 301
       dialogVisible:false,
307 302
       charge_type:1,
308 303
       isloading: false,
304
+      loading_two:false,
309 305
       isdisabled: false,
310 306
       register: [
311 307
         { value: 1, label: '门诊' },
@@ -822,7 +818,7 @@ export default {
822 818
           .catch(function(error) {
823 819
           })
824 820
       }
825
-    }, 
821
+    },
826 822
 
827 823
     changePatientInfo() {
828 824
       let params = {
@@ -894,6 +890,7 @@ export default {
894 890
       }
895 891
       getZuoBiaoPatientList(params).then(response => {
896 892
         if (response.data.state == 0) {
893
+
897 894
           this.$message.error(response.data.msg)
898 895
           return false
899 896
         } else {
@@ -1281,18 +1278,23 @@ export default {
1281 1278
         'is_upload': this.radio
1282 1279
       }
1283 1280
       this.loading = true
1281
+      this.loading_two = true
1284 1282
       getZuoBiaoPatientInfo(params).then(response => {
1285 1283
         if (response.data.state == 0) {
1286 1284
           this.loading = false
1285
+          this.loading_two = false
1286
+
1287 1287
           this.$message.error(response.data.msg)
1288 1288
           return false
1289 1289
         } else {
1290
+          this.loading_two = false
1291
+
1292
+          this.loading = false
1290 1293
 
1291 1294
           this.prescriptions = []
1292 1295
           this.month_prescriptions = []
1293 1296
           this.curPrescriptions = {}
1294 1297
           this.curMonthPrescriptions = {}
1295
-          this.loading = false
1296 1298
           this.hisPatientInfo = response.data.data.patient
1297 1299
           this.prescription_info = response.data.data.prescription_info
1298 1300
           this.sick_type = this.prescription_info.sick_type

+ 3 - 1
src/xt_pages/outpatientCharges/components/chargeDialog.vue Visa fil

@@ -334,7 +334,9 @@
334 334
       },getfapiaonumber(){
335 335
         getfapiaonumber().then((res) => {
336 336
           if (res.data.state == 1) {
337
-            this.form.fapiao_number = res.data.data.fapiao_number;
337
+            if(this.$store.getters.xt_user.org.id != 10644) {
338
+              this.form.fapiao_number = res.data.data.fapiao_number;
339
+            }
338 340
           }
339 341
         })
340 342
       },

+ 2 - 118
src/xt_pages/outpatientCharges/components/registerDialog.vue Visa fil

@@ -689,122 +689,6 @@
689 689
           'certificates':this.form.certificates,
690 690
         }
691 691
 
692
-        if ((this.$store.getters.xt_user.org_id == 10387 && this.form.id_card_type ==  4) || (this.$store.getters.xt_user.org_id == 4 && this.form.id_card_type ==  4)) {
693
-          try {
694
-            //检测当前浏览器是否支持websocket模式
695
-            window.WebSocket = window.WebSocket || window.MozWebSocket;
696
-            if (!window.WebSocket){
697
-              alert("WebSocket not supported by this browser");
698
-              return;
699
-            }
700
-            this.ws = new WebSocket("ws://127.0.0.1:8899");//连接服务器
701
-            var that = this
702
-            this.ws.onopen = function(event){
703
-              if (that.$store.getters.xt_user.org_id == 10387){
704
-                that.ws.send("{\"url\":\"http://10.93.33.243:20001/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01101\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"罗佳菊\",\"orgId\":\"H43082200408\"},\"orgId\":\"H43082200408\",\"transType\":\"ec.query\"}}");
705
-              }else if(that.$store.getters.xt_user.org_id == 10318){
706
-                that.ws.send("{\"url\":\"http://igb.hsa.gdgov.cn/prd_nation_eccode/prd_eccode/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01101\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"邹刘阳\",\"orgId\":\"H44011701749\"},\"orgId\":\"H44011701749\",\"transType\":\"ec.query\"}}");
707
-              }else if(that.$store.getters.xt_user.org_id == 4){
708
-                that.ws.send("{\"url\":\"http://igb.hsa.gdgov.cn/prd_nation_eccode/prd_eccode/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01101\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"邹刘阳\",\"orgId\":\"H44011701749\"},\"orgId\":\"H44011701749\",\"transType\":\"ec.query\"}}");
709
-              }
710
-            };
711
-
712
-            this.ws.onmessage = function(event){
713
-              // alert("接收到服务器发送的数据:\r\n"+event.data);
714
-              var newParams =  JSON.parse(event.data)
715
-              console.log(newParams)
716
-              console.log(newParams.data)
717
-              console.log(newParams.data)
718
-              console.log(newParams.data.ecToken)
719
-              console.log(newParams.data.idNo)
720
-              console.log(newParams.data.userName)
721
-              console.log(newParams.data.insuOrg)
722
-
723
-              newParams['ecToken'] = newParams.data.ecToken
724
-              newParams['idNo'] = newParams.data.idNo
725
-              newParams['userName'] = newParams.data.userName
726
-              newParams['insuOrg'] = newParams.data.insuOrg
727
-
728
-              newParams['id_card_type'] =  that.form.id_card_type
729
-              newParams['admin_user_id'] = that.$store.getters.xt_user.user.id
730
-              newParams['certificates'] = that.form.certificates
731
-              axios.get('http://127.0.0.1:9532/api/readcard', {
732
-                params: newParams
733
-              })
734
-                .then(function(response) {
735
-                  if (response.data.state == 0) {
736
-                    that.$message.error(response.data.msg)
737
-                    return false
738
-                  } else {
739
-
740
-                    if (response.data.data.failed_code == -10) {
741
-                      that.$confirm(response.data.data.msg, '医保错误信息', {
742
-                        confirmButtonText: '确 定',
743
-                        type: 'warning'
744
-                      }).then(() => {
745
-
746
-                      }).catch(() => {
747
-                      })
748
-                    } else {
749
-
750
-                      var patient = response.data.data.patient
751
-
752
-                      if (that.form.id_card_type == 1) {
753
-                        that.form.id = patient.id
754
-                        that.form.name = patient.name
755
-                        that.form.gender = patient.gender
756
-                        that.form.age = patient.age
757
-                        that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
758
-                        that.form.phone = patient.phone
759
-                        that.form.id_card = patient.id_card_no
760
-                        that.form.medical_insurance_card = response.data.data.number
761
-                        that.form.social_type = parseInt(response.data.data.insutype)
762
-
763
-
764
-
765
-                      } else if (that.form.id_card_type == 2) {
766
-                        that.form.id = patient.id
767
-                        that.form.name = patient.name
768
-                        that.form.gender = patient.gender
769
-                        that.form.age = patient.age
770
-                        that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
771
-                        that.form.phone = patient.phone
772
-                        that.form.id_card = patient.id_card_no
773
-                        that.form.social_type = parseInt(response.data.data.insutype)
774
-
775
-                      } else {
776
-                        that.form.id = patient.id
777
-                        that.form.name = patient.name
778
-                        that.form.gender = patient.gender
779
-                        that.form.age = patient.age
780
-                        that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
781
-                        that.form.phone = patient.phone
782
-                        that.form.id_card = patient.id_card_no
783
-                        that.form.social_type = parseInt(response.data.data.insutype)
784
-
785
-                      }
786
-                      that.$message({ message: '读卡成功', type: 'success' })
787
-                    }
788
-                  }
789
-                })
790
-                .catch(function(error) {
791
-
792
-                })
793
-
794
-
795
-            };
796
-            this.ws.onclose = function(event){
797
-              // alert("已经与服务器断开连接\r\n当前连接状态:"+this.readyState);
798
-            };
799
-            this.ws.onerror = function(event){
800
-              // if (this.flag!=1)
801
-              // alert("WebSocket接收异常!");
802
-            };
803
-          } catch (ex) {
804
-            alert(ex.message);
805
-          }
806
-
807
-        }else{
808 692
           axios.get('http://127.0.0.1:9532/api/readcard', {
809 693
             params: params
810 694
           })
@@ -869,8 +753,7 @@
869 753
             .catch(function(error) {
870 754
 
871 755
             })
872
-        }
873
-      },
756
+        },
874 757
       // reading() {
875 758
       //   var that = this
876 759
       //   if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
@@ -1045,6 +928,7 @@
1045 928
       }
1046 929
     }
1047 930
 
931
+
1048 932
   }
1049 933
 </script>
1050 934
 

+ 12 - 6
src/xt_pages/workforce/components/editTableData.vue Visa fil

@@ -4194,14 +4194,14 @@ export default {
4194 4194
             ) {
4195 4195
               return "hover-td schedule-table-cell-disable";
4196 4196
             }
4197
-            // if(column.label == '晚'){
4198
-            //   return 'evening_border schedule-table-cell-disable'
4199
-            // }
4197
+            if(row.cut.indexOf('滤')>-1 && columnIndex!=1 &&columnIndex!=23&&columnIndex!=0){
4198
+              return 'thefilter schedule-table-cell-disable'
4199
+            }
4200 4200
             return "schedule-table-cell-disable";
4201 4201
           } else {
4202
-            // if(column.label == '晚' ){
4203
-            //     return 'evening_border'
4204
-            // }
4202
+            if(row.cut.indexOf('滤')>-1 && columnIndex!=1 &&columnIndex!=23&&columnIndex!=0){
4203
+              return 'thefilter'
4204
+            }
4205 4205
             if (
4206 4206
                 row[column.property].patient_id > 0 &&
4207 4207
                 row[column.property].patient_id == this.patient_id_hover
@@ -6274,6 +6274,12 @@ textarea{
6274 6274
 .infectious {
6275 6275
   color: red !important;
6276 6276
 }
6277
+.backPurple{
6278
+  color: #f32424 !important;
6279
+}
6280
+.thefilter{
6281
+  color: #93d104 !important;
6282
+}
6277 6283
 // .border_bott{
6278 6284
 //   border-left: 1px solid aqua !important;
6279 6285
 //   border-right: 1px solid aqua !important;

+ 21 - 15
src/xt_pages/workforce/components/tableData.vue Visa fil

@@ -1395,19 +1395,17 @@ export default {
1395 1395
      },
1396 1396
     //  单元格样式的回调
1397 1397
     cellClass({ row, column, rowIndex, columnIndex }) {
1398
-      // if(row[column.property].patient_id>0){
1399
-      //   console.log('qqqqq',row[column.property])
1400
-      // }
1401
-
1398
+      
1399
+      
1402 1400
       // console.log('wwwww',column)
1403 1401
       // console.log('eeeee',rowIndex)
1404 1402
       // console.log('rrrrr',columnIndex)
1405 1403
       if(columnIndex==1&&row.zone_type!=1){
1406 1404
         return "table-row-new-class schedule-table-row Infectious_disease";
1407 1405
       }
1408
-      if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1409
-        return 'backPurple'
1410
-      }
1406
+      // if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1407
+      //   return 'backPurple table-row-new-class schedule-table-row'
1408
+      // }
1411 1409
       // 机号蓝线
1412 1410
       // if(columnIndex==1 ){
1413 1411
       //   return 'border_bott '
@@ -1436,17 +1434,22 @@ export default {
1436 1434
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1437 1435
               return 'hover-td schedule-table-cell-disable'
1438 1436
             }
1439
-            //  if(column.label == '晚'){
1440
-            //    return 'evening_border schedule-table-cell-disable'
1441
-            //  }
1437
+            if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1438
+              return 'backPurple schedule-table-cell-disable'
1439
+            }
1440
+            if(row.cut.indexOf('滤')>-1 && columnIndex!=1 &&columnIndex!=23&&columnIndex!=0){
1441
+              return 'thefilter schedule-table-cell-disable'
1442
+            }
1442 1443
             return "schedule-table-cell-disable";
1443 1444
           }else{
1444
-            // 分日期
1445
-            // if(column.label == '晚' ){
1446
-            //     return 'evening_border'
1447
-            // }
1445
+            if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1446
+              return 'backPurple'
1447
+            }
1448
+            if(row.cut.indexOf('滤')>-1 && columnIndex!=1 &&columnIndex!=23&&columnIndex!=0){
1449
+              return 'thefilter'
1450
+            }
1448 1451
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1449
-              return 'hover-td '
1452
+              return 'hover-td schedule-table-cell-disable'
1450 1453
             }else {
1451 1454
               return ''
1452 1455
             }
@@ -4411,6 +4414,9 @@ textarea{
4411 4414
 .backPurple{
4412 4415
   color: #f32424 !important;
4413 4416
 }
4417
+.thefilter{
4418
+  color: #93d104 !important;
4419
+}
4414 4420
 .eldialog{
4415 4421
   .el-dialog__headerbtn {
4416 4422
     // position: absolute;