Преглед на файлове

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

csx преди 3 години
родител
ревизия
8aebf6ed93

+ 26 - 0
src/api/his/his.js Целия файл

@@ -605,3 +605,29 @@ export function getHisDoctorAdviceInfo(id, params) {
605 605
   })
606 606
 }
607 607
 
608
+
609
+
610
+export function getHisHospitalPatientList(params) {
611
+  return request({
612
+    url: '/api/hospitalchargedetail/list',
613
+    method: 'get',
614
+    params: params
615
+  })
616
+}
617
+
618
+
619
+export function getHisHospitalDetailList(params) {
620
+  return request({
621
+    url: '/api/hospitaldetail/list',
622
+    method: 'get',
623
+    params: params
624
+  })
625
+}
626
+
627
+export function getHisHospitalDetailInfo(params) {
628
+  return request({
629
+    url: '/api/hospitaldetail/info',
630
+    method: 'get',
631
+    params: params
632
+  })
633
+}

+ 6 - 0
src/router/modules/hospitalCharges.js Целия файл

@@ -42,6 +42,12 @@ export default {
42 42
       name: 'summary',
43 43
       meta: { title: 'summary', noCache: true }
44 44
     },
45
+    {
46
+      path: '/hospitalCharges/chargeDetailManagement',
47
+      component: () => import('@/xt_pages/hospitalStation/chargeDetailManagement'),
48
+      name: 'chargeDetailManagement',
49
+      meta: { title: 'chargeDetailManagement', noCache: true }
50
+    },
45 51
     // {
46 52
     //   path: '/outpatientCharges/incomeStatistics',
47 53
     //   component: () => import('@/xt_pages/outpatientCharges/incomeStatistics'),

Файловите разлики са ограничени, защото са твърде много
+ 179 - 1287
src/xt_pages/hospitalStation/chargeDetailManagement.vue


+ 5 - 5
src/xt_pages/hospitalStation/components/deskPrescription.vue Целия файл

@@ -1613,7 +1613,7 @@ export default {
1613 1613
             }
1614 1614
           }
1615 1615
 
1616
-          total = total.toFixed(2)
1616
+          total = total.toFixed(3)
1617 1617
         }
1618 1618
       }
1619 1619
       return total
@@ -1643,7 +1643,7 @@ export default {
1643 1643
           }
1644 1644
         }
1645 1645
       }
1646
-      return total.toFixed(2)
1646
+      return total.toFixed(3)
1647 1647
 
1648 1648
     },
1649 1649
     getCurTotal() {
@@ -1658,7 +1658,7 @@ export default {
1658 1658
         for (let a = 0; a < this.curPrescriptions.project.length; a++) {
1659 1659
           total = total + this.curPrescriptions.project[a].price * this.curPrescriptions.project[a].total
1660 1660
         }
1661
-        return total.toFixed(2)
1661
+        return total.toFixed(3)
1662 1662
 
1663 1663
       }
1664 1664
     },
@@ -1683,7 +1683,7 @@ export default {
1683 1683
         }
1684 1684
       }
1685 1685
 
1686
-      return total.toFixed(2)
1686
+      return total.toFixed(3)
1687 1687
     }, getMonthTotal() {
1688 1688
       var total = 0
1689 1689
       for (let i = 0; i < this.month_prescriptions.length; i++) {
@@ -1705,7 +1705,7 @@ export default {
1705 1705
         }
1706 1706
       }
1707 1707
 
1708
-      return total.toFixed(2)
1708
+      return total.toFixed(3)
1709 1709
     },
