浏览代码

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

28169 1年前
父节点
当前提交
93e9a383e4
共有 1 个文件被更改,包括 61 次插入3 次删除
  1. 61 3
      src/xt_pages/outpatientCharges/chargeDetailManagement.vue

+ 61 - 3
src/xt_pages/outpatientCharges/chargeDetailManagement.vue 查看文件

@@ -83,6 +83,8 @@
83 83
           <div v-if="this.radio == 1">
84 84
             <el-button
85 85
               size="small"
86
+              v-loading="isloading"
87
+              :disabled="isdisabled"
86 88
               @click="open(1)"
87 89
               type="primary">上传明细
88 90
             </el-button>
@@ -195,6 +197,18 @@
195 197
                             :value="item.value">
196 198
                           </el-option>
197 199
                         </el-select>
200
+                          <label>
201
+                            疾病类型:
202
+                          </label>
203
+                          <el-select filterable  v-model="sick_type" placeholder="请选择疾病类型">
204
+                            <el-option
205
+                              v-for="(item,index) in sick"
206
+                              :key="index"
207
+                              :label="item.class_name"
208
+                              :value="item.id">
209
+                            </el-option>
210
+                          </el-select>
211
+
198 212
                       </div>
199 213
 
200 214
                       <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
@@ -233,6 +247,7 @@
233 247
 import axios from 'axios'
234 248
 import { getUploadZuoBiaoPatientInfo, getZuoBiaoPatientInfo, getZuoBiaoPatientList } from '@/api/his/his_zuobiao'
235 249
 import { uParseTime } from '@/utils/tools'
250
+import { getInitData } from '@/api/his/his'
236 251
 
237 252
 import MonthPrescriptionTable from './componenttwo/ChargePrescriptionTable'
238 253
 import ChargeMonthPrescriptionTable from './componenttwo/chargeMonthPrescriptionTable'
@@ -248,6 +263,8 @@ export default {
248 263
   },
249 264
   data() {
250 265
     return {
266
+      isloading:false,
267
+      isdisabled:false,
251 268
       register: [
252 269
         { value: 11, label: '普通门诊' },
253 270
         // { value: 12, label: '门诊挂号' },
@@ -316,7 +333,9 @@ export default {
316 333
         name: '1'
317 334
       }],
318 335
       tabIndex: 1,
336
+
319 337
       hisPatientInfo: {},
338
+      prescription_info:{},
320 339
       loadingtwo: false,
321 340
       upload_list: [],
322 341
       patientTableData: [{}],
@@ -372,9 +391,21 @@ export default {
372 391
 
373 392
     // this.getInitData()
374 393
     //获取患者信息
394
+    this.getInitData()
375 395
     this.getPatientList()
376 396
   },
377 397
   methods: {
398
+    getInitData() {
399
+      getInitData().then(response => {
400
+        if (response.data.state == 0) {
401
+          this.$message.error(response.data.msg)
402
+          return false
403
+        } else {
404
+          this.sick = response.data.data.sick
405
+        }
406
+      })
407
+
408
+    },
378 409
     changeScheduleType() {
379 410
 
380 411
       this.getPatientList()
@@ -649,7 +680,7 @@ export default {
649 680
         var that = this
650 681
         let obj3 = {
651 682
           id: this.zuobiao_info.id,
652
-          admin_user_id: this.$store.getters.xt_user.user.id
683
+          admin_user_id: this.$store.getters.xt_user.user.id,
653 684
         }
654 685
         axios.get('http://127.0.0.1:9532' + '/nmg/coordinate/settleAccount/cancel', {
655 686
           params: obj3
@@ -682,17 +713,25 @@ export default {
682 713
 
683 714
           })
684 715
       } else if (index == 1) {
716
+        this.isloading = true
717
+        this.isdisabled = true
718
+        var that = this
685 719
         if (this.hisPatientInfo.id == 0) {
686 720
           this.$message.error("请选择需要记账的患者")
687 721
           return
688 722
         }
723
+        if (this.sick_type == 0 || this.sick_type == "") {
724
+          this.$message.error("请选择疾病类型")
725
+          return
726
+        }
689 727
 
690 728
         let obj = {
691 729
           patient_id: this.hisPatientInfo.id,
692 730
           diagnosis_time: this.record_date,
693 731
           record_date: this.record_date,
694 732
           admin_user_id: this.$store.getters.xt_user.user.id,
695
-          org_id: this.$store.getters.xt_user.org_id
733
+          org_id: this.$store.getters.xt_user.org_id,
734
+          sick_type:this.sick_type,
696 735
         }
697 736
         obj['start_time'] = this.other_start_time
698 737
         obj['end_time'] = this.other_end_time
@@ -703,9 +742,13 @@ export default {
703 742
           .then(function(response) {
704 743
             if (response.data.state == 0) {
705 744
               that.$message.error(response.data.msg)
706
-              that.loadingtwo = false
745
+              that.isloading = false
746
+              that.isdisabled = false
747
+
707 748
               return false
708 749
             } else {
750
+              that.isloading = false
751
+              that.isdisabled = false
709 752
               if (response.data.data.failed_code == -10) {
710 753
                 that.$confirm(response.data.data.msg, '医保错误信息', {
711 754
                   confirmButtonText: '确 定',
@@ -715,7 +758,10 @@ export default {
715 758
                 }).catch(() => {
716 759
                 })
717 760
 
761
+
718 762
               } else {
763
+                that.isloading = false
764
+                that.isdisabled = false
719 765
                 that.radio = 2
720 766
                 that.$message({ message: '上传成功', type: 'success', duration: 5000 })
721 767
                 that.getPatientList()
@@ -1036,6 +1082,12 @@ export default {
1036 1082
           this.curMonthPrescriptions = {}
1037 1083
           this.zuobiao_info = {}
1038 1084
           this.loading = false
1085
+          this.prescription_info = response.data.data.prescription_info
1086
+          this.sick_type = this.prescription_info.sick_type
1087
+          if(this.sick_type == 0){
1088
+            this.sick_type = ""
1089
+          }
1090
+          console.log(this.sick_type)
1039 1091
           this.hisPatientInfo = response.data.data.patient
1040 1092
           this.zuobiao_info = response.data.data.zuobiao_info
1041 1093
           this.setMonthPrescription(response.data.data.month_prescriptions)
@@ -1184,6 +1236,12 @@ export default {
1184 1236
           this.curMonthPrescriptions = {}
1185 1237
           this.loading = false
1186 1238
           this.hisPatientInfo = response.data.data.patient
1239
+          this.prescription_info = response.data.data.prescription_info
1240
+          this.sick_type = this.prescription_info.sick_type
1241
+          if(this.sick_type == 0){
1242
+            this.sick_type = ""
1243
+          }
1244
+          console.log(this.sick_type)
1187 1245
           this.setMonthPrescription(response.data.data.month_prescriptions)
1188 1246
           for (let i = 0; i < response.data.data.prescription.length; i++) {
1189 1247
             var prescription = response.data.data.prescription[i]