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

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

XMLWAN пре 3 година
родитељ
комит
b446115e24

+ 6 - 0
src/store/modules/globalConfig.js Прегледај датотеку

1829
       },{
1829
       },{
1830
         id: 30,
1830
         id: 30,
1831
         name: '次'
1831
         name: '次'
1832
+      },{
1833
+        id: 31,
1834
+        name: '米'
1835
+      },{
1836
+        id: 32,
1837
+        name: '对'
1832
       },
1838
       },
1833
       {
1839
       {
1834
         id: 31,
1840
         id: 31,

+ 56 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue Прегледај датотеку

495
           >打印</el-button
495
           >打印</el-button
496
         >
496
         >
497
       </template>
497
       </template>
498
+      <template v-if="org_template_info.template_id == 36">
499
+        <div>
500
+          <el-button
501
+            :loading="loading"
502
+            size="small"
503
+            icon="el-icon-printer"
504
+            @click="printThisPage"
505
+            type="primary"
506
+            >打印全部</el-button
507
+          >
508
+          <el-button
509
+            :loading="loading"
510
+            size="small"
511
+            icon="el-icon-printer"
512
+            @click="printThisOnePage"
513
+            type="primary"
514
+            >打印纪录单</el-button
515
+          >
516
+          <el-button
517
+            :loading="loading"
518
+            size="small"
519
+            icon="el-icon-printer"
520
+            @click="printThisTwoPage"
521
+            type="primary"
522
+            >打印医嘱单</el-button
523
+          >
524
+        </div>
525
+      </template>
498
     </div>
526
     </div>
499
     <div class="app-container" style="min-height:0;">
527
     <div class="app-container" style="min-height:0;">
500
       <!--<div class="order-print-btn"-->
528
       <!--<div class="order-print-btn"-->
750
             v-if="org_template_info.template_id == 35"
778
             v-if="org_template_info.template_id == 35"
751
           >
779
           >
752
           </DialysisPrintOrderThirtyFive>
780
           </DialysisPrintOrderThirtyFive>
781
+          <DialysisPrintOrderThirtySix
782
+            v-bind:childResponse="childResponse"
783
+            v-if="org_template_info.template_id == 36"
784
+          >
785
+          </DialysisPrintOrderThirtySix>
753
         </div>
786
         </div>
754
       </el-container>
787
       </el-container>
755
     </div>
788
     </div>
804
 import DialysisPrintOrderThirtyThree from "./template/DialysisPrintOrderThirtyThree";
837
 import DialysisPrintOrderThirtyThree from "./template/DialysisPrintOrderThirtyThree";
805
 import DialysisPrintOrderThirtyFour from "./template/DialysisPrintOrderThirtyFour";
838
 import DialysisPrintOrderThirtyFour from "./template/DialysisPrintOrderThirtyFour";
806
 import DialysisPrintOrderThirtyFive from "./template/DialysisPrintOrderThirtyFive";
839
 import DialysisPrintOrderThirtyFive from "./template/DialysisPrintOrderThirtyFive";
840
+import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
807
 export default {
841
 export default {
808
   name: "dialysisPrintOrder",
842
   name: "dialysisPrintOrder",
809
   components: {
843
   components: {
844
+    DialysisPrintOrderThirtySix,
810
     DialysisPrintOrderThirtyFive,
845
     DialysisPrintOrderThirtyFive,
811
     DialysisPrintOrderThirtyFour,
846
     DialysisPrintOrderThirtyFour,
812
     DialysisPrintOrderThirtyThree,
847
     DialysisPrintOrderThirtyThree,
1249
           style: style,
1284
           style: style,
1250
           scanStyles: false
1285
           scanStyles: false
1251
         });
1286
         });
1287
+      } else if (this.org_template_info.template_id == 36) {
1288
+        printJS({
1289
+          printable: "dialysis-print-box-1",
1290
+          type: "html",
1291
+          style: style,
1292
+          scanStyles: false
1293
+        });
1252
       }
1294
       }
1253
     },
1295
     },
1254
     printThisOnePage() {
1296
     printThisOnePage() {
1301
           style: style,
1343
           style: style,
1302
           scanStyles: false
1344
           scanStyles: false
1303
         });
1345
         });
1346
+      } else if(this.org_template_info.template_id == 36){
1347
+        printJS({
1348
+          printable: "dialysis-print-box-1-1",
1349
+          type: "html",
1350
+          style: style,
1351
+          scanStyles: false
1352
+        });
1304
       }