1710 1710
     createFilter(queryString) {
1711 1711
       return (restaurant) => {

+ 234 - 194
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Целия файл

@@ -95,7 +95,7 @@
95 95
 
96 96
             <!--                        <el-button v-loading="loadingtwo"-->
97 97
             <!--                                   v-if="(this.activeName != 'third' && this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0)"-->
98
-            <!--                    c               size="small"-->
98
+            <!--                                   size="small"-->
99 99
             <!--                                   @click="open(30)"-->
100 100
             <!--                                   type="primary">上传费用明细-->
101 101
             <!--                        </el-button>-->
@@ -106,23 +106,23 @@
106 106
 <!--            </el-button>-->
107 107
 
108 108
 
109
-<!--            <el-button v-loading="loadingtwo"-->
110
-<!--                       v-if="(( this.activeName != 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0))"-->
111
-<!--                       size="small"-->
112
-<!--                       @click="open(8)"-->
113
-<!--                       type="primary">上传费用明细-->
114
-<!--            </el-button>-->
109
+            <el-button v-loading="loadingtwo"
110
+                       v-if="(( this.activeName != 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0))"
111
+                       size="small"
112
+                       @click="open(8)"
113
+                       type="primary">上传费用明细
114
+            </el-button>
115 115
 
116 116
             <!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
117 117
             <el-button v-loading="loadingone" size="small"
118
-                       v-if="(this.activeName == 'first' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
118
+                       v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
119 119
 
120 120
                        @click="open(2)"
121 121
                        type="primary">出院
122 122
             </el-button>
123 123
 
124 124
             <el-button v-loading="loadingone" size="small"
125
-                       v-if="(this.activeName == 'first' &&this.hisPatientInfo.balance_accounts_type == 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
125
+                       v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type == 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
126 126
 
127 127
                        @click="open(2)"
128 128
                        type="primary">出院
@@ -137,27 +137,27 @@
137 137
             </el-button>
138 138
 
139 139
             <el-button v-loading="loadingtwo"
140
-                       v-if="(this.activeName == 'first' &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1  && this.order.order_status != 2)"
140
+                       v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1  && this.order.order_status != 2)"
141 141
                        size="small"
142 142
                        @click="open(3)"
143 143
                        type="primary">收费
144 144
             </el-button>
145 145
 
146 146
             <el-button size="small" @click="open(4)" type="primary"
147
-                       v-if="this.activeName == 'first' &&this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
147
+                       v-if="this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
148 148
               退费
149 149
             </el-button>
150
-            <el-button v-if="this.activeName == 'first' &&this.order.order_status == 2" size="small" @click="open(5)"
150
+            <el-button v-if="this.activeName == 'third' &&this.order.order_status == 2" size="small" @click="open(5)"
151 151
                        type="primary"
152 152
             >结算单
153 153
             </el-button>
154 154
 
155
-<!--            <el-button-->
156
-<!--                v-if="( this.activeName != 'third' && this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"-->
155
+            <el-button
156
+                v-if="( this.activeName != 'third' && this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
157 157
 
158
-<!--                size="small" @click="open(9)" type="primary"-->
159
-<!--            >撤销明细-->
160
-<!--            </el-button>-->
158
+                size="small" @click="open(9)" type="primary"
159
+            >撤销明细
160
+            </el-button>
161 161
 
162 162
             <!--                        <el-button-->
163 163
             <!--                                v-if="(this.activeName != 'third' && this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"-->
@@ -167,13 +167,13 @@
167 167
             <!--                        </el-button>-->
168 168
 
169 169
             <el-button
170
-                v-if="(this.activeName == 'first' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
170
+                v-if="(this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
171 171
                 size="small" @click="open(6)" type="primary"
172 172
             >撤销出院
173 173
             </el-button>
174 174
 
175 175
             <el-button
176
-                v-if="(this.activeName == 'first' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
176
+                v-if="(this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
177 177
                 size="small" @click="open(7)" type="primary"
178 178
             >撤销入院
179 179
             </el-button>
@@ -189,184 +189,185 @@
189 189
 
190 190
         <div class="mainCenter" v-loading="loading">
191 191
           <el-tabs class="settlementTabs" v-model="activeName" @tab-click="handleClick">
192
-<!--            <el-tab-pane label="日结" name="first">-->
193
-<!--              <div style="display:flex;height:100%;">-->
194
-<!--                <div class="centerLeft">-->
195
-<!--                  <div class="tabsBox">-->
196
-<!--                    &lt;!&ndash;<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>&ndash;&gt;-->
197
-<!--                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"-->
198
-<!--                             @tab-click="tabclickEvent">-->
199
-<!--                      <el-tab-pane-->
200
-<!--                          v-for="(item, index) in prescriptions"-->
201
-<!--                          :key="index"-->
202
-<!--                          :label="item.name"-->
203
-<!--                          :name="item.name"-->
204
-<!--                      >-->
205
-<!--                      </el-tab-pane>-->
206
-
207
-<!--                      &lt;!&ndash;<div class="RP">&ndash;&gt;-->
208
-<!--                      &lt;!&ndash;Rp&ndash;&gt;-->
209
-<!--                      &lt;!&ndash;<el-date-picker&ndash;&gt;-->
210
-<!--                      &lt;!&ndash;v-model="record_date"&ndash;&gt;-->
211
-<!--                      &lt;!&ndash;type="date"&ndash;&gt;-->
212
-<!--                      &lt;!&ndash;:clearable="false"&ndash;&gt;-->
213
-<!--                      &lt;!&ndash;@change="changeDate"&ndash;&gt;-->
214
-<!--                      &lt;!&ndash;format="yyyy-MM-dd"&ndash;&gt;-->
215
-<!--                      &lt;!&ndash;value-format="yyyy-MM-dd"&ndash;&gt;-->
216
-<!--                      &lt;!&ndash;placeholder="选择日期">&ndash;&gt;-->
217
-<!--                      &lt;!&ndash;</el-date-picker>&ndash;&gt;-->
218
-<!--                      &lt;!&ndash;</div>&ndash;&gt;-->
219
-<!--                      &lt;!&ndash;<charge-prescription-table ref="prescription_tables"&ndash;&gt;-->
220
-<!--                      &lt;!&ndash;:prescription="curPrescriptions"></charge-prescription-table>&ndash;&gt;-->
221
-<!--                      &lt;!&ndash;<charge-prescription-table ref="prescription_tables" :prescription="curPrescriptions"></charge-prescription-table>&ndash;&gt;-->
222
-<!--                      <charge-prescription-table ref="prescription_tables"-->
223
-<!--                                                 :manufacturers="manufacturers"-->
224
-<!--                                                 :prescription="curPrescriptions"></charge-prescription-table>-->
225
-
226
-<!--                    </el-tabs>-->
227
-
228
-<!--                  </div>-->
229
-<!--                  <div class="costBox">-->
230
-<!--                    <span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>-->
231
-<!--                    <span v-if="this.curPrescriptions.order_status  == 1">待结算</span>-->
232
-<!--                    <span v-if="this.curPrescriptions.order_status  == 2">已结算</span>-->
233
-<!--                    <span v-if="this.curPrescriptions.order_status  == 3">已退费</span>-->
234
-<!--                  </div>-->
235
-<!--                </div>-->
236
-<!--                <div class="centerRight">-->
237
-<!--                  <p class="centerRightTitle">人员信息</p>-->
238
-<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
239
-<!--                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>-->
240
-<!--                    <span style="font-size:14px;">日期:{{ record_date }}</span>-->
241
-<!--                  </div>-->
242
-<!--                  <ul class="basicUl">-->
243
-<!--                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>-->
244
-<!--                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>-->
245
-<!--                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>-->
246
-<!--                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>-->
247
-
248
-<!--                    &lt;!&ndash;<span>过敏病史:</span>&ndash;&gt;-->
249
-<!--                    &lt;!&ndash;<el-autocomplete&ndash;&gt;-->
250
-<!--                    &lt;!&ndash;style="width:100%;"&ndash;&gt;-->
251
-<!--                    &lt;!&ndash;class="inline-input"&ndash;&gt;-->
252
-<!--                    &lt;!&ndash;v-model="sick_history"&ndash;&gt;-->
253
-<!--                    &lt;!&ndash;:fetch-suggestions="querySearch2"&ndash;&gt;-->
254
-<!--                    &lt;!&ndash;placeholder="请输入内容"&ndash;&gt;-->
255
-<!--                    &lt;!&ndash;&gt;</el-autocomplete>&ndash;&gt;-->
256
-<!--                    &lt;!&ndash;<li style="width:100%;">地址:{{patientInfo.home_address}}</li>&ndash;&gt;-->
257
-<!--                    &lt;!&ndash;<li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>&ndash;&gt;-->
258
-<!--                  </ul>-->
259
-<!--                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>-->
260
-<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
261
-<!--                    <span style="font-size:14px;">住院编号:{{ hisPatientInfo.number }}</span>-->
262
-<!--                  </div>-->
263
-<!--                  <ul class="basicUl">-->
264
-<!--                    <li style="width:50%;">医生:{{ info.doctor }}</li>-->
265
-<!--                    <li style="width:50%;">科室:{{ info.departments }}</li>-->
266
-<!--                    <li style="width:100%;">总费用:{{ getTotal() }}</li>-->
267
-
268
-<!--                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>-->
269
-<!--                    <li style="width:100%;">是否有传染病:</li>-->
270
-<!--                    <li style="width:100%;">血压:</li>-->
271
-<!--                  </ul>-->
272
-<!--                </div>-->
273
-<!--              </div>-->
274
-<!--            </el-tab-pane>-->
275
-<!--            <el-tab-pane label="月结" name="second">-->
276
-<!--              <div style="display:flex;height:100%;">-->
277
-<!--                <div class="centerLeft">-->
278
-<!--                  <div class="tabsBox">-->
279
-<!--                    &lt;!&ndash; <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button> &ndash;&gt;-->
280
-<!--                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"-->
281
-<!--                             @tab-click="tabclickEventTwo">-->
282
-
283
-<!--                      <el-tab-pane-->
284
-<!--                          v-for="(item, index) in month_prescriptions"-->
285
-<!--                          :key="index"-->
286
-<!--                          :label="item.name"-->
287
-<!--                          :name="item.name">-->
288
-<!--                      </el-tab-pane>-->
289
-
290
-<!--                      <div class="RP">-->
291
-<!--                        Rp-->
292
-<!--                        <el-date-picker-->
293
-<!--                            v-model="other_start_time"-->
294
-<!--                            prefix-icon="el-icon-date"-->
295
-<!--                            @change="changeTime"-->
296
-<!--                            :editable="false"-->
297
-<!--                            style="width: 150px;"-->
298
-<!--                            type="date"-->
299
-<!--                            :picker-options="pickerOptions"-->
300
-<!--                            placeholder="选择开始时间"-->
301
-<!--                            align="right"-->
302
-<!--                            format="yyyy-MM-dd"-->
303
-<!--                            value-format="yyyy-MM-dd">-->
304
-<!--                        </el-date-picker>-->
305
-<!--                        <span class>-</span>-->
306
-<!--                        <el-date-picker-->
307
-<!--                            v-model="other_end_time"-->
308
-<!--                            prefix-icon="el-icon-date"-->
309
-<!--                            @change="changeEndTime"-->
310
-<!--                            :editable="false"-->
311
-<!--                            style="width: 150px;"-->
312
-<!--                            type="date"-->
313
-<!--                            placeholder="选择结束时间"-->
314
-<!--                            align="right"-->
315
-<!--                            format="yyyy-MM-dd"-->
316
-<!--                            value-format="yyyy-MM-dd">-->
317
-<!--                        </el-date-picker>-->
318
-<!--                      </div>-->
319
-<!--                      &lt;!&ndash;<prescription-table :preTableData='preTableData'></prescription-table>&ndash;&gt;-->
320
-<!--                      &lt;!&ndash;<month-prescription-table ref="prescription_tables"&ndash;&gt;-->
321
-<!--                      &lt;!&ndash;:activeType="activeType"  :prescription="curMonthPrescriptions"></month-prescription-table>&ndash;&gt;-->
322
-<!--                      <charge-month-prescription-table-->
323
-<!--                          :prescription="curMonthPrescriptions"></charge-month-prescription-table>-->
324
-
325
-<!--                    </el-tabs>-->
326
-
327
-<!--                  </div>-->
328
-<!--                  <div class="costBox">-->
329
-<!--                    <span>当前处方总费用:<span style="color:red;">{{ month_total }}元</span></span>-->
330
-<!--                    &lt;!&ndash;<span>{{ state }}</span>&ndash;&gt;-->
331
-<!--                  </div>-->
332
-<!--                </div>-->
333
-<!--                <div class="centerRight">-->
334
-<!--                  <p class="centerRightTitle">人员信息</p>-->
335
-<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
336
-<!--                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>-->
337
-<!--                    <span style="font-size:14px;">日期:{{ record_date }}</span>-->
338
-<!--                  </div>-->
339
-
340
-<!--                  <ul class="basicUl">-->
341
-<!--                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>-->
342
-<!--                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>-->
343
-<!--                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>-->
344
-<!--                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>-->
345
-<!--                    <li style="width:100%;">过敏史及其他病史:{{ info.sick_history }}</li>-->
346
-
347
-<!--                  </ul>-->
348
-<!--                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>-->
349
-<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
350
-<!--                    <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number }}</span>-->
351
-<!--                  </div>-->
352
-<!--                  <ul class="basicUl">-->
353
-<!--                    <li style="width:50%;">医生:{{ info.doctor }}</li>-->
354
-<!--                    <li style="width:50%;">科室:{{ getDepartment(info.departments) }}</li>-->
355
-<!--                    <li style="width:100%;" v-if="activeName == 'first'">总费用:{{ getTotal() }}</li>-->
356
-<!--                    <li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}-->
357
-<!--                    </li>-->
358
-
359
-<!--                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>-->
360
-<!--                    &lt;!&ndash;<li style="width:100%;">是否有传染病:</li>&ndash;&gt;-->
361
-<!--                    &lt;!&ndash;<li style="width:100%;">血压:</li>&ndash;&gt;-->
362
-<!--                  </ul>-->
363
-<!--                </div>-->
364
-<!--              </div>-->
365
-<!--            </el-tab-pane>-->
366
-            <el-tab-pane label="结算" name="first">
192
+            <el-tab-pane label="日结" name="first">
193
+              <div style="display:flex;height:100%;">
194
+                <div class="centerLeft">
195
+                  <div class="tabsBox">
196
+                    <!--<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>-->
197
+                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
198
+                             @tab-click="tabclickEvent">
199
+                      <el-tab-pane
200
+                          v-for="(item, index) in prescriptions"
201
+                          :key="index"
202
+                          :label="item.name"
203
+                          :name="item.name"
204
+                      >
205
+                      </el-tab-pane>
206
+
207
+                      <!--<div class="RP">-->
208
+                      <!--Rp-->
209
+                      <!--<el-date-picker-->
210
+                      <!--v-model="record_date"-->
211
+                      <!--type="date"-->
212
+                      <!--:clearable="false"-->
213
+                      <!--@change="changeDate"-->
214
+                      <!--format="yyyy-MM-dd"-->
215
+                      <!--value-format="yyyy-MM-dd"-->
216
+                      <!--placeholder="选择日期">-->
217
+                      <!--</el-date-picker>-->
218
+                      <!--</div>-->
219
+                      <!--<charge-prescription-table ref="prescription_tables"-->
220
+                      <!--:prescription="curPrescriptions"></charge-prescription-table>-->
221
+                      <!--<charge-prescription-table ref="prescription_tables" :prescription="curPrescriptions"></charge-prescription-table>-->
222
+                      <charge-prescription-table ref="prescription_tables"
223
+                                                 :manufacturers="manufacturers"
224
+                                                 :prescription="curPrescriptions"></charge-prescription-table>
225
+
226
+                    </el-tabs>
227
+
228
+                  </div>
229
+                  <div class="costBox">
230
+                    <span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>
231
+                    <span v-if="this.curPrescriptions.order_status  == 1">待结算</span>
232
+                    <span v-if="this.curPrescriptions.order_status  == 2">已结算</span>
233
+                    <span v-if="this.curPrescriptions.order_status  == 3">已退费</span>
234
+                  </div>
235
+                </div>
236
+                <div class="centerRight">
237
+                  <p class="centerRightTitle">人员信息</p>
238
+                  <div style="display:flex;justify-content: space-between;line-height:30px;">
239
+                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>
240
+                    <span style="font-size:14px;">日期:{{ record_date }}</span>
241
+                  </div>
242
+                  <ul class="basicUl">
243
+                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>
244
+                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>
245
+                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>
246
+                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>
247
+
248
+                    <!--<span>过敏病史:</span>-->
249
+                    <!--<el-autocomplete-->
250
+                    <!--style="width:100%;"-->
251
+                    <!--class="inline-input"-->
252
+                    <!--v-model="sick_history"-->
253
+                    <!--:fetch-suggestions="querySearch2"-->
254
+                    <!--placeholder="请输入内容"-->
255
+                    <!--&gt;</el-autocomplete>-->
256
+                    <!--<li style="width:100%;">地址:{{patientInfo.home_address}}</li>-->
257
+                    <!--<li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>-->
258
+                  </ul>
259
+                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>
260
+                  <div style="display:flex;justify-content: space-between;line-height:30px;">
261
+                    <span style="font-size:14px;">住院编号:{{ hisPatientInfo.number }}</span>
262
+                  </div>
263
+                  <ul class="basicUl">
264
+                    <li style="width:50%;">医生:{{ info.doctor }}</li>
265
+                    <li style="width:50%;">科室:{{ info.departments }}</li>
266
+                    <li style="width:100%;">总费用:{{ getTotal() }}</li>
267
+
268
+                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>
269
+                    <li style="width:100%;">是否有传染病:</li>
270
+                    <li style="width:100%;">血压:</li>
271
+                  </ul>
272
+                </div>
273
+              </div>
274
+            </el-tab-pane>
275
+            <el-tab-pane label="月结" name="second">
367 276
               <div style="display:flex;height:100%;">
