Browse Source

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

XMLWAN 2 years ago
parent
commit
cea72f7312

+ 10 - 0
src/api/his/his.js View File

@@ -715,3 +715,13 @@ export function getAllOrders(params) {
715 715
     params: params
716 716
   })
717 717
 }
718
+
719
+
720
+
721
+export function exportOrderInfo() {
722
+  return request({
723
+    url: "/handleorderinfo",
724
+    method: "get",
725
+  });
726
+}
727
+

+ 8 - 0
src/api/his/his_export.js View File

@@ -16,3 +16,11 @@ export function handleData10318(params) {
16 16
   })
17 17
 }
18 18
 
19
+export function handleData10138Two(params) {
20
+  return request({
21
+    url: "/hande10138",
22
+    method: "get",
23
+    params:params,
24
+  });
25
+}
26
+

+ 4 - 0
src/api/his/his_hospital.js View File

@@ -1,4 +1,5 @@
1 1
 import request from "@/utils/request";
2
+import {getAllOrders} from "./his";
2 3
 
3 4
 
4 5
 
@@ -33,3 +34,6 @@ export function exportData(params) {
33 34
 
34 35
 
35 36
 
37
+
38
+
39
+

+ 19 - 0
src/api/schedule.js View File

@@ -279,6 +279,25 @@ export function CancelScheduleTwo(id) {
279 279
   })
280 280
 }
281 281
 
282
+export function getScheduleConfig() {
283
+  return request({
284
+    url: '/api/schedule/config/get',
285
+    method: 'Get'
286
+  })
287
+}
288
+
289
+export function  postScheduleConfig(params) {
290
+  return request({
291
+    url: '/api/schedule/config/commit',
292
+    method: 'Post',
293
+    params: params
294
+
295
+  })
296
+}
297
+
298
+
299
+
300
+
282 301
 
283 302
 
284 303
 

+ 19 - 1
src/xt_pages/Pharmacy/DrugDispensing.vue View File

@@ -1091,7 +1091,25 @@ export default {
1091 1091
       };
