see999 3 years ago
parent
commit
c3a64037ff

+ 11 - 11
src/xt_pages/outpatientCharges/components/registerDialog9504.vue View File

50
             </el-form-item>
50
             </el-form-item>
51
 
51
 
52
 
52
 
53
-            <el-form-item label="医疗类别:" prop="medical_care">
54
-                <el-select v-model="form.medical_care"  placeholder="请选择" style="width:100%;">
55
-                    <el-option
56
-                            v-for="(item,index) in medical_care"
57
-                            :key="index"
58
-                            :label="item.label"
59
-                            :value="item.value">
60
-                    </el-option>
61
-                </el-select>
62
-            </el-form-item>
53
+            <!--<el-form-item label="医疗类别:" prop="medical_care">-->
54
+                <!--<el-select v-model="form.medical_care"  placeholder="请选择" style="width:100%;">-->
55
+                    <!--<el-option-->
56
+                            <!--v-for="(item,index) in medical_care"-->
57
+                            <!--:key="index"-->
58
+                            <!--:label="item.label"-->
59
+                            <!--:value="item.value">-->
60
+                    <!--</el-option>-->
61
+                <!--</el-select>-->
62
+            <!--</el-form-item>-->
63
 
63
 
64
 
64
 
65
             <el-form-item label="证件类型:" prop="certificates" >
65
             <el-form-item label="证件类型:" prop="certificates" >
318
           birthday: [{required: true, message: "患者出生日期不能为空", trigger: 'blur'}],
318
           birthday: [{required: true, message: "患者出生日期不能为空", trigger: 'blur'}],
319
           certificates: [{required: true, message: "证件类型不能为空", trigger: 'change'}],
319
           certificates: [{required: true, message: "证件类型不能为空", trigger: 'change'}],
320
           id_card_type: [{required: true, message: "读卡类型不能为空", trigger: 'change'}],
320
           id_card_type: [{required: true, message: "读卡类型不能为空", trigger: 'change'}],
321
-          medical_care: [{required: true, message: "医疗类别不能为空", trigger: 'change'}],
321
+          // medical_care: [{required: true, message: "医疗类别不能为空", trigger: 'change'}],
322
 
322
 
323
         },
323
         },
324
         visibility: false,
324
         visibility: false,

+ 20 - 10
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue View File

24
 <script>
24
 <script>
25
 
25
 
26
 
26
 
27
-  import { parseTime } from "@/utils";
28
-  import { getDialysisRecord } from "@/api/dialysis";
29
-  import { getDataConfig } from "@/utils/data";
30
-  import { jsGetAge, uParseTime } from "@/utils/tools";
27
+  import { parseTime } from '@/utils'
28
+  import { getDialysisRecord } from '@/api/dialysis'
29
+  import { getDataConfig } from '@/utils/data'
30
+  import { jsGetAge, uParseTime } from '@/utils/tools'
31
   import axios from 'axios'
31
   import axios from 'axios'
32
-  import BreadCrumb from "@/xt_pages/components/bread-crumb";
33
-  import print from "print-js";
34
-  import printOne from "./newTreatTemplate/printOne"
35
-  import printTwo from "./newTreatTemplate/printTwo"
32
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
33
+  import printOne from './newTreatTemplate/printOne'
34
+  import printTwo from './newTreatTemplate/printTwo'
35
+
36
   export default {
36
   export default {
37
     name: "newStatementPrintTwo",
37
     name: "newStatementPrintTwo",
38
     components: {
38
     components: {
60
         prescription_id:0,
60
         prescription_id:0,
61
         ids:'',
61
         ids:'',
62
         info:null,
62
         info:null,
63
-        org_id:''
63
+        org_id:this.$store.getters.xt_user.org_id
64
       };
64
       };
65
     },
65
     },
