瀏覽代碼

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

csx 3 年之前
父節點
當前提交
f57a793477
共有 1 個文件被更改,包括 19 次插入2 次删除
  1. 19 2
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

+ 19 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

@@ -1884,6 +1884,15 @@
1884 1884
           // this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
1885 1885
         } else if (index == 4) {
1886 1886
 
1887
+
1888
+          var ids = []
1889
+          for (let i = 0; i < prescriptions.length; i++) {
1890
+            ids.push(prescriptions[i].id)
1891
+          }
1892
+          var ids_str = ids.join(',')
1893
+          this.temp_ids = ids_str
1894
+
1895
+
1887 1896
           this.currentOrder = order
1888 1897
           this.current_med_type = med_type
1889 1898
           if (this.patientInfo.id == 0) {
@@ -2005,11 +2014,20 @@
2005 2014
             return
2006 2015
           }
2007 2016
 
2017
+          var ids = []
2018
+          for (let i = 0; i < prescriptions.length; i++) {
2019
+            ids.push(prescriptions[i].id)
2020
+          }
2021
+          var ids_str = ids.join(',')
2022
+          this.temp_ids = ids_str
2023
+
2024
+
2008 2025
           var that = this
2009 2026
           let form = {}
2010 2027
           form['id'] = this.patientInfo.id
2011 2028
           form['his_patient_id'] = this.hisPatientInfo.id
2012 2029
           form['record_time'] = this.record_date
2030
+          form['ids'] = this.temp_ids
2013 2031
 
2014 2032
           form['p_type'] = med_type
2015 2033
           form['diagnosis'] = this.form.diagnosis.join(',')
@@ -2052,8 +2070,7 @@
2052 2070
               cancelButtonText: '取 消',
2053 2071
               type: 'warning'
2054 2072
             }).then(() => {
2055
-              axios.get('http://127.0' +
2056
-                '.0.1:9532/api/presettle/get', {
2073
+              axios.get('http://127.0.0.1:9532/api/presettle/get', {
2057 2074
                 params: form,
2058 2075
                 headers: {
2059 2076
                   'Permission': 5