1092 1092
       getpatientswithdrugs(params).then((res) => {
1093 1093
         if (res.data.state == 1) {
1094
-          this.tableData = res.data.data.list; //列表数据
1094
+          var list = res.data.data.list; //列表数据
1095
+
1096
+          if(this.$store.getters.xt_user.org.id == 0 || this.$store.getters.xt_user.org.id == 10217 ){
1097
+            this.tableData = []
1098
+            if(list!=null && list.length >0){
1099
+              for(let i=0;i<list.length;i++){
1100
+                if(list[i].data_sources != "临时医嘱"){
1101
+                  this.tableData.push(list[i])
1102
+                }
1103
+              }
1104
+            }
1105
+
1106
+          }
1107
+          if(this.$store.getters.xt_user.org.id != 0 && this.$store.getters.xt_user.org.id != 10217){
1108
+            this.tableData = []
1109
+            this.tableData = list
1110
+          }
1111
+         
1112
+         
1095 1113
           this.total = res.data.data.total; //合计
1096 1114
         } else {
1097 1115
           this.$message.error(res.data.msg);

+ 17 - 1
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -522,7 +522,23 @@ export default {
522 522
       };
523 523
       getpharmacycontent(params).then((res) => {
524 524
         if (res.data.state == 1) {
525
-          this.tableData = res.data.data.list;
525
+           var list = res.data.data.list;
526
+           console.log("hhhhawoowowow",list)
527
+          if(this.$store.getters.xt_user.org.id == 0 || this.$store.getters.xt_user.org.id == 10217 ){
528
+            this.tableData = []
529
+            if(list!=null && list.length >0){
530
+              for(let i=0;i<list.length;i++){
531
+                if(list[i].DataSources != "临时医嘱"){
532
+                  this.tableData.push(list[i])
533
+                }
534
+              }
535
+            }
536
+
537
+          }
538
+          if(this.$store.getters.xt_user.org.id != 0 && this.$store.getters.xt_user.org.id != 10217){
539
+            this.tableData = []
540
+            this.tableData = list
541
+          }
526 542
         } else {
527 543
           this.$message.error(res.data.msg);
528 544
         }

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue View File

@@ -1358,8 +1358,8 @@
1358 1358
                               >* {{ advice[0].prescribing_number
1359 1359
                               }}{{ advice[0].prescribing_number_unit }}</span
1360 1360
                             >
1361
-                            <span v-if="advice[0].single_dose != 0"
1362
-                              >{{ advice[0].single_dose
1361
+                            <span v-if="advice[0].single_dose != 0"> 
1362
+                             <span v-if="advice[0].single_dose >0"> 单次用量 </span>{{ advice[0].single_dose
1363 1363
                               }}{{ advice[0].single_dose_unit }}</span
1364 1364
                             >
1365 1365
                             <span>{{ advice[0].delivery_way }}</span>

+ 8 - 5
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -1408,11 +1408,11 @@ export default {
1408 1408
         this.getTemplateInfo();
1409 1409
       }else {
1410 1410
         var start_month = moment().startOf('month').format('YYYY-MM-DD')
1411
-        var start_time = this.getTimestamp(start_month)
1411
+        var start_time = this.getTimestamp(start_month) 
1412 1412
         this.listQuery.start_time = start_time
1413 1413
         var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1414 1414
         var end_time = this.getTimestamp(end_month)
1415
-        this.listQuery.end_time = end_time
1415
+        this.listQuery.end_time = end_time 
1416 1416
         this.getSchedualPatientList()
1417 1417
       
1418 1418
         this.getAllZone();
@@ -1435,7 +1435,8 @@ export default {
1435 1435
       var date = new Date(nowDate + " 00:00:00");
1436 1436
       this.listQuery.schedul_time = date.getTime();
1437 1437
       var start_month = moment().startOf('month').format('YYYY-MM-DD')
1438
-      var start_time = this.getTimestamp(start_month)
1438
+      var start_time = this.getTimestamp(start_month) 
1439
+      console.log("stat_time-------",start_time)
1439 1440
       this.listQuery.start_time = start_time
1440 1441
       var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1441 1442
       var end_time = this.getTimestamp(end_month)
@@ -1513,7 +1514,7 @@ export default {
1513 1514
     },
1514 1515
     getTimestamp(time) { //把时间日期转成时间戳
1515 1516
 
1516
-      return (new Date(time)).getTime()
1517
+      return (new Date(time)).getTime() - 28800000
1517 1518
     },
1518 1519
     getTimestampOne(time) { //把时间日期转成时间戳
1519 1520
 
@@ -1529,7 +1530,9 @@ export default {
1529 1530
         this.listQuery.schedul_time = "";
1530 1531
 
1531 1532
       }
1532
-      console.log("params332322332323232",this.listQuery)
1533
+    
1534
+      
1535
+      console.log("params332322332323232",this.listQuery.start_time)
1533 1536
       this.SchedualPatientsTableData = [];
1534 1537
       getSchedualPatient(this.listQuery).then(response => {
1535 1538
 

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue View File

@@ -1241,9 +1241,9 @@
1241 1241
                 &nbsp;&nbsp; {{ advice.prescribing_number
1242 1242
                 }}{{ advice.prescribing_number_unit }}
1243 1243
               </span>
1244
-              <span v-if="advice.single_dose != 0"
1245
-                >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span
1246
-              >
1244
+              <span v-if="advice.single_dose != 0"> 
1245
+               <span v-if="advice.single_dose >0">单次用量 </span>  
1246
+                {{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
1247 1247
               <span v-if="advice.parent_id == 0">{{
1248 1248
                 advice.delivery_way
1249 1249
               }}</span>

+ 35 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue View File

@@ -1856,20 +1856,42 @@ export default {
1856 1856
       }
1857 1857
       return "";
1858 1858
     },
1859
+    // getAge: function(val) {
1860
+    //   if (
1861
+    //     this.org_template_info.template_id == 2 ||
1862
+    //     this.org_template_info.template_id == 0
1863
+    //   ) {
1864
+    //     if (val.age == 0) {
1865
+    //       return jsGetAge(val.birth, "-");
1866
+    //     } else {
1867
+    //       return val.age;
1868
+    //     }
1869
+    //   } else {
1870
+    //     return jsGetAge(val.birth, "-");
1871
+    //   }
1872
+    // },
1859 1873
     getAge: function(val) {
1860
-      if (
1861
-        this.org_template_info.template_id == 2 ||
1862
-        this.org_template_info.template_id == 0
1863
-      ) {
1864
-        if (val.age == 0) {
1865
-          return jsGetAge(val.birth, "-");
1866
-        } else {
1867
-          return val.age;
1868
-        }
1869
-      } else {
1870
-        return jsGetAge(val.birth, "-");
1871
-      }
1872
-    },
1874
+     
1875
+     if (val.id_card_no) {
1876
+       var thisLen = val.id_card_no.length
1877
+
1878
+       var birth = ''
1879
+       if (thisLen == 15) {
1880
+         birth = '19' + val.id_card_no.substr(6, 6)
1881
+       } else {
1882
+         birth = val.id_card_no.substr(6, 8)
1883
+       }
1884
+       var birthtwo =
1885
+         birth.substr(0, 4) +
1886
+         '-' +
1887
+         birth.substr(4, 2) +
1888
+         '-' +
1889
+         birth.substr(6, 2)
1890
+
1891
+       var age = jsGetAge(birthtwo, '-')
1892
+       return age
1893
+     }
1894
+   },
1873 1895
     newAdviceGroupObject: function() {
1874 1896
       return Object.assign(
1875 1897
         {},

+ 24 - 8
src/xt_pages/hospitalStation/template/printOne.vue View File

@@ -30,7 +30,7 @@
30 30
           <div style="margin-bottom: 10px">
31 31
             科室:{{ item.info ? getDepart(item.info.departments) : "" }}
32 32
           </div>
33
-          <div style="margin-bottom: 10px">医保卡号:{{psn_info&&psn_info.card_info?psn_info.card_info.split("|")[2]:""}}</div>
33
+          <div style="margin-bottom: 10px">医保卡号:{{hisPatient.psn_no?hisPatient.psn_no:""}}</div>
34 34
           <div style="margin-bottom: 10px">电话:{{ item.patient.phone }}</div>
35 35
           <div>地址:{{ item.patient.home_address }}</div>
36 36
           <div style="display: flex; width: 50%">
@@ -116,16 +116,14 @@
116 116
             医师:
117 117
             <span
118 118
               style="width: 100px; display: inline-block"
119
-              v-if="setAdminUserES(item.creater) == ''"
120 119
             >
121 120
               {{ item.doctor }}
122 121
             </span>
123 122
             <img
124 123
               style="height: 30px"
125
-              :src="setAdminUserES(item.creater)"
124
+              :src="setAdminUserES(item.creator)"
126 125
               alt=""
127 126
               srcset=""
128
-              v-else
129 127
             />
130 128
           </p>
131 129
           <p>
@@ -192,6 +190,7 @@ export default {
192 190
   methods: {
193 191
     // 电子签名
194 192
     setAdminUserES(id) {
193
+      console.log(id)
195 194
       if (id == 0) {
196 195
         return "";
197 196
       }
@@ -263,16 +262,33 @@ export default {
263 262
           console.log("adviceprint9999", advicePrint);
264 263
           this.advicePrint = advicePrint;
265 264
           this.prescriptions = advicePrint;
266
-          if (this.advicePrint.length > 0) {
267
-            var operatorsLen = this.advicePrint.length;
265
+          // if (this.advicePrint.length > 0) {
266
+          //   var operatorsLen = this.advicePrint.length;
267
+          //   for (var index = 0; index < operatorsLen; index++) {
268
+          //     this.$set(
269
+          //       this.operatorMaps,
270
+          //       this.operators[index].creator,
271
+          //       this.operators[index]
272
+          //     );
273
+          //   }
274
+          // }
275
+          this.doctorList_1 = response.data.data.eles;
276
+          if (this.doctorList_1.length > 0) {
277
+            var operatorsLen = this.doctorList_1.length;
268 278
             for (var index = 0; index < operatorsLen; index++) {
269 279
               this.$set(
270 280
                 this.operatorMaps,
271
-                this.operators[index].creator,
272
-                this.operators[index]
281
+                this.doctorList_1[index].creator,
282
+                this.doctorList_1[index]
273 283
               );
274 284
             }
275 285
           }
286
+          console.log("11111", this.operatorMaps);
287
+
288
+
289
+
290
+
291
+
276 292
           this.hisPatient = response.data.data.hisHospitalRecord;
277 293
           var projectlist = response.data.data.projectlist;
278 294
           console.log("所有项目列表", projectlist);

+ 318 - 0
src/xt_pages/outpatientCharges/listTemplate/listPrintThree.vue View File

@@ -0,0 +1,318 @@
1
+<template>
2
+  <div id="allList-print" class="allList-print">
3
+    <table
4
+      class="listTable"
5
+      border="0"
6
+      cellspacing="0"
7
+      style="font-size: 14px"
8
+      align="center"
9
+    >
10
+      <THEAD
11
+        style="
12
+          display: table-header-group;
13
+          font-weight: bold;
14
+        "
15
+      >
16
+      <TR>
17
+        <TD colspan="3" align="center" style="font-size: 20px">
18
+          {{ $store.getters.xt_user.org.org_name }}费用清单
19
+        </TD>
20
+      </TR>
21
+      <TR>
22
+        <TD colspan="1">患者姓名:{{ patient.name }}</TD>
23
+        <TD>性别:{{ patient.gender == 1 ? "男" : "女" }}</TD>
24
+<!--        <TD>年龄:{{ // getAge(patient.id_card_no)?getAge(patient.id_card_no)+'岁':''}}</TD>-->
25
+        <TD
26
+        >结算类型:{{
27
+            order.is_medicine_insurance == 1 ? "医保" : "自费"
28
+          }}</TD
29
+        >
30
+      </TR>
31
+      <TR>
32
+        <TD> 住院/门诊号:{{ order.mdtrt_id }} </TD>
33
+        <TD>科室:血透 </TD>
34
+        <TD>就诊流水号:{{ order.mdtrt_id }}</TD>
35
+      </TR>
36
+      <TR>
37
+        <TD> 总费用:{{ order.medfee_sumamt }} </TD>
38
+        <TD>个人支付:{{ order.psn_part_amt }} </TD>
39
+        <TD>基金支付记账:{{ order.fund_pay_sumamt }}</TD>
40
+      </TR>
41
+      <TR>
42
+        <TD>补充医疗支付记账:0.00</TD>
43
+        <TD>救助支付金额:{{ order.maf_pay }}</TD>
44
+        <TD></TD>
45
+      </TR>
46
+      </THEAD>
47
+
48
+      <TBODY style="text-align: center">
49
+      <TR>
50
+        <TD colspan="3">
51
+          <Table class="allListTable" border="1">
52
+            <TR>
53
+              <TD style="width: 5%">序号</TD>
54
+              <TD style="width: 15%">处方日期</TD>
55
+              <TD style="width: 10%">费用编号</TD>
56
+              <TD style="width: 40%">费用名称</TD>
57
+              <TD style="width: 5%">单位</TD>
58
+              <TD style="width: 5%">数量</TD>
59
+              <TD style="width: 10%">单价</TD>
60
+              <TD style="width: 10%">金额</TD>
61
+            </TR>
62
+            <template v-for="(item, index) in list">
63
+              <tr v-if="item.is_total == 0">
64
+                <td style="width: 5%">{{ index + 1 }}</td>
65
+                <td style="width: 15%">{{ item.p_time }}</td>
66
+                <td style="width: 10%">
67
+                  {{ item.feedetl_sn.split("-")[2] }}
68
+                </td>
69
+                <td style="width: 30%; white-space: nowrap; overflow: hidden">
70
+                  {{ item.name }}{{ item.spec }}
71
+                </td>
72
+                <td style="width: 5%">{{ item.unit }}</td>
73
+                <td style="width: 5%; text-align: right">{{ item.count }}</td>
74
+                <td style="width: 10%; text-align: right">
75
+                  {{ item.price }}
76
+                </td>
77
+                <td style="width: 10%; text-align: right">
78
+                  {{ (item.price * item.count).toFixed(2) }}
79
+                </td>
80
+              </tr>
81
+              <tr v-if="item.is_total == 1">
82
+                <td style="width: 5%"></td>
83
+                <td style="width: 15%"></td>
84
+                <td style="width: 10%"></td>
85
+                <td style="width: 30%; white-space: nowrap; overflow: hidden">
86
+                  {{ item.name }}
87
+                </td>
88
+                <td style="width: 5%"></td>
89
+                <td style="width: 5%"></td>
90
+                <td style="width: 10%; text-align: right"></td>
91
+                <td style="width: 10%; text-align: right">
92
+                  {{ item.price }}
93
+                </td>
94
+              </tr>
95
+            </template>
96
+          </Table>
97
+        </TD>
98
+      </TR>
99
+      </TBODY>
100
+    </table>
101
+    <!-- <div class="allListTitle">
102
+
103
+    </div> -->
104
+    <!-- <div class="allListInfo">
105
+      <div style="text-align: left">患者姓名:{{ patient.name }}</div>
106
+      <div style="text-align: left; padding-left: -20px">
107
+        性别:{{ patient.gender == 1 ? "男" : "女" }}
108
+      </div>
109
+      <div style="text-align: left">
110
+        结算类型:{{ order.is_medicine_insurance == 1 ? "医保" : "自费" }}
111
+      </div>
112
+    </div>
113
+
114
+     <div class="allListInfo">
115
+      <div style="text-align: left">住院/门诊号:{{ order.mdtrt_id }}</div>
116
+      <div style="text-align: left">科室:血透</div>
117
+      <div style="text-align: left">就诊流水号:{{ order.mdtrt_id }}</div>
118
+    </div>
119
+
120
+    <div class="allListInfo">
121
+      <div style="text-align: left">总费用:{{ order.medfee_sumamt }}</div>
122
+      <div style="text-align: left">个人支付:{{ order.psn_part_amt }}</div>
123
+      <div style="text-align: left">
124
+        基金支付记账:{{ order.fund_pay_sumamt }}
125
+      </div>
126
+    </div>
127
+
128
+    <div class="allListInfo">
129
+      <div style="text-align: left">补充医疗支付记账:0.00</div>
130
+      <div style="text-align: left">救助支付金额:{{ order.maf_pay }}</div>
131
+      <div></div>
132
+    </div>-->
133
+  </div>
134
+</template>
135
+
136
+<script>
137
+import { uParseTime } from "@/utils/tools";
138
+
139
+export default {
140
+  props: {
141
+    list: {
142
+      type: Array,
143
+      default: function () {
144
+        return [];
145
+      },
146
+    },
147
+    patient: {
148
+      type: Object,
149
+      default: function () {
150
+        return {};
151
+      },
152
+    },
153
+    order: {
154
+      type: Object,
155
+      default: function () {
156
+        return {};
157
+      },
158
+    },
159
+    admin: {
160
+      type: Object,
161
+      default: function () {
162
+        return {};
163
+      },
164
+    },
165
+    hospital: {
166
+      type: Object,
167
+      default: function () {
168
+        return {};
169
+      },
170
+    },
171
+  },
172
+  data() {
173
+    return {
174
+      page: 1,
175
+      pageArr: [],
176
+    };
177
+  },
178
+  methods: {
179
+    getAge(val){
180
+      var thisLen = val.length;
181
+      var birth = "";
182
+      if (thisLen == 15) {
183
+        birth = "19" + val.substr(6, 6);
184
+      } else {
185
+        birth = val.substr(6, 8);
186
+      }
187
+      var birthTwo =
188
+        birth.substr(0, 4) +
189
+        "-" +
190
+        birth.substr(4, 2) +
191
+        "-" +
192
+        birth.substr(6, 2);
193
+      var age = this.jsGetAge(birthTwo, "-");
194
+      return age;
195
+    },
196
+
197
+    getNowTime: function () {
198
+      let dateTime;
199
+      let yy = new Date().getFullYear();
200
+      let mm = new Date().getMonth() + 1;
201
+      let dd = new Date().getDate();
202
+      let hh = new Date().getHours();
203
+      let mf =
204
+        new Date().getMinutes() < 10
205
+          ? "0" + new Date().getMinutes()
206
+          : new Date().getMinutes();
207
+      let ss =
208
+        new Date().getSeconds() < 10
209
+          ? "0" + new Date().getSeconds()
210
+          : new Date().getSeconds();
211
+      dateTime = yy + "-" + mm + "-" + dd + " " + hh + ":" + mf + ":" + ss;
212
+      return dateTime;
213
+    },
214
+    getTimes(time) {
215
+      return uParseTime(time, "{y}-{m}-{d}");
216
+    },
217
+    getTotal: function (items) {
218
+      let total = 0;
219
+      for (let i = 0; i < items.length; i++) {
220
+        total = total + (items[i].count * items[i].price).toFixed(2);
221
+      }
222
+      return total;
223
+    },
224
+  },
225
+  watch: {
226
+    list: {
227
+      handler(newVal) {
228
+        // this.getPage()
229
+      },
230
+      deep: true,
231
+    },
232
+  },
233
+};
234
+</script>
235
+
236
+<style lang="scss" scoped>
237
+.allList-print {
238
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
239
+  0 0 60px rgba(0, 0, 0, 0.06) inset;
240
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
241
+  0 0 40px rgba(0, 0, 0, 0.06) inset;
242
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
243
+  margin-bottom: 20px;
244
+  padding: 20px 10px;
245
+}
246
+
247
+.allListTitle {
248
+  font-size: 24px;
249
+  text-align: center;
250
+  font-weight: bold;
251
+  margin-bottom: 10px;
252
+}
253
+
254
+.allListInfo {
255
+  display: flex;
256
+  font-size: 16px;
257
+  justify-content: space-between;
258
+  margin: 10px 0;
259
+}
260
+
261
+.allListInfo div {
262
+  min-width: 200px;
263
+}
264
+
265
+.allListTable {
266
+  width: 100%;
267
+  text-align: center;
268
+  border-collapse: collapse;
269
+  line-height: 20px;
270
+  font-size: 14px;
271
+  border-color: #000;
272
+  text-align: left;
273
+}
274
+
275
+.allListTable tr td {
276
+  padding: 0 5px;
277
+}
278
+
279
+.tableBottom {
280
+  font-size: 16px;
281
+  display: flex;
282
+  margin-top: 20px;
283
+}
284
+
285
+.tableBottomOne {
286
+  margin-right: 40px;
287
+}
288
+
289
+.listTable {
290
+  width: 100%;
291
+  text-align: center;
292
+  border-collapse: collapse;
293
+  line-height: 40px;
294
+  font-size: 14px;
295
+  border-color: #000;
296
+  text-align: left;
297
+}
298
+.listTable thead {
299
+  width: 100%;
300
+  text-align: center;
301
+  border-collapse: collapse;
302
+  line-height: 40px;
303
+  font-size: 14px;
304
+  border-color: #000;
305
+  text-align: left;
306
+}
307
+.listTable thead tr td {
308
+  padding: 0 5px;
309
+}
310
+.tableBottom {
311
+  font-size: 16px;
312
+  display: flex;
313
+  margin-top: 20px;
314
+}
315
+.tableBottomOne {
316
+  margin-right: 40px;
317
+}
318
+</style>

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -2998,7 +2998,7 @@ export default {
2998 2998
         }
2999 2999
 
3000 3000
         if (this.hisPatientInfo.id_card_type == 1) {
3001
-          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318) {
3001
+          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210) {
3002 3002
             this.pwdFormVisible = true
3003 3003
             this.pwd = ''
3004 3004
           } else {

+ 726 - 0
src/xt_pages/outpatientCharges/statementListPrint.vue View File

@@ -0,0 +1,726 @@
1
+<template>
2
+  <div>
3
+    <template>
4
+      <el-button
5
+        style="position: fixed; right: 25px; z-index: 999"
6
+        :loading="loading"
7
+        size="small"
8
+        icon="el-icon-printer"
9
+        @click="printThisPage"
10
+        type="primary"
11
+      >打印
12
+      </el-button
13
+      >
14
+    </template>
15
+
16
+    <div class="dialysisPage" style="padding-top: 40px">
17
+      <printFive
18
+        :info="info"
19
+        :paramsObj="paramsObj"
20
+        :balanceAccounts="balanceAccounts"
21
+      ></printFive>
22
+    </div>
23
+  </div>
24
+</template>
25
+
26
+<script>
27
+import {uParseTime} from "@/utils/tools";
28
+import axios from "axios";
29
+import print from "print-js";
30
+
31
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
32
+import printOne from "./statementTemplate/printOne";
33
+import privateChargePrint from "./statementTemplate/privateChargePrint";
34
+
35
+import printTwo from "./statementTemplate/printTwo";
36
+import printThree from "./statementTemplate/printThree";
37
+import printFour from "./statementTemplate/printFour";
38
+import printFive from "./statementTemplate/printFive";
39
+import testVue from "./statementTemplate/test";
40
+import {getAllDoctorList, getAllHisPatientList,} from "@/api/project/project";
41
+import {getPrivateExpenses, getPrivateExpensesOrder} from "@/api/his/his";
42
+import printSeven from "./statementTemplate/printSeven";
43
+import Print10191 from "./statementTemplate/print10191";
44
+// import PrintOther from '../hospitalStation/statementTemplate/printOther'
45
+export default {
46
+  name: "statementListPrint",
47
+  components: {
48
+    Print10191,
49
+    printSeven,
50
+    BreadCrumb,
51
+    printOne,
52
+    privateChargePrint,
53
+    printTwo,
54
+    printThree,
55
+    printFour,
56
+    testVue,
57
+    printFive,
58
+  },
59
+  props: {
60
+    paramsObj: Object,
61
+  },
62
+  data() {
63
+    return {
64
+      crumbs: [
65
+        {path: false, name: "门诊医生站"},
66
+        {path: false, name: "打印"},
67
+      ],
68
+      record_date: "",
69
+      patientTableData: [],
70
+      advicePrint: [],
71
+      hisPatient: {},
72
+      patient: {},
73
+      search_input: "",
74
+      loading: false,
75
+      patient_id: 0,
76
+      prescription_id: 0,
77
+      ids: "",
78
+      info: null,
79
+      org_id: "",
80
+      balanceAccounts: {},
81
+    };
82
+  },
83
+  methods: {
84
+    printThisPage() {
85
+      var ptime = Math.round(new Date().getTime() / 1000);
86
+      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
87
+
88
+      if (
89
+        this.$store.getters.xt_user.org_id == 10138 ||
90
+        this.$store.getters.xt_user.org_id == 4 ||
91
+        this.$store.getters.xt_user.org_id == 10278
92
+      ) {
93
+        setTimeout(() => {
94
+          const style =
95
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 47%;}}}";
96
+          const style2 =
97
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 50%;}}}";
98
+          const style3 =
99
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 55%;}}}";
100
+          const style4 =
101
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 58%;}}}";
102
+          const style5 =
103
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 61%;}}}";
104
+          const style6 =
105
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 66%;}}}";
106
+          const style7 =
107
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 71%;}}}";
108
+          const style8 =
109
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 75%;}}}";
110
+          const style9 =
111
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 80%;}}}";
112
+          const style10 =
113
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 85%;}}}";
114
+          const style11 =
115
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 87%;}}}";
116
+          const style12 =
117
+            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}";
118
+          if (this.num >= 13) {
119
+            printJS({
120
+              printable: "prescription-print",
121
+              type: "html",
122
+              style: style,
123
+              scanStyles: false,
124
+            });
125
+          } else if (this.num == 12) {
126
+            printJS({
127
+              printable: "prescription-print",
128
+              type: "html",
129
+              style: style2,
130
+              scanStyles: false,
131
+            });
132
+          } else if (this.num == 11) {
133
+            printJS({
134
+              printable: "prescription-print",
135
+              type: "html",
136
+              style: style3,
137
+              scanStyles: false,
138
+            });
139
+          } else if (this.num == 10) {
140
+            printJS({
141
+              printable: "prescription-print",
142
+              type: "html",
143
+              style: style4,
144
+              scanStyles: false,
145
+            });
146
+          } else if (this.num == 9) {
147
+            printJS({
148
+              printable: "prescription-print",
149
+              type: "html",
150
+              style: style5,
151
+              scanStyles: false,
152
+            });
153
+          } else if (this.num == 8) {
154
+            printJS({
155
+              printable: "prescription-print",
156
+              type: "html",
157
+              style: style6,
158
+              scanStyles: false,
159
+            });
160
+          } else if (this.num == 7) {
161
+            printJS({
162
+              printable: "prescription-print",
163
+              type: "html",
164
+              style: style7,
165
+              scanStyles: false,
166
+            });
167
+          } else if (this.num == 6) {
168
+            printJS({
169
+              printable: "prescription-print",
170
+              type: "html",
171
+              style: style8,
172
+              scanStyles: false,
173
+            });
174
+          } else if (this.num == 5) {
175
+            printJS({
176
+              printable: "prescription-print",
177
+              type: "html",
178
+              style: style9,
179
+              scanStyles: false,
180
+            });
181
+          } else if (this.num == 4) {
182
+            printJS({
183
+              printable: "prescription-print",
184
+              type: "html",
185
+              style: style10,
186
+              scanStyles: false,
187
+            });
188
+          } else if (this.num == 3) {
189
+            printJS({
190
+              printable: "prescription-print",
191
+              type: "html",
192
+              style: style11,
193
+              scanStyles: false,
194
+            });
195
+          } else if (this.num <= 2) {
196
+            printJS({
197
+              printable: "prescription-print",
198
+              type: "html",
199
+              style: style12,
200
+              scanStyles: false,
201
+            });
202
+          }
203
+        }, 500);
204
+      } else if (
205
+        this.$store.getters.xt_user.org_id == 9504 ||
206
+        this.$store.getters.xt_user.org_id == 10028
207
+      ) {
208
+        const style =
209
+          "@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}";
210
+        printJS({
211
+          printable: "prescription-print",
212
+          type: "html",
213
+          style: style,
214
+          scanStyles: false,
215
+        });
216
+      } else {
217
+        // 医保环境打印格式
218
+        if (
219
+          this.$store.getters.xt_user.org_id == 9919 ||
220
+          this.$store.getters.xt_user.org_id == 10106
221
+        ) {
222
+          const style =
223
+            "@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}";
224
+          printJS({
225
+            printable: "statement-print",
226
+            type: "html",
227
+            style: style,
228
+            scanStyles: false,
229
+          });
230
+        } else if (
231
+          this.$store.getters.xt_user.org_id == 0 ||
232
+          this.$store.getters.xt_user.org_id == 10191
233
+        ) {
234
+          const style =
235
+            "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
236
+          printJS({
237
+            printable: "statement-print",
238
+            type: "html",
239
+            style: style,
240
+            scanStyles: false,
241
+          });
242
+        } else {
243
+          const style =
244
+            "@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
245
+          printJS({
246
+            printable: "statement-print",
247
+            type: "html",
248
+            style: style,
249
+            scanStyles: false,
250
+          });
251
+        }
252
+      }
253
+
254
+      // if (this.org_template_info.template_id == 1) {
255
+      //   printJS({
256
+      //     printable: "dialysis-print-box",
257
+      //     type: "html",
258
+      //     style: style,
259
+      //     scanStyles: false
260
+      //   });
261
+      // }
262
+    },
263
+    getAllDoctorList() {
264
+      getAllDoctorList().then((response) => {
265
+        if (response.data.state == 1) {
266
+          var doctor = response.data.data.doctor;
267
+
268
+          this.doctorList = doctor;
269
+        }
270
+      });
271
+    },
272
+    getAllHisPatientList() {
273
+      const params = {
274
+        record_date: this.record_date,
275
+      };
276
+      getAllHisPatientList(params).then((response) => {
277
+        if (response.data.state == 1) {
278
+          this.patientTableData = response.data.data.list;
279
+          this.patientTableDataTwo = response.data.data.list;
280
+
281
+          console.log("222", this.patientTableData);
282
+          let cal_one = 0;
283
+          let cal_two = 0;
284
+          for (let i = 0; i < response.data.data.list.length; i++) {
285
+            if (
286
+              response.data.data.list[i].prescription == null ||
287
+              response.data.data.list[i].prescription.length == 0
288
+            ) {
289
+              cal_one = cal_one + 1;
290
+            }
291
+            if (
292
+              response.data.data.list[i].prescription != null &&
293
+              response.data.data.list[i].prescription.length > 0
294
+            ) {
295
+              cal_two = cal_two + 1;
296
+            }
297
+          }
298
+          // this.$refs.tab.setCurrentRow(this.patientTableData[0])
299
+          // console.log(this.patientTableData[0])
300
+          // this.choosePatient(this.patientTableData[0])
301
+          this.cal_one = cal_one;
302
+          this.cal_two = cal_two;
303
+        }
304
+      });
305
+    },
306
+
307
+    changePatient(row) {
308
+      console.log("row", row);
309
+      this.patient_id = row.patient_id;
310
+      this.record_date = this.record_date;
311
+      this.prescription_id = this.prescription_id;
312
+      //   var params = {
313
+      //     patient_id:row.patient_id,
314
+      //     record_date:this.record_date,
315
+      //     prescription_id:this.prescription_id,
316
+      //   }
317
+      // getPrescriptionPrint(params).then(response=>{
318
+      //     if(response.data.state == 1){
319
+      //       var advicePrint =  response.data.data.advicePrint
320
+      //       console.log("adviceprint",advicePrint)
321
+      //       this.advicePrint = advicePrint
322
+      //       // var hisPatient =  response.data.data.hisPatient
323
+      //       // console.log("hispatient",hisPatient)
324
+      //       // this.hisPatient = hisPatient
325
+      //       var patient =  response.data.data.patient
326
+      //       console.log("patient",patient)
327
+      //       this.patient = patient
328
+      //       var doctorPorject = response.data.data.doctorPorject
329
+      //       console.log("doctorporject",doctorPorject)
330
+      //     }
331
+      // })
332
+    },
333
+    getTimes(time) {
334
+      return uParseTime(time, "{y}-{m}-{d}");
335
+    },
336
+    searchAction() {
337
+    },
338
+    getInfo(order_id, obj) {
339
+        let params = {
340
+          his_patient_id: obj.his_patient_id,
341
+          id: obj.order_id,
342
+          order_id: obj.order_id,
343
+          admin_user_id: this.$store.getters.xt_user.user.id,
344
+        };
345
+        getPrivateExpensesOrder(params).then((response) => {
346
+            if (response.data.state == 0) {
347
+              // this.$message.error(response.data.msg)
348
+
349
+              return false;
350
+            } else {
351
+              var that = this;
352
+              that.info = response.data.data.info;
353
+              that.p_admin = response.data.data.printor_admin;
354
+              that.charge_admin = response.data.data.charge_admin;
355
+
356
+              that.info["p_admin"] = that.p_admin;
357
+              that.info["charge_admin"] = that.charge_admin;
358
+              that.info["order_number"] = response.data.data.order_number;
359
+              that.info["patient"] = response.data.data.patient;
360
+              that.info["date"] = response.data.data.date;
361
+              that.info["number"] = response.data.data.number;
362
+              that.info["order_infos"] = response.data.data.order_infos;
363
+              that.info["diagnosis"] = response.data.data.diagnosis;
364
+              that.info["fixmedins_name"] = response.data.data.org_name;
365
+              that.info["fixmedins_code"] = response.data.data.org_code;
366
+
367
+              that.info["bed_cost_total"] = response.data.data.bedCostTotal;
368
+              that.info["bed_cost_self_total"] =
369
+                  response.data.data.bedCostSelfTotal;
370
+              that.info["bed_cost_part_self_total"] =
371
+                  response.data.data.bedCostPartSelfTotal;
372
+
373
+              that.info["operation_cost_total"] =
374
+                  response.data.data.operationCostTotal;
375
+              that.info["operation_cost_self_total"] =
376
+                  response.data.data.operationCostSelfTotal;
377
+              that.info["operation_cost_part_self_total"] =
378
+                  response.data.data.operationCostPartSelfTotal;
379
+
380
+              that.info["other_cost_total"] = response.data.data.otherCostTotal;
381
+              that.info["other_cost_self_total"] =
382
+                  response.data.data.otherCostSelfTotal;
383
+              that.info["other_cost_part_self_total"] =
384
+                  response.data.data.otherCostPartSelfTotal;
385
+
386
+              that.info["material_cost_total"] =
387
+                  response.data.data.materialCostTotal;
388
+              that.info["material_cost_self_total"] =
389
+                  response.data.data.materialCostSelfTotal;
390
+              that.info["material_cost_part_self_total"] =
391
+                  response.data.data.materialCostPartSelfTotal;
392
+
393
+              that.info["western_medicine_cost_total"] =
394
+                  response.data.data.westernMedicineCostTotal;
395
+              that.info["western_medicine_cost_self_total"] =
396
+                  response.data.data.westernMedicineCostSelfTotal;
397
+              that.info["western_medicine_cost_part_self_total"] =
398
+                  response.data.data.westernMedicineCostPartSelfTotal;
399
+
400
+              that.info["chinese_traditional_medicine_cost_total"] =
401
+                  response.data.data.chineseTraditionalMedicineCostTotal;
402
+              that.info["chinese_traditional_medicine_cost_self_total"] =
403
+                  response.data.data.chineseTraditionalMedicineCostSelfTotal;
404
+              that.info["chinese_traditional_medicine_cost_part_self_total"] =
405
+                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
406
+
407
+              that.info["check_cost_total"] = response.data.data.checkCostTotal;
408
+              that.info["check_cost_self_total"] =
409
+                  response.data.data.checkCostSelfTotal;
410
+              that.info["check_cost_part_self_total"] =
411
+                  response.data.data.checkCostPartSelfTotal;
412
+
413
+              that.info["laboratory_cost_total"] =
414
+                  response.data.data.laboratoryCostTotal;
415
+              that.info["laboratory_cost_self_total"] =
416
+                  response.data.data.laboratoryCostSelfTotal;
417
+              that.info["laboratory_cost_part_self_total"] =
418
+                  response.data.data.laboratoryCostPartSelfTotal;
419
+
420
+              that.info["treat_cost_total"] = response.data.data.treatCostTotal;
421
+              that.info["treat_cost_self_total"] =
422
+                  response.data.data.treatCostSelfTotal;
423
+              that.info["treat_cost_part_self_total"] =
424
+                  response.data.data.treatCostPartSelfTotal;
425
+              that.info["date"] = response.data.data.date;
426
+              // that.info["number"] = response.data.data.number;
427
+              that.info["order_infos"] = response.data.data.order_infos;
428
+              that.info["diagnosis"] = response.data.data.diagnosis;
429
+
430
+
431
+              let list = []
432
+              for (let i = 0; i < response.data.data.order_infos.length; i++) {
433
+                let order = response.data.data.order_infos[i]
434
+                let obj = {
435
+                  code:"",
436
+                  name: "",
437
+                  spec: "",
438
+                  cnt: "",
439
+                  det_item_fee_sumamt: "",
440
+                }
441
+
442
+                if (order.advice_id > 0 && order.project_id == 0) {
443
+                  obj.name = order.advice.advice_name
444
+                  let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
445
+                  obj.spec = spec
446
+                  obj.cnt = order.cnt
447
+                  obj.det_item_fee_sumamt =order.det_item_fee_sumamt
448
+                  obj.code = order.advice.drug.medical_insurance_number
449
+                  list.push(obj)
450
+                }else if (order.advice_id == 0 && order.project_id > 0) {
451
+                  if(order.project.type == 2){
452
+                    obj.name = order.project.project.project_name
453
+                    obj.spec = ""
454
+                    obj.cnt = order.cnt
455
+                    obj.det_item_fee_sumamt =order.det_item_fee_sumamt
456
+                    obj.code = order.project.project.medical_code
457
+                  }else{
458
+                    obj.name = order.project.good_info.good_name
459
+                    obj.spec = order.project.good_info.specification_name
460
+                    obj.cnt = order.cnt
461
+                    obj.det_item_fee_sumamt =order.det_item_fee_sumamt
462
+                    obj.code = order.project.good_info.medical_insurance_number
463
+                  }
464
+                  list.push(obj)
465
+                }
466
+
467
+              }
468
+
469
+
470
+
471
+
472
+              console.log(list)
473
+              let len = list.length / 2
474
+              let L_list = []
475
+              let R_list = []
476
+
477
+              let obj = {
478
+                name:"名称",
479
+                spec:"规格",
480
+                cnt:"数量",
481
+                det_item_fee_sumamt:"价格",
482
+              }
483
+              L_list.push(obj)
484
+              R_list.push(obj)
485
+
486
+              len = Math.trunc(len)
487
+              for(let i = 0; i < len; i++){
488
+                L_list.push(list[i])
489
+              }
490
+              console.log(len)
491
+              for(let i = len; i < list.length; i++){
492
+                console.log(list[i])
493
+                R_list.push(list[i])
494
+              }
495
+              console.log(L_list)
496
+              console.log(R_list)
497
+              console.log(L_list.length)
498
+              console.log(R_list.length)
499
+
500
+
501
+              console.log(L_list.length)
502
+              console.log(R_list.length)
503
+
504
+              that.info["L_list"] = L_list
505
+              that.info["R_list"] = R_list
506
+
507
+
508
+
509
+
510
+
511
+
512
+            }
513
+          });
514
+    },
515
+  },
516
+
517
+  created() {
518
+    console.log(this.paramsObj);
519
+    this.getInfo(this.paramsObj.order_id, this.paramsObj);
520
+    this.org_id = this.$store.getters.xt_user.org_id;
521
+    console.log("this.org_id", this.org_id);
522
+  },
523
+  watch: {
524
+    paramsObj: {
525
+      //深度监听,可监听到对象、数组的变化
526
+      handler(val, oldVal) {
527
+        this.paramsObj = val;
528
+        console.log(this.paramsObj);
529
+
530
+        this.getInfo(this.paramsObj.order_id, this.paramsObj);
531
+      },
532
+      deep: true,
533
+      immediate: true,
534
+    },
535
+  },
536
+};
537
+</script>
538
+
539
+<style>
540
+.dialysis-print-order {
541
+  width: 960px;
542
+  margin: 0 auto;
543
+}
544
+
545
+.dialysis-print-order .order-yy-name {
546
+  margin: auto;
547
+  text-align: center;
548
+  font-size: 20px;
549
+  letter-spacing: 5px;
550
+}
551
+
552
+.dialysis-print-order .order-title {
553
+  margin: auto;
554
+  font-weight: 600;
555
+  text-align: center;
556
+  font-size: 22px;
557
+  padding: 10px;
558
+}
559
+
560
+.dialysis-print-order .table-box {
561
+  width: 100%;
562
+  line-height: 23px;
563
+  font-size: 14px;
564
+}
565
+
566
+.dialysis-print-order .print-table {
567
+  width: 100%;
568
+  text-align: center;
569
+  border-collapse: collapse;
570
+  line-height: 40px;
571
+  font-size: 14px;
572
+  border-color: #000;
573
+}
574
+
575
+.dialysis-print-order .print-table-no {
576
+  width: 100%;
577
+  text-align: center;
578
+  border-collapse: collapse;
579
+  font-size: 14px;
580
+}
581
+
582
+.dialysis-print-order .under-line {
583
+  border-bottom: 1px solid #999;
584
+  width: 95%;
585
+  text-align: center;
586
+  margin-left: 2px;
587
+}
588
+
589
+.dialysis-print-order .title-box {
590
+  text-align: center;
591
+  font-size: 16px;
592
+}
593
+
594
+.dialysis-print-order .radio-lebel-box {
595
+  font-weight: 400;
596
+  cursor: pointer;
597
+}
598
+
599
+.dialysis-print-order .radio-no {
600
+  opacity: 0;
601
+  outline: none;
602
+  position: absolute;
603
+  margin: 0;
604
+  width: 0;
605
+  height: 0;
606
+  z-index: -1;
607
+}
608
+
609
+.dialysis-print-order .radio-inner {
610
+  white-space: nowrap;
611
+  cursor: pointer;
612
+  outline: none;
613
+  display: inline-block;
614
+  line-height: 1;
615
+  position: relative;
616
+  vertical-align: middle;
617
+}
618
+
619
+.dialysis-print-order .radio-fang {
620
+  display: inline-block;
621
+  position: relative;
622
+  border: 1px solid #000;
623
+  box-sizing: border-box;
624
+  width: 14px;
625
+  height: 14px;
626
+  background-color: #fff;
627
+  z-index: 1;
628
+  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
629
+  background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
630
+}
631
+
632
+.dialysis-print-order .is-checked-radio::after {
633
+  content: "√";
634
+  font-size: 15px;
635
+}
636
+
637
+.dialysis-print-order .print-table-no tr td {
638
+  padding: 8px 5px;
639
+  line-height: 25px;
640
+}
641
+
642
+.dialysis-print-order .print-table tr td {
643
+  padding: 1px 1px;
644
+  /*line-height: 25px;*/
645
+}
646
+
647
+.es-img {
648
+  height: 30px;
649
+}
650
+
651
+.advice-name {
652
+  text-align: left;
653
+}
654
+
655
+.advice-children {
656
+  display: flex;
657
+}
658
+
659
+.title-box-pro {
660
+  border: 0 #fff;
661
+  line-height: 25px;
662
+  height: 25px;
663
+  text-align: left;
664
+  padding-left: 10px !important;
665
+}
666
+
667
+.title-box-pro-tr {
668
+  border: 0 #fff;
669
+}
670
+
671
+.text-align-left {
672
+  text-align: left !important;
673
+  padding-left: 10px !important;
674
+  font-size: 14px !important;
675
+  line-height: 25px;
676
+}
677
+
678
+.print-table-tr-new td {
679
+  line-height: 20px !important;
680
+}
681
+
682
+.border-top-solid {
683
+  border: solid 1px #000;
684
+}
685
+
686
+.print-template-two tr {
687
+  line-height: 30px;
688
+}
689
+
690
+.table-box1 {
691
+  border: 1px solid #000;
692
+  width: 100%;
693
+  line-height: 30px;
694
+  font-size: 14px;
695
+  border-collapse: collapse;
696
+}
697
+
698
+.table-box1 tr {
699
+  border-bottom: 1px solid #000;
700
+}
701
+</style>
702
+
703
+<style lang="scss">
704
+.newContainer {
705
+
706
+.dialysisPage::-webkit-scrollbar {
707
+  height: 15px;
708
+}
709
+
710
+.el-date-editor {
711
+
712
+.el-input__inner {
713
+  padding-right: 0px;
714
+}
715
+
716
+}
717
+.el-table td,
718
+.el-table th {
719
+  text-align: center;
720
+}
721
+
722
+}
723
+.newContainer::-webkit-scrollbar {
724
+  height: 15px !important;
725
+}
726
+</style>