1353
       }
1305
     },
1354
     },
1306
     printThisTwoPage() {
1355
     printThisTwoPage() {
1353
           style: style,
1402
           style: style,
1354
           scanStyles: false
1403
           scanStyles: false
1355
         });
1404
         });
1405
+      } else if(this.org_template_info.template_id == 36){
1406
+        printJS({
1407
+          printable: "dialysis-print-box-1-2",
1408
+          type: "html",
1409
+          style: style,
1410
+          scanStyles: false
1411
+        });
1356
       }
1412
       }
1357
     },
1413
     },
1358
     getNumber() {
1414
     getNumber() {

Разлика између датотеке није приказан због своје велике величине
+ 1825 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderThirtySix.vue


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

138
                         >退号
138
                         >退号
139
                         </el-button>
139
                         </el-button>
140
 
140
 
141
-                        <!--<el-button-->
142
-                        <!--v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671  || this.$store.getters.xt_user.org_id == 10106"-->
143
-                        <!--size="small" @click="open(11)" type="primary"-->
144
-                        <!--&gt;撤销明细-->
145
-                        <!--</el-button>-->
141
+                        <el-button
142
+                        v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671  || this.$store.getters.xt_user.org_id == 10106"
143
+                        size="small" @click="open(11)" type="primary"
144
+                        >撤销明细
145
+                        </el-button>
146
 
146
 
147
                     </div>
147
                     </div>
148
                     <!--<el-button size="small" @click="query" type="primary"-->
148
                     <!--<el-button size="small" @click="query" type="primary"-->

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

1
 <template>
1
 <template>
2
-  <div class="main-contain outpatientChargesManagement">
3
-    <div class="position">
4
-      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
-    </div>
6
-    <div class="app-container">
7
-      <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
-        <div>
9
-          <el-input size="small" style="width:150px;"  v-model="keywords"
10
-                    class="filter-item"/>
11
-          <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary" @click="searchAction">
12
-            搜索
13
-          </el-button>
14
-          <el-select size="small" v-model="admin_user_id" placeholder="请选择" style="width:150px;margin-left:10px;" @change="changeDoctor">
15
-            <el-option
16
-              label="全部"
17
-              value="0">
18
-            </el-option>
19
-            <el-option
20
-              v-for="item,index in doctors"
21
-              :key="index"
22
-              :label="item.user_name"
23
-              :value="item.admin_user_id">
24
-            </el-option>
25
-          </el-select>
26
-          <el-date-picker size="small" v-model="start_time" prefix-icon="el-icon-date"
27
-                          @change="handleStartTimeChange" :editable="false" :clearable="false"
28
-                          style="width: 196px;margin-right:10px;" type="date" placeholder="选择开始日期"
29
-                          format="yyyy-MM-dd"
30
-                          value-format="yyyy-MM-dd"
31
-                          align="right"></el-date-picker>
32
-
33
-          <el-date-picker size="small" v-model="end_time" prefix-icon="el-icon-date"
34
-                          @change="handleEndTimeChange" :editable="false" :clearable="false"
35
-                          style="width: 196px;margin-right:10px;" type="date" placeholder="选择结束日期"
36
-                          format="yyyy-MM-dd"
37
-                          value-format="yyyy-MM-dd"
38
-                          align="right"></el-date-picker>
39
-          <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
40
-          <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
2
+    <div class="main-contain outpatientChargesManagement">
3
+        <div class="position">
4
+            <bread-crumb :crumbs='crumbs'></bread-crumb>
41
         </div>
5
         </div>
42
-        <div>
43
-          <!-- <el-popover
44
-            placement="bottom"
45
-            width="210"
46
-            trigger="click">
47
-            <el-button size="small" ref="button_two" @click="open(1)">打印清单</el-button>
48
-            <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
49
-            <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
50
-
51
-          </el-popover> -->
52
-          <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
6
+        <div class="app-container">
7
+            <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
+                <div>
9
+                    <el-input size="small" style="width:150px;" v-model="keywords"
10
+                              class="filter-item"/>
11
+                    <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
12
+                               @click="searchAction">
13
+                        搜索
14
+                    </el-button>
15
+                    <el-select size="small" v-model="admin_user_id" placeholder="请选择"
16
+                               style="width:150px;margin-left:10px;" @change="changeDoctor">
17
+                        <el-option
18
+                                label="全部"
19
+                                value="0">
20
+                        </el-option>
21
+                        <el-option
22
+                                v-for="item,index in doctors"
23
+                                :key="index"
24
+                                :label="item.user_name"
25
+                                :value="item.admin_user_id">
26
+                        </el-option>
27
+                    </el-select>
28
+                    <el-date-picker size="small" v-model="start_time" prefix-icon="el-icon-date"
29
+                                    @change="handleStartTimeChange" :editable="false" :clearable="false"
30
+                                    style="width: 196px;margin-right:10px;" type="date" placeholder="选择开始日期"
31
+                                    format="yyyy-MM-dd"
32
+                                    value-format="yyyy-MM-dd"
33
+                                    align="right"></el-date-picker>
34
+
35
+                    <el-date-picker size="small" v-model="end_time" prefix-icon="el-icon-date"
36
+                                    @change="handleEndTimeChange" :editable="false" :clearable="false"
37
+                                    style="width: 196px;margin-right:10px;" type="date" placeholder="选择结束日期"
38
+                                    format="yyyy-MM-dd"
39
+                                    value-format="yyyy-MM-dd"
40
+                                    align="right"></el-date-picker>
41
+                    <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
42
+                    <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
43
+                </div>
44
+                <div>
45
+                    <!-- <el-popover
46
+                      placement="bottom"
47
+                      width="210"
48
+                      trigger="click">
49
+                      <el-button size="small" ref="button_two" @click="open(1)">打印清单</el-button>
50
+                      <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
51
+                      <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
52
+
53
+                    </el-popover> -->
54
+                    <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
55
+                </div>
56
+            </div>
57
+            <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
58
+                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
59
+                      highlight-current-row>
60
+                <el-table-column
61
+                        prop="date"
62
+                        label="序号"
63
+                        width="60"
64
+                        align="center"
65
+                        type="index"
66
+                >
67
+                </el-table-column>
68
+                <el-table-column align="center" prop="name" label="就诊号">
69
+                    <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
70
+                </el-table-column>
71
+                <el-table-column align="center" prop="name" label="患者名字">
72
+                    <template slot-scope="scope">{{ scope.row.patient.name }}</template>
73
+                </el-table-column>
74
+                <!--<el-table-column align="center" prop="name" label="患者类型">-->
75
+                <!--<template slot-scope="scope"></template>-->
76
+                <!--</el-table-column>-->
77
+                <el-table-column align="center" prop="name" label="应收金额">
78
+                    <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
79
+                </el-table-column>
80
+                <el-table-column align="center" prop="name" label="实收金额">
81
+                    <template slot-scope="scope">{{scope.row.reality_price}}</template>
82
+                </el-table-column>
83
+                <el-table-column align="center" prop="name" label="科室">
84
+                    <template slot-scope="scope">{{scope.row.department_name}}</template>
85
+                </el-table-column>
86
+                <el-table-column align="center" prop="name" label="收费日期">
87
+                    <template slot-scope="scope"> {{scope.row.setl_time}}</template>
88
+                </el-table-column>
89
+                <el-table-column align="center" prop="name" label="收费员">
90
+                    <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
91
+                </el-table-column>
92
+                <el-table-column align="center" prop="name" label="状态">
93
+                    <template slot-scope="scope">
94
+                        <div v-if="scope.row.order_status == 1">待结算</div>
95
+                        <div v-if="scope.row.order_status == 2">已结算</div>
96
+                        <div v-if="scope.row.order_status == 3">已退费</div>
97
+                    </template>
98
+                </el-table-column>
99
+                <el-table-column align="center" prop="name" label="操作">
100
+                    <template slot-scope="scope">
101
+                        <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
102
+                        <el-button size="mini" type="primary" @click="toPrint(scope.row)"
103
+                                   v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  ($store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4)">
104
+                            结算单
105
+                        </el-button>
106
+                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
107
+                            退费
108
+                        </el-button>
109
+                    </template>
110
+                </el-table-column>
111
+            </el-table>
112
+            <el-pagination
113
+                    @size-change="handleSizeChange"
114
+                    @current-change="handleCurrentChange"
115
+                    :page-sizes="[10, 50, 100]"
116
+                    :page-size="10"
117
+                    background
118
+                    style="margin-top:20px;float: right"
119
+                    layout="total, sizes, prev, pager, next, jumper"
120
+                    :total="total"
121
+
122
+            >
123
+            </el-pagination>
53
         </div>
124
         </div>
54
-      </div>
55
-      <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
56
-                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
57
-        <el-table-column
58
-          prop="date"
59
-          label="序号"
60
-          width="60"
61
-          align="center"
62
-          type="index"
63
-        >
64
-        </el-table-column>
65
-        <el-table-column align="center" prop="name" label="就诊号">
66
-          <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
67
-        </el-table-column>
68
-        <el-table-column align="center" prop="name" label="患者名字">
69
-          <template slot-scope="scope">{{ scope.row.patient.name }}</template>
70
-        </el-table-column>
71
-        <!--<el-table-column align="center" prop="name" label="患者类型">-->
72
-          <!--<template slot-scope="scope"></template>-->
73
-        <!--</el-table-column>-->
74
-        <el-table-column align="center" prop="name" label="应收金额">
75
-          <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
76
-        </el-table-column>
77
-        <el-table-column align="center" prop="name" label="实收金额">
78
-          <template slot-scope="scope">{{scope.row.reality_price}}</template>
79
-        </el-table-column>
80
-        <el-table-column align="center" prop="name" label="科室">
81
-          <template slot-scope="scope">{{scope.row.department_name}}</template>
82
-        </el-table-column>
83
-        <el-table-column align="center" prop="name" label="收费日期">
84
-          <template slot-scope="scope">  {{getTimes(scope.row.settle_accounts_date)}}</template>
85
-        </el-table-column>
86
-        <el-table-column align="center" prop="name" label="收费员">
87
-          <template slot-scope="scope">{{ scope.row.doctor_name }}</template>
88
-        </el-table-column>
89
-        <el-table-column align="center" prop="name" label="状态">
90
-          <template slot-scope="scope">
91
-            <div v-if="scope.row.order_status == 1">待结算</div>
92
-            <div v-if="scope.row.order_status == 2">已结算</div>
93
-            <div v-if="scope.row.order_status == 3">已退费</div>
94
-          </template>
95
-        </el-table-column>
96
-        <el-table-column align="center" prop="name" label="操作">
97
-          <template slot-scope="scope">
98
-            <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
99
-            <el-button size="mini" type="primary" @click="toPrint(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4)">结算单</el-button>
100
-          </template>
101
-        </el-table-column>
102
-      </el-table>
103
-      <el-pagination
104
-        @size-change="handleSizeChange"
105
-        @current-change="handleCurrentChange"
106
-        :page-sizes="[10, 50, 100]"
107
-        :page-size="10"
108
-        background
109
-        style="margin-top:20px;float: right"
110
-        layout="total, sizes, prev, pager, next, jumper"
111
-        :total="total"
112
-
113
-      >
114
-      </el-pagination>
115
-    </div>
116
 
125
 
117
-    <el-dialog
118
-      class="centerDialog"
119
-      width="1200px"
120
-      title="打印"
121
-      :visible.sync="statementVisible">
122
-      <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
123
-    <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
124
-    </el-dialog>
125
-    <el-dialog
126
-      class="centerDialog"
127
-      width="900px"
128
-      title="打印"
129
-      :visible.sync="listVisible">
130
-      <listPrint></listPrint>
131
-    </el-dialog>
132
-    <el-dialog
133
-      class="centerDialog"
134
-      width="900px"
135
-      title="打印"
136
-      :visible.sync="allListVisible">
137
-      <allListPrint :paramsObj='paramsObj'></allListPrint>
138
-    </el-dialog>
139
-
140
-    <el-dialog
141
-            class="centerDialog"
142
-            width="1200px"
143
-            title="打印"
144
-            :visible.sync="statementVisible9504">
145
-      <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
146
-      <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
147
-      <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
148
-    </el-dialog>
149
-
150
-
151
-  </div>
126
+        <el-dialog
127
+                class="centerDialog"
128
+                width="1200px"
129
+                title="打印"
130
+                :visible.sync="statementVisible">
131
+            <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
132
+            <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
133
+        </el-dialog>
134
+        <el-dialog
135
+                class="centerDialog"
136
+                width="900px"
137
+                title="打印"
138
+                :visible.sync="listVisible">
139
+            <listPrint></listPrint>
140
+        </el-dialog>
141
+        <el-dialog
142
+                class="centerDialog"
143
+                width="900px"
144
+                title="打印"
145
+                :visible.sync="allListVisible">
146
+            <allListPrint :paramsObj='paramsObj'></allListPrint>
147
+        </el-dialog>
148
+
149
+        <el-dialog
150
+                class="centerDialog"
151
+                width="1200px"
152
+                title="打印"
153
+                :visible.sync="statementVisible9504">
154
+            <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
155
+            <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
156
+            <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
157
+        </el-dialog>
158
+
159
+
160
+    </div>
152
 </template>
161
 </template>
153
 
162
 
154
 
163
 
155
 <script>
164
 <script>
156
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
165
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
157
-  import { getHisOrderList,getDoctorList,getExportConsumeDetailList } from '@/api/his/his'
166
+  import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund} from '@/api/his/his'
158
   import { uParseTime } from '@/utils/tools'
167
   import { uParseTime } from '@/utils/tools'
159
-  import statementPrint from './statementPrint'
160
   import NewStatementPrint from './newStatementPrint'
168
   import NewStatementPrint from './newStatementPrint'
161
   import listPrint from './listPrint'
169
   import listPrint from './listPrint'
162
   import allListPrint from './allListPrint'
170
   import allListPrint from './allListPrint'
163
   import NewStatementPrintTwo from './newStatementPrintTwo'
171
   import NewStatementPrintTwo from './newStatementPrintTwo'
164
-
172
+  import { fetchAllAdminUsers } from '@/api/doctor'
173
+  import axios from 'axios'
165
 
174
 
166
   export default {
175
   export default {
167
     components: {
176
     components: {
175
       return {
184
       return {
176
         orderObj: {},
185
         orderObj: {},
177
         statementVisible: false,
186
         statementVisible: false,
178
-        statementVisible9504:false,
179
-        orderObj9504:{},
187
+        statementVisible9504: false,
188
+        orderObj9504: {},
180
         crumbs: [
189
         crumbs: [
181
           { path: false, name: '门诊收费' },
190
           { path: false, name: '门诊收费' },
182
           { path: false, name: '项目消费明细汇总' }
191
           { path: false, name: '项目消费明细汇总' }
183
         ],
192
         ],
184
         tableData: [],
193
         tableData: [],
185
-        limit:10,
186
-        page:1,
187
-        keywords:"",
188
-        start_time:"",
189
-        end_time:"",
190
-        total:"",
191
-        doctors:[],
192
-        admin_user_id:"",
193
-        listVisible:false,
194
-        allListVisible:false
194
+        limit: 10,
195
+        page: 1,
196
+        keywords: '',
197
+        start_time: '',
198
+        end_time: '',
199
+        total: '',
200
+        doctors: [],
201
+        admin_user_id: '',
202
+        listVisible: false,
203
+        allListVisible: false,
204
+        adminUserOptions:[],
195
 
205
 
196
       }
206
       }
197
     },
207
     },
198
     methods: {
208
     methods: {
199
-      toPrint(row){
200
-        if(this.$store.getters.xt_user.org_id == 9504 ||this.$store.getters.xt_user.org_id == 10028){
209
+      fetchAllAdminUsers() {
210
+        fetchAllAdminUsers().then(response => {
211
+          if (response.data.state == 1) {
212
+            this.adminUserOptions = response.data.data.users
213
+
214
+          }
215
+        })
216
+      },
217
+      getName(admin_user_id) {
218
+        for (let i = 0; i < this.adminUserOptions.length; i++) {
219
+          if (this.adminUserOptions[i].id == admin_user_id) {
220
+            return this.adminUserOptions[i].name
221
+          }
222
+        }
223
+
224
+      },toRefund(row){
225
+        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
226
+          var that = this
227
+          this.$confirm('是否退费', '退费', {
228
+            confirmButtonText: '确 定',
229
+            cancelButtonText: '取 消',
230
+            type: 'warning'
231
+          }).then(() => {
232
+            let params = {
233
+              'order_id': row.id,
234
+              'patient_id': row.patient_id,
235
+              'record_time': that.getTimes(row.settle_accounts_date),
236
+              'admin_user_id': that.$store.getters.xt_user.user.id,
237
+            }
238
+            axios.get('http://127.0.0.1:9532/api/refund/post', {
239
+              params: params
240
+            })
241
+              .then(function(response) {
242
+                if (response.data.state == 0) {
243
+                  that.$message.error(response.data.msg)
244
+                  return false
245
+                } else {
246
+                  if (response.data.data.failed_code == -10) {
247
+                    that.$message.error(response.data.data.msg)
248
+                  } else {
249
+                    that.$message({ message: '退费成功', type: 'success', duration: 5000 })
250
+                    that.getHisOrderList()
251
+
252
+                  }
253
+                }
254
+              })
255
+              .catch(function(error) {
256
+              })
257
+          }).catch(() => {
258
+          })
259
+
260
+        } else {
261
+          this.$confirm('是否退费', '退费', {
262
+            confirmButtonText: '确 定',
263
+            cancelButtonText: '取 消',
264
+            type: 'warning'
265
+          }).then(() => {
266
+            let params = {
267
+              'order_id': this.order.id,
268
+              'patient_id': this.patientInfo.id,
269
+              'record_time': this.record_date
270
+
271
+            }
272
+            Refund(params).then(response => {
273
+              if (response.data.state == 0) {
274
+                this.$message.error(response.data.msg)
275
+                return false
276
+              } else {
277
+                this.$message({ message: '退费成功', type: 'success' })
278
+                this.getHisOrderList()
279
+              }
280
+            })
281
+          }).catch(() => {
282
+          })
283
+        }
284
+      },
285
+      toPrint(row) {
286
+        if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
201
           this.statementVisible9504 = true
287
           this.statementVisible9504 = true
202
           let obj = {
288
           let obj = {
203
             order_id: row.id,
289
             order_id: row.id,
204
             patient_id: row.patient_id,
290
             patient_id: row.patient_id,
205
             record_time: this.getTimes(row.settle_accounts_date),
291
             record_time: this.getTimes(row.settle_accounts_date),
206
-            admin_user_id: this.$store.getters.xt_user.user.id,
292
+            admin_user_id: this.$store.getters.xt_user.user.id
207
           }
293
           }
208
           this.orderObj9504 = obj
294
           this.orderObj9504 = obj
209
-        }else {
295
+        } else {
210
           this.statementVisible = true
296
           this.statementVisible = true
211
           let obj = {
297
           let obj = {
212
             order_id: row.id
298
             order_id: row.id
215
         }
301
         }
216
 
302
 
217
       },
303
       },
218
-      export_detail(){
219
-        let params= {
220
-          start_time:this.start_time,
221
-          end_time: this.end_time,
304
+      export_detail() {
305
+        let params = {
306
+          start_time: this.start_time,
307
+          end_time: this.end_time
222
         }
308
         }
223
         getExportConsumeDetailList(params).then(response => {
309
         getExportConsumeDetailList(params).then(response => {
224
           if (response.data.state == 0) {
310
           if (response.data.state == 0) {
227
           } else {
313
           } else {
228
 
314
 
229
             let list = []
315
             let list = []
230
-            for (let i =0; i < response.data.data.order.length; i++){
231
-            let order =   response.data.data.order[i]
232
-              let number = ""
233
-              let name = ""
234
-              let department = ""
235
-              let doctor_name = ""
236
-              let balance_accounts = ""
316
+            for (let i = 0; i < response.data.data.order.length; i++) {
317
+              let order = response.data.data.order[i]
318
+              let number = ''
319
+              let name = ''
320
+              let department = ''
321
+              let doctor_name = ''
322
+              let balance_accounts = ''
237
 
323
 
238
-              let order_status = ""
324
+              let order_status = ''
239
 
325
 
240
-
241
-
242
-              if(order.his_patient != null && order.his_patient.number.length > 0){
326
+              if (order.his_patient != null && order.his_patient.number.length > 0) {
243
                 number = order.his_patient.number
327
                 number = order.his_patient.number
244
 
328
 
245
               }
329
               }
246
 
330
 
247
-              if(order.his_patient != null ){
248
-                if(order.his_patient.balance_accounts_type == 1){
249
-                  balance_accounts = "自费"
331
+              if (order.his_patient != null) {
332
+                if (order.his_patient.balance_accounts_type == 1) {
333
+                  balance_accounts = '自费'
250
                 }
334
                 }
251
 
335
 
252
-                if(order.his_patient.balance_accounts_type == 2){
253
-                  balance_accounts = "医保"
336
+                if (order.his_patient.balance_accounts_type == 2) {
337
+                  balance_accounts = '医保'
254
                 }
338
                 }
255
               }
339
               }
256
 
340
 
257
-              if(order.patient != null && order.patient.name.length > 0){
341
+              if (order.patient != null && order.patient.name.length > 0) {
258
                 name = order.patient.name
342
                 name = order.patient.name
259
 
343
 
260
               }
344
               }
261
 
345
 
262
-              if(order.p_info != null && order.p_info.department != null && order.p_info.department.name.length > 0){
346
+              if (order.p_info != null && order.p_info.department != null && order.p_info.department.name.length > 0) {
263
                 department = order.p_info.department.name
347
                 department = order.p_info.department.name
264
 
348
 
265
               }
349
               }
266
 
350
 
267
-              if(order.p_info != null && order.p_info.doctor.length > 0){
351
+              if (order.p_info != null && order.p_info.doctor.length > 0) {
268
                 doctor_name = order.p_info.doctor
352
                 doctor_name = order.p_info.doctor
269
               }
353
               }
270
 
354
 
271
-              if(order.order_status == 1){
272
-                order_status = "待结算"
355
+              if (order.order_status == 1) {
356
+                order_status = '待结算'
273
               }
357
               }
274
 
358
 
275
-              if(order.order_status == 2){
276
-                order_status = "已结算"
359
+              if (order.order_status == 2) {
360
+                order_status = '已结算'
277
               }
361
               }
278
 
362
 
279
-              if(order.order_status == 3){
280
-                order_status = "已退费"
363
+              if (order.order_status == 3) {
364
+                order_status = '已退费'
281
               }
365
               }
282
 
366
 
283
-
284
               let obj = {
367
               let obj = {
285
-                "就诊号":number,
286
-                "患者姓名":name,
287
-                "应收金额":order.medfee_sumamt,
288
-                "实收金额":order.medfee_sumamt,
289
-                "科室":department,
290
-                "医生姓名":doctor_name,
291
-                "收费类别":balance_accounts,
292
-                "收费者姓名":doctor_name,
293
-                "总金额":order.medfee_sumamt,
294
-                "现金支付":"",
295
-                "账户支付":"",
296
-                "支付宝支付":"",
297
-                "微信支付":"",
298
-                "其他支付":"",
299
-                "收费日期":"",
300
-                "收费状态":order_status,
301
-                "退费日期":"",
368
+                '就诊号': number,
369
+                '患者姓名': name,
370
+                '应收金额': order.medfee_sumamt,
371
+                '实收金额': order.medfee_sumamt,
372
+                '科室': department,
373
+                '医生姓名': doctor_name,
374
+                '收费类别': balance_accounts,
375
+                '收费者姓名': doctor_name,
376
+                '总金额': order.medfee_sumamt,
377
+                '现金支付': '',
378
+                '账户支付': '',
379
+                '支付宝支付': '',
380
+                '微信支付': '',
381
+                '其他支付': '',
382
+                '收费日期': '',
383
+                '收费状态': order_status,
384
+                '退费日期': ''
302
               }
385
               }
303
               list.push(obj)
386
               list.push(obj)
304
             }
387
             }
305
             import('@/vendor/Export2Excel').then(excel => {
388
             import('@/vendor/Export2Excel').then(excel => {
306
-              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室',"医生姓名","收费类别","收费者姓名","总金额","现金支付","账户支付","支付宝支付","微信支付","其他支付","收费日期","收费状态","退费日期"]
307
-              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室',"医生姓名","收费类别","收费者姓名","总金额","现金支付","账户支付","支付宝支付","微信支付","其他支付","收费日期","收费状态","退费日期"]
389
+              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
390
+              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
308
               const data = this.formatJson(filterVal, list)
391
               const data = this.formatJson(filterVal, list)
309
               excel.export_json_to_excel({
392
               excel.export_json_to_excel({
310
                 header: tHeader,
393
                 header: tHeader,
311
                 data,
394
                 data,
312
-                filename: "消费明细"
395
+                filename: '消费明细'
313
               })
396
               })
314
             })
397
             })
315
 
398
 
316
           }
399
           }
317
         })
400
         })
318
 
401
 
319
-      },  formatJson(filterVal, jsonData) {
402
+      }, formatJson(filterVal, jsonData) {
320
         return jsonData.map(v => filterVal.map(j => v[j]))
403
         return jsonData.map(v => filterVal.map(j => v[j]))
321
       },
404
       },
322
-      changeDoctor(){
405
+      changeDoctor() {
323
         this.page = 1
406
         this.page = 1
324
-        this.keywords=""
407
+        this.keywords = ''
325
         this.getHisOrderList()
408
         this.getHisOrderList()
326
       },
409
       },
327
-      handleSizeChange(limit){
328
-        this.limit = limit;
410
+      handleSizeChange(limit) {
411
+        this.limit = limit
329
         this.getHisOrderList()
412
         this.getHisOrderList()
330
 
413
 
331
-      },handleCurrentChange(page){
332
-        this.page = page;
414
+      }, handleCurrentChange(page) {
415
+        this.page = page
333
         this.getHisOrderList()
416
         this.getHisOrderList()
334
 
417
 
335
-
336
       },
418
       },
337
-      handleStartTimeChange(){
419
+      handleStartTimeChange() {
338
         this.page = 1
420
         this.page = 1
339
-        this.keywords=""
421
+        this.keywords = ''
340
         this.getHisOrderList()
422
         this.getHisOrderList()
341
-      },handleEndTimeChange(){
423
+      }, handleEndTimeChange() {
342
         this.page = 1
424
         this.page = 1
343
-        this.keywords=""
425
+        this.keywords = ''
344
         this.getHisOrderList()
426
         this.getHisOrderList()
345
       },
427
       },
346
-      searchAction(){
428
+      searchAction() {
347
         this.page = 1
429
         this.page = 1
348
         this.getHisOrderList()
430
         this.getHisOrderList()
349
 
431
 
350
-
351
       },
432
       },
352
       getTimes(time) {
433
       getTimes(time) {
353
-        return uParseTime(time, "{y}-{m}-{d}");
434
+        return uParseTime(time, '{y}-{m}-{d}')
354
       },
435
       },
355
       toDetail(row) {
436
       toDetail(row) {
356
-        this.$router.push('/outpatientCharges/summaryDetail?patient_id='+row.patient.id+"&number="+row.number+"&id="+row.id)
437
+        this.$router.push('/outpatientCharges/summaryDetail?patient_id=' + row.patient.id + '&number=' + row.number + '&id=' + row.id)
357
       }, getTime(value, temp) {
438
       }, getTime(value, temp) {
358
         if (value != undefined) {
439
         if (value != undefined) {
359
           return uParseTime(value, temp)
440
           return uParseTime(value, temp)
360
         }
441
         }
361
         return ''
442
         return ''
362
-      },getHisOrderList(){
363
-        let params= {
364
-          page : this.page,
443
+      }, getHisOrderList() {
444
+        let params = {
445
+          page: this.page,
365
           limit: this.limit,
446
           limit: this.limit,
366
-          keywords:this.keywords,
367
-          start_time:this.start_time,
447
+          keywords: this.keywords,
448
+          start_time: this.start_time,
368
           end_time: this.end_time,
449
           end_time: this.end_time,
369
           type: this.admin_user_id
450
           type: this.admin_user_id
370
         }
451
         }
378
           }
459
           }
379
         })
460
         })
380
 
461
 
381
-      },getDoctorList(){
462
+      }, getDoctorList() {
382
         getDoctorList().then(response => {
463
         getDoctorList().then(response => {
383
           if (response.data.state == 0) {
464
           if (response.data.state == 0) {
384
             this.$message.error(response.data.msg)
465
             this.$message.error(response.data.msg)
388
           }
469
           }
389
         })
470
         })
390
       },