66
     methods:{
66
     methods:{
67
       printThisPage() {
67
       printThisPage() {
68
         var ptime = Math.round(new Date().getTime() / 1000);
68
         var ptime = Math.round(new Date().getTime() / 1000);
69
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
69
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
70
+
71
+        // const style =
72
+        //   '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
73
+        // printJS({
74
+        //   printable: "prescription-print",
75
+        //   type: "html",
76
+        //   style: style,
77
+        //   scanStyles: false
78
+        // });
79
+
70
         if(this.org_id == 10138){
80
         if(this.org_id == 10138){
71
           const style =
81
           const style =
72
           '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
82
           '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
180
                   }
190
                   }
181
 
191
 
182
 
192
 
183
-                  let  typeArr =  this.unique(type_arr)
193
+                  let  typeArr =  that.unique(type_arr)
184
 
194
 
185
                   that.info['new_detail_list'] = []
195
                   that.info['new_detail_list'] = []
186
 
196
 

+ 148 - 122
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

119
                                    @click="open(6)"
119
                                    @click="open(6)"
120
                                    type="primary">挂号
120
                                    type="primary">挂号
121
                         </el-button>
121
                         </el-button>
122
-
123
-                        <!--<el-button-->
124
-                        <!--size="small" @click="open(8)" type="primary"-->
125
-                        <!--&gt;预结算-->
126
-                        <!--</el-button>-->
127
-
128
-
129
-                        <!--<el-button v-loading="loadingtwo"-->
130
-                        <!--v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1 ||  this.order.order_status == 3"-->
131
-                        <!--size="small"-->
132
-                        <!--@click="open(4)"-->
133
-                        <!--type="primary">收费-->
134
-                        <!--</el-button>-->
135
-
136
                         <el-button size="small" @click="open(5)" type="primary"
122
                         <el-button size="small" @click="open(5)" type="primary"
137
                                    v-if="this.radio == 2  && this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
123
                                    v-if="this.radio == 2  && this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
138
                             退费
124
                             退费
150
                         >退号
136
                         >退号
151
                         </el-button>
137
                         </el-button>
152
 
138
 
153
-                        <!--<el-button-->
154
-                        <!--v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674   || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990"-->
155
-                        <!--size="small" @click="open(11)" type="primary"-->
156
-                        <!--&gt;撤销明细-->
157
-                        <!--</el-button>-->
158
-
159
                     </div>
139
                     </div>
160
                     <!--<el-button size="small" @click="query" type="primary"-->
140
                     <!--<el-button size="small" @click="query" type="primary"-->
161
                     <!--&gt;查询-->
141
                     <!--&gt;查询-->
173
                                     <div class="tabsBox" v-for="items,index in big_prescriptions" :key="index">
153
                                     <div class="tabsBox" v-for="items,index in big_prescriptions" :key="index">
174
 
154
 
175
 
155
 
176
-                                        <!--<el-radio v-model="check" label="11" style="margin:10px 0;"-->
177
-                                        <!--v-if="items.med_type == 11">{{'普通门诊处方'}}-->
178
-                                        <!--</el-radio>-->
179
-                                        <!--<el-radio v-model="check" label="12" style="margin:10px 0;"-->
180
-                                        <!--v-if="items.med_type == 12">{{'门诊挂号'}}-->
181
-                                        <!--</el-radio>-->
182
-                                        <!--<el-radio v-model="check" label="13" style="margin:10px 0;"-->
183
-                                        <!--v-if="items.med_type == 13">{{'急诊'}}-->
184
-                                        <!--</el-radio>-->
185
-                                        <!--<el-radio v-model="check" label="14" style="margin:10px 0;"-->
186
-                                        <!--v-if="items.med_type == 14">{{'门诊特殊病'}}-->
187
-                                        <!--</el-radio>-->
188
-                                        <!--<el-radio v-model="check" label="15" style="margin:10px 0;"-->
189
-                                        <!--v-if="items.med_type == 15">{{'门诊统筹'}}-->
190
-                                        <!--</el-radio>-->
191
-                                        <!--<el-radio v-model="check" label="16" style="margin:10px 0;"-->
192
-                                        <!--v-if="items.med_type == 16">{{'门诊慢性病'}}-->
193
-                                        <!--</el-radio>-->
194
-                                        <!--<el-radio v-model="check" label="21" style="margin:10px 0;"-->
195
-                                        <!--v-if="items.med_type == 21">{{'普通住院'}}-->
196
-                                        <!--</el-radio>-->
197
 
156
 
198
 
157
 
199
                                         <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
158
                                         <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
208
                                             </el-tab-pane>
167
                                             </el-tab-pane>
209
 
168
 
210
                                             <div style="margin-bottom:10px;float: right">
169
                                             <div style="margin-bottom:10px;float: right">
211
-                                                <div v-if="org_id == 9504 || org_id == 10028 || org_id == 10138">
170
+                                                <el-button
171
+                                                        v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0) "
172
+
173
+                                                        size="small"
174
+                                                        @click="sz_open(8,items.med_type,items.prescriptions[0].order)"
175
+                                                        type="primary"
176
+                                                >预结算
177
+                                                </el-button>
178
+
179
+                                                <el-button
180
+                                                        v-if="order.order_status == 1"
181
+                                                        size="small"
182
+                                                        @click="sz_open(7,items.med_type,items.prescriptions[0].order,items.prescriptions)"
183
+                                                        type="primary"
184
+                                                >撤销明细
185
+                                                </el-button>
186
+
187
+                                                <el-button
188
+                                                        v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) || items.prescriptions[0].order.order_status == 1"
189
+                                                        size="small"
190
+                                                        @click="sz_open(3,items.med_type,items.prescriptions[0].order,items.prescriptions)"
191
+                                                        type="primary">收费
192
+                                                </el-button>
212
 
193
 
213
-                                                    <el-button
214
-                                                            v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0) "
215
 
194
 
216
-                                                            size="small"
217
-                                                            @click="sz_open(8,items.med_type,items.prescriptions[0].order)"
218
-                                                            type="primary"
219
-                                                    >预结算
220
-                                                    </el-button>
221
-
222
-                                                    <el-button
223
-                                                            v-if="order.order_status == 1"
224
-                                                            size="small"
225
-                                                            @click="sz_open(7,items.med_type,items.prescriptions[0].order)"
226
-                                                            type="primary"
227
-                                                    >撤销明细
228
-                                                    </el-button>
195
+                                                <div v-if="org_id == 9504 || org_id == 10028 || org_id == 10138">
229
 
196
 
230
-                                                    <el-button
231
-                                                            v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) || items.prescriptions[0].order.order_status == 1"
232
-                                                            size="small"
233
-                                                            @click="sz_open(3,items.med_type,items.prescriptions[0].order,items.prescriptions)"
234
-                                                            type="primary">收费
235
-                                                    </el-button>
236
 