368 277
                 <div class="centerLeft">
369 278
                   <div class="tabsBox">
279
+                    <!-- <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button> -->
280
+                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
281
+                             @tab-click="tabclickEventTwo">
282
+
283
+                      <el-tab-pane
284
+                          v-for="(item, index) in month_prescriptions"
285
+                          :key="index"
286
+                          :label="item.name"
287
+                          :name="item.name">
288
+                      </el-tab-pane>
289
+
290
+                      <div class="RP">
291
+                        Rp
292
+                        <el-date-picker
293
+                            v-model="other_start_time"
294
+                            prefix-icon="el-icon-date"
295
+                            @change="changeTime"
296
+                            :editable="false"
297
+                            style="width: 150px;"
298
+                            type="date"
299
+                            :picker-options="pickerOptions"
300
+                            placeholder="选择开始时间"
301
+                            align="right"
302
+                            format="yyyy-MM-dd"
303
+                            value-format="yyyy-MM-dd">
304
+                        </el-date-picker>
305
+                        <span class>-</span>
306
+                        <el-date-picker
307
+                            v-model="other_end_time"
308
+                            prefix-icon="el-icon-date"
309
+                            @change="changeEndTime"
310
+                            :editable="false"
311
+                            style="width: 150px;"
312
+                            type="date"
313
+                            placeholder="选择结束时间"
314
+                            align="right"
315
+                            format="yyyy-MM-dd"
316
+                            value-format="yyyy-MM-dd">
317
+                        </el-date-picker>
318
+                      </div>
319
+                      <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
320
+                      <!--<month-prescription-table ref="prescription_tables"-->
321
+                      <!--:activeType="activeType"  :prescription="curMonthPrescriptions"></month-prescription-table>-->
322
+                      <charge-month-prescription-table
323
+                          :prescription="curMonthPrescriptions"></charge-month-prescription-table>
324
+
325
+                    </el-tabs>
326
+
327
+                  </div>
328
+                  <div class="costBox">
329
+                    <span>当前处方总费用:<span style="color:red;">{{ month_total }}元</span></span>
330
+                    <!--<span>{{ state }}</span>-->
331
+                  </div>
332
+                </div>
333
+                <div class="centerRight">
334
+                  <p class="centerRightTitle">人员信息</p>
335
+                  <div style="display:flex;justify-content: space-between;line-height:30px;">
336
+                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>
337
+                    <span style="font-size:14px;">日期:{{ record_date }}</span>
338
+                  </div>
339
+
340
+                  <ul class="basicUl">
341
+                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>
342
+                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>
343
+                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>
344
+                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>
345
+                    <li style="width:100%;">过敏史及其他病史:{{ info.sick_history }}</li>
346
+
347
+                  </ul>
348
+                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>
349
+                  <div style="display:flex;justify-content: space-between;line-height:30px;">
350
+                    <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number }}</span>
351
+                  </div>
352
+                  <ul class="basicUl">
353
+                    <li style="width:50%;">医生:{{ info.doctor }}</li>
354
+                    <li style="width:50%;">科室:{{ getDepartment(info.departments) }}</li>
355
+                    <li style="width:100%;" v-if="activeName == 'first'">总费用:{{ getTotal() }}</li>
356
+                    <li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}
357
+                    </li>
358
+
359
+                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>
360
+                    <!--<li style="width:100%;">是否有传染病:</li>-->
361
+                    <!--<li style="width:100%;">血压:</li>-->
362
+                  </ul>
363
+                </div>
364
+              </div>
365
+            </el-tab-pane>
366
+            <el-tab-pane label="结算" name="third">
367
+              <div style="display:flex;height:100%;">
368
+                <div class="centerLeft">
369
+                  <div class="tabsBox">
370
+                    <!-- <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button> -->
370 371
                     <el-tabs class="preTabs" v-model="editSettletableTabsValue" type="border-card"