+ 174 - 170
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -41,12 +41,12 @@
41 41
       </div>
42 42
       <!--      <print-other :info="info" v-if="org_id == 9919"></print-other>-->
43 43
       <!--      <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
44
-      <printFive
45
-          v-if="org_id == 0  || org_id == 10191"
46
-          :info="info"
47
-          :paramsObj="paramsObj"
48
-          :balanceAccounts="balanceAccounts"
49
-      ></printFive>
44
+<!--      <printFive-->
45
+<!--        v-if="org_id == 10191"-->
46
+<!--        :info="info"-->
47
+<!--        :paramsObj="paramsObj"-->
48
+<!--        :balanceAccounts="balanceAccounts"-->
49
+<!--      ></printFive>-->
50 50
 
51 51
      <printSeven
52 52
          v-if="org_id == 10387"
@@ -55,15 +55,15 @@
55 55
          :balanceAccounts="balanceAccounts"
56 56
      >
57 57
      </printSeven>
58
-   <printOne :info="info" v-else></printOne>
59
-<!--      <printOne :info="info" v-if="org_id != 9990 &&-->
60
-<!--          org_id != 10138 &&-->
61
-<!--          org_id != 9504 &&-->
62
-<!--          org_id != 10028 &&-->
63
-<!--          org_id != 4 &&-->
64
-<!--          org_id != 10278 && org_id != 10191 && org_id != 10387"></printOne>-->
65
-      <!-- 测试医保环境下表格样式放开以下这条 -->
66
-      <!-- <testVue :info="info" v-else></testVue> -->
58
+      <print10191 :info="info" v-if="org_id == 10191"></print10191>
59
+
60
+     <printOne :info="info" v-if=" org_id != 9990 &&
61
+            org_id != 10138 &&
62
+            org_id != 9504 &&
63
+            org_id != 10028 &&
64
+            org_id != 4 &&
65
+            org_id != 10278 && org_id != 10387 && org_id != 0 && org_id != 10191"></printOne>
66
+
67 67
     </div>