197
 
237
 
198
 
238
                                                 </div>
199
                                                 </div>
239
                                                 <div v-if="org_id != 9504 && org_id != 10028 &&org_id != 10138">
200
                                                 <div v-if="org_id != 9504 && org_id != 10028 &&org_id != 10138">
240
 
201
 
241
-                                                    <el-button
242
-                                                            v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0) "
202
+                                                    <!--<el-button-->
203
+                                                            <!--v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0) "-->
243
 
204
 
244
-                                                            size="small"
245
-                                                            @click="open(8,items.med_type,items.prescriptions[0].order)"
246
-                                                            type="primary"
247
-                                                    >预结算
248
-                                                    </el-button>
205
+                                                            <!--size="small"-->
206
+                                                            <!--@click="open(8,items.med_type,items.prescriptions[0].order)"-->
207
+                                                            <!--type="primary"-->
208
+                                                    <!--&gt;预结算-->
209
+                                                    <!--</el-button>-->
249
 
210
 
250
 
211
 
251
-                                                    <el-button v-loading="loadingtwo"
252
-                                                               v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) || items.prescriptions[0].order.order_status == 1 ||  items.prescriptions[0].order.order_status == 3"
253
-                                                               size="small"
254
-                                                               @click="open(4,items.med_type,items.prescriptions[0].order,items.prescriptions)"
255
-                                                               type="primary">收费
256
-                                                    </el-button>
212
+                                                    <!--<el-button v-loading="loadingtwo"-->
213
+                                                               <!--v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) || items.prescriptions[0].order.order_status == 1 ||  items.prescriptions[0].order.order_status == 3"-->
214
+                                                               <!--size="small"-->
215
+                                                               <!--@click="open(4,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
216
+                                                               <!--type="primary">收费-->
217
+                                                    <!--</el-button>-->
257
 
218
 
258
 
219
 
259
                                                     <!--<el-button-->
220
                                                     <!--<el-button-->
437
                                             <div style="margin-bottom:10px;float: right">
398
                                             <div style="margin-bottom:10px;float: right">
438
                                                 <div v-if="org_id == 9504 || org_id == 10028 || org_id == 10138">
399
                                                 <div v-if="org_id == 9504 || org_id == 10028 || org_id == 10138">
439
 
400
 
440
-                                                    <el-button
441
-                                                            v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) "
401
+                                                    <!--<el-button-->
402
+                                                            <!--v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) "-->
442
 
403
 
