Browse Source

Merge remote-tracking branch 'origin/20201109_pc_vue_new_branch' into 20201109_pc_vue_new_branch

XMLWAN 3 years ago
parent
commit
3bd8791b10

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

@@ -365,6 +365,16 @@ export function getRecordList (params) {
365 365
 
366 366
 
367 367
 
368
+export function getCheckAccountFormData (params) {
369
+  return request({
370
+    url: '/api/comparedata/get',
371
+    method: 'get',
372
+    params:params,
373
+  })
374
+}
375
+
376
+
377
+
368 378
 
369 379
 
370 380
 

+ 21 - 19
src/xt_pages/dialysis/components/consumables.vue View File

@@ -160,7 +160,9 @@
160 160
       this.query.page = 1
161 161
       this.GetDialysisgoods()
162 162
     },
163
-    methods: { handleSizeChange(val) {
163
+    methods: {
164
+
165
+      handleSizeChange(val) {
164 166
         this.query.limit = val;
165 167
         this.GetDialysisgoods();
166 168
       },
@@ -180,7 +182,7 @@
180 182
 
181 183
       },
182 184
       getGoodUserInfo(good_type_id,good_user,last_good_user) {
183
-        var arrlist =[] 
185
+        var arrlist =[]
184 186
         if (good_user != null && good_user.length > 0) {
185 187
           let desc = ""
186 188
           for (let b = 0; b < good_user.length; b++){
@@ -191,7 +193,7 @@
191 193
           return desc
192 194
         }
193 195
         return ""
194
-       
196
+
195 197
         // else if (good_user != null && good_user.length <= 0) {
196 198
         //   if (last_good_user != null && last_good_user.length > 0) {
197 199
         //     let desc = ""
@@ -213,7 +215,7 @@
213 215
             this.$message.error(response.data.msg)
214 216
             return false
215 217
           } else {
216
-           
218
+
217 219
             this.list = []
218 220
             this.good_types = []
219 221
             this.allGoodInfo = []
@@ -233,9 +235,9 @@
233 235
             }
234 236
 
235 237
             this.arrKey.push(...arr)
236
-          
238
+
237 239
             this.allGoodInfo = res.data.dialysis_goods
238
-           
240
+
239 241
             for(let i = 0; i < res.data.dialysis_goods.length; i++){
240 242
               let arr =[]
241 243
               let obj = {
@@ -276,15 +278,15 @@
276 278
 
277 279
               }
278 280
             }
279
-           
281
+
280 282
           //  console.log("99999999",this.list)
281
-           let a = [] 
283
+           let a = []
282 284
           this.list.map(item => {
283 285
             a.push(item.good_type)
284 286
           })
285 287
           // console.log('aaaaaaaaa',a)
286 288
           let b = []
287
-       
289
+
288 290
           a.map(item => {
289 291
             let obj = []
290 292
             item.map((it,index) => {
@@ -293,9 +295,9 @@
293 295
               let str = 'name' + index
294 296
               c[str] = it.name
295 297
               obj.push(c)
296
-              
298
+
297 299
             })
298
-            
300
+
299 301
             b.push(obj)
300 302
           })
301 303
           var temp = []
@@ -304,7 +306,7 @@
304 306
             var objC = {...b[i]}
305 307
             temp.push(objC)
306 308
           }
307
-       
309
+
308 310
           // console.log("temp--------",temp)
309 311
           var tempTwo = []
310 312
           temp.map(item => {
@@ -314,18 +316,18 @@
314 316
             })
315 317
             let obj2 = {}
316 318
             obj.map((i,ind) => {
317
-            
319
+
318 320
               let str = 'name' + ind
319 321
               obj2[str] = i[str]
320 322
             })
321 323
             tempTwo.push(obj2)
322 324
             console.log(325556574342354234234,tempTwo)
323 325
           })
324
-          
326
+
325 327
           this.arrList.push(...tempTwo)
326 328
           console.log("cccccccc",this.arrList)
327 329
           }
328
-        })  
330
+        })
329 331
       },