68 68
   </div>
69 69
 </template>
@@ -85,10 +85,12 @@ import testVue from "./statementTemplate/test";
85 85
 import {getAllDoctorList, getAllHisPatientList,} from "@/api/project/project";
86 86
 import {getPrivateExpenses, getPrivateExpensesOrder} from "@/api/his/his";
87 87
 import printSeven from "./statementTemplate/printSeven";
88
+import Print10191 from "./statementTemplate/print10191";
88 89
 // import PrintOther from '../hospitalStation/statementTemplate/printOther'
89 90
 export default {
90 91
   name: "dialysisPrintOrder",
91 92
   components: {
93
+    Print10191,
92 94
     printSeven,
93 95
     BreadCrumb,
94 96
     printOne,
@@ -671,166 +673,168 @@ export default {
671 673
 
672 674
               });
673 675
 
674
-            }
675
-          });
676
-        } else if (this.org_id == 0) {
677
-
678
-          getPrivateExpensesOrder(params).then((response) => {
679
-            if (response.data.state == 0) {
680
-              // this.$message.error(response.data.msg)
681
-
682
-              return false;
683
-            } else {
684
-              var that = this;
685
-              that.info = response.data.data.info;
686
-              that.p_admin = response.data.data.printor_admin;
687
-              that.charge_admin = response.data.data.charge_admin;
688
-
689
-              that.info["p_admin"] = that.p_admin;
690
-              that.info["charge_admin"] = that.charge_admin;
691
-              that.info["order_number"] = response.data.data.order_number;
692
-              that.info["patient"] = response.data.data.patient;
693
-              that.info["date"] = response.data.data.date;
694
-              that.info["number"] = response.data.data.number;
695
-              that.info["order_infos"] = response.data.data.order_infos;
696
-              that.info["diagnosis"] = response.data.data.diagnosis;
697
-              that.info["fixmedins_name"] = response.data.data.org_name;
698
-              that.info["fixmedins_code"] = response.data.data.org_code;
699
-              // that.info["doctor_code"] = response.data.data.doctor_code;
700
-              // that.info["department"] = response.data.data.department;
701
-              // that.info["health_card_no"] = response.data.data.health_card_no;
702
-
703
-              that.info["bed_cost_total"] = response.data.data.bedCostTotal;
704
-              that.info["bed_cost_self_total"] =
705
-                  response.data.data.bedCostSelfTotal;
706
-              that.info["bed_cost_part_self_total"] =
707
-                  response.data.data.bedCostPartSelfTotal;
708
-
709
-              that.info["operation_cost_total"] =
710
-                  response.data.data.operationCostTotal;
711
-              that.info["operation_cost_self_total"] =
712
-                  response.data.data.operationCostSelfTotal;
713
-              that.info["operation_cost_part_self_total"] =
714
-                  response.data.data.operationCostPartSelfTotal;
715
-
716
-              that.info["other_cost_total"] = response.data.data.otherCostTotal;
717
-              that.info["other_cost_self_total"] =
718
-                  response.data.data.otherCostSelfTotal;
719
-              that.info["other_cost_part_self_total"] =
720
-                  response.data.data.otherCostPartSelfTotal;
721
-
722
-              that.info["material_cost_total"] =
723
-                  response.data.data.materialCostTotal;
724
-              that.info["material_cost_self_total"] =
725
-                  response.data.data.materialCostSelfTotal;
726
-              that.info["material_cost_part_self_total"] =
727
-                  response.data.data.materialCostPartSelfTotal;
728
-
729
-              that.info["western_medicine_cost_total"] =
730
-                  response.data.data.westernMedicineCostTotal;
731
-              that.info["western_medicine_cost_self_total"] =
732
-                  response.data.data.westernMedicineCostSelfTotal;
733
-              that.info["western_medicine_cost_part_self_total"] =
734
-                  response.data.data.westernMedicineCostPartSelfTotal;
735
-
736
-              that.info["chinese_traditional_medicine_cost_total"] =
737
-                  response.data.data.chineseTraditionalMedicineCostTotal;
738
-              that.info["chinese_traditional_medicine_cost_self_total"] =
739
-                  response.data.data.chineseTraditionalMedicineCostSelfTotal;
740
-              that.info["chinese_traditional_medicine_cost_part_self_total"] =
741
-                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
742
-
743
-              that.info["check_cost_total"] = response.data.data.checkCostTotal;
744
-              that.info["check_cost_self_total"] =
745
-                  response.data.data.checkCostSelfTotal;
746
-              that.info["check_cost_part_self_total"] =
747
-                  response.data.data.checkCostPartSelfTotal;
748
-
749
-              that.info["laboratory_cost_total"] =
750
-                  response.data.data.laboratoryCostTotal;
751
-              that.info["laboratory_cost_self_total"] =
752
-                  response.data.data.laboratoryCostSelfTotal;
753
-              that.info["laboratory_cost_part_self_total"] =
754
-                  response.data.data.laboratoryCostPartSelfTotal;
755
-
756
-              that.info["treat_cost_total"] = response.data.data.treatCostTotal;
757
-              that.info["treat_cost_self_total"] =
758
-                  response.data.data.treatCostSelfTotal;
759
-              that.info["treat_cost_part_self_total"] =
760
-                  response.data.data.treatCostPartSelfTotal;
761
-              that.info["date"] = response.data.data.date;
762
-              // that.info["number"] = response.data.data.number;
763
-              that.info["order_infos"] = response.data.data.order_infos;
764
-              that.info["diagnosis"] = response.data.data.diagnosis;
765
-
766
-
767
-              let list = []
768
-              for (let i = 0; i < response.data.data.order_infos.length; i++) {
769
-                let order = response.data.data.order_infos[i]
770
-                let obj = {
771
-                  code:"",
772
-                  name: "",
773
-                  spec: "",
774
-                  cnt: "",
775
-                  det_item_fee_sumamt: "",
776
-                }
777
-
778
-                if (order.advice_id > 0 && order.project_id == 0) {
779
-                  obj.name = order.advice.advice_name
780
-                  let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
781
-                  obj.spec = spec
782
-                  obj.cnt = order.cnt
783
-                  obj.det_item_fee_sumamt =order.det_item_fee_sumamt
784
-                  obj.code = order.advice.drug.medical_insurance_number
785
-                  list.push(obj)
786
-                }else if (order.advice_id == 0 && order.project_id > 0) {
787
-                  if(order.project.type == 2){
788
-                    obj.name = order.project.project.project_name
789
-                    obj.spec = ""
790
-                    obj.cnt = order.cnt
791
-                    obj.det_item_fee_sumamt =order.det_item_fee_sumamt
792
-                    obj.code = order.project.project.medical_code
793
-                  }else{
794
-                    obj.name = order.project.good_info.good_name
795
-                    obj.spec = order.project.good_info.specification_name
796
-                    obj.cnt = order.cnt
797
-                    obj.det_item_fee_sumamt =order.det_item_fee_sumamt
798
-                    obj.code = order.project.good_info.medical_insurance_number
799
-                  }
800
-                  list.push(obj)
801
-                }
802
-
803
-              }
804
-              console.log(list)
805
-              let len = list.length / 2
806
-              let L_list = []
807
-              let R_list = []
808
-              len = Math.trunc(len)
809
-              for(let i = 0; i < len; i++){
810
-                L_list.push(list[i])
811
-              }
812
-              console.log(len)
813
-              for(let i = len; i < list.length; i++){
814
-                console.log(list[i])
815
-                R_list.push(list[i])
816
-              }
817
-              console.log(L_list)
818
-              console.log(R_list)
819
-
820
-              that.info["L_list"] = L_list
821
-              that.info["R_list"] = R_list
822
-
823
-
824
-
825
-
826
-
827
-
828 676
             }
829 677
           });
830 678
         }
679
+        // else if (this.org_id == 0) {
680
+        //
681
+        //   getPrivateExpensesOrder(params).then((response) => {
682
+        //     if (response.data.state == 0) {
683
+        //       // this.$message.error(response.data.msg)
684
+        //
685
+        //       return false;
686
+        //     } else {
687
+        //       var that = this;
688
+        //       that.info = response.data.data.info;
689
+        //       that.p_admin = response.data.data.printor_admin;
690
+        //       that.charge_admin = response.data.data.charge_admin;
691
+        //
692
+        //       that.info["p_admin"] = that.p_admin;
693
+        //       that.info["charge_admin"] = that.charge_admin;
694
+        //       that.info["order_number"] = response.data.data.order_number;
695
+        //       that.info["patient"] = response.data.data.patient;
696
+        //       that.info["date"] = response.data.data.date;
697
+        //       that.info["number"] = response.data.data.number;
698
+        //       that.info["order_infos"] = response.data.data.order_infos;
699
+        //       that.info["diagnosis"] = response.data.data.diagnosis;
700
+        //       that.info["fixmedins_name"] = response.data.data.org_name;
701
+        //       that.info["fixmedins_code"] = response.data.data.org_code;
702
+        //       // that.info["doctor_code"] = response.data.data.doctor_code;
703
+        //       // that.info["department"] = response.data.data.department;
704
+        //       // that.info["health_card_no"] = response.data.data.health_card_no;
705
+        //
706
+        //       that.info["bed_cost_total"] = response.data.data.bedCostTotal;
707
+        //       that.info["bed_cost_self_total"] =
708
+        //           response.data.data.bedCostSelfTotal;
709
+        //       that.info["bed_cost_part_self_total"] =
710
+        //           response.data.data.bedCostPartSelfTotal;
711
+        //
712
+        //       that.info["operation_cost_total"] =
713
+        //           response.data.data.operationCostTotal;
714
+        //       that.info["operation_cost_self_total"] =
715
+        //           response.data.data.operationCostSelfTotal;
716
+        //       that.info["operation_cost_part_self_total"] =
717
+        //           response.data.data.operationCostPartSelfTotal;
718
+        //
719
+        //       that.info["other_cost_total"] = response.data.data.otherCostTotal;
720
+        //       that.info["other_cost_self_total"] =
721
+        //           response.data.data.otherCostSelfTotal;
722
+        //       that.info["other_cost_part_self_total"] =
723
+        //           response.data.data.otherCostPartSelfTotal;
724
+        //
725
+        //       that.info["material_cost_total"] =
726
+        //           response.data.data.materialCostTotal;
727
+        //       that.info["material_cost_self_total"] =
728
+        //           response.data.data.materialCostSelfTotal;
729
+        //       that.info["material_cost_part_self_total"] =
730
+        //           response.data.data.materialCostPartSelfTotal;
731
+        //
732
+        //       that.info["western_medicine_cost_total"] =
733
+        //           response.data.data.westernMedicineCostTotal;
734
+        //       that.info["western_medicine_cost_self_total"] =
735
+        //           response.data.data.westernMedicineCostSelfTotal;
736
+        //       that.info["western_medicine_cost_part_self_total"] =
737
+        //           response.data.data.westernMedicineCostPartSelfTotal;
738
+        //
739
+        //       that.info["chinese_traditional_medicine_cost_total"] =
740
+        //           response.data.data.chineseTraditionalMedicineCostTotal;
741
+        //       that.info["chinese_traditional_medicine_cost_self_total"] =
742
+        //           response.data.data.chineseTraditionalMedicineCostSelfTotal;
743
+        //       that.info["chinese_traditional_medicine_cost_part_self_total"] =
744
+        //           response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
745
+        //
746
+        //       that.info["check_cost_total"] = response.data.data.checkCostTotal;
747
+        //       that.info["check_cost_self_total"] =
748
+        //           response.data.data.checkCostSelfTotal;
749
+        //       that.info["check_cost_part_self_total"] =
750
+        //           response.data.data.checkCostPartSelfTotal;
751
+        //
752
+        //       that.info["laboratory_cost_total"] =
753
+        //           response.data.data.laboratoryCostTotal;
754
+        //       that.info["laboratory_cost_self_total"] =
755
+        //           response.data.data.laboratoryCostSelfTotal;
756
+        //       that.info["laboratory_cost_part_self_total"] =
757
+        //           response.data.data.laboratoryCostPartSelfTotal;
758
+        //
759
+        //       that.info["treat_cost_total"] = response.data.data.treatCostTotal;
760
+        //       that.info["treat_cost_self_total"] =
761
+        //           response.data.data.treatCostSelfTotal;
762
+        //       that.info["treat_cost_part_self_total"] =
763
+        //           response.data.data.treatCostPartSelfTotal;
764
+        //       that.info["date"] = response.data.data.date;
765
+        //       // that.info["number"] = response.data.data.number;
766
+        //       that.info["order_infos"] = response.data.data.order_infos;
767
+        //       that.info["diagnosis"] = response.data.data.diagnosis;
768
+        //
769
+        //
770
+        //       let list = []
771
+        //       for (let i = 0; i < response.data.data.order_infos.length; i++) {
772
+        //         let order = response.data.data.order_infos[i]
773
+        //         let obj = {
774
+        //           code:"",
775
+        //           name: "",
776
+        //           spec: "",
777
+        //           cnt: "",
778
+        //           det_item_fee_sumamt: "",
779
+        //         }
780
+        //
781
+        //         if (order.advice_id > 0 && order.project_id == 0) {
782
+        //           obj.name = order.advice.advice_name
783
+        //           let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
784
+        //           obj.spec = spec
785
+        //           obj.cnt = order.cnt
786
+        //           obj.det_item_fee_sumamt =order.det_item_fee_sumamt
787
+        //           obj.code = order.advice.drug.medical_insurance_number
788
+        //           list.push(obj)
789
+        //         }else if (order.advice_id == 0 && order.project_id > 0) {
790
+        //           if(order.project.type == 2){
791
+        //             obj.name = order.project.project.project_name
792
+        //             obj.spec = ""
793
+        //             obj.cnt = order.cnt
794
+        //             obj.det_item_fee_sumamt =order.det_item_fee_sumamt
795
+        //             obj.code = order.project.project.medical_code
796
+        //           }else{
797
+        //             obj.name = order.project.good_info.good_name
798
+        //             obj.spec = order.project.good_info.specification_name
799
+        //             obj.cnt = order.cnt
800
+        //             obj.det_item_fee_sumamt =order.det_item_fee_sumamt
801
+        //             obj.code = order.project.good_info.medical_insurance_number
802
+        //           }
803
+        //           list.push(obj)
804
+        //         }
805
+        //
806
+        //       }
807
+        //       console.log(list)
808
+        //       let len = list.length / 2
809
+        //       let L_list = []
810
+        //       let R_list = []
811
+        //       len = Math.trunc(len)
812
+        //       for(let i = 0; i < len; i++){
813
+        //         L_list.push(list[i])
814
+        //       }
815
+        //       console.log(len)
816
+        //       for(let i = len; i < list.length; i++){
817
+        //         console.log(list[i])
818
+        //         R_list.push(list[i])
819
+        //       }
820
+        //       console.log(L_list)
821
+        //       console.log(R_list)
822
+        //
823
+        //       that.info["L_list"] = L_list
824
+        //       that.info["R_list"] = R_list
825
+        //
826
+        //
827
+        //
828
+        //
829
+        //
830
+        //
831
+        //     }
832
+        //   });
833
+        // }
831 834
 