443
-                                                            size="small"
444
-                                                            @click="sz_open(8,items.med_type,items.curMonthPrescriptions.order)"
445
-                                                            type="primary"
446
-                                                    >预结算
447
-                                                    </el-button>
404
+                                                            <!--size="small"-->
405
+                                                            <!--@click="sz_open(8,items.med_type,items.curMonthPrescriptions.order)"-->
406
+                                                            <!--type="primary"-->
407
+                                                    <!--&gt;预结算-->
408
+                                                    <!--</el-button>-->
448
 
409
 
449
                                                     <el-button
410
                                                     <el-button
450
                                                             v-if="order.order_status == 1"
411
                                                             v-if="order.order_status == 1"
451
                                                             size="small"
412
                                                             size="small"
452
-                                                            @click="sz_open(7,items.med_type,items.curMonthPrescriptions.order)"
413
+                                                            @click="sz_open(7,items.med_type,items.curMonthPrescriptions.order, items.month_prescriptions)"
453
                                                             type="primary"
414
                                                             type="primary"
454
                                                     >撤销明细
415
                                                     >撤销明细
455
                                                     </el-button>
416
                                                     </el-button>
465
                                                 </div>
426
                                                 </div>
466
                                                 <div v-if="org_id != 9504 && org_id != 10028 &&org_id != 10138">
427
                                                 <div v-if="org_id != 9504 && org_id != 10028 &&org_id != 10138">
467
 
428
 
468
-                                                    <el-button
469
-                                                            v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) "
470
-                                                            size="small"
471
-                                                            @click="open(8,items.med_type,items.curMonthPrescriptions.order)"
472
-                                                            type="primary"
473
-                                                    >预结算
474
-                                                    </el-button>
429
+                                                    <!--<el-button-->
430
+                                                            <!--v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) "-->
431
+                                                            <!--size="small"-->
432
+                                                            <!--@click="open(8,items.med_type,items.curMonthPrescriptions.order)"-->
433
+                                                            <!--type="primary"-->
434
+                                                    <!--&gt;预结算-->
435
+                                                    <!--</el-button>-->
475
 
436
 
476
 
437
 
477
                                                     <el-button v-loading="loadingtwo"
438
                                                     <el-button v-loading="loadingtwo"
916
 
877
 
917
         }
878
         }
918
 
879
 
919
-        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
880
+        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 0) {
920
           var that = this
881
           var that = this
921
           axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
882
           axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
922
             params: form
883
             params: form
2483
           }
2444
           }
2484
 
2445
 
2485
         } else if (index == 8) {
2446
         } else if (index == 8) {
2486
-
2487
           if (this.$store.getters.xt_user.org_id != 10028 || this.$store.getters.xt_user.org_id != 9504 || this.$store.getters.xt_user.org_id != 10138) {
2447
           if (this.$store.getters.xt_user.org_id != 10028 || this.$store.getters.xt_user.org_id != 9504 || this.$store.getters.xt_user.org_id != 10138) {
2488
             if (this.form.diagnosis.length || this.form.diagnosis == 0) {
2448
             if (this.form.diagnosis.length || this.form.diagnosis == 0) {
2489
               that.$message.error('诊断不能为空,请选择诊断内容')
2449
               that.$message.error('诊断不能为空,请选择诊断内容')
2497
             }
2457
             }
2498
 
2458
 
2499
           }
2459
           }
2500
-
2501
           var that = this
2460
           var that = this
2502
           let form = {}
2461
           let form = {}
2503
           form['id'] = this.patientInfo.id
2462
           form['id'] = this.patientInfo.id
2517
             form['end_time'] = this.other_end_time
2476
             form['end_time'] = this.other_end_time
2518
             form['settle_accounts_type'] = 2
2477
             form['settle_accounts_type'] = 2
2519
           }
2478
           }