371 372
                              @tab-click="tabclickEventThree">
372 373
 
@@ -379,16 +380,55 @@
379 380
                       <settle-prescription-table
380 381
                           :prescription="curSettlePrescriptions"
381 382
                       ></settle-prescription-table>
383
+
384
+                      <!--                                <charge-month-prescription-table-->
385
+                      <!--                                    :prescription="curMonthPrescriptions"></charge-month-prescription-table>-->
386
+
382 387
                     </el-tabs>
383 388
 
384 389
                   </div>
385 390
                   <div class="costBox">
386 391
                     <span>当前处方总费用:<span style="color:red;">{{ settle_total }}元</span></span>
392
+                    <!--<span>{{ state }}</span>-->
387 393
                   </div>
388 394
                 </div>
395
+                <!--                          <div class="centerRight">-->
396
+                <!--                            <p class="centerRightTitle">人员信息</p>-->
397
+                <!--                            <div style="display:flex;justify-content: space-between;line-height:30px;">-->
398
+                <!--                              <span style="font-size:14px;">人员编码:{{patientInfo.dialysis_no}}</span>-->
399
+                <!--                              <span style="font-size:14px;">日期:{{record_date}}</span>-->
400
+                <!--                            </div>-->
401
+
402
+                <!--                            <ul class="basicUl">-->
403
+                <!--                              <li style="width:50%;">姓名:{{patientInfo.name}}</li>-->
404
+                <!--                              <li style="width:50%;">性别:{{patientInfo.gender == 1 ? '男' : '女' }}</li>-->
405
+                <!--                              <li style="width:50%;">年龄:{{patientInfo.age }}</li>-->
406
+                <!--                              <li style="width:50%;">电话:{{patientInfo.phone}}</li>-->
407
+                <!--                              <li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>-->
408
+
409
+                <!--                            </ul>-->
410
+                <!--                            <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>-->
411
+                <!--                            <div style="display:flex;justify-content: space-between;line-height:30px;">-->
412
+                <!--                              <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number}}</span>-->
413
+                <!--                            </div>-->
414
+                <!--                            <ul class="basicUl">-->
415
+                <!--                              <li style="width:50%;">医生:{{ info.doctor }}</li>-->
416
+                <!--                              <li style="width:50%;">科室:{{ getDepartment(info.departments) }}</li>-->
417
+                <!--                              <li style="width:100%;" v-if="activeName == 'first'">总费用:{{ getTotal() }}</li>-->
418
+                <!--                              <li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}-->
419
+                <!--                              </li>-->
420
+
421
+                <!--                              <li style="width:100%;">判断结果:{{info.diagnosis}}</li>-->
422
+                <!--                              &lt;!&ndash;<li style="width:100%;">是否有传染病:</li>&ndash;&gt;-->
423
+                <!--                              &lt;!&ndash;<li style="width:100%;">血压:</li>&ndash;&gt;-->
424
+                <!--                            </ul>-->
425
+                <!--                          </div>-->
389 426
               </div>
