Przeglądaj źródła

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

csx 3 lat temu
rodzic
commit
15fa1b72e7

+ 4 - 4
src/xt_pages/hospitalStation/components/dayPrescriptionTable.vue Wyświetl plik

262
         })
262
         })
263
 
263
 
264
       },deleteDrug:function(index, row){
264
       },deleteDrug:function(index, row){
265
-        if(this.prescription.order_status == 2){
266
-          this.$message.error('该处方已经结算,无法删除');
265
+        if(this.prescription.order_status == 2 || this.prescription.order_status == 4){
266
+          this.$message.error('该处方已经结算或者已经上传医保系统,无法删除');
267
           return
267
           return
268
         }
268
         }
269
         this.$confirm("药品删除后不可恢复,是否确认删除", "删除", {
269
         this.$confirm("药品删除后不可恢复,是否确认删除", "删除", {
338
         return name
338
         return name
339
       },
339
       },
340
       deleteProject(row,i){
340
       deleteProject(row,i){
341
-        if(this.prescription.order_status == 2){
342
-          this.$message.error('该处方已经结算,无法删除');
341
+        if(this.prescription.order_status == 2 || this.prescription.order_status == 4){
342
+          this.$message.error('该处方已经结算或者已经上传医保系统,无法删除');
343
           return
343
           return
344
         }
344
         }
345
         this.$confirm("项目删除后不可恢复,是否确认删除", "删除", {
345
         this.$confirm("项目删除后不可恢复,是否确认删除", "删除", {

+ 6 - 6
src/xt_pages/hospitalStation/components/deskPrescription.vue Wyświetl plik

2178
         }
2178
         }
2179
 
2179
 
2180
         if (this.dayorMonth == 'day') {
2180
         if (this.dayorMonth == 'day') {
2181
-          if (this.curPrescriptions.order_status == 2) {
2182
-            this.$message.error('当前处方已经结算,无法保存')
2181
+          if (this.curPrescriptions.order_status == 2 ||this.curPrescriptions.order_status == 4 ) {
2182
+            this.$message.error('当前处方已经结算或者已经上传医保系统,无法保存')
2183
             return
2183
             return
2184
           }
2184
           }
2185
           if (this.doctorValue.length <= 0) {
2185
           if (this.doctorValue.length <= 0) {
2478
 
2478
 
2479
       },
2479
       },
2480
       removeTab(targetName) {
2480
       removeTab(targetName) {
2481
-        if (this.curPrescriptions.order_status == 2) {
2482
-          this.$message.error('该处方已经结算,无法删除')
2481
+        if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 4) {
2482
+          this.$message.error('该处方已经结算或者已经上传医保系统,无法删除')
2483
           return
2483
           return
2484
         }
2484
         }
2485
         if (targetName == '处方1') {
2485
         if (targetName == '处方1') {
3201
       clearSelection() {
3201
       clearSelection() {
3202
         this.$refs.tabProjectTeam.clearSelection()
3202
         this.$refs.tabProjectTeam.clearSelection()
3203
       }
3203
       }
3204
-    }, 
3204
+    },
3205
     mounted() {
3205
     mounted() {
3206
-     
3206
+
3207
       this.request_record_date = this.record_date
3207
       this.request_record_date = this.record_date
3208
       // this.getInitData()
3208
       // this.getInitData()
3209
       //获取所有项目
3209
       //获取所有项目

+ 49 - 31
src/xt_pages/hospitalStation/doctorDesk.vue Wyświetl plik

426
         // })
426
         // })
427
       },
427
       },
428
       changeOther(patient_id) {
428
       changeOther(patient_id) {
429
-        this.radio = 2
430
-        let params = {
431
-          'record_date': this.record_date,
432
-          'type': this.radio,
433
-          'sch_type': this.schedule_type
429
+        if (this.radio == 2){
430
+          if (this.patientTableData.length > 0) {
431
+            for(let i = 0; i < this.patientTableData.length; i++){
432
+              if(this.patientTableData[i].id == patient_id){
433
+                this.$refs.tab.setCurrentRow(this.patientTableData[i])
434
+                this.oldCurrentRow = this.patientTableData[i]
435
+                this.getPatientInfo(this.patientTableData[i])
436
+              }
437
+            }
438
+          }
439
+        }else{
434
 
440
 
435
-        }
436
-        this.patientTableData = []
441
+          this.radio = 2
442
+          let params = {
443
+            'record_date': this.record_date,
444
+            'type': this.radio,
445
+            'sch_type': this.schedule_type
437
 
446
 
438
-        this.un_cure_data = []
439
-        this.cure_data = []
440
-        this.all_data = []
441
-        getHospitalPatientList(params).then(response => {
442
-          if (response.data.state == 0) {
443
-            this.$message.error(response.data.msg)
444
-            return false
445
-          } else {
446
-            this.patientTableData = response.data.data.list
447
-            this.all_data = this.patientTableData
447
+          }
448
+          this.patientTableData = []
448
 
449
 
449
-            this.patientTableDataTwo = response.data.data.list
450
-            this.cal_one = response.data.data.total_one
451
-            this.cal_two = response.data.data.total_two
452
-            this.admin_info = response.data.data.info
450
+          this.un_cure_data = []
451
+          this.cure_data = []
452
+          this.all_data = []
453
 
453
 
454
-            if (this.patientTableData.length > 0) {
455
-              for(let i = 0; i < this.patientTableData.length; i++){
456
-                if(this.patientTableData[i].id == patient_id){
457
-                  this.$refs.tab.setCurrentRow(this.patientTableData[i])
458
-                  this.oldCurrentRow = this.patientTableData[i]
459
-                  this.getPatientInfo(this.patientTableData[i])
460
 
454
 
455
+          getHospitalPatientList(params).then(response => {
456
+            if (response.data.state == 0) {
457
+              this.$message.error(response.data.msg)
458
+              return false
459
+            } else {
460
+              this.patientTableData = response.data.data.list
461
+              this.all_data = this.patientTableData
462
+
463
+              this.patientTableDataTwo = response.data.data.list
464
+              this.cal_one = response.data.data.total_one
465
+              this.cal_two = response.data.data.total_two
466
+              this.admin_info = response.data.data.info
467
+
468
+              if (this.patientTableData.length > 0) {
469
+                for(let i = 0; i < this.patientTableData.length; i++){
470
+                  if(this.patientTableData[i].id == patient_id){
471
+                    this.$refs.tab.setCurrentRow(this.patientTableData[i])
472
+                    this.oldCurrentRow = this.patientTableData[i]
473
+                    this.getPatientInfo(this.patientTableData[i])
474
+
475
+
476
+                  }
461
 
477
 
462
                 }
478
                 }
463
 
479
 
464
               }
480
               }
465
-
466
             }
481
             }
467
-          }
468
 
482
 
469
-        })
483
+          })
484
+
485
+
486
+        }
487
+
470
 
488
 
471
         // getSchedulePatientList(params).then(response => {
489
         // getSchedulePatientList(params).then(response => {
472
         //   if (response.data.state == 0) {
490
         //   if (response.data.state == 0) {
4200
       let tableHeight = document.body.clientHeight - 323
4218
       let tableHeight = document.body.clientHeight - 323
4201
       this.tableHeight = tableHeight
4219
       this.tableHeight = tableHeight
4202
       this.org_id = this.$store.getters.xt_user.template_info.org_id
4220
       this.org_id = this.$store.getters.xt_user.template_info.org_id
4203
-     
4221
+
4204
     },
4222
     },
4205
 
4223
 
4206
     mounted() {
4224
     mounted() {

+ 100 - 1
src/xt_pages/hospitalStation/index.vue Wyświetl plik

121
                     </el-form-item>
121
                     </el-form-item>
122
 
122
 
123
 
123
 
124
+                    <el-form-item label="社保类型:">
125
+                        <el-select v-model="form.social_type" placeholder="请选择" style="width:100%;">
126
+                            <el-option
127
+                                    v-for="item in medicalCare"
128
+                                    :key="item.value"
129
+                                    :label="item.label"
130
+                                    :value="item.value">
131
+                            </el-option>
132
+                        </el-select>
133
+                    </el-form-item>
134
+
135
+
136
+                    <el-form-item label="人员类别:">
137
+                        <el-select v-model="form.psn_type" placeholder="请选择" style="width:100%;">
138
+                            <el-option
139
+                                    v-for="item in PsnTypes"
140
+                                    :key="item.value"
141
+                                    :label="item.label"
142
+                                    :value="item.value">
143
+                            </el-option>
144
+                        </el-select>
145
+                    </el-form-item>
146
+
147
+
124
                     <!--<el-form-item label="主治医生:" prop="doctor" :validate-event="is_Name">-->
148
                     <!--<el-form-item label="主治医生:" prop="doctor" :validate-event="is_Name">-->
125
                         <!--<el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">-->
149
                         <!--<el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">-->
126
                             <!--<el-option-->
150
                             <!--<el-option-->
183
     },
207
     },
184
     data() {
208
     data() {
185
       return {
209
       return {
210
+        PsnTypes:[
211
+          { value: 11, label: '在职' },
212
+          { value: 21, label: '退休' },
213
+          { value: 31, label: '离休' },
214
+          { value: 32, label: '老红军' },
215
+          { value: 33, label: '一至六级残废军人' },
216
+          { value: 34, label: '医疗照顾人员' },
217
+          { value: 41, label: '学龄前儿童' },
218
+          { value: 42, label: '中小学生' },
219
+          { value: 43, label: '大学生' },
220
+          { value: 50, label: '成年居民(非从业)' },
221
+          { value: 60, label: '老年居民' },
222
+          { value: 91, label: '其他人员' },
223
+
224
+
225
+
226
+        ],
186
         settlement: [
227
         settlement: [
187
           { value: 1, label: '医保' },
228
           { value: 1, label: '医保' },
188
           { value: 2, label: '自费' },
229
           { value: 2, label: '自费' },
199
           { value: 11, label: '普通门诊' },
240
           { value: 11, label: '普通门诊' },
200
           // {value: 12, label: '门诊挂号'},
241
           // {value: 12, label: '门诊挂号'},
201
           // {value: 13, label: '急诊'},
242
           // {value: 13, label: '急诊'},
202
-          { value: 14, label: '门诊特殊病' }
243
+          { value: 14, label: '门诊慢性病' }
203
           // {value: 15, label: '门诊统筹'},
244
           // {value: 15, label: '门诊统筹'},
204
           // {value: 16, label: '门诊慢性病'},
245
           // {value: 16, label: '门诊慢性病'},
205
           // {value: 21, label: '普通住院'}
246
           // {value: 21, label: '普通住院'}
206
 
247
 
207
         ],
248
         ],
249
+        medicalCare: [{
250
+          value: 390,
251
+          label: '城乡居民基本医疗保险'
252
+        }, {
253
+          value: 310,
254
+          label: '职工基本医疗保险'
255
+        }],
208
         sick: [],
256
         sick: [],
209
         diagnoses: [],
257
         diagnoses: [],
210
         crumbs: [
258
         crumbs: [
212
           { path: false, name: '住院登记' }
260
           { path: false, name: '住院登记' }
213
         ],
261
         ],
214
         form: {
262
         form: {
263
+          social_type:'',
264
+          psn_type:'',
215
           start_time: '',
265
           start_time: '',
216
           id: 0,
266
           id: 0,
217
           sick_type: '',
267
           sick_type: '',
307
           '-' +
357
           '-' +
308
           birth.substr(6, 2)
358
           birth.substr(6, 2)
309
         this.form.age = jsGetAge(births, '-')
359
         this.form.age = jsGetAge(births, '-')
360
+
361
+        var that = this
362
+        let params={
363
+          id_card_no: this.form.id_card_no,
364
+          admin_user_id:this.$store.getters.xt_user.user.id,
365
+
366
+        }
367
+        axios.get('http://127.0.0.1:9532/zh/api/patient/info', {
368
+          params: params,
369
+          headers: {
370
+            'Permission': 5
371
+          }
372
+        })
373
+        that.then(function(response) {
374
+            if (response.data.state == 0) {
375
+              this.$message.error(response.data.msg)
376
+              that.loadingone = false
377
+              return false
378
+            } else {
379
+              that.loadingone = false
380
+              if (response.data.data.failed_code == -10) {
381
+                // that.$message.error(response.data.data.msg)
382
+                that.$confirm(response.data.data.msg, '医保错误信息', {
383
+                  confirmButtonText: '确 定',
384
+                  type: 'warning'
385
+                }).then(() => {
386
+
387
+                  this.form.psn_type = parseNumber(response.data.data.info.output.insuinfo.psn_type)
388
+                  this.form.social_type = parseNumber(response.data.data.insutype)
389
+
390
+                }).catch(() => {
391
+                })
392
+              } else {
393
+
394
+
395
+              }
396
+            }
397
+          })
398
+          .catch(function(error) {
399
+
400
+          })
310
       },
401
       },
311
       querySearchAsync(keyword, cb) {
402
       querySearchAsync(keyword, cb) {
312
         let key = ''
403
         let key = ''
541
               diagnosis: this.form.diagnosis,
632
               diagnosis: this.form.diagnosis,
542
               sick_type: this.form.sick_type,
633
               sick_type: this.form.sick_type,
543
               start_time: this.form.start_time,
634
               start_time: this.form.start_time,
635
+              social_type: this.form.social_type,
636
+              psn_type: this.form.psn_type,
544
               balance_accounts_type: this.form.settlement_value
637
               balance_accounts_type: this.form.settlement_value
638
+
545
             }
639
             }
546
             params['record_time'] = this.record_date
640
             params['record_time'] = this.record_date
547
             params['admin_user_id'] = this.$store.getters.xt_user.user.id
641
             params['admin_user_id'] = this.$store.getters.xt_user.user.id
682
         this.form.id_card_type = 2
776
         this.form.id_card_type = 2
683
       }
777
       }
684
 
778
 
779
+      if(this.$store.getters.xt_user.org_id == 10215) {
780
+        this.form.med_type = 14
781
+        this.form.sick_type = 421
782
+      }
783
+
685
       this.getInitData()
784
       this.getInitData()
686
       //获取当前机构有人员信息
785
       //获取当前机构有人员信息
687
       this.getAllDoctorList()
786
       this.getAllDoctorList()

+ 1 - 1
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Wyświetl plik

470
           { value: 11, label: '普通门诊' },
470
           { value: 11, label: '普通门诊' },
471
           // { value: 12, label: '门诊挂号' },
471
           // { value: 12, label: '门诊挂号' },
472
           // { value: 13, label: '急诊' },
472
           // { value: 13, label: '急诊' },
473
-          { value: 14, label: '门诊特殊病' }
473
+          { value: 14, label: '门诊慢性病' }
474
           // { value: 15, label: '门诊统筹' },
474
           // { value: 15, label: '门诊统筹' },
475
           // { value: 16, label: '门诊慢性病' },
475
           // { value: 16, label: '门诊慢性病' },
476
           // { value: 21, label: '普通住院' }
476
           // { value: 21, label: '普通住院' }

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Wyświetl plik

2002
           }
2002
           }
2003
 
2003
 
2004
           if (this.hisPatientInfo.id_card_type == 1) {
2004
           if (this.hisPatientInfo.id_card_type == 1) {
2005
-            if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10088) {
2005
+            if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 ) {
2006
               this.pwdFormVisible = true
2006
               this.pwdFormVisible = true
2007
               this.pwd = ''
2007
               this.pwd = ''
2008
             } else {
2008
             } else {