瀏覽代碼

提交代码

陈少旭 1 年之前
父節點
當前提交
4a7d1186bc
共有 1 個文件被更改,包括 47 次插入2 次删除
  1. 47 2
      src/xt_pages/outpatientCharges/chargeDetailManagement.vue

+ 47 - 2
src/xt_pages/outpatientCharges/chargeDetailManagement.vue 查看文件

195
                             :value="item.value">
195
                             :value="item.value">
196
                           </el-option>
196
                           </el-option>
197
                         </el-select>
197
                         </el-select>
198
+                          <label>
199
+                            疾病类型:
200
+                          </label>
201
+                          <el-select filterable  v-model="sick_type" placeholder="请选择疾病类型">
202
+                            <el-option
203
+                              v-for="(item,index) in sick"
204
+                              :key="index"
205
+                              :label="item.class_name"
206
+                              :value="item.id">
207
+                            </el-option>
208
+                          </el-select>
209
+
198
                       </div>
210
                       </div>
199
 
211
 
200
                       <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
212
                       <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
233
 import axios from 'axios'
245
 import axios from 'axios'
234
 import { getUploadZuoBiaoPatientInfo, getZuoBiaoPatientInfo, getZuoBiaoPatientList } from '@/api/his/his_zuobiao'
246
 import { getUploadZuoBiaoPatientInfo, getZuoBiaoPatientInfo, getZuoBiaoPatientList } from '@/api/his/his_zuobiao'
235
 import { uParseTime } from '@/utils/tools'
247
 import { uParseTime } from '@/utils/tools'
248
+import { getInitData } from '@/api/his/his'
236
 
249
 
237
 import MonthPrescriptionTable from './componenttwo/ChargePrescriptionTable'
250
 import MonthPrescriptionTable from './componenttwo/ChargePrescriptionTable'
238
 import ChargeMonthPrescriptionTable from './componenttwo/chargeMonthPrescriptionTable'
251
 import ChargeMonthPrescriptionTable from './componenttwo/chargeMonthPrescriptionTable'
316
         name: '1'
329
         name: '1'
317
       }],
330
       }],
318
       tabIndex: 1,
331
       tabIndex: 1,
332
+
319
       hisPatientInfo: {},
333
       hisPatientInfo: {},
334
+      prescription_info:{},
320
       loadingtwo: false,
335
       loadingtwo: false,
321
       upload_list: [],
336
       upload_list: [],
322
       patientTableData: [{}],
337
       patientTableData: [{}],
372
 
387
 
373
     // this.getInitData()
388
     // this.getInitData()
374
     //获取患者信息
389
     //获取患者信息
390
+    this.getInitData()
375
     this.getPatientList()
391
     this.getPatientList()
376
   },
392
   },
377
   methods: {
393
   methods: {
394
+    getInitData() {
395
+      getInitData().then(response => {
396
+        if (response.data.state == 0) {
397
+          this.$message.error(response.data.msg)
398
+          return false
399
+        } else {
400
+          this.sick = response.data.data.sick
401
+        }
402
+      })
403
+
404
+    },
378
     changeScheduleType() {
405
     changeScheduleType() {
379
 
406
 
380
       this.getPatientList()
407
       this.getPatientList()
649
         var that = this
676
         var that = this
650
         let obj3 = {
677
         let obj3 = {
651
           id: this.zuobiao_info.id,
678
           id: this.zuobiao_info.id,
652
-          admin_user_id: this.$store.getters.xt_user.user.id
679
+          admin_user_id: this.$store.getters.xt_user.user.id,
653
         }
680
         }
654
         axios.get('http://127.0.0.1:9532' + '/nmg/coordinate/settleAccount/cancel', {
681
         axios.get('http://127.0.0.1:9532' + '/nmg/coordinate/settleAccount/cancel', {
655
           params: obj3
682
           params: obj3
682
 
709
 
683
           })
710
           })
684
       } else if (index == 1) {
711
       } else if (index == 1) {
712
+        var that = this
685
         if (this.hisPatientInfo.id == 0) {
713
         if (this.hisPatientInfo.id == 0) {
686
           this.$message.error("请选择需要记账的患者")
714
           this.$message.error("请选择需要记账的患者")
687
           return
715
           return
688
         }
716
         }
717
+        if (this.sick_type == 0 || this.sick_type == "") {
718
+          this.$message.error("请选择疾病类型")
719
+          return
720
+        }
689
 
721
 
690
         let obj = {
722
         let obj = {
691
           patient_id: this.hisPatientInfo.id,
723
           patient_id: this.hisPatientInfo.id,
692
           diagnosis_time: this.record_date,
724
           diagnosis_time: this.record_date,
693
           record_date: this.record_date,
725
           record_date: this.record_date,
694
           admin_user_id: this.$store.getters.xt_user.user.id,
726
           admin_user_id: this.$store.getters.xt_user.user.id,
695
-          org_id: this.$store.getters.xt_user.org_id
727
+          org_id: this.$store.getters.xt_user.org_id,
728
+          sick_type:this.sick_type,
696
         }
729
         }
697
         obj['start_time'] = this.other_start_time
730
         obj['start_time'] = this.other_start_time
698
         obj['end_time'] = this.other_end_time
731
         obj['end_time'] = this.other_end_time
1036
           this.curMonthPrescriptions = {}
1069
           this.curMonthPrescriptions = {}
1037
           this.zuobiao_info = {}
1070
           this.zuobiao_info = {}
1038
           this.loading = false
1071
           this.loading = false
1072
+          this.prescription_info = response.data.data.prescription_info
1073
+          this.sick_type = this.prescription_info.sick_type
1074
+          if(this.sick_type == 0){
1075
+            this.sick_type = ""
1076
+          }
1077
+          console.log(this.sick_type)
1039
           this.hisPatientInfo = response.data.data.patient
1078
           this.hisPatientInfo = response.data.data.patient
1040
           this.zuobiao_info = response.data.data.zuobiao_info
1079
           this.zuobiao_info = response.data.data.zuobiao_info
1041
           this.setMonthPrescription(response.data.data.month_prescriptions)
1080
           this.setMonthPrescription(response.data.data.month_prescriptions)
1184
           this.curMonthPrescriptions = {}
1223
           this.curMonthPrescriptions = {}
1185
           this.loading = false
1224
           this.loading = false
1186
           this.hisPatientInfo = response.data.data.patient
1225
           this.hisPatientInfo = response.data.data.patient
1226
+          this.prescription_info = response.data.data.prescription_info
1227
+          this.sick_type = this.prescription_info.sick_type
1228
+          if(this.sick_type == 0){
1229
+            this.sick_type = ""
1230
+          }
1231
+          console.log(this.sick_type)
1187
           this.setMonthPrescription(response.data.data.month_prescriptions)
1232
           this.setMonthPrescription(response.data.data.month_prescriptions)
1188
           for (let i = 0; i < response.data.data.prescription.length; i++) {
1233
           for (let i = 0; i < response.data.data.prescription.length; i++) {
1189
             var prescription = response.data.data.prescription[i]
1234
             var prescription = response.data.data.prescription[i]