|
@@ -137,9 +137,12 @@
|
137
|
137
|
highlight-current-row>
|
138
|
138
|
<el-table-column type="selection" width="40"
|
139
|
139
|
align="center"></el-table-column>
|
140
|
|
- <el-table-column label="名称">
|
141
|
|
- <template slot-scope="scope">{{ scope.row.drug_name }}</template>
|
|
140
|
+ <el-table-column label="名称" v-if="org_id == 10206 || org_id == 0">
|
|
141
|
+ <template slot-scope="scope">{{ scope.row.drug_name }}{{scope.row.number?"("+scope.row.number+")":""}}</template>
|
142
|
142
|
</el-table-column>
|
|
143
|
+ <el-table-column label="名称" v-if="org_id != 10206 && org_id != 0">
|
|
144
|
+ <template slot-scope="scope">{{ scope.row.drug_name }}</template>
|
|
145
|
+ </el-table-column>
|
143
|
146
|
<el-table-column label="规格" width="60" v-if="org_id != 10206 && org_id != 0">
|
144
|
147
|
<template slot-scope="scope">
|
145
|
148
|
<span
|
|
@@ -196,9 +199,12 @@
|
196
|
199
|
highlight-current-row>
|
197
|
200
|
<el-table-column type="selection" width="40"
|
198
|
201
|
align="center"></el-table-column>
|
199
|
|
- <el-table-column prop="name" label="名称">
|
|
202
|
+ <el-table-column prop="name" label="名称" v-if="org_id != 10206 && org_id != 0">
|
200
|
203
|
<template slot-scope="scope">{{ scope.row.project_name }}</template>
|
201
|
204
|
</el-table-column>
|
|
205
|
+ <el-table-column prop="name" label="名称" v-if="org_id == 10206 || org_id == 0">
|
|
206
|
+ <template slot-scope="scope">{{ scope.row.project_name }}{{scope.row.number?"("+scope.row.number+")":""}}</template>
|
|
207
|
+ </el-table-column>
|
202
|
208
|
<el-table-column label="规格" width="60">
|
203
|
209
|
<template slot-scope="scope">{{ scope.row.single_dose }}</template>
|
204
|
210
|
</el-table-column>
|
|
@@ -1164,8 +1170,13 @@
|
1164
|
1170
|
// pre_time: nowTime
|
1165
|
1171
|
|
1166
|
1172
|
}
|
|
1173
|
+ if(this.org_id == 10206) {
|
|
1174
|
+ obj.med_type = 12
|
|
1175
|
+ }else{
|
|
1176
|
+ obj.med_type = 14
|
1167
|
1177
|
|
1168
|
|
- obj.med_type = 14
|
|
1178
|
+
|
|
1179
|
+ }
|
1169
|
1180
|
|
1170
|
1181
|
this.prescriptions.push(obj)
|
1171
|
1182
|
|
|
@@ -1680,44 +1691,84 @@
|
1680
|
1691
|
|
1681
|
1692
|
//项目
|
1682
|
1693
|
for (let b = 0; b < prescription.project.length; b++) {
|
1683
|
|
- if(prescription.project!=null && (prescription.project[b].good_info.good_status.startsWith('停用') == false && prescription.project[b].project.medical_status!=1)){
|
|
1694
|
+ if(prescription.project!=null && (prescription.project[b].good_info.good_status.startsWith('停用') == false )) {
|
|
1695
|
+
|
|
1696
|
+ if (this.org_id == 10206 || this.org_id == 0) {
|
|
1697
|
+ let obj = {
|
|
1698
|
+ id: prescription.project[b].id,
|
|
1699
|
+ project_id: prescription.project[b].project_id,
|
|
1700
|
+ project_name: prescription.project[b].project.project_name,
|
|
1701
|
+ statistical_classification: prescription.project[b].project.statistical_classification,
|
|
1702
|
+ single_dose: prescription.project[b].single_dose,
|
|
1703
|
+ delivery_way: prescription.project[b].delivery_way,
|
|
1704
|
+ execution_frequency: prescription.project[b].execution_frequency,
|
|
1705
|
+ number_days: prescription.project[b].day,
|
|
1706
|
+ total: prescription.project[b].count.toString(),
|
|
1707
|
+ price: prescription.project[b].price,
|
|
1708
|
+ remark: prescription.project[b].remark,
|
|
1709
|
+ medical_code: prescription.project[b].project.medical_code,
|
|
1710
|
+ type: prescription.project[b].type,
|
|
1711
|
+ frequency_type: prescription.project[b].frequency_type,
|
|
1712
|
+ day_count: prescription.project[b].day_count,
|
|
1713
|
+ week_day: prescription.project[b].week_day
|
1684
|
1714
|
|
1685
|
|
- let obj = {
|
1686
|
|
- id: prescription.project[b].id,
|
1687
|
|
- project_id: prescription.project[b].project_id,
|
1688
|
|
- project_name: prescription.project[b].project.project_name,
|
1689
|
|
- statistical_classification: prescription.project[b].project.statistical_classification,
|
1690
|
|
- single_dose: prescription.project[b].single_dose,
|
1691
|
|
- delivery_way: prescription.project[b].delivery_way,
|
1692
|
|
- execution_frequency: prescription.project[b].execution_frequency,
|
1693
|
|
- number_days: prescription.project[b].day,
|
1694
|
|
- total: prescription.project[b].count.toString(),
|
1695
|
|
- price: prescription.project[b].price,
|
1696
|
|
- remark: prescription.project[b].remark,
|
1697
|
|
- medical_code: prescription.project[b].project.medical_code,
|
1698
|
|
- type: prescription.project[b].type,
|
1699
|
|
- frequency_type: prescription.project[b].frequency_type,
|
1700
|
|
- day_count: prescription.project[b].day_count,
|
1701
|
|
- week_day: prescription.project[b].week_day
|
|
1715
|
+ }
|
1702
|
1716
|
|
1703
|
|
- }
|
|
1717
|
+ if (prescription.project[b].type == 2) {
|
|
1718
|
+ obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
|
1719
|
+ obj['medical_code'] = prescription.project[b].project.medical_code
|
|
1720
|
+ obj['project_name'] = prescription.project[b].project.project_name
|
|
1721
|
+ obj['project'] = prescription.project[b].project
|
|
1722
|
+ obj['unit'] = prescription.project[b].unit
|
|
1723
|
+ } else if (prescription.project[b].type == 3) {
|
|
1724
|
+ obj['statistical_classification'] = ''
|
|
1725
|
+ obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
|
1726
|
+ obj['project_name'] = prescription.project[b].good_info.good_name
|
|
1727
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
1728
|
+ obj['unit'] = prescription.project[b].good_info.packing_unit
|
|
1729
|
+ }
|
|
1730
|
+ tempProject.push(obj)
|
|
1731
|
+ }else{
|
|
1732
|
+ if( prescription.project[b].project.medical_status!=1){
|
|
1733
|
+ let obj = {
|
|
1734
|
+ id: prescription.project[b].id,
|
|
1735
|
+ project_id: prescription.project[b].project_id,
|
|
1736
|
+ project_name: prescription.project[b].project.project_name,
|
|
1737
|
+ statistical_classification: prescription.project[b].project.statistical_classification,
|
|
1738
|
+ single_dose: prescription.project[b].single_dose,
|
|
1739
|
+ delivery_way: prescription.project[b].delivery_way,
|
|
1740
|
+ execution_frequency: prescription.project[b].execution_frequency,
|
|
1741
|
+ number_days: prescription.project[b].day,
|
|
1742
|
+ total: prescription.project[b].count.toString(),
|
|
1743
|
+ price: prescription.project[b].price,
|
|
1744
|
+ remark: prescription.project[b].remark,
|
|
1745
|
+ medical_code: prescription.project[b].project.medical_code,
|
|
1746
|
+ type: prescription.project[b].type,
|
|
1747
|
+ frequency_type: prescription.project[b].frequency_type,
|
|
1748
|
+ day_count: prescription.project[b].day_count,
|
|
1749
|
+ week_day: prescription.project[b].week_day
|
|
1750
|
+
|
|
1751
|
+ }
|
|
1752
|
+
|
|
1753
|
+ if (prescription.project[b].type == 2) {
|
|
1754
|
+ obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
|
1755
|
+ obj['medical_code'] = prescription.project[b].project.medical_code
|
|
1756
|
+ obj['project_name'] = prescription.project[b].project.project_name
|
|
1757
|
+ obj['project'] = prescription.project[b].project
|
|
1758
|
+ obj['unit'] = prescription.project[b].unit
|
|
1759
|
+ } else if (prescription.project[b].type == 3) {
|
|
1760
|
+ obj['statistical_classification'] = ''
|
|
1761
|
+ obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
|
1762
|
+ obj['project_name'] = prescription.project[b].good_info.good_name
|
|
1763
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
1764
|
+ obj['unit'] = prescription.project[b].good_info.packing_unit
|
|
1765
|
+ }
|
|
1766
|
+ tempProject.push(obj)
|
1704
|
1767
|
|
1705
|
|
- if (prescription.project[b].type == 2) {
|
1706
|
|
- obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
1707
|
|
- obj['medical_code'] = prescription.project[b].project.medical_code
|
1708
|
|
- obj['project_name'] = prescription.project[b].project.project_name
|
1709
|
|
- obj['project'] = prescription.project[b].project
|
1710
|
|
- obj['unit'] = prescription.project[b].unit
|
1711
|
|
- } else if (prescription.project[b].type == 3) {
|
1712
|
|
- obj['statistical_classification'] = ''
|
1713
|
|
- obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
1714
|
|
- obj['project_name'] = prescription.project[b].good_info.good_name
|
1715
|
|
- obj['good_info'] = prescription.project[b].good_info
|
1716
|
|
- obj['unit'] = prescription.project[b].good_info.packing_unit
|
1717
|
|
- }
|
1718
|
|
- tempProject.push(obj)
|
1719
|
|
- }
|
|
1768
|
+ }
|
1720
|
1769
|
|
|
1770
|
+ }
|
|
1771
|
+ }
|
1721
|
1772
|
}
|
1722
|
1773
|
|
1723
|
1774
|
// var preTime = nowTime
|
|
@@ -1743,6 +1794,10 @@
|
1743
|
1794
|
}
|
1744
|
1795
|
|
1745
|
1796
|
this.prescriptions.push(obj)
|
|
1797
|
+ console.log("!!!!!")
|
|
1798
|
+ console.log(this.prescriptions)
|
|
1799
|
+ console.log("!!!!!")
|
|
1800
|
+
|
1746
|
1801
|
}
|
1747
|
1802
|
this.curPrescriptions = this.prescriptions[0]
|
1748
|
1803
|
|
|
@@ -1756,8 +1811,18 @@
|
1756
|
1811
|
order_status: 0,
|
1757
|
1812
|
med_type: ''
|
1758
|
1813
|
}
|
1759
|
|
- obj.med_type = 14
|
|
1814
|
+ if(this.org_id == 10206) {
|
|
1815
|
+ obj.med_type = 12
|
|
1816
|
+ }else{
|
|
1817
|
+ obj.med_type = 14
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+ }
|
1760
|
1821
|
this.prescriptions.push(obj)
|
|
1822
|
+ console.log("this.prescriptions")
|
|
1823
|
+ console.log(this.prescriptions)
|
|
1824
|
+ console.log("this.prescriptions")
|
|
1825
|
+
|
1761
|
1826
|
this.curPrescriptions = this.prescriptions[0]
|
1762
|
1827
|
}
|
1763
|
1828
|
}
|
|
@@ -1783,7 +1848,8 @@
|
1783
|
1848
|
type: 2,
|
1784
|
1849
|
is_special_diseases: project[i].disease_directory,
|
1785
|
1850
|
project: project[i],
|
1786
|
|
- first_letter:project[i].first_letter
|
|
1851
|
+ first_letter:project[i].first_letter,
|
|
1852
|
+ number: "",
|
1787
|
1853
|
}
|
1788
|
1854
|
|
1789
|
1855
|
this.tabProject.push(obj)
|
|
@@ -1806,7 +1872,9 @@
|
1806
|
1872
|
type: 3,
|
1807
|
1873
|
is_special_diseases: good_info[i].is_special_diseases,
|
1808
|
1874
|
good_info: good_info[i],
|
1809
|
|
- first_letter:good_info[i].first_letter
|
|
1875
|
+ first_letter:good_info[i].first_letter,
|
|
1876
|
+ number: good_info[i].good_number,
|
|
1877
|
+
|
1810
|
1878
|
}
|
1811
|
1879
|
this.tabProject.push(obj)
|
1812
|
1880
|
}
|
|
@@ -2018,7 +2086,8 @@
|
2018
|
2086
|
groupno: prescription.advices[b].groupno,
|
2019
|
2087
|
frequency_type: prescription.advices[b].frequency_type,
|
2020
|
2088
|
day_count: prescription.advices[b].day_count,
|
2021
|
|
- week_day: prescription.advices[b].week_day
|
|
2089
|
+ week_day: prescription.advices[b].week_day,
|
|
2090
|
+
|
2022
|
2091
|
|
2023
|
2092
|
}
|
2024
|
2093
|
tempAdvice.push(obj)
|
|
@@ -2100,7 +2169,13 @@
|
2100
|
2169
|
med_type: ''
|
2101
|
2170
|
}
|
2102
|
2171
|
|
2103
|
|
- obj.med_type = 14
|
|
2172
|
+ if(this.org_id == 10206) {
|
|
2173
|
+ obj.med_type = 12
|
|
2174
|
+ }else{
|
|
2175
|
+ obj.med_type = 14
|
|
2176
|
+
|
|
2177
|
+
|
|
2178
|
+ }
|
2104
|
2179
|
|
2105
|
2180
|
this.prescriptions.push(obj)
|
2106
|
2181
|
this.curPrescriptions = this.prescriptions[0]
|