832 835
       } else {
833
-        if (this.org_id == 10191 || this.org_id == 0) {
836
+        console.log(this.org_id)
837
+        if (this.org_id == 0) {
834 838
           let params = {
835 839
             his_patient_id: obj.his_patient_id,
836 840
             id: obj.order_id,

+ 357 - 0
src/xt_pages/outpatientCharges/statementTemplate/print10191.vue View File

@@ -0,0 +1,357 @@
1
+<template>
2
+  <div id="statement-print" class="statement-print">
3
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10188 || this.$store.getters.xt_user.org_id == 10217">江苏省社会医疗保险医疗费用结算单</div>
4
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10387">湖南省社会医疗保险医疗费用结算单</div>
5
+
6
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10191">福建省社会医疗保险医疗费用结算单</div>
7
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10088">广水源生堂社会医疗保险医疗费用结算单</div>
8
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id != 10387 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 &&this.$store.getters.xt_user.org_id != 10088">广东省社会医疗保险医疗费用结算单</div>
9
+
10
+    <table class="statementTable" border="1">
11
+      <tr>
12
+        <td width="80">机构名称</td>
13
+        <td colspan="4">{{info.fixmedins_name}}</td>
14
+        <td width="80">机构编码</td>
15
+        <td colspan="4">{{info.fixmedins_code}}</td>
16
+        <td width="100">医保结算级别</td>
17
+        <td width="100" v-if="info.hosp_lv == '1'">三级特等</td>
18
+        <td width="100" v-else-if="info.hosp_lv == '2'">三级甲等</td>
19
+        <td width="100" v-else-if="info.hosp_lv == '3'">三级乙等</td>
20
+        <td width="100" v-else-if="info.hosp_lv == '4'">三级丙等</td>
21
+        <td width="100" v-else-if="info.hosp_lv == '5'">二级甲等</td>
22
+        <td width="100" v-else-if="info.hosp_lv == '6'">二级乙等</td>
23
+        <td width="100" v-else-if="info.hosp_lv == '7'">二级丙等</td>
24
+        <td width="100" v-else-if="info.hosp_lv == '8'">一级甲等</td>
25
+        <td width="100" v-else-if="info.hosp_lv == '9'">一级乙等</td>
26
+        <td width="100" v-else-if="info.hosp_lv == '10'">一级丙等</td>
27
+        <td width="100" v-else-if="info.hosp_lv == '11'">无等级</td>
28
+        <td width="100" v-else></td>
29
+
30
+      </tr>
31
+      <tr>
32
+        <td width="70">就医登记号</td>
33
+        <td colspan="7">{{info.psn_no}}</td>
34
+        <td width="50">门诊号</td>
35
+        <td colspan="3">{{info.number}}</td>
36
+      </tr>
37
+      <tr>
38
+        <td width="80">姓名</td>
39
+        <td width="80">{{info.psn_name}}</td>
40
+        <td width="80">性别</td>
41
+        <td width="50" v-if="info.gend == '1'">男</td>
42
+        <td width="50" v-if="info.gend == '2'">女</td>
43
+
44
+        <td width="80">出生日期</td>
45
+        <td colspan="9">{{info.brdy}}</td>
46
+<!--        <td width="90">个人电脑号</td>-->
47
+<!--        <td width="110"></td>-->
48
+<!--        <td width="80">人员类别</td>-->
49
+<!--        <td colspan="6" v-if="info.psn_type == '11'">在职</td>-->
50
+<!--        <td colspan="6" v-else-if="info.psn_type == '1101'">职工在职</td>-->
51
+<!--        <td colspan="6" v-else-if="info.psn_type == '1102'">公务员在职</td>-->
52
+<!--        <td colspan="6" v-else-if="info.psn_type == '1103'">灵活就业人员在职</td>-->
53
+<!--        <td colspan="6" v-else-if="info.psn_type == '1160'">地方其他扩展人员</td>-->
54
+
55
+
56
+<!--        <td colspan="6" v-else-if="info.psn_type == '12'">退休人员</td>-->
57
+<!--        <td colspan="6" v-else-if="info.psn_type == '1201'">职工退休</td>-->
58
+<!--        <td colspan="6" v-else-if="info.psn_type == '1202'">公务员退休</td>-->
59
+<!--        <td colspan="6" v-else-if="info.psn_type == '1203'">灵活就业人员退休</td>-->
60
+<!--        <td colspan="6" v-else-if="info.psn_type == '1260'">地方其他扩展人员</td>-->
61
+
62
+
63
+<!--        <td colspan="6" v-else-if="info.psn_type == '13'">离休</td>-->
64
+<!--        <td colspan="6" v-else-if="info.psn_type == '1300'">离休人员</td>-->
65
+<!--        <td colspan="6" v-else-if="info.psn_type == '1360'">地方其他扩展人员</td>-->
66
+
67
+<!--        <td colspan="6" v-else-if="info.psn_type == '14'">居民(未成年)</td>-->
68
+<!--        <td colspan="6" v-else-if="info.psn_type == '1401'">新生儿</td>-->
69
+<!--        <td colspan="6" v-else-if="info.psn_type == '1402'">学龄前儿童</td>-->
70
+<!--        <td colspan="6" v-else-if="info.psn_type == '1403'">中小学生</td>-->
71
+<!--        <td colspan="6" v-else-if="info.psn_type == '1404'">大学生</td>-->
72
+<!--        <td colspan="6" v-else-if="info.psn_type == '1405'">未成年(未入学)</td>-->
73
+
74
+
75
+<!--        <td colspan="6" v-else-if="info.psn_type == '15'">居民(成年)</td>-->
76
+<!--        <td colspan="6" v-else-if="info.psn_type == '1501'">普通居民(成年)</td>-->
77
+<!--        <td colspan="6" v-else-if="info.psn_type == '1560'">地方其他扩展身份</td>-->
78
+
79
+<!--        <td colspan="6" v-else-if="info.psn_type == '16'">居民(老年)</td>-->
80
+<!--        <td colspan="6" v-else></td>-->
81
+
82
+
83
+      </tr>
84
+      <tr>
85
+        <td width="80">联系电话</td>
86
+        <td width="110">{{info.patient.phone}}</td>
87
+        <td width="80">身份证号</td>
88
+        <td colspan="9">{{info.certno}}</td>
89
+      </tr>
90
+
91
+      <tr>
92
+        <td>险种</td>
93
+        <td colspan="12" v-if="info.insutype == '310'">职工基本医疗保险</td>
94
+        <td colspan="12" v-if="info.insutype == '320'">公务员医疗补助</td>
95
+        <td colspan="12" v-if="info.insutype == '330'">大额医疗费用补助</td>
96
+        <td colspan="12" v-if="info.insutype == '340'">离休人员医疗保障</td>
97
+        <td colspan="12" v-if="info.insutype == '390'">城乡居民基本医疗保险</td>
98
+        <td colspan="12" v-if="info.insutype == '392'">城乡居民大病医疗保险</td>
99
+        <td colspan="12" v-if="info.insutype == '510'">生育保险</td>
100
+
101
+
102
+      </tr>
103
+      <tr>
104
+        <td>业务类别</td>
105
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '11'">普通门诊</td>
106
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '12'">门诊挂号</td>
107
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '13'">急诊</td>
108
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '14'">门诊特殊病</td>
109
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '15'">门诊统筹</td>
110
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '16'">门诊慢性病</td>
111
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '21'">普通住院</td>
112
+
113
+        <td>结算时间</td>
114
+        <td colspan="5" style="text-align:left;padding-left:10px;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</td>
115
+      </tr>
116
+      <tr>
117
+        <td colspan="12" style="text-align:left;padding-left:10px;">
118
+          本次就医:总费用{{info.medfee_sumamt}}元,基金支付{{info.fund_pay_sumamt}}元,个人支付{{info.psn_pay}}元。
119
+
120
+        </td>
121
+      </tr>
122
+      <tr>
123
+        <td>费用名称</td>
124
+        <td colspan="2">总费用</td>
125
+        <td>自费</td>
126
+        <td colspan="2">部分项目自付</td>
127
+        <td>费用名称</td>
128
+        <td colspan="2">总费用</td>
129
+        <td>自费</td>
130
+        <td colspan="2">部分项目自付</td>
131
+      </tr>
132
+      <tr>
133
+
134
+        <td>西成药</td>
135
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total}}</td>
136
+        <td style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_self_total}}</td>
137
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total}}</td>
138
+
139
+        <td>中药费</td>
140
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
141
+        <td  style="text-align:right;padding-right:10px;">0</td>
142
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
143
+      </tr>
144
+      <tr>
145
+        <td>中成药</td>
146
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total}}
147
+        </td>
148
+        <td style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_self_total}}</td>
149
+        <td colspan="2" style="text-align:right;padding-right:10px;">
150
+          {{info.chinese_traditional_medicine_cost_part_self_total}}
151
+        </td>
152
+
153
+        <td>中草药</td>
154
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
155
+        <td style="text-align:right;padding-right:10px;">0</td>
156
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
157
+      </tr>
158
+      <tr>
159
+
160
+        <td>检查费</td>
161
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total}}</td>
162
+        <td style="text-align:right;padding-right:10px;">{{info.check_cost_self_total}}</td>
163
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total}}</td>
164
+
165
+        <td>治疗费</td>
166
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total}}</td>
167
+        <td style="text-align:right;padding-right:10px;">{{info.treat_cost_self_total}}</td>
168
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total}}</td>
169
+      </tr>
170
+      <tr>
171
+
172
+      </tr>
173
+      <tr>
174
+        <td>手术费</td>
175
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total}}</td>
176
+        <td style="text-align:right;padding-right:10px;">{{info.operation_cost_self_total}}</td>
177
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total}}</td>
178
+        <td>化验费</td>
179
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total}}</td>
180
+        <td style="text-align:right;padding-right:10px;">{{info.laboratory_cost_self_total}}</td>
181
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total}}</td>
182
+      </tr>
183
+      <tr>
184
+        <td>输血费</td>
185
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
186
+        <td style="text-align:right;padding-right:10px;">0</td>
187
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
188
+        <td>输氧费</td>
189
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
190
+        <td style="text-align:right;padding-right:10px;">0</td>
191
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
192
+      </tr>
193
+      <tr>
194
+        <td>其他</td>
195
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total}}</td>
196
+        <td style="text-align:right;padding-right:10px;">{{info.other_cost_self_total}}</td>
197
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total}}</td>
198
+
199
+        <td>材料费</td>
200
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total}}</td>
201
+        <td style="text-align:right;padding-right:10px;">{{info.material_cost_self_total}}</td>
202
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total}}</td>
203
+      </tr>
204
+
205
+      <tr>
206
+        <td>合计</td>
207
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_total) +
208
+          parseFloat(info.operation_cost_total) + parseFloat(info.other_cost_total) +
209
+          parseFloat(info.material_cost_total) + parseFloat(info.western_medicine_cost_total) +
210
+          parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
211
+          parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}
212
+        </td>
213
+        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total )+
214
+          parseFloat(info.operation_cost_self_total) + parseFloat(info.other_cost_self_total) +
215
+          parseFloat(info.material_cost_self_total) + parseFloat(info.western_medicine_cost_self_total) +
216
+          parseFloat(info.chinese_traditional_medicine_cost_self_total) + parseFloat(info.check_cost_self_total) +
217
+          parseFloat(info.laboratory_cost_self_total) + parseFloat(info.treat_cost_self_total)).toFixed(2)}}
218
+        </td>
219
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total) +
220
+          parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +
221
+          parseFloat(info.material_cost_part_self_total) + parseFloat(info.western_medicine_cost_part_self_total) +
222
+          parseFloat(info.chinese_traditional_medicine_cost_part_self_total) +
223
+          parseFloat(info.check_cost_part_self_total) + parseFloat(info.laboratory_cost_part_self_total) +
224
+          parseFloat(info.treat_cost_part_self_total)).toFixed(2)}}
225
+        </td>
226
+        <td style="text-align:right;padding-right:10px;"></td>
227
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
228
+        <td style="text-align:right;padding-right:10px;"></td>
229
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
230
+      </tr>
231
+      <tr>
232
+        <td colspan="3" style="text-align:left;padding-left:10px;">基本医疗保险统筹基金支付</td>
233
+        <td colspan="3">{{info.hifp_pay}}</td>
234
+        <td colspan="3" style="text-align:left;padding-left:10px;">大额基金支付</td>
235
+        <td colspan="3">{{info.hifob_pay}}</td>
236
+      </tr>
237
+      <tr>
238
+        <td colspan="3" style="text-align:left;padding-left:10px;">大病基金支付</td>
239
+        <td colspan="3">{{info.hifmi_pay}}</td>
240
+        <td colspan="3" style="text-align:left;padding-left:10px;">补充保险基金支付</td>
241
+        <td colspan="3">{{info.hifes_pay}}</td>
242
+      </tr>
243
+      <tr>
244
+        <td colspan="3" style="text-align:left;padding-left:10px;">医疗救助基金支付</td>
245
+        <td colspan="3">{{info.maf_pay}}</td>
246
+        <td colspan="3" style="text-align:left;padding-left:10px;">公务员基金支付</td>
247
+        <td colspan="3">{{info.cvlserv_pay}}</td>
248
+      </tr>
249
+      <tr>
250
+        <td colspan="3" style="text-align:left;padding-left:10px;">其他基金支付</td>
251
+        <td colspan="3">{{info.oth_pay}}</td>
252
+        <td colspan="3" style="text-align:left;padding-left:10px;">个人账户支付</td>
253
+        <td colspan="3">{{info.acct_pay}}</td>
254
+      </tr>
255
+      <tr>
256
+
257
+        <td>制单人:</td>
258
+        <td colspan="5">{{info.p_admin.user_name}}</td>
259
+        <td>打印日期</td>
260
+        <td colspan="5">{{getNowTime()}}</td>
261
+      </tr>
262
+<!--      <tr>-->
263
+<!--        <td colspan="12" style="text-align:left;padding-left:10px;line-height:20px;">-->
264
+<!--          注: 1、部分项目自付金额是指基本医疗保险范围内的项目需参保人先按规定比例自付的金额。<br/>-->
265
+<!--          &ensp;&ensp;&ensp;2、此表由医院打印。<br/>-->
266
+<!--          &ensp;&ensp;&ensp;3、此表一式两份,医院、参保人各一份。-->
267
+<!--        </td>-->
268
+<!--      </tr>-->
269
+<!--      <tr>-->
270
+<!--        <td colspan="12" style="text-align:left;padding-left:10px;">-->
271
+<!--          病人家属签字:-->
272
+<!--        </td>-->
273
+<!--      </tr>-->
274
+    </table>
275
+  </div>
276
+</template>
277
+<script>
278
+export default {
279
+  props: {
280
+    info: {
281
+      type: Object,
282
+      default: function() {
283
+        return {}
284
+      }
285
+    }, p_admin: {
286
+      type: Object,
287
+      default: function() {
288
+        return {}
289
+      }
290
+    }, charge_admin: {
291
+      type: Object,
292
+      default: function() {
293
+        return {}
294
+      }
295
+    }
296
+  },methods:{
297
+    getDay(dateString1,dateString2){
298
+      var  startDate = Date.parse(dateString1);
299
+      var  endDate = Date.parse(dateString2);
300
+      if (startDate>endDate){
301
+        return 0;
302
+      }
303
+      if (startDate==endDate){
304
+        return 1;
305
+      }
306
+      var days=(endDate - startDate)/(1*24*60*60*1000);
307
+      return  days;
308
+
309
+    },
310
+    getNowTime: function () {
311
+      let dateTime;
312
+      let yy = new Date().getFullYear();
313
+      let mm = new Date().getMonth() + 1;
314
+      let dd = new Date().getDate();
315
+      let hh = new Date().getHours();
316
+      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
317
+        :
318
+        new Date().getMinutes();
319
+      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
320
+        :
321
+        new Date().getSeconds();
322
+      dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
323
+      return dateTime
324
+    },
325
+
326
+  }
327
+}
328
+
329
+
330
+</script>
331
+
332
+
333
+<style lang="scss" scoped>
334
+.statement-print {
335
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
336
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
337
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
338
+  margin-bottom: 20px;
339
+  padding: 20px 10px;
340
+}
341
+
342
+.statementTitle {
343
+  font-size: 28px;
344
+  text-align: center;
345
+  font-weight: bold;
346
+  margin-bottom: 10px;
347
+}
348
+
349
+.statementTable {
350
+  width: 100%;
351
+  text-align: center;
352
+  border-collapse: collapse;
353
+  line-height: 40px;
354
+  font-size: 14px;
355
+  border-color: #000;
356
+}
357
+</style>