390 427
             </el-tab-pane>
428
+
391 429
           </el-tabs>
430
+
431
+
392 432
         </div>
393 433
       </div>
394 434
     </div>

+ 107 - 0
src/xt_pages/outpatientCharges/components/registerDialog.vue Целия файл

@@ -192,6 +192,11 @@
192 192
           </el-option>
193 193
         </el-select>
194 194
       </el-form-item>
195
+
196
+
197
+      <el-button style="margin-left:10px;" type="primary" @click="check11" v-if="form.id_card_no.length > 0">查普通门诊待遇</el-button>
198
+      <el-button style="margin-left:10px;" type="primary" @click="check14" v-if="form.id_card_no.length > 0">查门诊大病待遇</el-button>
199
+
195 200
     </el-form>
196 201
 
197 202
     <span slot="footer" class="dialog-footer">
@@ -399,6 +404,108 @@
399 404
       diagnoses: Array
400 405
     },
401 406
     methods: {
407
+      check11(){
408
+        if(this.form.social_type == 0 || this.form.social_type == ''){
409
+          this.$message.error("社保类型不能为空")
410
+          return
411
+        }
412
+        var that = this
413
+        let params={
414
+          id_card_no: this.form.id_card_no,
415
+          admin_user_id:this.$store.getters.xt_user.user.id,
416
+          med_type: 11,
417
+          insutype: this.form.social_type
418
+        }
419
+        axios.get('http://127.0.0.1:9532/api/treatment/check', {
420
+          params: params,
421
+          headers: {
422
+            'Permission': 5
423
+          }
424
+        })
425
+            .then(function(response) {
426
+              if (response.data.state == 0) {
427
+                that.$message.error(response.data.msg)
428
+                that.loadingone = false
429
+                return false
430
+              } else {
431
+                that.loadingone = false
432
+                if (response.data.data.failed_code == -10) {
433
+                  // that.$message.error(response.data.data.msg)
434
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
435
+                    confirmButtonText: '确 定',
436
+                    type: 'warning'
437
+                  }).then(() => {
438
+
439
+
440
+                  }).catch(() => {
441
+                  })
442
+                } else {
443
+                  var result_desc = '';
444
+                  result_desc = response.data.data.msg
445
+                  that.$alert(result_desc, '结果', {
446
+                    confirmButtonText: '确定',
447
+                    callback: action => {
448
+                      this.dialogFormVisible = false
449
+                    }
450
+                  });
451
+                }
452
+              }
453
+            })
454
+            .catch(function(error) {
455
+            })
456
+      },
457
+      check14(){
458
+        if(this.form.social_type == 0 || this.form.social_type == ''){
459
+          this.$message.error("社保类型不能为空")
460
+          return
461
+        }
462
+        var that = this
463
+        let params={
464
+          id_card_no: this.form.id_card_no,
465
+          admin_user_id:this.$store.getters.xt_user.user.id,
466
+          med_type: "14",
467
+          insutype: this.form.social_type
468
+        }
469
+        axios.get('http://127.0.0.1:9532/api/treatment/check', {
470
+          params: params,
471
+          headers: {
472
+            'Permission': 5
473
+          }
474
+        })
475
+            .then(function(response) {
476
+              if (response.data.state == 0) {
477
+                that.$message.error(response.data.msg)
478
+                that.loadingone = false
479
+                return false
480
+              } else {
481
+                that.loadingone = false
482
+                if (response.data.data.failed_code == -10) {
483
+                  // that.$message.error(response.data.data.msg)
484
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
485
+                    confirmButtonText: '确 定',
486
+                    type: 'warning'
487
+                  }).then(() => {
488
+
489
+
490
+                  }).catch(() => {
491
+                  })
492
+                } else {
493
+                  var result_desc = '';
494
+                  result_desc = response.data.data.msg
495
+                  that.$alert(result_desc, '结果', {
496
+                    confirmButtonText: '确定',
497
+                    callback: action => {
498
+                      this.dialogFormVisible = false
499
+                    }
500
+                  });
501
+                }
502
+              }
503
+            })
504
+            .catch(function(error) {
505
+
506
+            })
507
+
508
+      },
402 509
       changeDoctor() {
403 510
         for (let i = 0; i < this.doctors.length; i++) {
404 511
           if (this.doctors[i].admin_user_id == this.form.doctor) {

+ 106 - 0
src/xt_pages/outpatientCharges/components/registerDialog9504.vue Целия файл

@@ -162,6 +162,10 @@
162 162
                     </el-option>
163 163
                 </el-select>
164 164
             </el-form-item>
165
+
166
+          <el-button style="margin-left:10px;" type="primary" @click="check11" v-if="form.id_card_no.length > 0">查普通门诊待遇</el-button>
167
+          <el-button style="margin-left:10px;" type="primary" @click="check14" v-if="form.id_card_no.length > 0">查门诊大病待遇</el-button>
168
+
165 169
         </el-form>
166 170
 
167 171
         <span slot="footer" class="dialog-footer">
@@ -377,6 +381,108 @@
377 381
       diagnoses: Array,
378 382
     },
379 383
     methods: {
384
+      check11(){
385
+        if(this.form.social_type == 0 || this.form.social_type == ''){
386
+          this.$message.error("社保类型不能为空")
387
+          return
388
+        }
389
+        var that = this
390
+        let params={
391
+          id_card_no: this.form.id_card_no,
392
+          admin_user_id:this.$store.getters.xt_user.user.id,
393
+          med_type: 11,
394
+          insutype: this.form.social_type
395
+        }
396
+        axios.get('http://127.0.0.1:9532/api/treatment/check', {
397
+          params: params,
398
+          headers: {
399
+            'Permission': 5
400
+          }
401
+        })
402
+            .then(function(response) {
403
+              if (response.data.state == 0) {
404
+                that.$message.error(response.data.msg)
405
+                that.loadingone = false
406
+                return false
407
+              } else {
408
+                that.loadingone = false
409
+                if (response.data.data.failed_code == -10) {
410
+                  // that.$message.error(response.data.data.msg)
411
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
412
+                    confirmButtonText: '确 定',
413
+                    type: 'warning'
414
+                  }).then(() => {
415
+
416
+
417
+                  }).catch(() => {
418
+                  })
419
+                } else {
420
+                  var result_desc = '';
421
+                  result_desc = response.data.data.msg
422
+                  that.$alert(result_desc, '结果', {
423
+                    confirmButtonText: '确定',
424
+                    callback: action => {
425
+                      this.dialogFormVisible = false
426
+                    }
427
+                  });
428
+                }
429
+              }
430
+            })
431
+            .catch(function(error) {
432
+            })
433
+      },
434
+      check14(){
435
+        if(this.form.social_type == 0 || this.form.social_type == ''){
436
+          this.$message.error("社保类型不能为空")
437
+          return
438
+        }
439
+        var that = this
440
+        let params={
441
+          id_card_no: this.form.id_card_no,
442
+          admin_user_id:this.$store.getters.xt_user.user.id,
443
+          med_type: "14",
444
+          insutype: this.form.social_type
445
+        }
446
+        axios.get('http://127.0.0.1:9532/api/treatment/check', {
447
+          params: params,
448
+          headers: {
449
+            'Permission': 5
450
+          }
451
+        })
452
+            .then(function(response) {
453
+              if (response.data.state == 0) {
454
+                that.$message.error(response.data.msg)
455
+                that.loadingone = false
456
+                return false
457
+              } else {
458
+                that.loadingone = false
459
+                if (response.data.data.failed_code == -10) {
460
+                  // that.$message.error(response.data.data.msg)
461
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
462
+                    confirmButtonText: '确 定',
463
+                    type: 'warning'
464
+                  }).then(() => {
465
+
466
+
467
+                  }).catch(() => {
468
+                  })
469
+                } else {
470
+                  var result_desc = '';
471
+                  result_desc = response.data.data.msg
472
+                  that.$alert(result_desc, '结果', {
473
+                    confirmButtonText: '确定',
474
+                    callback: action => {
475
+                      this.dialogFormVisible = false
476
+                    }
477
+                  });
478
+                }
479
+              }
480
+            })
481
+            .catch(function(error) {
482
+
483
+            })
484
+
485
+      },
380 486
       changeDoctor() {
381 487
         for (let i = 0; i < this.doctors.length; i++) {
382 488
           if (this.doctors[i].admin_user_id == this.form.doctor) {

+ 2 - 2
src/xt_pages/qcd/officesControlAnalysis/time.vue Целия файл

@@ -180,8 +180,8 @@ export default {
180 180
       ],originType:0,
181 181
       originState: [
182 182
         { value: 0, label: '全部', source: 0},
183
-        { value: 1, label: '住院', source: 1},
184
-        { value: 2, label: '门诊', source: 2}
183
+        { value: 2, label: '住院', source: 2},
184
+        { value: 1, label: '门诊', source: 1}
185 185
       ],
186 186
       crumbs: [
187 187
         { path: false, name: '质控管理' },