2520
-
2521
-          if (that.$store.getters.xt_user.org_id == 12) {
2479
+          if (that.$store.getters.xt_user.org_id == 3877) {
2522
 
2480
 
2523
             this.$confirm('是否进行预结算', '预结算', {
2481
             this.$confirm('是否进行预结算', '预结算', {
2524
               confirmButtonText: '确 定',
2482
               confirmButtonText: '确 定',
2538
             }).catch(() => {
2496
             }).catch(() => {
2539
 
2497
 
2540
             })
2498
             })
2541
-          } else {
2499
+          } else if(this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
2542
             this.$confirm('是否进行预结算', '预结算', {
2500
             this.$confirm('是否进行预结算', '预结算', {
2543
               confirmButtonText: '确 定',
2501
               confirmButtonText: '确 定',
2544
               cancelButtonText: '取 消',
2502
               cancelButtonText: '取 消',
3757
 
3715
 
3758
       }, getPName(med_type, index) {
3716
       }, getPName(med_type, index) {
3759
         var med_type = parseInt(med_type)
3717
         var med_type = parseInt(med_type)
3760
-        switch (med_type) {
3761
-          case 11:
3762
-            return '普通门诊' + '处方' + index
3763
 
3718
 
3764
-            break
3765
-          case 12:
3766
-            return '门诊挂号' + '处方' + index
3719
+        if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
3720
+          switch (med_type) {
3721
+            case 11:
3722
+              return '普通门诊' + '处方' + index
3767
 
3723
 
3768
-            break
3769
-          case 13:
3770
-            return '急诊' + '处方' + index
3724
+              break
3725
+            case 12:
3726
+              return '家庭通道' + '处方' + index
3771
 
3727
 
3772
-            break
3728
+              break
3729
+            case 13:
3730
+              return '门诊大病' + '处方' + index
3773
 
3731
 
3774
-          case 14:
3775
-            return '门诊特殊病' + '处方' + index
3776
-            break
3732
+              break
3777
 
3733
 
3778
-          case 15:
3779
-            return '门诊统筹' + '处方' + index
3734
+            case 14:
3735
+              return '重疾特药' + '处方' + index
3736
+              break
3780
 
3737
 
3781
-            break
3782
-          case 16:
3783
-            return '门诊慢性病' + '处方' + index
3738
+            case 15:
3739
+              return '门诊慢病' + '处方' + index
3784
 
3740
 
3785
-            break
3786
-          case 21:
3787
-            return '普通住院' + '处方' + index
3741
+              break
3742
+            case 16:
3743
+              return '门诊特检' + '处方' + index
3788
 
3744
 
3789
-            break
3745
+              break
3746
+            case 17:
3747
+              return '健康体检' + '处方' + index
3748
+
3749
+              break
3750
+            case 18:
3751
+              return '预防接种' + '处方' + index
3752
+
3753
+              break
3754
+            case 19:
3755
+              return '门诊输血' + '处方' + index
3756
+
3757
+              break
3758
+            case 91:
3759
+              return '新冠肺炎门诊' + '处方' + index
3760
+              break
3761
+          }
3762
+
3763
+
3764
+        }else{
3765
+
3766
+          switch (med_type) {
3767
+            case 11:
3768
+              return '普通门诊' + '处方' + index
3769
+
3770
+              break
3771
+            case 12:
3772
+              return '门诊挂号' + '处方' + index
3773
+
3774
+              break
3775
+            case 13:
3776
+              return '急诊' + '处方' + index
3777
+
3778
+              break
3779
+
3780
+            case 14:
3781
+              return '门诊特殊病' + '处方' + index
3782
+              break
3783
+
3784
+            case 15:
3785
+              return '门诊统筹' + '处方' + index
3786
+
3787
+              break
3788
+            case 16:
3789
+              return '门诊慢性病' + '处方' + index
3790
+
3791
+              break
3792
+            case 21:
3793
+              return '普通住院' + '处方' + index
3794
+
3795
+              break
3796
+
3797
+          }
3790
 
3798
 
3791
         }
3799
         }
3792
 
3800
 
3801
+
3793
       }, unique_four(array) {
3802
       }, unique_four(array) {
3794
 
3803
 
3795
         // res用来存储结果
3804
         // res用来存储结果
4063
           }
4072
           }
4064
         })
4073
         })
4065
       },
4074
       },