+ 32 - 22
src/xt_pages/outpatientCharges/statementTemplate/printFive.vue View File

@@ -55,33 +55,43 @@
55 55
 <!--            </template>-->
56 56
 <!--          </td>-->
57 57
         <tr>
58
+<!--          <td colspan="6">-->
59
+<!--            <table class="list_table">-->
60
+<!--              <tr>-->
61
+<!--                <td colspan="2">{{'名称'}}</td>-->
62
+<!--                <td>{{'规格'}}</td>-->
63
+<!--                <td>{{'数量'}}</td>-->
64
+<!--                <td>{{'价格'}}</td>-->
65
+<!--              </tr>-->
66
+<!--              <tr colspan="6" v-for="(v, index) in info.L_list" :key="index">-->
67
+<!--                <td colspan="2">{{v.name}}</td>-->
68
+<!--                <td>{{v.spec}}</td>-->
69
+<!--                <td>{{v.cnt}}</td>-->
70
+<!--                <td>{{v.det_item_fee_sumamt}}</td>-->
71
+<!--              </tr>-->
72
+<!--            </table>-->
73
+<!--          </td>-->
74
+        <td colspan="6">
75
+          <table class="list_table">
76
+            <tr>
77
+
78
+            </tr>
79
+            <tr colspan="6" v-for="(v, index) in info.L_list" :key="index">
80
+              <td colspan="2">{{v.name}}</td>
81
+              <td>{{v.spec}}</td>
82
+              <td>{{v.cnt}}</td>
83
+              <td>{{v.det_item_fee_sumamt}}</td>
84
+            </tr>
85
+          </table>
86
+        </td>
87
+
58 88
           <td colspan="6">
59 89
             <table class="list_table">
60 90
               <tr>
61
-                <td colspan="2">{{'名称'}}</td>
62
-                <td>{{'规格'}}</td>
63
-                <td>{{'数量'}}</td>
64
-                <td>{{'价格'}}</td>
65
-              </tr>
66
-              <tr colspan="6" v-for="(v, index) in info.L_list" :key="index">
67
-                <td colspan="2">{{v.code}}</td>
68
-                <td colspan="2">{{v.name}}</td>
69
-                <td>{{v.spec}}</td>
70
-                <td>{{v.cnt}}</td>
71
-                <td>{{v.det_item_fee_sumamt}}</td>
72
-              </tr>
73
-            </table>
74
-          </td>
75 91
 
76
-          <td colspan="6">
77
-            <table class="list_table">
78
-              <td colspan="2">{{'名称'}}</td>
79
-              <td>{{'规格'}}</td>
80
-              <td>{{'数量'}}</td>
81
-              <td>{{'价格'}}</td>
92
+              </tr>
82 93
               <tr colspan="6" v-for="(v, index) in info.R_list" :key="index">
83 94
                 <td colspan="2">{{v.name}}</td>
84
-                <td colspan="2">{{v.code}}</td>
85 95
                 <td>{{v.spec}}</td>
86 96
                 <td>{{v.cnt}}</td>
87 97
                 <td>{{v.det_item_fee_sumamt}}</td>
@@ -90,7 +100,7 @@
90 100
           </td>
91 101
         </tr>
92 102
         <tr>