330 332
       selectSchedulType(scheduleType) {
331 333
         this.schedulType = scheduleType
@@ -368,9 +370,9 @@
368 370
 
369 371
        exportList(){
370 372
          import('@/vendor/Export2Excel').then(excel => {
371
-         
372
-        
373
-       
373
+
374
+
375
+
374 376
          var arrTwo = []
375 377
          for(let i=0;i<this.arrKey.length;i++){
376 378
             arrTwo.push('name'+i)
@@ -385,7 +387,7 @@
385 387
          console.log("33333",this.arrList)
386 388
          const data = this.formatJson(filterVal,this.arrList)
387 389
          console.log("data",data)
388
-      
390
+
389 391
          excel.export_json_to_excel({
390 392
            header: tHeader,
391 393
            data,

+ 5 - 3
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

@@ -495,7 +495,7 @@ export default {
495 495
             console.log("列表数据",schedules)
496 496
             var config = resp.data.config
497 497
             console.log("config222222",config.is_open)
498
-           if(config.is_open == 0){
498
+           if(config.is_open == 0 || config.is_open == 2){
499 499
             this.show = true
500 500
             this.showOne = false
501 501
             let arr = []
@@ -539,6 +539,7 @@ export default {
539 539
                 })
540 540
                 this.scheduleMap = a
541 541
             }
542
+            console.log("列表22222",this.scheduleMap)
542 543
             this.scheduleMap.map(ele => {
543 544
                 let firstIndex = this.scheduleMap.findIndex(item => {
544 545
                   return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
@@ -554,7 +555,7 @@ export default {
554 555
             })
555 556
             this.indexInfoList = newArr
556 557
            }
557
-           if(config.is_open == 1 || config.is_open == 2){
558
+           if(config.is_open == 1){
558 559
              this.show = false
559 560
              this.showOne  = true
560 561
             var schedules =  resp.data.hisAdvices
@@ -599,6 +600,7 @@ export default {
599 600
                 })
600 601
                 this.scheduleMap = a
601 602
             }
603
+            console.log('333333344444',this.scheduleMap)
602 604
             this.scheduleMap.map(ele => {
603 605
                 let firstIndex = this.scheduleMap.findIndex(item => {
604 606
                   return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
@@ -615,7 +617,7 @@ export default {
615 617
             this.indexInfoList = newArr
616 618
            }
617 619
          }
618
-         console.log("列表22222",this.scheduleMap)
620
+        //  console.log("列表22222",this.scheduleMap)
619 621
         })
620 622
     },
621 623
     getValue: function(val) {

+ 2 - 1
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

@@ -484,6 +484,8 @@
484 484
         this.form.p_type = 14
485 485
         this.form.sick_type = this.sick[0].id
486 486
         this.form.diagnosis = this.diagnoses[0].id
487
+        this.form.id_card_type = 2
488
+        this.form.certificates = 1
487 489
 
488 490
         // this.form.name = patientInfo.name
489 491
         // this.form.gender = patientInfo.gender
@@ -493,7 +495,6 @@
493 495
         // this.form.birthday = patientInfo.birthday
494 496
         // this.form.id_card = patientInfo.id_card_no
495 497
         // this.form.social_type = patientInfo.health_care_type
496
-        // this.form.id_card_type = 1
497 498
         // if( this.form.social_type == 0){
498 499
         //   this.form.social_type = ""
499 500
         // }

+ 479 - 178
src/xt_pages/outpatientCharges/costComparison.vue View File

@@ -1,140 +1,219 @@
1 1
 <template>
2
-  <div class="main-contain incomeStatistics">
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>
2
+    <div class="main-contain incomeStatistics">
3
+        <div class="position">
4
+            <bread-crumb :crumbs='crumbs'></bread-crumb>
14 5
         </div>
15
-        <el-button size="small" type="primary" @click="dialogFormVisible = true" >医保对账</el-button>
16
-      </div>
17
-      <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
18
-                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
19
-        <el-table-column
20
-          prop="date"
21
-          label="序号"
22
-          width="60"
23
-          align="center"
24
-          type="index"
25
-        >
26
-        </el-table-column>
27
-        <el-table-column align="center" prop="name" label="对账申请人">
28
-          <template slot-scope="scope">{{getName(scope.row.creator)}}</template>
29
-        </el-table-column>
30
-        <el-table-column align="center" prop="name" label="开始日期">
31
-          <template slot-scope="scope">{{getTimes(scope.row.start_time)}}</template>
32
-        </el-table-column>
33
-        <el-table-column align="center" prop="name" label="结束日期">
34
-          <template slot-scope="scope">{{getTimes(scope.row.end_time)}}</template>
35
-        </el-table-column>
36
-        <el-table-column align="center" prop="name" label="险种类型">
37
-          <template slot-scope="scope">
38
-            <div  v-if="scope.row.insutype == '310'">职工基本医疗保险</div>
39
-            <div  v-if="scope.row.insutype == '320'">公务员医疗补助</div>
40
-            <div  v-if="scope.row.insutype == '330'">大额医疗费用补助</div>
41
-            <div  v-if="scope.row.insutype == '340'">离休人员医疗保障</div>
42
-            <div  v-if="scope.row.insutype == '390'">城乡居民基本医疗保险</div>
43
-            <div  v-if="scope.row.insutype == '392'">城乡居民大病医疗保险</div>
44
-            <div  v-if="scope.row.insutype == '510'">生育保险</div>
45
-          </template>
46
-        </el-table-column>
47
-        <el-table-column align="center" prop="name" label="对账类型">
48
-          <template slot-scope="scope">
49
-            <div  v-if="scope.row.check_type == 1">总账</div>
50
-            <div  v-if="scope.row.check_type == 2">明细</div>
51
-          </template>
52
-        </el-table-column>
53
-        <el-table-column align="center" prop="name" label="结算笔数">
54
-          <template slot-scope="scope">{{scope.row.num}}</template>
55
-        </el-table-column>
56
-        <el-table-column align="center" prop="name" label="医疗费用总数">
57
-          <template slot-scope="scope">
58
-            {{scope.row.cost_total}}元
59
-          </template>
60
-        </el-table-column>
61
-        <el-table-column align="center" prop="name" width="160" label="基本医疗基金总费用">
62
-          <template slot-scope="scope">
63
-            {{scope.row.func_total}}元
64
-          </template>
65
-        </el-table-column>
66
-        <el-table-column align="center" prop="name" label="个人支付总费用">
67
-          <template slot-scope="scope">
68
-            {{scope.row.psn_pay}}元
69
-          </template>
70
-        </el-table-column>
71
-      </el-table>
72
-      <el-pagination
73
-        @size-change="handleSizeChange"
74
-        @current-change="handleCurrentChange"
75
-        :page-sizes="[10, 50, 100]"
76
-        :page-size="10"
77
-        background
78
-        style="margin-top:20px;float: right"
79
-        layout="total, sizes, prev, pager, next, jumper"
80
-        :total="total"
81
-
82
-      >
83
-      </el-pagination>
84
-      <el-dialog title="医保对账" :visible.sync="dialogFormVisible">
85
-        <el-form :model="form" label-width="100px">
86
-          <el-form-item label="时间" :label-width="formLabelWidth">
87
-            <el-date-picker v-model="start_time" prefix-icon="el-icon-date"
88
-                            @change="handleStartTimeChange" :editable="false" :clearable="false"
89
-                            style="width: 200px;" type="date" placeholder="选择开始日期"
90
-                            format="yyyy-MM-dd"
91
-                            value-format="yyyy-MM-dd"
92
-                            align="right"></el-date-picker>
93
-            -
94
-
95
-            <el-date-picker v-model="end_time" prefix-icon="el-icon-date"
96
-                            @change="handleEndTimeChange" :editable="false" :clearable="false"
97
-                            style="width: 200px;margin-right:10px;" type="date" placeholder="选择结束日期"
98
-                            format="yyyy-MM-dd"
99
-                            value-format="yyyy-MM-dd"
100
-                            align="right"></el-date-picker>
101
-          </el-form-item>
102
-          <el-form-item label="险种类型" :label-width="formLabelWidth">
103
-            <el-select v-model=" insutype" placeholder="请选择" style="width: 200px;">
104
-              <el-option
105
-                v-for="item in insutypes"
106
-                :key="item.value"
107
-                :label="item.label"
108
-                :value="item.value">
109
-              </el-option>
110
-            </el-select>
111
-          </el-form-item>
112
-          <el-form-item label="对账类型" :label-width="formLabelWidth">
113
-            <el-select v-model="check_type" placeholder="请选择" style="width: 200px;">
114
-              <el-option
115
-                v-for="item in options"
116
-                :key="item.value"
117
-                :label="item.label"
118
-                :value="item.value">
119
-              </el-option>
120
-            </el-select>
121
-          </el-form-item>
122
-        </el-form>
123
-        <div slot="footer" class="dialog-footer">
124
-          <el-button @click="dialogFormVisible = false">取 消</el-button>
125
-          <el-button type="primary" @click="confirm">确 定</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:130px;" 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-date-picker v-model="query_start_time" prefix-icon="el-icon-date"
16
+                                    @change="handleStartTimeChange" :editable="false" :clearable="false"
17
+                                    style="width: 130px;" type="date" placeholder="选择开始日期"
18
+                                    format="yyyy-MM-dd"
19
+                                    value-format="yyyy-MM-dd"
20
+                                    align="right"></el-date-picker>
21
+                    -
22
+
23
+                    <el-date-picker v-model="query_end_time" prefix-icon="el-icon-date"
24
+                                    @change="handleEndTimeChange" :editable="false" :clearable="false"
25
+                                    style="width: 130px;margin-right:10px;" type="date" placeholder="选择结束日期"
26
+                                    format="yyyy-MM-dd"
27
+                                    value-format="yyyy-MM-dd"
28
+                                    align="right"></el-date-picker>
29
+
30
+
31
+                    <label class="title">险种<span class="name"></span> : </label>
32
+                    <el-select v-model="query_insutype" style="width:140px;margin-right:10px;" placeholder="请选择"
33
+                               @change="changeInsutype">
34
+                        <el-option
35
+                                v-for="item in insutypes"
36
+                                :key="item.value"
37
+                                :label="item.label"
38
+                                :value="item.value">
39
+                        </el-option>
40
+                    </el-select>
41
+
42
+
43
+                    <label class="title">清算类别<span class="name"></span> : </label>
44
+                    <el-select v-model="query_clr_type" style="width:100px;margin-right:10px;" placeholder="请选择"
45
+                               @change="changeClrType">
46
+                        <el-option
47
+                                v-for="item in clrOptions"
48
+                                :key="item.value"
49
+                                :label="item.label"
50
+                                :value="item.value">
51
+                        </el-option>
52
+                    </el-select>
53
+
54
+                </div>
55
+
56
+            </div>
57
+            <div style="float: right;margin-bottom: 10px">
58
+                <el-button size="small" type="primary" @click="dialogFormVisible = true">医保对账</el-button>
59
+                <el-button size="small" type="primary" @click="getFormData">下载对账报表</el-button>
60
+            </div>
61
+
62
+
63
+            <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
64
+                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
65
+                      highlight-current-row
66
+                      @select="selectCostInfo"
67
+                      @selection-change="changeCostInfoTableData"
68
+                      @select-all="changeAllCostInfoTableData"
69
+                      row-key="row_key"
70
+                      ref="multipleTable"
71
+            >
72
+                <el-table-column
73
+                        align="center"
74
+                        type="selection"
75
+                        width="55"
76
+                ></el-table-column>
77
+                <el-table-column
78
+                        prop="date"
79
+                        label="序号"
80
+                        width="60"
81
+                        align="center"
82
+                        type="index"
83
+                >
84
+                </el-table-column>
85
+                <el-table-column align="center" prop="name" label="对账结果">
86
+                    <template slot-scope="scope">{{'平'}}</template>
87
+                </el-table-column>
88
+                <el-table-column align="center" prop="name" label="操作机构">
89
+                    <!--<template slot-scope="scope">{{// this.$store.getters.xt_user.org.org_name}}</template>-->
90
+                </el-table-column>
91
+                <el-table-column align="center" prop="name" label="对账申请人">
92
+                    <template slot-scope="scope">{{getName(scope.row.creator)}}</template>
93
+                </el-table-column>
94
+                <el-table-column align="center" prop="name" label="开始时间">
95
+                    <template slot-scope="scope">{{getTimes(scope.row.start_time)}}</template>
96
+                </el-table-column>
97
+                <el-table-column align="center" prop="name" label="结束时间">
98
+                    <template slot-scope="scope">{{getTimes(scope.row.end_time)}}</template>
99
+                </el-table-column>
100
+                <el-table-column align="center" prop="name" label="险种类型">
101
+                    <template slot-scope="scope">
102
+                        <div v-if="scope.row.insutype == '310'">职工基本医疗保险</div>
103
+                        <div v-if="scope.row.insutype == '320'">公务员医疗补助</div>
104
+                        <div v-if="scope.row.insutype == '330'">大额医疗费用补助</div>
105
+                        <div v-if="scope.row.insutype == '340'">离休人员医疗保障</div>
106
+                        <div v-if="scope.row.insutype == '390'">城乡居民基本医疗保险</div>
107
+                        <div v-if="scope.row.insutype == '392'">城乡居民大病医疗保险</div>
108
+                        <div v-if="scope.row.insutype == '510'">生育保险</div>
109
+                    </template>
110
+                </el-table-column>
111
+                <el-table-column align="center" prop="name" label="对账类型">
112
+                    <template slot-scope="scope">
113
+                        <div v-if="scope.row.check_type == 1">总账</div>
114
+                        <div v-if="scope.row.check_type == 2">明细</div>
115
+                    </template>
116
+                </el-table-column>
117
+                <el-table-column align="center" prop="name" label="清算经办机构">
118
+                    <template slot-scope="scope">{{getName(scope.row.creator)}}</template>
119
+                </el-table-column>
120
+                <el-table-column align="center" prop="name" label="定点医药机构医疗费总额(元)">
121
+                    <template slot-scope="scope">{{scope.row.setl_optins}}</template>
122
+                </el-table-column>
123
+                <el-table-column align="center" prop="name" label="医保中心医疗费总额(元)">
124
+                    <template slot-scope="scope">{{scope.row.cost_total}}</template>
125
+                </el-table-column>
126
+                <el-table-column align="center" prop="name" label="定点医药机构基金总额(元)">
127
+                    <template slot-scope="scope">{{scope.row.cost_total}}</template>
128
+                </el-table-column>
129
+                <el-table-column align="center" prop="name" label="医保中心基金总额(元)">
130
+                    <template slot-scope="scope">{{scope.row.func_total}}</template>
131
+                </el-table-column>
132
+                <el-table-column align="center" prop="name" label="定点医药机构个人账号总额(元)">
133
+                    <template slot-scope="scope">{{scope.row.func_total}}</template>
134
+                </el-table-column>
135
+                <el-table-column align="center" prop="name" label="医保中心个人账号总额(元)">
136
+                    <template slot-scope="scope">{{scope.row.psn_pay}}</template>
137
+                </el-table-column>
138
+                <el-table-column align="center" prop="name" label="定点医药机构结算笔数">
139
+                    <template slot-scope="scope">{{scope.row.psn_pay}}</template>
140
+                </el-table-column>
141
+                <el-table-column align="center" prop="name" label="医保中心结算笔数">
142
+                    <template slot-scope="scope">{{scope.row.num}}</template>
143
+                </el-table-column>
144
+
145
+            </el-table>
146
+            <el-pagination
147
+                    @size-change="handleSizeChange"
148
+                    @current-change="handleCurrentChange"
149
+                    :page-sizes="[10, 50, 100]"
150
+                    :page-size="10"
151
+                    background
152
+                    style="margin-top:20px;float: right"
153
+                    layout="total, sizes, prev, pager, next, jumper"
154
+                    :total="total"
155
+            >
156
+            </el-pagination>
157
+            <el-dialog title="医保对账" :visible.sync="dialogFormVisible">
158
+                <el-form :model="form" label-width="100px">
159
+                    <el-form-item label="时间" label-width="100px">
160
+                        <el-date-picker v-model="start_time" prefix-icon="el-icon-date"
161
+                                        @change="handleStartTimeChange" :editable="false" :clearable="false"
162
+                                        style="width: 200px;" type="date" placeholder="选择开始日期"
163
+                                        format="yyyy-MM-dd"
164
+                                        value-format="yyyy-MM-dd"
165
+                                        align="right"></el-date-picker>
166
+                        -
167
+
168
+                        <el-date-picker v-model="end_time" prefix-icon="el-icon-date"
169
+                                        @change="handleEndTimeChange" :editable="false" :clearable="false"
170
+                                        style="width: 200px;margin-right:10px;" type="date" placeholder="选择结束日期"
171
+                                        format="yyyy-MM-dd"
172
+                                        value-format="yyyy-MM-dd"
173
+                                        align="right"></el-date-picker>
174
+                    </el-form-item>
175
+                    <el-form-item label="险种类型" :label-width="formLabelWidth">
176
+                        <el-select v-model="insutype" placeholder="请选择" style="width: 200px;">
177
+                            <el-option
178
+                                    v-for="item in insutypes"
179
+                                    :key="item.value"
180
+                                    :label="item.label"
181
+                                    :value="item.value">
182
+                            </el-option>
183
+                        </el-select>
184
+                    </el-form-item>
185
+                    <el-form-item label="对账类型" :label-width="formLabelWidth">
186
+                        <el-select v-model="check_type" placeholder="请选择" style="width: 200px;">
187
+                            <el-option
188
+                                    v-for="item in options"
189
+                                    :key="item.value"
190
+                                    :label="item.label"
191
+                                    :value="item.value">
192
+                            </el-option>
193
+                        </el-select>
194
+                    </el-form-item>
195
+                </el-form>
196
+                <div slot="footer" class="dialog-footer">
197
+                    <el-button @click="dialogFormVisible = false">取 消</el-button>
198
+                    <el-button type="primary" @click="confirm">确 定</el-button>
199
+                </div>
200
+            </el-dialog>
126 201
         </div>
127
-      </el-dialog>
128
-    </div>
129 202
 
130 203
 
131
-  </div>
204
+    </div>
132 205
 </template>
133 206
 
134 207
 
135 208
 <script>
136 209
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
137
-  import { getDoctorList, getExportConsumeDetailList, getHisOrderList, getList } from '@/api/his/his'
210
+  import {
211
+    getCheckAccountFormData,
212
+    getDoctorList,
213
+    getExportConsumeDetailList,
214
+    getHisOrderList,
215
+    getList
216
+  } from '@/api/his/his'
138 217
   import { uParseTime } from '@/utils/tools'
139 218
   import { fetchAllAdminUsers } from '@/api/doctor'
140 219
   import axios from 'axios'
@@ -145,6 +224,7 @@
145 224
     },
146 225
     data() {
147 226
       return {
227
+        form: {},
148 228
         crumbs: [
149 229
           { path: false, name: '门诊收费' },
150 230
           { path: false, name: '医保费用对照' }
@@ -155,65 +235,207 @@
155 235
         dialogFormVisible: false,
156 236
         total: 0,
157 237
         adminUserOptions: [],
158
-        start_time:"",
159
-        end_time:"",
160
-        insutype:"",
161
-        check_type:"",
162
-
163
-        options:[
238
+        start_time: '',
239
+        end_time: '',
240
+        insutype: '',
241
+        check_type: '',
242
+        keywords: '',
243
+        query_start_time: '',
244
+        query_end_time: '',
245
+        selection:[],
246
+        query_insutype: '',
247
+        query_clr_type: '',
248
+        fromData: [],
249
+        options: [
164 250
           {
165
-            value:1,
166
-            label:"总账",
167
-          },  {
168
-            value:2,
169
-            label:"明细",
170
-          },
251
+            value: 1,
252
+            label: '总账'
253
+          }, {
254
+            value: 2,
255
+            label: '明细'
256
+          }
171 257
         ],
172
-
173
-        insutypes:[
258
+        clrOptions: [
174 259
           {
175
-            value:"310",
176
-            label:"职工基本医疗保险",
177
-          },  {
178
-            value:"320",
179
-            label:"公务员医疗补助",
180
-          },  {
181
-            value:"330",
182
-            label:"大额医疗费用补助",
183
-          },  {
184
-            value:"340",
185
-            label:"离休人员医疗保障",
260
+            value: '11',
261
+            label: '门诊'
262
+          }, {
263
+            value: '21',
264
+            label: '住院'
265
+          }, {
266
+            value: '41',
267
+            label: '药店购药'
268
+          }, {
269
+            value: '99',
270
+            label: '其他'
271
+          }
272
+        ],
273
+        insutypes: [
274
+          {
275
+            value: '310',
276
+            label: '职工基本医疗保险'
277
+          }, {
278
+            value: '320',
279
+            label: '公务员医疗补助'
280
+          }, {
281
+            value: '330',
282
+            label: '大额医疗费用补助'
283
+          }, {
284
+            value: '340',
285
+            label: '离休人员医疗保障'
186 286
           },
187 287
           {
188
-            value:"390",
189
-            label:"城乡居民基本医疗保险",
288
+            value: '390',
289
+            label: '城乡居民基本医疗保险'
190 290
           }, {
191
-            value:"392",
192
-            label:"城乡居民大病医疗保险",
291
+            value: '392',
292
+            label: '城乡居民大病医疗保险'
193 293
           }, {
194
-            value:"510",
195
-            label:"生育保险",
294
+            value: '510',
295
+            label: '生育保险'
196 296
           }
197 297
 
198
-
298
+          // 1617724800
199 299
 
200 300
         ]
201 301
 
202 302
       }
203 303
     },
204 304
     methods: {
205
-      confirm(){
206
-        if(this.check_type == 1){
305
+      changeInsutype() {
306
+        let params = {
307
+          'page': 1,
308
+          'limit': 10,
309
+          'keywords': this.keywords,
310
+          'insutype': this.query_insutype,
311
+          'clr_type': "11",
312
+          'start_time': this.query_start_time,
313
+          'end_time': this.query_end_time,
314
+        }
315
+        this.tableData = []
316
+        getList(params).then(response => {
317
+          if (response.data.state == 0) {
318
+            this.$message.error(response.data.msg)
319
+            return false
320
+          } else {
321
+            this.tableData = response.data.data.list
322
+            this.total = response.data.data.total
323
+          }
324
+        })
325
+
326
+      }, changeClrType(val) {
327
+        if (val != "11"){
328
+          this.tableData = []
329
+          this.total = 0
330
+        }else{
331
+          let params = {
332
+            'page': 1,
333
+            'limit': 10,
334
+            'keywords': this.keywords,
335
+            'insutype': this.query_insutype,
336
+            'clr_type': "11",
337
+            'start_time': this.query_start_time,
338
+            'end_time': this.query_end_time,
339
+          }
340
+          this.tableData = []
341
+          getList(params).then(response => {
342
+            if (response.data.state == 0) {
343
+              this.$message.error(response.data.msg)
344
+              return false
345
+            } else {
346
+              this.tableData = response.data.data.list
347
+              this.total = response.data.data.total
348
+            }
349
+          })
350
+        }
351
+      },
352
+      handleStartTimeChange() {
353
+
354
+        let params = {
355
+          'page': 1,
356
+          'limit': 10,
357
+          'keywords': this.keywords,
358
+          'insutype': "",
359
+          'clr_type': "11",
360
+          'start_time': this.query_start_time,
361
+          'end_time': this.query_end_time,
362
+        }
363
+        this.tableData = []
364
+        getList(params).then(response => {
365
+          if (response.data.state == 0) {
366
+            this.$message.error(response.data.msg)
367
+            return false
368
+          } else {
369
+            this.tableData = response.data.data.list
370
+            this.total = response.data.data.total
371
+          }
372
+        })
373
+
374
+      }, handleEndTimeChange() {
375
+
376
+        let params = {
377
+          'page': 1,
378
+          'limit': 10,
379
+          'keywords': this.keywords,
380
+          'insutype': "",
381
+          'clr_type': "11",
382
+          'start_time': this.query_start_time,
383
+          'end_time': this.query_end_time,
384
+        }
385
+        this.tableData = []
386
+        getList(params).then(response => {
387
+          if (response.data.state == 0) {
388
+            this.$message.error(response.data.msg)
389
+            return false
390
+          } else {
391
+            this.tableData = response.data.data.list
392
+            this.total = response.data.data.total
393
+          }
394
+        })
395
+
396
+      },
397
+
398
+      searchAction() {
399
+        let params = {
400
+          'page': 1,
401
+          'limit': 10,
402
+          'keywords': this.keywords,
403
+          'insutype': "",
404
+          'clr_type': "11",
405
+          'start_time': "",
406
+          'end_time': "",
407
+        }
408
+        this.tableData = []
409
+        getList(params).then(response => {
410
+          if (response.data.state == 0) {
411
+            this.$message.error(response.data.msg)
412
+            return false
413
+          } else {
414
+            this.tableData = response.data.data.list
415
+            this.total = response.data.data.total
416
+          }
417
+        })
418
+
419
+      },
420
+      selectCostInfo(selection, row) {
421
+        this.selection = selection
422
+
423
+      }, changeCostInfoTableData(val) {
424
+        this.selection = val
425
+      }, changeAllCostInfoTableData(selection) {
426
+        this.selection = selection
427
+
428
+
429
+      }, confirm() {
430
+        if (this.check_type == 1) {
207 431
           let params = {
208 432
             start_time: this.start_time,
209 433
             end_time: this.end_time,
210 434
             insutype: this.insutype,
211 435
             clr_type: '11'
212 436
           }
213
-
214 437
           var that = this
215
-
216
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
438
+          if (this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
217 439
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
218 440
               params: params
219 441
             })
@@ -222,11 +444,32 @@
222 444
                   that.$message.error(response.data.msg)
223 445
                   return false
224 446
                 } else {
225
-                  this.page =1
226
-                  this.limit = 10
227
-                  this.keywords = ""
228
-                  this.getList()
447
+                  var result_desc = ''
448
+
449
+                  if (response.data.data.stmt_rslt == 0) {
450
+                    result_desc = '对账平'
451
+                  } else if (response.data.data.stmt_rslt == 1) {
452
+                    result_desc = '中心多' + '\n' + response.data.data.stmt_rslt_dscr
453
+
454
+                  } else if (response.data.data.stmt_rslt == 2) {
455
+                    result_desc = '机构多' + '\n' + response.data.data.stmt_rslt_dscr
456
+                  }
457
+
458
+                  that.$alert(result_desc, '对账结果', {
459
+                    confirmButtonText: '确定',
460
+                    callback: action => {
461
+                      this.dialogFormVisible = false
462
+                    }
463
+                  })
229 464
 
465
+                  that.page = 1
466
+                  that.limit = 10
467
+                  that.keywords = ''
468
+                  that.query_start_time = ''
469
+                  that.query_end_time = ''
470
+                  that.query_insutype = ''
471
+                  that.query_clr_type = ''
472
+                  that.getList()
230 473
                 }
231 474
               })
232 475
               .catch(function(error) {
@@ -235,10 +478,10 @@
235 478
 
236 479
           }
237 480
 
238
-        }else {
481
+        } else {
239 482
           let params = {
240 483
             start_time: this.start_time,
241
-            end_time: this.end_time,
484
+            end_time: this.end_time
242 485
           }
243 486
           var that = this
244 487
           axios.get('http://127.0.0.1:9532/api/checkdetailaccount/get', {
@@ -249,20 +492,16 @@
249 492
                 that.$message.error(response.data.msg)
250 493
                 return false
251 494
               } else {
252
-                this.page =1
495
+                this.page = 1
253 496
                 this.limit = 10
254
-                this.keywords = ""
497
+                this.keywords = ''
255 498
                 this.getList()
256 499
               }
257 500
             })
258 501
             .catch(function(error) {
259 502
 
260 503
             })
261
-
262
-
263 504
         }
264
-
265
-
266 505
       },
267 506
       getInsutype(type) {
268 507
 
@@ -290,8 +529,11 @@
290 529
         let params = {
291 530
           'page': this.page,
292 531
           'limit': this.limit,
293
-          'keywords': this.keywords
294
-
532
+          'keywords': this.keywords,
533
+          'insutype': this.query_insutype,
534
+          'clr_type': this.query_clr_type,
535
+          'start_time': this.query_start_time,
536
+          'end_time': this.query_end_time
295 537
         }
296 538
         this.tableData = []
297 539
         getList(params).then(response => {
@@ -313,6 +555,65 @@
313 555
         this.page = page
314 556
         this.getList()
315 557
 
558
+      }, getFormData() {
559
+        if (this.selection.length == 0) {
560
+          this.$message.error('请选择要下载的对账记录')
561
+          return
562
+        }
563
+
564
+        let params = {
565
+          'start_time': this.getTimes(this.selection[0].start_time),
566
+          'end_time': this.getTimes(this.selection[0].end_time),
567
+          'insutype': this.selection[0].insutype
568
+        }
569
+        getCheckAccountFormData(params).then(response => {
570
+          if (response.data.state == 0) {
571
+            this.$message.error(response.data.msg)
572
+            return false
573
+          } else {
574
+            this.fromData = response.data.data.list
575
+            var list = []
576
+
577
+            for (let i = 0; i < this.fromData.length; i++) {
578
+              let obj = {
579
+                '结算金额': this.fromData[i].medfee_sumamt,
580
+                '姓名': this.fromData[i].psn_name,
581
+                '身份证': this.fromData[i].id_card_no,
582
+                '个人编号': this.fromData[i].psn_no,
583
+                '门诊流水号': this.fromData[i].mdtrt_id,
584
+                '挂号日期': this.getTimes(this.fromData[i].settle_accounts_date),
585
+                '起付线': this.fromData[i].act_pay_dedc,
586
+                '统筹基金': this.fromData[i].fund_pay_sumamt,
587
+                '个人支付': this.fromData[i].psn_cash_pay,
588
+                '个账支付': this.fromData[i].acct_pay,
589
+                '现金支付': this.fromData[i].cash_pay,
590
+                '总费用': this.fromData[i].sumamt,
591
+                '冲销标志': '已结算'
592
+              }
593
+              list.push(obj)
594
+            }
595
+            var insutype_name = ''
596
+            if (this.query_insutype == '310') {
597
+              insutype_name = '职工基本医疗保险'
598
+            } else if (this.query_insutype == '390') {
599
+              insutype_name = '城乡居民基本医疗保险'
600
+            }
601
+
602
+            import('@/vendor/Export2Excel').then(excel => {
603
+              const tHeader = ['结算金额', '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志']
604
+              const filterVal = ['结算金额', '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志']
605
+              const data = this.formatJson(filterVal, list)
606
+              excel.export_json_to_excel({
607
+                header: tHeader,
608
+                data,
609
+                filename:this.getTimes(this.selection[0].start_time)+ '~' + this.getTimes(this.selection[0].end_time)+ insutype_name + '对账报表'
610
+              })
611
+            })
612
+          }
613
+        })
614
+
615
+      }, formatJson(filterVal, jsonData) {
616
+        return jsonData.map(v => filterVal.map(j => v[j]))
316 617
       }
317 618
     },
318 619
     created() {

+ 13 - 4
src/xt_pages/outpatientCharges/incomeStatistics.vue View File

@@ -51,18 +51,27 @@
51 51
           type="index"
52 52
         >
53 53
         </el-table-column>
54
-        <el-table-column align="center" prop="name" label="就诊号">
55
-          <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
54
+        <el-table-column align="center" prop="name" label="收费日期">
55
+          <template slot-scope="scope">{{ scope.row.selt_time }}</template>
56 56
         </el-table-column>
57
+
58
+
57 59
         <el-table-column align="center" prop="name" label="患者名字">
58
-          <template slot-scope="scope">{{ scope.row.patient.name }}</template>
60
+          <template slot-scope="scope">{{ scope.row.psn_name }}</template>
59 61
         </el-table-column>
60 62
         <!--<el-table-column align="center" prop="name" label="患者类型">-->
61 63
           <!--<template slot-scope="scope"></template>-->
62 64
         <!--</el-table-column>-->
63
-        <el-table-column align="center" prop="name" label="应收金额">
65
+        <el-table-column align="center" prop="name" label="金额">
64 66
           <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
65 67
         </el-table-column>
68
+
69
+        <el-table-column align="center" prop="name" label="总金额">
70
+          <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
71
+        </el-table-column>
72
+
73
+
74
+
66 75
         <el-table-column align="center" prop="name" label="实收金额">
67 76
           <template slot-scope="scope">{{scope.row.reality_price}}</template>
68 77
         </el-table-column>

+ 0 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -2251,10 +2251,6 @@
2251 2251
       comfirm() {
2252 2252
         console.log("222222222222",this.curPrescriptions)
2253 2253
 
2254
-        if (this.dayorMonth == 'month') {
2255
-          this.$message.error('月结状态下,无法添加药品或者项目')
2256
-          return
2257
-        }
2258 2254
 
2259 2255
         if (this.curPrescriptions.order_status == 2) {
2260 2256
           this.$message.error('该处方已经结算,无法继续添加药品或者项目')

+ 10 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -982,7 +982,11 @@
982 982
                 this.doctors = response.data.data.doctors
983 983
                 this.department = response.data.data.department
984 984
 
985
-
985
+                for (let i = 0; i < this.doctors.length; i++){
986
+                  if(this.doctors[i].user_type == 1){
987
+                    this.doctors.splice(i,1)
988
+                  }
989
+                }
986 990
 
987 991
                 this.case_history = case_history
988 992
                 this.info = response.data.data.info
@@ -1154,7 +1158,11 @@
1154 1158
               this.doctors = response.data.data.doctors
1155 1159
               this.department = response.data.data.department
1156 1160
 
1157
-
1161
+              for (let i = 0; i < this.doctors.length; i++){
1162
+                if(this.doctors[i].user_type == 1){
1163
+                  this.doctors.splice(i,1)
1164
+                }
1165
+              }
1158 1166
               this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
1159 1167
               if (this.case_history.breathing <= 0) {
1160 1168
                 this.case_history.breathing = ""

+ 170 - 70
src/xt_pages/outpatientRegistration/index.vue View File

@@ -178,7 +178,9 @@
178 178
                         <el-input v-model.number="total" readonly></el-input>
179 179
                     </el-form-item>
180 180
                 </el-form>
181
-                <el-button style="float:right" v-loading="loadingone" @click="saveHisPatient9504('form')" type="primary">挂号</el-button>
181
+                <el-button style="float:right" v-loading="loadingone" @click="saveHisPatient9504('form')"
182
+                           type="primary">挂号
183
+                </el-button>
182 184
             </div>
183 185
 
184 186
         </div>
@@ -408,7 +410,7 @@
408 410
                         <!-- <el-input v-model="form.name"></el-input> -->
409 411
                     </el-form-item>
410 412
                 </el-form>
411
-                <el-button style="float:right" @click="saveHisPatient('form')" type="primary">挂号</el-button>
413
+                <el-button style="float:right" @click="saveHisPatient('form')" v-loading="loadingone" type="primary">挂号</el-button>
412 414
             </div>
413 415
 
414 416
         </div>
@@ -427,7 +429,7 @@
427 429
     saveHisPatient
428 430
   } from '@/api/project/project'
429 431
   import { getDictionaryDataConfig } from '@/utils/data'
430
-  import { uParseTime,jsGetAge } from '@/utils/tools'
432
+  import { jsGetAge, uParseTime } from '@/utils/tools'
431 433
   import { getInitData } from '@/api/his/his'
432 434
   import axios from 'axios'
433 435
 
@@ -438,6 +440,7 @@
438 440
     },
439 441
     data() {
440 442
       return {
443
+        loadingone: false,
441 444
         read_loading: false,
442 445
         registers: [
443 446
           { value: 11, label: '普通门诊' },
@@ -479,7 +482,7 @@
479 482
           total: '',
480 483
           phone: '',
481 484
           social_type: '',
482
-          id_card_type: 1
485
+          id_card_type: 2
483 486
 
484 487
         },
485 488
         medical_care: [
@@ -656,20 +659,20 @@
656 659
         this.form.phone = val.phone
657 660
         this.form.idCard = val.id_card_no
658 661
 
659
-        var thisLen =  this.form.idCard.length;
660
-        var birth = "";
662
+        var thisLen = this.form.idCard.length
663
+        var birth = ''
661 664
         if (thisLen == 15) {
662
-          birth = "19" + this.form.idCard.substr(6, 6);
665
+          birth = '19' + this.form.idCard.substr(6, 6)
663 666
         } else {
664
-          birth = this.form.idCard.substr(6, 8);
667
+          birth = this.form.idCard.substr(6, 8)
665 668
         }
666 669
         var births =
667 670
           birth.substr(0, 4) +
668
-          "-" +
671
+          '-' +
669 672
           birth.substr(4, 2) +
670
-          "-" +
671
-          birth.substr(6, 2);
672
-        this.form.age = jsGetAge(births, "-");
673
+          '-' +
674
+          birth.substr(6, 2)
675
+        this.form.age = jsGetAge(births, '-')
673 676
       },
674 677
       querySearchAsync(keyword, cb) {
675 678
         let key = ''
@@ -915,7 +918,6 @@
915 918
           return
916 919
         }
917 920
 
918
-
919 921
         this.$refs[formName].validate((valid) => {
920 922
           if (valid) {
921 923
             var params = {
@@ -966,16 +968,39 @@
966 968
                       that.$message.error(response.data.data.msg)
967 969
                     } else {
968 970
                       that.$message({ message: '挂号成功', type: 'success' })
969
-                      that.getPatientList()
971
+                      that.form.settlementValue = ''
972
+                      that.form.medicalInsuranceCard = ''
973
+                      that.form.name = ''
974
+                      that.form.sex = ''
975
+                      that.form.certificates = ''
976
+                      that.form.medicalCare = ''
977
+                      that.form.birthday = ''
978
+                      that.form.age = ''
979
+                      that.form.idCard = ''
980
+                      that.form.register = ''
981
+                      that.form.doctor = ''
982
+                      that.form.department = ''
983
+                      that.form.costChecked = false
984
+                      that.form.registrationFee = ''
985
+                      that.form.medicalExpenses = ''
986
+                      that.form.cost = ''
987
+                      that.form.total = ''
988
+                      that.form.phone = ''
989
+                      that.form.social_type = ''
970 990
                       that.loadingone = false
971 991
 
992
+
993
+                      that.form.p_type = 14
994
+                      that.form.sick_type = that.sick[0].id
995
+                      that.form.diagnosis = that.diagnoses[0].id
996
+
972 997
                     }
973 998
                   }
974 999
                 })
975 1000
                 .catch(function(error) {
976 1001
 
977 1002
                 })
978
-            } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
1003
+            } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538) {
979 1004
               var that = this
980 1005
 
981 1006
               axios.get('http://127.0.0.1:9532/api/register/get', {
@@ -991,14 +1016,36 @@
991 1016
                     that.$refs.register.hide()
992 1017
                     return false
993 1018
                   } else {
1019
+                    that.loadingone = false
1020
+
994 1021
                     if (response.data.data.failed_code == -10) {
995 1022
                       that.$message.error(response.data.data.msg)
996 1023
                       return
997 1024
                     } else {
998
-                      that.$refs.register.hide()
999
-                      that.getPatientList()
1000 1025
                       that.$message({ message: '挂号成功', type: 'success' })
1001
-                      that.loadingone = false
1026
+                      that.form.settlementValue = ''
1027
+                      that.form.medicalInsuranceCard = ''
1028
+                      that.form.name = ''
1029
+                      that.form.sex = ''
1030
+                      that.form.certificates = ''
1031
+                      that.form.medicalCare = ''
1032
+                      that.form.birthday = ''
1033
+                      that.form.age = ''
1034
+                      that.form.idCard = ''
1035
+                      that.form.register = ''
1036
+                      that.form.doctor = ''
1037
+                      that.form.department = ''
1038
+                      that.form.costChecked = false
1039
+                      that.form.registrationFee = ''
1040
+                      that.form.medicalExpenses = ''
1041
+                      that.form.cost = ''
1042
+                      that.form.total = ''
1043
+                      that.form.phone = ''
1044
+                      that.form.social_type = ''
1045
+
1046
+                      that.form.p_type = 14
1047
+                      that.form.sick_type = that.sick[0].id
1048
+                      that.form.diagnosis = that.diagnoses[0].id
1002 1049
                     }
1003 1050
                     // var his_info = response.data.data.his_info
1004 1051
                     // that.hisPatientInfo = his_info
@@ -1012,26 +1059,32 @@
1012 1059
                 if (response.data.state == 1) {
1013 1060
                   var patient = response.data.data.patient
1014 1061
                   this.getTodaySchedulePatient()
1015
-                  this.$message.success('保存成功')
1016
-                  this.form.settlementValue = '',
1017
-                    this.form.medicalInsuranceCard = '',
1018
-                    this.form.name = '',
1019
-                    this.form.sex = '',
1020
-                    this.form.certificates = '',
1021
-                    this.form.medicalCare = '',
1022
-                    this.form.birthday = '',
1023
-                    this.form.age = '',
1024
-                    this.form.idCard = '',
1025
-                    this.form.register = '',
1026
-                    this.form.doctor = '',
1027
-                    this.form.department = '',
1028
-                    this.form.costChecked = false,
1029
-                    this.form.registrationFee = '',
1030
-                    this.form.medicalExpenses = '',
1031
-                    this.form.cost = '',
1032
-                    this.form.total = '' ,
1033
-                    this.form.phone = '',
1034
-                    this.form.social_type = ''
1062
+                  that.$message({ message: '挂号成功', type: 'success' })
1063
+                  that.form.settlementValue = ''
1064
+                  that.form.medicalInsuranceCard = ''
1065
+                  that.form.name = ''
1066
+                  that.form.sex = ''
1067
+                  that.form.certificates = ''
1068
+                  that.form.medicalCare = ''
1069
+                  that.form.birthday = ''
1070
+                  that.form.age = ''
1071
+                  that.form.idCard = ''
1072
+                  that.form.register = ''
1073
+                  that.form.doctor = ''
1074
+                  that.form.department = ''
1075
+                  that.form.costChecked = false
1076
+                  that.form.registrationFee = ''
1077
+                  that.form.medicalExpenses = ''
1078
+                  that.form.cost = ''
1079
+                  that.form.total = ''
1080
+                  that.form.phone = ''
1081
+                  that.form.social_type = ''
1082
+                  that.loadingone = false
1083
+
1084
+                  that.form.p_type = 14
1085
+                  that.form.sick_type = that.sick[0].id
1086
+                  that.form.diagnosis = that.diagnoses[0].id
1087
+
1035 1088
                 } else {
1036 1089
                   this.$message.error('今日患者已挂号!')
1037 1090
                 }
@@ -1169,15 +1222,35 @@
1169 1222
                     that.$refs.register.hide()
1170 1223
                     return false
1171 1224
                   } else {
1225
+                    that.loadingone = false
1226
+
1172 1227
                     if (response.data.data.failed_code == -10) {
1173 1228
                       that.$message.error(response.data.data.msg)
1174 1229
                     } else {
1175
-                      that.$refs.register.hide()
1176
-                      that.getPatientList()
1177 1230
                       that.$message({ message: '挂号成功', type: 'success' })
1178
-                      that.loadingone = false
1179
-                      var his_info = response.data.data.his_info
1180
-                      that.hisPatientInfo = his_info
1231
+                      that.form.settlementValue = ''
1232
+                      that.form.medicalInsuranceCard = ''
1233
+                      that.form.name = ''
1234
+                      that.form.sex = ''
1235
+                      that.form.certificates = ''
1236
+                      that.form.medicalCare = ''
1237
+                      that.form.birthday = ''
1238
+                      that.form.age = ''
1239
+                      that.form.idCard = ''
1240
+                      that.form.register = ''
1241
+                      that.form.doctor = ''
1242
+                      that.form.department = ''
1243
+                      that.form.costChecked = false
1244
+                      that.form.registrationFee = ''
1245
+                      that.form.medicalExpenses = ''
1246
+                      that.form.cost = ''
1247
+                      that.form.total = ''
1248
+                      that.form.phone = ''
1249
+                      that.form.social_type = ''
1250
+
1251
+                      that.form.p_type = 14
1252
+                      that.form.sick_type = that.sick[0].id
1253
+                      that.form.diagnosis = that.diagnoses[0].id
1181 1254
 
1182 1255
                     }
1183 1256
 
@@ -1186,7 +1259,7 @@
1186 1259
                 .catch(function(error) {
1187 1260
 
1188 1261
                 })
1189
-            } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
1262
+            } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538) {
1190 1263
               var that = this
1191 1264
 
1192 1265
               axios.get('http://127.0.0.1:9532/api/register/get', {
@@ -1199,15 +1272,37 @@
1199 1272
                   if (response.data.state == 0) {
1200 1273
                     that.$message.error(response.data.msg)
1201 1274
                     that.loadingone = false
1202
-                    that.$refs.register.hide()
1203 1275
                     return false
1204 1276
                   } else {
1205
-                    that.$refs.register.hide()
1206
-                    that.getPatientList()
1207
-                    that.$message({ message: '挂号成功', type: 'success' })
1208 1277
                     that.loadingone = false
1209
-                    var his_info = response.data.data.his_info
1210
-                    that.hisPatientInfo = his_info
1278
+                    if (response.data.data.failed_code == -10) {
1279
+                      that.$message.error(response.data.data.msg)
1280
+                    } else {
1281
+                      that.$message({ message: '挂号成功', type: 'success' })
1282
+                      that.form.settlementValue = ''
1283
+                      that.form.medicalInsuranceCard = ''
1284
+                      that.form.name = ''
1285
+                      that.form.sex = ''
1286
+                      that.form.certificates = ''
1287
+                      that.form.medicalCare = ''
1288
+                      that.form.birthday = ''
1289
+                      that.form.age = ''
1290
+                      that.form.idCard = ''
1291
+                      that.form.register = ''
1292
+                      that.form.doctor = ''
1293
+                      that.form.department = ''
1294
+                      that.form.costChecked = false
1295
+                      that.form.registrationFee = ''
1296
+                      that.form.medicalExpenses = ''
1297
+                      that.form.cost = ''
1298
+                      that.form.total = ''
1299
+                      that.form.phone = ''
1300
+                      that.form.social_type = ''
1301
+
1302
+                      that.form.p_type = 14
1303
+                      that.form.sick_type = that.sick[0].id
1304
+                      that.form.diagnosis = that.diagnoses[0].id
1305
+                    }
1211 1306
                   }
1212 1307
                 })
1213 1308
                 .catch(function(error) {
@@ -1218,26 +1313,31 @@
1218 1313
                 if (response.data.state == 1) {
1219 1314
                   var patient = response.data.data.patient
1220 1315
                   this.getTodaySchedulePatient()
1221
-                  this.$message.success('保存成功')
1222
-                  this.form.settlementValue = '',
1223
-                    this.form.medicalInsuranceCard = '',
1224
-                    this.form.name = '',
1225
-                    this.form.sex = '',
1226
-                    this.form.certificates = '',
1227
-                    this.form.medicalCare = '',
1228
-                    this.form.birthday = '',
1229
-                    this.form.age = '',
1230
-                    this.form.idCard = '',
1231
-                    this.form.register = '',
1232
-                    this.form.doctor = '',
1233
-                    this.form.department = '',
1234
-                    this.form.costChecked = false,
1235
-                    this.form.registrationFee = '',
1236
-                    this.form.medicalExpenses = '',
1237
-                    this.form.cost = '',
1238
-                    this.form.total = '' ,
1239
-                    this.form.phone = '',
1240
-                    this.form.social_type = ''
1316
+                  that.$message({ message: '挂号成功', type: 'success' })
1317
+                  that.form.settlementValue = ''
1318
+                  that.form.medicalInsuranceCard = ''
1319
+                  that.form.name = ''
1320
+                  that.form.sex = ''
1321
+                  that.form.certificates = ''
1322
+                  that.form.medicalCare = ''
1323
+                  that.form.birthday = ''
1324
+                  that.form.age = ''
1325
+                  that.form.idCard = ''
1326
+                  that.form.register = ''
1327
+                  that.form.doctor = ''
1328
+                  that.form.department = ''
1329
+                  that.form.costChecked = false
1330
+                  that.form.registrationFee = ''
1331
+                  that.form.medicalExpenses = ''
1332
+                  that.form.cost = ''
1333
+                  that.form.total = ''
1334
+                  that.form.phone = ''
1335
+                  that.form.social_type = ''
1336
+                  that.loadingone = false
1337
+
1338
+                  that.form.p_type = 14
1339
+                  that.form.sick_type = that.sick[0].id
1340
+                  that.form.diagnosis = that.diagnoses[0].id
1241 1341
                 } else {
1242 1342
                   this.$message.error('今日患者已挂号!')
1243 1343
                 }