Bladeren bron

提交代码

陈少旭 9 maanden geleden
bovenliggende
commit
9b03091745
1 gewijzigde bestanden met toevoegingen van 82 en 1 verwijderingen
  1. 82 1
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

+ 82 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Bestand weergeven

@@ -221,6 +221,13 @@
221 221
                                   type="primary"
222 222
                                 >读电子凭证
223 223
                                 </el-button>
224
+                                <el-button
225
+                                  v-if="(hisPatientInfo.id_card_type != 3  && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0 && org_id == 10480)"
226
+                                  size="small"
227
+                                  @click="open(28,items.med_type,items.prescriptions[0].order,items.prescriptions)"
228
+                                  type="primary"
229
+                                >就医特殊属性上传
230
+                                </el-button>
224 231
 
225 232
                                 <el-button
226 233
                                   v-if="(hisPatientInfo.id_card_type != 3  && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0 && org_id != 10340)"
@@ -3499,7 +3506,81 @@ export default {
3499 3506
           })
3500 3507
         }
3501 3508
 
3502
-      } else if (index == 9) {
3509
+      } else if (index == 28) {
3510
+        var ids = []
3511
+        for (let i = 0; i < prescriptions.length; i++) {
3512
+          ids.push(prescriptions[i].id)
3513
+        }
3514
+        var ids_str = ids.join(',')
3515
+        this.temp_ids = ids_str
3516
+        this.newLoading = true
3517
+        var that = this
3518
+        let form = {}
3519
+        form['id'] = this.patientInfo.id
3520
+        form['his_patient_id'] = this.hisPatientInfo.id
3521
+        form['record_time'] = this.record_date
3522
+        form['ids'] = this.temp_ids
3523
+        var time_arr = this.form.diagnosis_time.split(" ")
3524
+        let hh =  new Date().getHours() < 10
3525
+          ? "0" + new Date().getHours()
3526
+          : new Date().getHours();
3527
+        let mf =
3528
+          new Date().getMinutes() < 10
3529
+            ? "0" + new Date().getMinutes()
3530
+            : new Date().getMinutes();
3531
+        let ss =
3532
+          new Date().getSeconds() < 10
3533
+            ? "0" + new Date().getSeconds()
3534
+            : new Date().getSeconds();
3535
+        var new_time  = time_arr[0] + " " + hh+":"+mf+":"+ss
3536
+        form['begin_time'] = new_time
3537
+        form['p_type'] = med_type
3538
+        form['diagnosis'] = this.form.diagnosis.join(',')
3539
+        form['sick_type'] = this.form.sick_type
3540
+        form['admin_user_id'] = this.$store.getters.xt_user.user.id
3541
+        form['org_id'] = this.$store.getters.xt_user.org_id
3542
+        if (this.activeName == 'first') {
3543
+          form['settle_accounts_type'] = 1
3544
+        } else if (this.activeName == 'second') {
3545
+          form['start_time'] = this.other_start_time
3546
+          form['end_time'] = this.other_end_time
3547
+          form['settle_accounts_type'] = 2
3548
+        } else {
3549
+          form['start_time'] = this.other_start_time_two
3550
+          form['end_time'] = this.other_end_time_two
3551
+          form['settle_accounts_type'] = 2
3552
+        }
3553
+        axios.get('http://127.0.0.1:9532/api/2406', {
3554
+          params: form,
3555
+          headers: {
3556
+            'Permission': 5
3557
+          }
3558
+        })
3559
+          .then(function(response) {
3560
+            if (response.data.state == 0) {
3561
+              that.$message.error(response.data.msg)
3562
+              return false
3563
+            } else {
3564
+              if (response.data.data.failed_code == -10) {
3565
+                that.$confirm(response.data.data.msg, '医保错误信息', {
3566
+                  confirmButtonText: '确 定',
3567
+                  type: 'warning'
3568
+                }).then(() => {
3569
+                  that.changeRadioAndPatient(1)
3570
+                  that.newLoading = false
3571
+                }).catch(() => {
3572
+                  that.changeRadioAndPatient(1)
3573
+                  that.newLoading = false
3574
+                })
3575
+              } else {
3576
+                that.$message({ message: '上传成功', type: 'success', duration: 5000 })
3577
+              }
3578
+            }
3579
+          })
3580
+          .catch(function(error) {
3581
+            that.newLoading = false
3582
+          })
3583
+      }  else if (index == 9) {
3503 3584
         if (this.org_id == 10375 && this.hisPatientInfo.balance_accounts_type == 1){
3504 3585
           var that = this
3505 3586
           axios