4066
-      sz_open(index, med_type, order_id) {
4075
+      sz_open(index, med_type, order,prescriptions) {
4067
         switch (index) {
4076
         switch (index) {
4068
           case 1:
4077
           case 1:
4069
             this.$refs.register9504.show()
4078
             this.$refs.register9504.show()
4087
               'admin_user_id': this.$store.getters.xt_user.user.id,
4096
               'admin_user_id': this.$store.getters.xt_user.user.id,
4088
               'his_patient_id': this.hisPatientInfo.id
4097
               'his_patient_id': this.hisPatientInfo.id
4089
             }
4098
             }
4099
+
4100
+            params['p_type'] = med_type
4101
+            params['diagnosis'] = this.form.diagnosis
4102
+
4090
             axios.get('http://127.0.0.1:9532/sz/api/upload/get', {
4103
             axios.get('http://127.0.0.1:9532/sz/api/upload/get', {
4091
               params: params,
4104
               params: params,
4092
               headers: {
4105
               headers: {
4113
               })
4126
               })
4114
             break
4127
             break
4115
           case 3:
4128
           case 3:
4129
+            this.currentOrder = order
4130
+            this.current_med_type = med_type
4131
+
4116
             if (this.activeName == 'first') {
4132
             if (this.activeName == 'first') {
4117
-              this.$refs.charge.show(this.getTotal())
4133
+
4134
+              this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
4135
+
4118
             } else {
4136
             } else {
4119
-              this.$refs.charge.show(this.getTotalTwo())
4137
+              this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
4138
+
4120
             }
4139
             }
4140
+
4141
+
4121
             break
4142
             break
4122
           case 4:
4143
           case 4:
4123
             break
4144
             break
4233
             form['record_time'] = this.record_date
4254
             form['record_time'] = this.record_date
4234
             form['admin_user_id'] = this.$store.getters.xt_user.user.id
4255
             form['admin_user_id'] = this.$store.getters.xt_user.user.id
4235
             form['org_id'] = this.$store.getters.xt_user.org_id
4256
             form['org_id'] = this.$store.getters.xt_user.org_id
4257
+
4258
+            form['p_type'] = med_type
4259
+            form['diagnosis'] = this.form.diagnosis
4260
+            form['sick_type'] = this.form.sick_type
4261
+
4236
             if (this.activeName == 'first') {
4262
             if (this.activeName == 'first') {
4237
               form['settle_accounts_type'] = 1
4263
               form['settle_accounts_type'] = 1
4238
             } else {
4264
             } else {

+ 39 - 7
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

127
                                         placeholder="选择日期">
127
                                         placeholder="选择日期">
128
                                 </el-date-picker>
128
                                 </el-date-picker>
129
 
129
 
130
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)" >
130
+                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)" @change="changevalue" >
131
                                     <el-option
131
                                     <el-option
132
                                             v-for="(item,index) in medical_care"
132
                                             v-for="(item,index) in medical_care"
133
                                             :key="index"
133
                                             :key="index"
135
                                             :value="item.value">
135
                                             :value="item.value">
136
                                     </el-option>
136
                                     </el-option>
137
                                 </el-select>
137
                                 </el-select>
138
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-else >
138
+                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-else @change="changevalue" >
139
                                     <el-option
139
                                     <el-option
140
                                             v-for="(item,index) in register"
140
                                             v-for="(item,index) in register"
141
                                             :key="index"
141
                                             :key="index"
1298
             (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1298
             (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1299
             ':' + (min < 10 ? '0' + min : min)
1299
             ':' + (min < 10 ? '0' + min : min)
1300
           this.prescriptions[i]['pre_time'] = nowTime
1300
           this.prescriptions[i]['pre_time'] = nowTime
1301
-          this.prescriptions[i]['med_type'] = ""
1301
+          if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1302
+
1303
+            this.prescriptions[i]['med_type'] = 13
1304
+          }else{
1305
+            this.prescriptions[i]['med_type'] = 14
1306
+          }
1307
+
1302
           this.prescriptions[i].name = '处方' + (i + 1)
1308
           this.prescriptions[i].name = '处方' + (i + 1)
1303
           if (i == 0) {
1309
           if (i == 0) {
1304
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
1310
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
1321
         this.$refs.call_prescription.close()
1327
         this.$refs.call_prescription.close()
1322
         this.$emit('setData', this.prescriptions)
1328
         this.$emit('setData', this.prescriptions)
1323
 
1329
 
1330
+      },changevalue(val){
1331
+
1332
+        this.$forceUpdate()
1333
+
1324
       },
1334
       },
1325
       callCancel() {
1335
       callCancel() {
1326
         this.$refs.call_prescription.close()
1336
         this.$refs.call_prescription.close()
1351
         for (let i = 0; i < this.prescriptions.length; i++) {
1361
         for (let i = 0; i < this.prescriptions.length; i++) {
1352
           this.prescriptions[i].name = '处方' + (i + 1)
1362
           this.prescriptions[i].name = '处方' + (i + 1)
1353
           this.prescriptions[i]['pre_time'] = nowTime
1363
           this.prescriptions[i]['pre_time'] = nowTime
1354
-          this.prescriptions[i]['med_type'] = ""
1364
+
1365
+
1366
+          if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1367
+
1368
+            this.prescriptions[i]['med_type'] = 13
1369
+          }else{
1370
+            this.prescriptions[i]['med_type'] = 14
1371
+          }
1355
 
1372
 
1356
           if (i == 0) {
1373
           if (i == 0) {
1357
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
1374
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
2077
               }
2094
               }
2078
             }
2095
             }
2079
           }
2096
           }
2097
+          for (let i = 0; i < this.prescriptions.length; i++) {
2098
+              if (this.prescriptions[i].med_type == 0 || this.prescriptions[i].med_type == '') {
2099
+                this.$message.error('处方医疗类型不能为空')
2100
+                return
2101
+              }
2102
+          }
2080
           if (index == 1) {
2103
           if (index == 1) {
2081
             let params = {
2104
             let params = {
2082
               p_type: 2,
2105
               p_type: 2,
2248
           '-' +
2271
           '-' +
2249
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
2272
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
2250
           ':' + (min < 10 ? '0' + min : min)
2273
           ':' + (min < 10 ? '0' + min : min)
2251
-        this.prescriptions.push({
2274
+        let obj = {
2252
           id: 0,
2275
           id: 0,
2253
           name: newTabName,
2276
           name: newTabName,
2254
           order_status: 0,
2277
           order_status: 0,
2256
           project: [],
2279
           project: [],
2257
           addition: [],
2280
           addition: [],
2258
           pre_time: this.prescriptions[0].pre_time,
2281
           pre_time: this.prescriptions[0].pre_time,
2259
-          med_type: ""
2260
 
2282
 
2261
-        })
2283
+
2284
+        }
2285
+        if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
2286
+          obj.med_type = 13
2287
+        }else{
2288
+          obj.med_type = 14
2289
+
2290
+        }
2291
+        this.prescriptions.push(obj)
2292
+
2293
+
2262
         this.editableTabsValue = newTabName
2294
         this.editableTabsValue = newTabName
2263
         this.curPrescriptions = this.prescriptions[this.prescriptions.length - 1]
2295
         this.curPrescriptions = this.prescriptions[this.prescriptions.length - 1]
2264
         this.curStatus = 0
2296
         this.curStatus = 0

+ 75 - 0
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

425
       },
425
       },
426
       setData(val) {
426
       setData(val) {
427
         this.prescriptions = val
427
         this.prescriptions = val
428
+
428
       },
429
       },
429
       getDictionaryDataConfig(module, filed_name) {
430
       getDictionaryDataConfig(module, filed_name) {
430
         return getDictionaryDataConfig(module, filed_name)
431
         return getDictionaryDataConfig(module, filed_name)
1384
                     pre_time: preTime,
1385
                     pre_time: preTime,
1385
                     med_type: "",
1386
                     med_type: "",
1386
                   };
1387
                   };
1388
+                  if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1389
+                    obj.med_type = 13
1390
+
1391
+                  }else{
1392
+                    obj.med_type = 14
1393
+
1394
+                  }
1387
                   this.prescriptions.push(obj)
1395
                   this.prescriptions.push(obj)
1388
                 }
1396
                 }
1389
 
1397
 
1399
                   med_type:"",
1407
                   med_type:"",
1400
 
1408
 
1401
                 };
1409
                 };