471
       },
391
-      open(index){
392
-        if(index == 1){
472
+      open(index) {
473
+        if (index == 1) {
393
           this.listVisible = true
474
           this.listVisible = true
394
-        }else if(index == 2){
475
+        } else if (index == 2) {
395
           this.allListVisible = true
476
           this.allListVisible = true
396
         }
477
         }
397
       }
478
       }
398
     }, created() {
479
     }, created() {
399
-     this.getDoctorList()
400
-     this.getHisOrderList()
480
+
481
+
482
+      this.fetchAllAdminUsers()
483
+      this.getDoctorList()
484
+      this.getHisOrderList()
485
+
401
 
486
 
402
 
487
 
403
     }
488
     }

+ 9 - 1
src/xt_pages/outpatientRegistration/index.vue Прегледај датотеку

1427
 
1427
 
1428
     },
1428
     },
1429
     created() {
1429
     created() {
1430
-      this.getInitData()
1431
 
1430
 
1431
+      if(this.$store.getters.xt_user.org_id == 9504 ||  this.$store.getters.xt_user.org_id == 10028){
1432
+        this.form.certificates = 2
1433
+        this.form.id_card_type = 1
1434
+      }else{
1435
+        this.form.certificates = 1
1436
+        this.form.id_card_type = 2
1437
+      }
1438
+
1439
+      this.getInitData()
1432
       //获取当前机构有人员信息
1440
       //获取当前机构有人员信息
1433
       this.getAllDoctorList()
1441
       this.getAllDoctorList()
1434
       //获取今日排班的患者
1442
       //获取今日排班的患者

Разлика између датотеке није приказан због своје велике величине
+ 503 - 451
src/xt_pages/outpatientRegistration/registrationHistory.vue