93
-          <td colspan="10">共一页,第一页{{info.medfee_sumamt}}</td>
103
+<!--          <td colspan="10">共一页,第一页{{// info.medfee_sumamt}}</td>-->
94 104
         </tr>
95 105
         <tr class="dashed_tr">
96 106
           <td colspan="10">结付分类</td>

+ 394 - 24
src/xt_pages/outpatientCharges/summary.vue View File

@@ -110,16 +110,20 @@
110 110
           >
111 111
           <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
112 112
           <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten_two">报表下载3</el-button>
113
+          <el-button  size="small" type="primary" @click="export_detail_ten_three">报表下载4</el-button>
114
+
113 115
 
114 116
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
115 117
           <!--          >报表下载2-->
116 118
           <!--          </el-button-->
117 119
           <!--          >-->
118 120
 
119
-          <!--                    <el-button size="small" type="primary" @click="export_detail_three">报表下载2</el-button>-->
121
+                              <el-button size="small" type="primary" @click="export_detail_three">报表下载2</el-button>
120 122
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
121 123
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
122 124
 <!--                    <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
125
+<!--          <el-button size="small" type="primary" @click="export_detail_tenone">报表下载10</el-button>-->
126
+
123 127
           <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
124 128
 
125 129
 
@@ -225,6 +229,9 @@
225 229
             <el-button size="mini" type="primary" @click="toPrint(scope.row)">
226 230
               结算单
227 231
             </el-button>
232
+            <el-button v-if="$store.getters.xt_user.org_id == 10191" size="mini" type="primary" @click="tolistPrint(scope.row)">
233
+              结算清单
234
+            </el-button>
228 235
             <el-button
229 236
                 size="mini"
230 237
                 type="primary"
@@ -233,11 +240,38 @@
233 240
             >
234 241
               上传结算清单
235 242
             </el-button>
243
+
244
+            <el-button
245
+              size="mini"
246
+              type="primary"
247
+              @click="confirmUploadInfo(scope.row)"
248
+              v-if="$store.getters.xt_user.org_id == 10265"
249
+            >
250
+              确认结算清单
251
+            </el-button>
252
+            <el-button
253
+              size="mini"
254
+              type="primary"
255
+              @click="cancelUploadTwo(scope.row)"
256
+              v-if="$store.getters.xt_user.org_id == 10265"
257
+            >
258
+              取消结算清单
259
+            </el-button>
260
+
261
+            <el-button
262
+              size="mini"
263
+              type="primary"
264
+              @click="queryData(scope.row)"
265
+              v-if="$store.getters.xt_user.org_id == 10265"
266
+            >
267
+              查询结算清单
268
+            </el-button>
269
+
236 270
             <el-button
237 271
                 size="mini"
238 272
                 type="primary"
239 273
                 @click="cancelUpload(scope.row)"
240
-                v-if="scope.row.order_status == 2 && scope.row.result.id > 0"
274
+                v-if="$store.getters.xt_user.org_id != 10265 && scope.row.order_status == 2 && scope.row.result.id > 0"
241 275
             >
242 276
               撤销结算清单
243 277
             </el-button>
@@ -290,6 +324,16 @@
290 324
           :paramsObj="orderObj"
291 325
       ></new-statement-print>
292 326
     </el-dialog>
327
+    <el-dialog
328
+      class="centerDialog"
329
+      width="1200px"
330
+      title="打印"
331
+      :visible.sync="statementListVisible"
332
+    >
333
+      <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
334
+    <statement-list-print ref="printlist" :paramsObj='orderObj'></statement-list-print>
335
+    </el-dialog>
336
+
293 337
     <el-dialog
294 338
         class="centerDialog"
295 339
         width="900px"
@@ -354,13 +398,15 @@ import invoicePrint from "./invoicePrint";
354 398
 import settlementPrint from "./settlementPrint";
355 399
 import {jsGetAge, uParseTime} from "@/utils/tools";
356 400
 
357
-import {getHisDataFive, getHisDataSix, getHisDataThree, getHisDataTwo,getAllOrders} from "../../api/his/his";
401
+import {getHisDataFive, getHisDataSix, getHisDataThree, getHisDataTwo,getAllOrders,exportOrderInfo} from "../../api/his/his";
358 402
 
359
-import {handleData10106,handleData10318} from "../../api/his/his_export";
403
+import {handleData10106,handleData10318,handleData10138Two} from "../../api/his/his_export";
404
+import StatementListPrint from "./statementListPrint";
360 405
 
361 406
 export default {
362 407
   name: "OutpatientChargesSummary",
363 408
   components: {
409
+    StatementListPrint,
364 410
     NewStatementPrintTwo,
365 411
     NewStatementPrint,
366 412
     BreadCrumb,
@@ -372,6 +418,7 @@ export default {
372 418
   data() {
373 419
     return {
374 420
       orderObj: {},
421
+      statementListVisible:false,
375 422
       statementVisible: false,
376 423
       statementVisible9504: false,
377 424
       orderObj9504: {},
@@ -482,10 +529,46 @@ export default {
482 529
           return "普通住院";
483 530
           break;
484 531
       }
532
+    },cancelUploadTwo(row){
533
+      if(this.$store.getters.xt_user.org_id == 10265){
534
+        var that = this;
535
+        axios
536
+          .get("http://127.0.0.1:9532/api/4102", {
537
+            params: {
538
+              order_id: row.id,
539
+              admin_user_id: this.$store.getters.xt_user.user.id,
540
+              stas_type: 0
541
+            },
542
+          })
543
+          .then(function (response) {
544
+            if (response.data.state == 0) {
545
+              that.$message.error(response.data.msg);
546
+              return false;
547
+            } else {
548
+              if (response.data.data.failed_code == -10) {
549
+                // that.$message.error(response.data.data.msg)
550
+                that
551
+                  .$confirm(response.data.data.msg, "医保错误信息", {
552
+                    confirmButtonText: "确 定",
553
+                    type: "warning",
554
+                  })
555
+                  .then(() => {
556
+                  })
557
+                  .catch(() => {
558
+                  });
559
+              } else {
560
+                that.$message.success("撤销成功");
561
+                row.result.id = 0;
562
+              }
563
+            }
564
+          })
565
+          .catch(function (error) {
566
+          });
567
+      }
485 568
     },
486 569
     cancelUpload(row) {
487
-      var that = this;
488
-      axios
570
+        var that = this;
571
+        axios
489 572
           .get("http://127.0.0.1:9532/zh/api/clearsettle", {
490 573
             params: {
491 574
               order_id: row.id,
@@ -500,14 +583,14 @@ export default {
500 583
               if (response.data.data.failed_code == -10) {
501 584
                 // that.$message.error(response.data.data.msg)
502 585
                 that
503
-                    .$confirm(response.data.data.msg, "医保错误信息", {
504
-                      confirmButtonText: "确 定",
505
-                      type: "warning",
506
-                    })
507
-                    .then(() => {
508
-                    })
509
-                    .catch(() => {
510
-                    });
586
+                  .$confirm(response.data.data.msg, "医保错误信息", {
587
+                    confirmButtonText: "确 定",
588
+                    type: "warning",
589
+                  })
590
+                  .then(() => {
591
+                  })
592
+                  .catch(() => {
593
+                  });
511 594
               } else {
512 595
                 that.$message.success("撤销成功");
513 596
                 row.result.id = 0;
@@ -516,6 +599,7 @@ export default {
516 599
           })
517 600
           .catch(function (error) {
518 601
           });
602
+
519 603
     },
520 604
     uploadInfo(row) {
521 605
       var that = this;
@@ -550,6 +634,82 @@ export default {
550 634
           })
551 635
           .catch(function (error) {
552 636
           });
637
+    },queryData(row){
638
+      var that = this;
639
+      axios
640
+        .get("http://127.0.0.1:9532/api/4103", {
641
+          params: {
642
+            order_id: row.id,
643
+            admin_user_id: this.$store.getters.xt_user.user.id,
644
+          },
645
+        })
646
+        .then(function (response) {
647
+          if (response.data.state == 0) {
648
+            that.$message.error(response.data.msg);
649
+            return false;
650
+          } else {
651
+            if (response.data.data.failed_code == -10) {
652
+              that
653
+                .$confirm(response.data.data.msg, "医保错误信息", {
654
+                  confirmButtonText: "确 定",
655
+                  type: "warning",
656
+                })
657
+                .then(() => {
658
+                })
659
+                .catch(() => {
660
+                });
661
+            } else {
662
+              that
663
+                .$confirm(response.data.data.msg, "医保信息", {
664
+                  confirmButtonText: "确 定",
665
+                })
666
+                .then(() => {
667
+                })
668
+                .catch(() => {
669
+                });
670
+            }
671
+          }
672
+        })
673
+        .catch(function (error) {
674
+        });
675
+
676
+
677
+    },
678
+    confirmUploadInfo(row){
679
+      var that = this;
680
+      axios
681
+        .get("http://127.0.0.1:9532/api/4102", {
682
+          params: {
683
+            order_id: row.id,
684
+            admin_user_id: this.$store.getters.xt_user.user.id,
685
+            stas_type: 1
686
+          },
687
+        })
688
+        .then(function (response) {
689
+          if (response.data.state == 0) {
690
+            that.$message.error(response.data.msg);
691
+            return false;
692
+          } else {
693
+            if (response.data.data.failed_code == -10) {
694
+              that
695
+                .$confirm(response.data.data.msg, "医保错误信息", {
696
+                  confirmButtonText: "确 定",
697
+                  type: "warning",
698
+                })
699
+                .then(() => {
700
+                })
701
+                .catch(() => {
702
+                });
703
+            } else {
704
+              that.$message.success("确认成功");
705
+              row.result.id = response.data.data.result.id;
706
+            }
707
+          }
708
+        })
709
+        .catch(function (error) {
710
+        });
711
+
712
+
553 713
     },
554 714
 
555 715
     fetchAllAdminUsers() {
@@ -641,7 +801,42 @@ export default {
641 801
             .catch(() => {
642 802
             });
643 803
       }
804
+    }, tolistPrint(row) {
805
+      // if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
806
+      //   if (row.mdtrt_id.indexOf('H') > -1) {
807
+      //     this.statementVisible9504 = true
808
+      //     let obj = {
809
+      //       order_id: row.id,
810
+      //       patient_id: row.patient_id,
811
+      //       record_time: this.getTimes(row.settle_accounts_date),
812
+      //       admin_user_id: this.$store.getters.xt_user.user.id
813
+      //     }
814
+      //     this.orderObj9504 = obj
815
+      //   } else {
816
+      //
817
+      //     this.statementVisible9504 = true
818
+      //     let obj = {
819
+      //       order_id: row.id,
820
+      //       patient_id: row.patient_id,
821
+      //       record_time: this.getTimes(row.settle_accounts_date),
822
+      //       admin_user_id: this.$store.getters.xt_user.user.id,
823
+      //       balance_accounts_type: 2
824
+      //     }
825
+      //     this.orderObj9504 = obj
826
+      //   }
827
+      //
828
+      // } else {
829
+      this.statementListVisible = true;
830
+      let obj = {
831
+        order_id: row.id,
832
+        settle_type: row.settle_type,
833
+        start_time: row.settle_start_time,
834
+        end_time: row.settle_end_time,
835
+        balance_accounts_type: row.his_patient.balance_accounts_type,
836
+      };
837
+      this.orderObj = obj;
644 838
     },
839
+
645 840
     toPrint(row) {
646 841
       // if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
647 842
       //   if (row.mdtrt_id.indexOf('H') > -1) {
@@ -718,24 +913,17 @@ export default {
718 913
               //   obj["dialysis_time"] = this.getTimes(order.info[b].record_date)
719 914
               // }
720 915
               if (order.psn_type == "11") {
721
-
722 916
                 obj["psn_type"] = "职工在职"
723 917
               } else if (order.psn_type == "12") {
724 918
                 obj["psn_type"] = "职工退休"
725
-
726 919
               } else if (order.psn_type == "13") {
727 920
                 obj["psn_type"] = "离休"
728
-
729 921
               } else if (order.psn_type == "14") {
730 922
                 obj["psn_type"] = "居民医保"
731
-
732 923
               } else if (order.psn_type == "15") {
733
-
734 924
                 obj["psn_type"] = "居民医保"
735
-
736 925
               } else if (order.psn_type == "16") {
737 926
                 obj["psn_type"] = "居民医保"
738
-
739 927
               }
740 928
 
741 929
               list.push(obj)
@@ -839,8 +1027,8 @@ export default {
839 1027
               let obj = {
840 1028
                 name: order.patient.name,
841 1029
                 id_card_no: order.patient.id_card_no,
842
-                year: "2022",
843
-                month: "8",
1030
+                year: "2023",
1031
+                month: "1",
844 1032
                 code: data[b].code,
845 1033
                 pric: data[b].count * data[b].price,
846 1034
                 item_name: data[b].name,
@@ -1221,7 +1409,7 @@ export default {
1221 1409
           var tarList = []
1222 1410
           for (let i = 0; i < list.length; i++) {
1223 1411
             let obj = {
1224
-              "周期": "2022年第四季度",
1412
+              "周期": "2023年第一季度",
1225 1413
               "类别": "门诊",
1226 1414
               "医保目录编码": list[i].code,
1227 1415
               "医保目录名称": list[i].name,
@@ -1419,6 +1607,99 @@ export default {
1419 1607
       });
1420 1608
 
1421 1609
     },
1610
+    export_detail_tenone(){
1611
+      let params = {
1612
+        start_time: this.start_time,
1613
+        end_time: this.end_time,
1614
+      };
1615
+      handleData10138Two(params).then((response) => {
1616
+        if (response.data.state == 0) {
1617
+          this.$message.error(response.data.msg);
1618
+          return false;
1619
+        } else {
1620
+          var list = []
1621
+          var orders = response.data.data.info
1622
+          for (let i = 0; i < orders.length; i++) {
1623
+            for (let b = 0; b < orders[i].order.length; b++) {
1624
+              for (let c = 0; c < orders[i].order[b].infos.length; c++) {
1625
+                let name = orders[i].name
1626
+                let date = this.getTimes(orders[i].order[b].settle_accounts_date)
1627
+                let code = orders[i].order[b].number
1628
+                let cnt = orders[i].order[b].infos[c].cnt
1629
+                let pric =   orders[i].order[b].infos[c].pric
1630
+                let det_item_fee_sumamt =  orders[i].order[b].infos[c].det_item_fee_sumamt
1631
+
1632
+                let item_name = ""
1633
+                let unit = ""
1634
+                let spec = ""
1635
+
1636
+                if (orders[i].order[b].infos[c].advice_id > 0) {
1637
+                  item_name = orders[i].order[b].infos[c].advices.drug.drug_name
1638
+                  unit = orders[i].order[b].infos[c].advices.prescribing_number_unit
1639
+                  spec = (orders[i].order[b].infos[c].advices.drug.dose + orders[i].order[b].infos[c].advices.drug.dose_unit) + "*" + orders[i].order[b].infos[c].advices.drug.min_number + orders[i].order[b].infos[c].advices.drug.min_unit + "/" + orders[i].order[b].infos[c].advices.drug.max_unit
1640
+                }
1641
+                if (orders[i].order[b].infos[c].project_id > 0 && orders[i].order[b].infos[c].project.type == 2) {
1642
+                  item_name = orders[i].order[b].infos[c].project.project.project_name
1643
+                  unit =orders[i].order[b].infos[c].project.project.unit
1644
+                  spec = orders[i].order[b].infos[c].project.project.project_name
1645
+                }
1646
+                if (orders[i].order[b].infos[c].project_id > 0 && orders[i].order[b].infos[c].project.type == 3) {
1647
+                  item_name = orders[i].order[b].infos[c].project.good_info.good_name
1648
+                  unit = orders[i].order[b].infos[c].project.good_info.packing_unit
1649
+                  spec = orders[i].order[b].infos[c].project.good_info.specification_name
1650
+                }
1651
+
1652
+                let obj = {
1653
+                  "姓名":name,
1654
+                  "处方日期":date,
1655
+                  "费用编码":code,
1656
+                  "项目名称":item_name,
1657
+                  "规格": spec,
1658
+                  "数量": cnt,
1659
+                  "单位": unit,
1660
+                  "金额": det_item_fee_sumamt,
1661
+                  "单价": pric,
1662
+                }
1663
+                list.push(obj)
1664
+              }
1665
+            }
1666
+          }
1667
+
1668
+
1669
+          import("@/vendor/Export2Excel").then((excel) => {
1670
+            const tHeader = [
1671
+              "姓名",
1672
+              "处方日期",
1673
+              "费用编码",
1674
+              "项目名称",
1675
+              "规格",
1676
+              "数量",
1677
+              "单位",
1678
+              "单价",
1679
+              "金额",
1680
+            ];
1681
+            const filterVal = [
1682
+              "姓名",
1683
+              "处方日期",
1684
+              "费用编码",
1685
+              "项目名称",
1686
+              "规格",
1687
+              "数量",
1688
+              "单位",
1689
+              "单价",
1690
+              "金额",
1691
+            ];
1692
+            const data = this.formatJson(filterVal, list);
1693
+            excel.export_json_to_excel({
1694
+              header: tHeader,
1695
+              data,
1696
+              filename: "消费明细",
1697
+            });
1698
+          });
1699
+
1700
+        }
1701
+      });
1702
+    },
1422 1703
     getType(med_chrgitm_type) {
1423 1704
       switch (med_chrgitm_type) {
1424 1705
         case '01':
@@ -1732,6 +2013,95 @@ export default {
1732 2013
       });
1733 2014
 
1734 2015
 
2016
+    },
2017
+    export_detail_ten_three(){
2018
+      exportOrderInfo().then((response) => {
2019
+        if (response.data.state == 0) {
2020
+          this.$message.error(response.data.msg);
2021
+          return false;
2022
+        } else {
2023
+          let list = [];
2024
+            for (let b = 0; b < response.data.data.info.length; b++) {
2025
+              let item_name = "";
2026
+              let item_code = "";
2027
+              let price = "";
2028
+              let unit = "";
2029
+              let spec = "";
2030
+              let cnt = "";
2031
+
2032
+              if (
2033
+                response.data.data.info[b].advices.id == 0 &&
2034
+                response.data.data.info[b].project.id > 0
2035
+              ) {
2036
+
2037
+                if (response.data.data.info[b].project.type == 2){
2038
+                  item_name = response.data.data.info[b].project.project.project_name;
2039
+                  item_code = response.data.data.info[b].project.project.medical_code;
2040
+                  price = response.data.data.info[b].det_item_fee_sumamt;
2041
+                  unit = response.data.data.info[b].project.project.unit;
2042
+                  cnt=response.data.data.info[b].cnt;
2043
+
2044
+                }else{
2045
+
2046
+                  item_name = response.data.data.info[b].project.good_info.good_name;
2047
+                  item_code = response.data.data.info[b].project.good_info.medical_insurance_number;
2048
+                  price =response.data.data.info[b].det_item_fee_sumamt;
2049
+                  unit = response.data.data.info[b].project.good_info.packing_unit;
2050
+                  cnt=response.data.data.info[b].cnt;
2051
+
2052
+                }
2053
+
2054
+              } else if (
2055
+                response.data.data.info[b].advices.id > 0 &&
2056
+                response.data.data.info[b].project.id == 0
2057
+              ) {
2058
+                item_name =response.data.data.info[b].advices.advice_name;
2059
+                item_code =
2060
+                  response.data.data.info[b].advices.drug.medical_insurance_number;
2061
+                price = response.data.data.info[b].det_item_fee_sumamt;
2062
+                unit = response.data.data.info[b].advices.prescribing_number_unit;
2063
+                spec =response.data.data.info[b].advices.drug.dose +  response.data.data.info[b].advices.drug.dose_unit+"*" + response.data.data.info[b].advices.drug.min_number + response.data.data.info[b].advices.drug.min_unit+"/"+response.data.data.info[b].advices.drug.max_unit
2064
+                cnt=response.data.data.info[b].cnt;
2065
+
2066
+
2067
+              }
2068
+              let obj = {
2069
+                名称: item_name,
2070
+                总价: price,
2071
+                数量: cnt,
2072
+                规格: spec,
2073
+
2074
+              };
2075
+
2076
+              list.push(obj);
2077
+            }
2078
+          import("@/vendor/Export2Excel").then((excel) => {
2079
+            const tHeader = [
2080
+              "名称",
2081
+              "总价",
2082
+              "数量",
2083
+              "规格",
2084
+
2085
+            ];
2086
+            const filterVal = [
2087
+              "名称",
2088
+              "总价",
2089
+              "数量",
2090
+              "规格",
2091
+
2092
+            ];
2093
+            const data = this.formatJson(filterVal, list);
2094
+            excel.export_json_to_excel({
2095
+              header: tHeader,
2096
+              data,
2097
+              filename: "消费明细",
2098
+            });
2099
+          });
2100
+        }
2101
+      });
2102
+
2103
+
2104
+
1735 2105
     },
1736 2106
     GetGoodName(id) {
1737 2107
       switch (id) {

+ 12 - 5
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

@@ -304,7 +304,7 @@
304 304
                   <td style="border-right: none; border-inline-end:none;text-align: center">
305 305
                     <span v-if="is_sys==1 || is_sys == 5">{{getOutCountSix(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
306 306
                     <span v-if="is_sys == 12">{{getOutCountTen(item.count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
307
-                    <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
307
+                    <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}} </span>
308 308
                   </td>
309 309
                </tr>
310 310
             </template>
@@ -1222,9 +1222,10 @@ export default {
1222 1222
           this.dealerList = response.data.data.dealerList;
1223 1223
           var drugFlowList = response.data.data.drugFlowList;
1224 1224
           var drugList = response.data.data.drugList
1225
-        
1225
+         
1226 1226
           this.tabList = drugList
1227 1227
           var drugListOne = response.data.data.drugListFlow
1228
+          console.log("drugListOne----------",drugListOne)
1228 1229
           //按批号分组
1229 1230
           var drugListTwo=  response.data.data.drugListOne
1230 1231
           console.log("drugListTwo9922wo",drugListTwo)
@@ -1247,6 +1248,9 @@ export default {
1247 1248
                        drugFlowList[i].childOne.push(drugListOne[j])
1248 1249
                    }
1249 1250
                 }
1251
+                if(drugFlowList[i].drug_id == 1154){
1252
+                    console.log("drugflowlist------",drugFlowList[i].count)
1253
+                }
1250 1254
               }
1251 1255
             }
1252 1256
           
@@ -1311,6 +1315,7 @@ export default {
1311 1315
                } 
1312 1316
             }
1313 1317
           }
1318
+          console.log("list表格---------",list)
1314 1319
           this.tableList = list;
1315 1320
         }
1316 1321
         if(is_sys == 12){
@@ -1821,14 +1826,16 @@ export default {
1821 1826
       }
1822 1827
       return max_str + min_str;
1823 1828
     },
1824
-    getOutCountOne(batch_number,max_unit,min_unit,min_number){
1825
-     
1829
+    getOutCountOne(batch_number,max_unit,min_unit,min_number,drug_id){
1830
+      console.log("drug_id-----",drug_id)
1826 1831
       var arr = []
1827 1832
       var total = 0
1828 1833
       var max_str = ""
1829 1834
       var min_str = ""
1835
+      console.log("tablelost----",this.tabList)
1830 1836
       for(let j=0;j<this.tabList.length;j++){
1831
-        if(batch_number == this.tabList[j].batch_number){
1837
+      
1838
+        if(batch_number == this.tabList[j].batch_number && drug_id == this.tabList[j].drug_id){
1832 1839
            arr.push(this.tabList[j])
1833 1840
         }
1834 1841
       }

+ 1 - 0
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue View File

@@ -915,6 +915,7 @@ export default {
915 915
           this.$message.error(response.data.msg);
916 916
           return false;
917 917
         } else {
918
+          this.recordInfo.recordData = []
918 919
           var manulist = response.data.data.manulist;
919 920
           this.manufacturerList = manulist;
920 921
           this.dealerList = response.data.data.dealerList;

+ 82 - 37
src/xt_pages/workforce/components/tableData.vue View File

@@ -217,18 +217,24 @@
217 217
           <schedule-item
218 218
             slot-scope="scope"
219 219
             :schedule-detail="scope.row.Mon_M"
220
+            :config="config"
221
+
220 222
           ></schedule-item>
221 223
         </el-table-column>
222 224
         <el-table-column prop="Mon_A" label="下" width="110" align="center" v-if="isShowXiaWu">
223 225
           <schedule-item
224 226
             slot-scope="scope"
225 227
             :schedule-detail="scope.row.Mon_A"
228
+            :config="config"
229
+
226 230
           ></schedule-item>
227 231
         </el-table-column>
228 232
         <el-table-column prop="Mon_N" label="晚" width="110" align="center" v-if="isShowWanShang">
229 233
           <schedule-item
230 234
             slot-scope="scope"
231 235
             :schedule-detail="scope.row.Mon_N"
236
+            :config="config"
237
+
232 238
           ></schedule-item>
233 239
         </el-table-column>
234 240
       </el-table-column>
@@ -242,18 +248,24 @@
242 248
           <schedule-item
243 249
             slot-scope="scope"
244 250
             :schedule-detail="scope.row.Tue_M"
251
+            :config="config"
252
+
245 253
           ></schedule-item>
246 254
         </el-table-column>
247 255
         <el-table-column prop="Tue_A" label="下" width="110" align="center" v-if="isShowXiaWu">
248 256
           <schedule-item
249 257
             slot-scope="scope"
250 258
             :schedule-detail="scope.row.Tue_A"
259
+            :config="config"
260
+
251 261
           ></schedule-item>
252 262
         </el-table-column>
253 263
         <el-table-column prop="Tue_N" label="晚" width="110" align="center" v-if="isShowWanShang">
254 264
           <schedule-item
255 265
             slot-scope="scope"
256 266
             :schedule-detail="scope.row.Tue_N"
267
+            :config="config"
268
+
257 269
           ></schedule-item>
258 270
         </el-table-column>
259 271
       </el-table-column>
@@ -268,17 +280,23 @@
268 280
           <schedule-item
269 281
             slot-scope="scope"
270 282
             :schedule-detail="scope.row.Wed_M"
283
+            :config="config"
284
+
271 285
           ></schedule-item>
272 286
         </el-table-column>
273 287
         <el-table-column prop="Wed_A" label="下" width="110" align="center" v-if="isShowXiaWu">
274 288
           <schedule-item
275 289
             slot-scope="scope"
276 290
             :schedule-detail="scope.row.Wed_A"
291
+            :config="config"
292
+
277 293
           ></schedule-item>
278 294
         </el-table-column>
279 295
         <el-table-column prop="Wed_N" label="晚" width="110" align="center" v-if="isShowWanShang">
280 296
           <schedule-item
281 297
             slot-scope="scope"
298
+            :config="config"
299
+
282 300
             :schedule-detail="scope.row.Wed_N"
283 301
           ></schedule-item>
284 302
         </el-table-column>
@@ -293,6 +311,7 @@
293 311
         <el-table-column prop="Thurs_M" label="上" width="110" align="center" v-if="isShowShangWu">
294 312
           <schedule-item
295 313
             slot-scope="scope"
314
+            :config="config"
296 315
             :schedule-detail="scope.row.Thurs_M"
297 316
           ></schedule-item>
298 317
         </el-table-column>
@@ -300,12 +319,16 @@
300 319
           <schedule-item
301 320
             slot-scope="scope"
302 321
             :schedule-detail="scope.row.Thurs_A"
322
+            :config="config"
323
+
303 324
           ></schedule-item>
304 325
         </el-table-column>
305 326
         <el-table-column prop="Thurs_N" label="晚" width="110" align="center" v-if="isShowWanShang">
306 327
           <schedule-item
307 328
             slot-scope="scope"
308 329
             :schedule-detail="scope.row.Thurs_N"
330
+            :config="config"
331
+
309 332
           ></schedule-item>
310 333
         </el-table-column>
311 334
       </el-table-column>
@@ -320,18 +343,24 @@
320 343
           <schedule-item
321 344
             slot-scope="scope"
322 345
             :schedule-detail="scope.row.Fri_M"
346
+            :config="config"
347
+
323 348
           ></schedule-item>
324 349
         </el-table-column>
325 350
         <el-table-column prop="Fri_A" label="下" width="110" align="center" v-if="isShowXiaWu">
326 351
           <schedule-item
327 352
             slot-scope="scope"
328 353
             :schedule-detail="scope.row.Fri_A"
354
+            :config="config"
355
+
329 356
           ></schedule-item>
330 357
         </el-table-column>
331 358
         <el-table-column prop="Fri_N" label="晚" width="110" align="center" v-if="isShowWanShang">
332 359
           <schedule-item
333 360
             slot-scope="scope"
334 361
             :schedule-detail="scope.row.Fri_N"
362
+            :config="config"
363
+
335 364
           ></schedule-item>
336 365
         </el-table-column>
337 366
       </el-table-column>
@@ -346,18 +375,24 @@
346 375
           <schedule-item
347 376
             slot-scope="scope"
348 377
             :schedule-detail="scope.row.Sat_M"
378
+            :config="config"
379
+
349 380
           ></schedule-item>
350 381
         </el-table-column>
351 382
         <el-table-column prop="Sat_A" label="下" width="110" align="center" v-if="isShowXiaWu">
352 383
           <schedule-item
353 384
             slot-scope="scope"
354 385
             :schedule-detail="scope.row.Sat_A"
386
+            :config="config"
387
+
355 388
           ></schedule-item>
356 389
         </el-table-column>
357 390
         <el-table-column prop="Sat_N" label="晚" width="110" align="center" v-if="isShowWanShang">
358 391
           <schedule-item
359 392
             slot-scope="scope"
360 393
             :schedule-detail="scope.row.Sat_N"
394
+            :config="config"
395
+
361 396
           ></schedule-item>
362 397
         </el-table-column>
363 398
       </el-table-column>
@@ -372,22 +407,28 @@
372 407
           <schedule-item
373 408
             slot-scope="scope"
374 409
             :schedule-detail="scope.row.Sun_M"
410
+            :config="config"
411
+
375 412
           ></schedule-item>
376 413
         </el-table-column>
377 414
         <el-table-column prop="Sun_A" label="下" min-width="110" align="center" v-if="isShowXiaWu">
378 415
           <schedule-item
379 416
             slot-scope="scope"
380 417
             :schedule-detail="scope.row.Sun_A"
418
+            :config="config"
419
+
381 420
           ></schedule-item>
382 421
         </el-table-column>
383 422
         <el-table-column prop="Sun_N" label="晚" min-width="110" align="center" v-if="isShowWanShang">
384 423
           <schedule-item
385 424
             slot-scope="scope"
386 425
             :schedule-detail="scope.row.Sun_N"
426
+            :config="config"
427
+
387 428
           ></schedule-item>
388 429
         </el-table-column>
389 430
       </el-table-column>
390
-    
431
+
391 432
 <!--      <el-table-column-->
392 433
 <!--        prop="total"-->
393 434
 <!--        label="总数"-->
@@ -734,7 +775,11 @@ export default {
734 775
     partitionsProp: {
735 776
       type: Object,
736 777
       dafault: {}
737
-    }
778
+    }, config: {
779
+      type: Object,
780
+      dafault: {}
781
+    },
782
+
738 783
   },
739 784
   data() {
740 785
     return {
@@ -1064,7 +1109,7 @@ export default {
1064 1109
           var partitions = response.data.data.partitions
1065 1110
           console.log("partitions",partitions)
1066 1111
           this.theWeek.thisWeek = response.data.data.theWeek
1067
-          
1112
+
1068 1113
           this.theWeek.lastWeek = this.theWeek.thisWeek - 1
1069 1114
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
1070 1115
           this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
@@ -1305,7 +1350,7 @@ export default {
1305 1350
               })
1306 1351
             })
1307 1352
           }
1308
-          
1353
+
1309 1354
           this.scheduleZone.sort(this.compare('sort'))
1310 1355
           this.source_scheduleZone = this.scheduleZone
1311 1356
           console.log("34455555566666",this.source_scheduleZone)
@@ -1356,13 +1401,13 @@ export default {
1356 1401
       this.getSchedulePatients();
1357 1402
     },
1358 1403
     getSummaries(param) {
1359
-    
1360
-     
1404
+
1405
+
1361 1406
       const { columns, data } = param;
1362 1407
       const sums = [];
1363
-    
1408
+
1364 1409
       columns.forEach((column, index) => {
1365
-       
1410
+
1366 1411
         if (index === 0 ) {
1367 1412
           sums[index] = "总数";
1368 1413
           return;
@@ -1373,7 +1418,7 @@ export default {
1373 1418
         }
1374 1419
 
1375 1420
         const values = data.map(item => item[column.property]);
1376
-        
1421
+
1377 1422
         sums[index] = values.reduce((prev, curr) => {
1378 1423
           if (typeof curr["mode_id"] === "undefined") {
1379 1424
             return prev;
@@ -1451,7 +1496,7 @@ export default {
1451 1496
       var Sun_N_One= 0
1452 1497
 
1453 1498
       if(this.schedulesGroup!=null && this.schedulesGroup.length >0){
1454
-        
1499
+
1455 1500
         for(let i=0;i<this.schedulesGroup.length;i++){
1456 1501
           //灌流
1457 1502
           //礼拜一上午
@@ -1592,7 +1637,7 @@ export default {
1592 1637
            //礼拜四上午
1593 1638
           if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1594 1639
             Thurs_M_One = this.schedulesGroup[i].Count
1595
-            
1640
+
1596 1641
           }
1597 1642
            //礼拜四下午
1598 1643
            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
@@ -1642,41 +1687,41 @@ export default {
1642 1687
            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1643 1688
             Sun_N_One = this.schedulesGroup[i].Count
1644 1689
           }
1645
-  
1690
+
1646 1691
         }
1647 1692
       }
1648 1693
 
1649 1694
       sums[2] = ("总人数:"+ sums[2]+"人").replace(/\\r\\n/g, '<br/>')+""+ "\n" + "HD+HP:"+Mon_M +"人" +"\n"+ "HDF:" + Mon_M_One +"人"
1650
-      sums[3] = ("总人数:"+ sums[3]+"人").replace(/\\r\\n/g, '<br/>')+" "+"\n"+ "HD+HP:"+Mon_A +"人" +"\n"+ "HDF:" + Mon_A_One +"人" 
1651
-      sums[4] = ("总人数:"+ sums[4]+"人").replace(/\\r\\n/g, '<br/>')+" "+"\n"+ "HD+HP:"+Mon_N +"人" +"\n"+ "HDF:" + Mon_N_One +"人"  
1695
+      sums[3] = ("总人数:"+ sums[3]+"人").replace(/\\r\\n/g, '<br/>')+" "+"\n"+ "HD+HP:"+Mon_A +"人" +"\n"+ "HDF:" + Mon_A_One +"人"
1696
+      sums[4] = ("总人数:"+ sums[4]+"人").replace(/\\r\\n/g, '<br/>')+" "+"\n"+ "HD+HP:"+Mon_N +"人" +"\n"+ "HDF:" + Mon_N_One +"人"
1652 1697
 
1653
-      sums[5] = "总人数:"+ sums[5]  +"人"+ " " + "\n"+ "HD+HP:"+Tue_M +"人" +" "+ "HDF:" + Tue_M_One +"人"  
1654
-      sums[6] = "总人数:"+ sums[6]  +"人"+ " " +'\n' + "HD+HP:"+Tue_A +"人" +" "+ "HDF:" + Tue_A_One +"人"  
1655
-      sums[7] = "总人数:"+ sums[7]  +"人"+ " " +'\n' + "HD+HP:"+Tue_N +"人" +" "+ "HDF:" + Tue_N_One +"人"  
1698
+      sums[5] = "总人数:"+ sums[5]  +"人"+ " " + "\n"+ "HD+HP:"+Tue_M +"人" +" "+ "HDF:" + Tue_M_One +"人"
1699
+      sums[6] = "总人数:"+ sums[6]  +"人"+ " " +'\n' + "HD+HP:"+Tue_A +"人" +" "+ "HDF:" + Tue_A_One +"人"
1700
+      sums[7] = "总人数:"+ sums[7]  +"人"+ " " +'\n' + "HD+HP:"+Tue_N +"人" +" "+ "HDF:" + Tue_N_One +"人"
1656 1701
 
1657
-      sums[8] = "总人数:"+ sums[8]  +"人"+ " " + '\n'+ "HD+HP:"+Wed_M +"人" +" "+ "HDF:" + Wed_M_One +"人"  
1658
-      sums[9] = "总人数:"+ sums[9]  +"人"+ " " +'\n' + "HD+HP:"+ Wed_A +"人" +" "+ "HDF:" + Wed_A_One +"人"  
1659
-      sums[10] = "总人数:"+ sums[10]  +"人"+ " " +'\n'+"HD+HP:"+Wed_N +"人" +" "+ "HDF:" +Wed_N_One +"人"  
1702
+      sums[8] = "总人数:"+ sums[8]  +"人"+ " " + '\n'+ "HD+HP:"+Wed_M +"人" +" "+ "HDF:" + Wed_M_One +"人"
1703
+      sums[9] = "总人数:"+ sums[9]  +"人"+ " " +'\n' + "HD+HP:"+ Wed_A +"人" +" "+ "HDF:" + Wed_A_One +"人"
1704
+      sums[10] = "总人数:"+ sums[10]  +"人"+ " " +'\n'+"HD+HP:"+Wed_N +"人" +" "+ "HDF:" +Wed_N_One +"人"
1660 1705
 
1661
-      sums[11] = "总人数:"+ sums[11]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_M +"人" +" "+ "HDF:" + Thurs_M_One +"人"  
1662
-      sums[12] = "总人数:"+ sums[12]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_A +"人" +" "+ "HDF:" + Thurs_A_One +"人"  
1663
-      sums[13] = "总人数:"+ sums[13]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_N +"人" +" "+ "HDF:" + Thurs_N_One +"人"  
1706
+      sums[11] = "总人数:"+ sums[11]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_M +"人" +" "+ "HDF:" + Thurs_M_One +"人"
1707
+      sums[12] = "总人数:"+ sums[12]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_A +"人" +" "+ "HDF:" + Thurs_A_One +"人"
1708
+      sums[13] = "总人数:"+ sums[13]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_N +"人" +" "+ "HDF:" + Thurs_N_One +"人"
1664 1709
 
1665
-      sums[14] = "总人数:"+ sums[14]  +"人"+ " " +'\n' + "HD+HP:"+Fri_M +"人" +" "+ "HDF:" + Fri_M_One +"人"  
1666
-      sums[15] = "总人数:"+ sums[15]  +"人"+ " " + '\n' +"HD+HP:"+Fri_A +"人" +" "+ "HDF:" + Fri_A_One +"人"  
1667
-      sums[16] = "总人数:"+ sums[16]  +"人"+ " " +'\n' + "HD+HP:"+Fri_N +"人" +" "+ "HDF:" + Fri_N_One +"人"  
1710
+      sums[14] = "总人数:"+ sums[14]  +"人"+ " " +'\n' + "HD+HP:"+Fri_M +"人" +" "+ "HDF:" + Fri_M_One +"人"
1711
+      sums[15] = "总人数:"+ sums[15]  +"人"+ " " + '\n' +"HD+HP:"+Fri_A +"人" +" "+ "HDF:" + Fri_A_One +"人"
1712
+      sums[16] = "总人数:"+ sums[16]  +"人"+ " " +'\n' + "HD+HP:"+Fri_N +"人" +" "+ "HDF:" + Fri_N_One +"人"
1668 1713
 
1669
-      sums[17] = "总人数:"+ sums[17]  +"人"+ " " +'\n' + "HD+HP:"+Sat_M +"人" +" "+ "HDF:" + Sat_M_One +"人"  
1670
-      sums[18] = "总人数:"+ sums[18]  +"人"+ " " + '\n' +"HD+HP:"+Sat_A +"人" +" "+ "HDF:" + Sat_A_One +"人"  
1671
-      sums[19] = "总人数:"+ sums[19]  +"人"+ " " +'\n' + "HD+HP:"+Sat_N +"人" +" "+ "HDF:" + Sat_N_One +"人"  
1714
+      sums[17] = "总人数:"+ sums[17]  +"人"+ " " +'\n' + "HD+HP:"+Sat_M +"人" +" "+ "HDF:" + Sat_M_One +"人"
1715
+      sums[18] = "总人数:"+ sums[18]  +"人"+ " " + '\n' +"HD+HP:"+Sat_A +"人" +" "+ "HDF:" + Sat_A_One +"人"
1716
+      sums[19] = "总人数:"+ sums[19]  +"人"+ " " +'\n' + "HD+HP:"+Sat_N +"人" +" "+ "HDF:" + Sat_N_One +"人"
1672 1717
 
1673
-      sums[20] = "总人数:"+ sums[20]  +"人"+ " " +'\n' + "HD+HP:"+Sun_M +"人" +" "+ "HDF:" + Sun_M_One +"人"  
1674
-      sums[21] = "总人数:"+ sums[21]  +"人"+ " " + '\n'+"HD+HP:"+Sun_A +"人" +" "+ "HDF:" + Sun_A_One +"人"  
1675
-      sums[22] = "总人数:"+ sums[22]  +"人"+ " " + '\n'+"HD+HP:"+Sun_N +"人" +" "+ "HDF:" + Sun_N_One +"人"  
1718
+      sums[20] = "总人数:"+ sums[20]  +"人"+ " " +'\n' + "HD+HP:"+Sun_M +"人" +" "+ "HDF:" + Sun_M_One +"人"
1719
+      sums[21] = "总人数:"+ sums[21]  +"人"+ " " + '\n'+"HD+HP:"+Sun_A +"人" +" "+ "HDF:" + Sun_A_One +"人"
1720
+      sums[22] = "总人数:"+ sums[22]  +"人"+ " " + '\n'+"HD+HP:"+Sun_N +"人" +" "+ "HDF:" + Sun_N_One +"人"
1676 1721
       return sums;
1677 1722
 
1678 1723
       }
1679
-      
1724
+
1680 1725
       if(this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 0 && this.$store.getters.xt_user.template_info.org_id != 3877&& this.$store.getters.xt_user.template_info.org_id != 10340){
1681 1726
         return sums;
1682 1727
       }
@@ -1749,13 +1794,13 @@ export default {
1749 1794
           this.weekDays = response.data.data.days;
1750 1795
           this.toDay = response.data.data.today;
1751 1796
           var theSchedules = response.data.data.schdules;
1752
-        
1797
+
1753 1798
           var schedulesGroup = response.data.data.schedulesGroup
1754 1799
           this.schedulesGroup = schedulesGroup
1755 1800
 
1756 1801
 
1757 1802
 
1758
-     
1803
+
1759 1804
           var that = this;
1760 1805
 
1761 1806
           this.scheduleZone.forEach(function(zone, index) {
@@ -1840,7 +1885,7 @@ export default {
1840 1885
               dialysis_machine_name:"",
1841 1886
               schedule_date:"",
1842 1887
               Count:0,
1843
-              
1888
+
1844 1889
             };
1845 1890
             that.scheduleZone[index].Thurs_M = {
1846 1891
               mode_id: 0,
@@ -3046,7 +3091,7 @@ export default {
3046 3091
     }
3047 3092
     var nowDate = year + "-" + month + "-" + day
3048 3093
     var date = new Date(nowDate + " 00:00:00")
3049
-   
3094
+
3050 3095
     this.now_time = date.getTime()/1000
3051 3096
     this.getAllZones()
3052 3097