1410
+                if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1411
+                  obj.med_type = 13
1412
+                }else{
1413
+                  obj.med_type = 14
1414
+
1415
+                }
1416
+
1402
                 this.prescriptions.push(obj)
1417
                 this.prescriptions.push(obj)
1403
 
1418
 
1404
               }
1419
               }
1791
                           pre_time: preTime,
1806
                           pre_time: preTime,
1792
                           med_type: "",
1807
                           med_type: "",
1793
                         };
1808
                         };
1809
+                        if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1810
+                          obj.med_type = 13
1811
+                        }else{
1812
+                          obj.med_type = 14
1813
+
1814
+                        }
1794
                         this.prescriptions.push(obj)
1815
                         this.prescriptions.push(obj)
1795
                       }
1816
                       }
1796
 
1817
 
1807
                         med_type:"",
1828
                         med_type:"",
1808
 
1829
 
1809
                       };
1830
                       };
1831
+                      if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1832
+                        obj.med_type = 13
1833
+                      }else{
1834
+                        obj.med_type = 14
1835
+
1836
+                      }
1810
                       this.prescriptions.push(obj)
1837
                       this.prescriptions.push(obj)
1811
 
1838
 
1812
 
1839
 
2188
                           pre_time: preTime,
2215
                           pre_time: preTime,
