|
@@ -1611,7 +1611,9 @@
|
1611
|
1611
|
let tempAddition = []
|
1612
|
1612
|
//药品
|
1613
|
1613
|
for (let b = 0; b < prescription.advices.length; b++) {
|
1614
|
|
- let obj = {
|
|
1614
|
+ console.log("prescription.advices[b].drug.drug_status.startsWith('停用')",prescription.advices[b].drug.drug_status.startsWith('停用'))
|
|
1615
|
+ if(prescription.advices[b].drug!=null && prescription.advices[b].drug.drug_status.startsWith('停用') == false){
|
|
1616
|
+ let obj = {
|
1615
|
1617
|
advice_id: prescription.advices[b].id,
|
1616
|
1618
|
drug_name: prescription.advices[b].advice_name,
|
1617
|
1619
|
single_dose: prescription.advices[b].single_dose,
|
|
@@ -1633,10 +1635,15 @@
|
1633
|
1635
|
|
1634
|
1636
|
}
|
1635
|
1637
|
tempAdvice.push(obj)
|
|
1638
|
+ }
|
|
1639
|
+
|
1636
|
1640
|
}
|
1637
|
1641
|
|
|
1642
|
+
|
1638
|
1643
|
//项目
|
1639
|
1644
|
for (let b = 0; b < prescription.project.length; b++) {
|
|
1645
|
+ if(prescription.project!=null && (prescription.project[b].good_info.good_status.startsWith('停用') == false && prescription.project[b].project.medical_status!=1)){
|
|
1646
|
+
|
1640
|
1647
|
let obj = {
|
1641
|
1648
|
id: prescription.project[b].id,
|
1642
|
1649
|
project_id: prescription.project[b].project_id,
|
|
@@ -1671,6 +1678,8 @@
|
1671
|
1678
|
obj['unit'] = prescription.project[b].good_info.packing_unit
|
1672
|
1679
|
}
|
1673
|
1680
|
tempProject.push(obj)
|
|
1681
|
+ }
|
|
1682
|
+
|
1674
|
1683
|
}
|
1675
|
1684
|
|
1676
|
1685
|
// var preTime = nowTime
|