瀏覽代碼

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