2189
                           med_type: "",
2216
                           med_type: "",
2190
                         };
2217
                         };
2218
+                        if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
2219
+                          obj.med_type = 13
2220
+                        }else{
2221
+                          obj.med_type = 14
2222
+
2223
+                        }
2191
                         this.prescriptions.push(obj)
2224
                         this.prescriptions.push(obj)
2192
                       }
2225
                       }
2193
 
2226
 
2203
                         med_type: "",
2236
                         med_type: "",
2204
 
2237
 
2205
                       };
2238
                       };
2239
+                      if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
2240
+                        obj.med_type = 13
2241
+                      }else{
2242
+                        obj.med_type = 14
2243
+
2244
+                      }
2206
                       this.prescriptions.push(obj)
2245
                       this.prescriptions.push(obj)
2207
 
2246
 
2208
                       // if(response.data.data.count <= 1 ){
2247
                       // if(response.data.data.count <= 1 ){
2583
                           pre_time: preTime,
2622
                           pre_time: preTime,
2584
                           med_type:"",
2623
                           med_type:"",
2585
                         };
2624
                         };
2625
+                        if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
2626
+                          obj.med_type = 13
2627
+                        }else{
2628
+                          obj.med_type = 14
2629
+
2630
+                        }
2586
                         this.prescriptions.push(obj)
2631
                         this.prescriptions.push(obj)
2587
                       }
2632
                       }
2588
 
2633
 
2598
                         med_type: "",
2643
                         med_type: "",
2599
 
2644
 
2600
                       };
2645
                       };
2646
+                      if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
2647
+                        obj.med_type = 13
2648
+                      }else{
2649
+                        obj.med_type = 14
2650
+
2651
+                      }
2601
                       this.prescriptions.push(obj)
2652
                       this.prescriptions.push(obj)
2602
 
2653
 
2603
                       // if(response.data.data.count <= 1 ){
2654
                       // if(response.data.data.count <= 1 ){
3034
                         pre_time: preTime,
3085
                         pre_time: preTime,
3035
                         med_type:"",
3086
                         med_type:"",
3036
                       };
3087
                       };
3088
+                      if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
3089
+                        obj.med_type = 13
3090
+                      }else{
3091
+                        obj.med_type = 14
3092
+
3093
+                      }
3037
                       this.prescriptions.push(obj)
3094
                       this.prescriptions.push(obj)
3038
                     }
3095
                     }
3039
 
3096
 
3050
                       med_type: "",
3107
                       med_type: "",
3051
 
3108
 
3052
                     };
3109
                     };
3110
+                    if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
3111
+                      obj.med_type = 13
3112
+                    }else{
3113
+                      obj.med_type = 14
3114
+
3115
+                    }
3053
                     this.prescriptions.push(obj)
3116
                     this.prescriptions.push(obj)
3054
 
3117
 
3055
                     // if(response.data.data.count <= 1 ){
3118
                     // if(response.data.data.count <= 1 ){
3430
                       pre_time: preTime,
3493
                       pre_time: preTime,
3431
                       med_type:"",
3494
                       med_type:"",
3432
                     };
3495
                     };
3496
+                    if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
3497
+                      obj.med_type = 13
3498
+                    }else{
3499
+                      obj.med_type = 14
3500
+
3501
+                    }
3433
                     this.prescriptions.push(obj)
3502
                     this.prescriptions.push(obj)
3434
                   }
3503
                   }
3435
 
3504
 
3446
 
3515
 
3447
 
3516
 
3448
                   };
3517
                   };
3518
+                  if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
3519
+                    obj.med_type = 13
3520
+                  }else{
3521
+                    obj.med_type = 14
3522
+
3523
+                  }
3449
                   this.prescriptions.push(obj)
3524
                   this.prescriptions.push(obj)
3450
 
3525
 
3451
                   // if(response.data.data.count <= 1 ){
3526
                   // if(response.data.data.count <= 1 ){