Pārlūkot izejas kodu

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

28169 9 mēnešus atpakaļ
vecāks
revīzija
8e0a5a4027

+ 82 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Parādīt failu

@@ -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

+ 79 - 4
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Parādīt failu

@@ -1834,8 +1834,8 @@
1834 1834
                 }
1835 1835
                 //项目
1836 1836
                 for (let b = 0; b < prescription.project.length; b++) {
1837
-                  if(prescription.project!=null && (prescription.project[b].good_info.good_status.startsWith('停用') == false )) {
1838
-                    if (this.org_id == 10206 || this.org_id == 0) {
1837
+                  if(prescription.project[b].type == 2 && prescription.project[b].project.medical_status!=1){
1838
+                    if (this.org_id == 10206) {
1839 1839
                       let obj = {
1840 1840
                         id: prescription.project[b].id,
1841 1841
                         project_id: prescription.project[b].project_id,
@@ -1877,7 +1877,6 @@
1877 1877
                       }
1878 1878
                       tempProject.push(obj)
1879 1879
                     }else{
1880
-                      if( prescription.project[b].project.medical_status!=1){
1881 1880
                         let obj = {
1882 1881
                           id: prescription.project[b].id,
1883 1882
                           project_id: prescription.project[b].project_id,
@@ -1912,9 +1911,85 @@
1912 1911
                           obj['unit'] = prescription.project[b].good_info.packing_unit
1913 1912
                         }
1914 1913
                         tempProject.push(obj)
1914
+                    }
1915
+                  }else if(prescription.project[b].type == 3 && prescription.project[b].good_info.good_status.startsWith('停用') == false){
1916
+                    if (this.org_id == 10206 ) {
1917
+                      let obj = {
1918
+                        id: prescription.project[b].id,
1919
+                        project_id: prescription.project[b].project_id,
1920
+                        project_name: prescription.project[b].project.project_name,
1921
+                        statistical_classification: prescription.project[b].project.statistical_classification,
1922
+                        single_dose: prescription.project[b].single_dose,
1923
+                        delivery_way: prescription.project[b].delivery_way,
1924
+                        execution_frequency: prescription.project[b].execution_frequency,
1925
+                        number_days: prescription.project[b].day,
1926
+                        total: prescription.project[b].count.toString(),
1927
+                        price: prescription.project[b].price,
1928
+                        remark: prescription.project[b].remark,
1929
+                        medical_code: prescription.project[b].project.medical_code,
1930
+                        type: prescription.project[b].type,
1931
+                        frequency_type: prescription.project[b].frequency_type,
1932
+                        day_count: prescription.project[b].day_count,
1933
+                        week_day: prescription.project[b].week_day
1934
+
1915 1935
 
1916 1936
                       }
1917
-                    }
1937
+
1938
+                      if (prescription.project[b].type == 2) {
1939
+                        obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1940
+                        obj['medical_code'] = prescription.project[b].project.medical_code
1941
+                        obj['project_name'] = prescription.project[b].project.project_name
1942
+                        obj['project'] = prescription.project[b].project
1943
+                        obj['unit'] = prescription.project[b].unit
1944
+                        obj['number'] = ""
1945
+
1946
+
1947
+                      } else if (prescription.project[b].type == 3) {
1948
+                        obj['statistical_classification'] = ''
1949
+                        obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1950
+                        obj['project_name'] = prescription.project[b].good_info.good_name
1951
+                        obj['good_info'] = prescription.project[b].good_info
1952
+                        obj['unit'] = prescription.project[b].good_info.packing_unit
1953
+                        obj['number'] = prescription.project[b].good_info.good_number
1954
+
1955
+                      }
1956
+                      tempProject.push(obj)
1957
+                    }else{
1958
+                        let obj = {
1959
+                          id: prescription.project[b].id,
1960
+                          project_id: prescription.project[b].project_id,
1961
+                          project_name: prescription.project[b].project.project_name,
1962
+                          statistical_classification: prescription.project[b].project.statistical_classification,
1963
+                          single_dose: prescription.project[b].single_dose,
1964
+                          delivery_way: prescription.project[b].delivery_way,
1965
+                          execution_frequency: prescription.project[b].execution_frequency,
1966
+                          number_days: prescription.project[b].day,
1967
+                          total: prescription.project[b].count.toString(),
1968
+                          price: prescription.project[b].price,
1969
+                          remark: prescription.project[b].remark,
1970
+                          medical_code: prescription.project[b].project.medical_code,
1971
+                          type: prescription.project[b].type,
1972
+                          frequency_type: prescription.project[b].frequency_type,
1973
+                          day_count: prescription.project[b].day_count,
1974
+                          week_day: prescription.project[b].week_day
1975
+
1976
+                        }
1977
+
1978
+                        if (prescription.project[b].type == 2) {
1979
+                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1980
+                          obj['medical_code'] = prescription.project[b].project.medical_code
1981
+                          obj['project_name'] = prescription.project[b].project.project_name
1982
+                          obj['project'] = prescription.project[b].project
1983
+                          obj['unit'] = prescription.project[b].unit
1984
+                        } else if (prescription.project[b].type == 3) {
1985
+                          obj['statistical_classification'] = ''
1986
+                          obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1987
+                          obj['project_name'] = prescription.project[b].good_info.good_name
1988
+                          obj['good_info'] = prescription.project[b].good_info
1989
+                          obj['unit'] = prescription.project[b].good_info.packing_unit
1990
+                        }
1991
+                        tempProject.push(obj)
1992
+                      }
1918 1993
                   }
1919 1994
                 }
1920 1995
                 // var preTime = nowTime