|
@@ -1463,6 +1463,7 @@
|
1463
|
1463
|
// }
|
1464
|
1464
|
// }
|
1465
|
1465
|
|
|
1466
|
+
|
1466
|
1467
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
1467
|
1468
|
if (this.prescriptions[i].name == this.editableTabsValue) {
|
1468
|
1469
|
var temp = this.deepClone(this.curDrugs)
|
|
@@ -1550,7 +1551,6 @@
|
1550
|
1551
|
price: temp2[b].price,
|
1551
|
1552
|
remark: '',
|
1552
|
1553
|
medical_code: temp2[b].medical_code,
|
1553
|
|
- unit: temp2[b].unit,
|
1554
|
1554
|
type: temp2[b].type,
|
1555
|
1555
|
frequency_type: 1,
|
1556
|
1556
|
day_count: 0,
|
|
@@ -1558,10 +1558,13 @@
|
1558
|
1558
|
}
|
1559
|
1559
|
if (temp2[b].type == 2) {
|
1560
|
1560
|
obj['project'] = temp2[b].project
|
|
1561
|
+ obj['unit'] = temp2[b].project.unit
|
1561
|
1562
|
|
1562
|
1563
|
} else if (temp2[b].type == 3) {
|
1563
|
1564
|
|
1564
|
1565
|
obj['good_info'] = temp2[b].good_info
|
|
1566
|
+ obj['unit'] = temp2[b].good_info.packing_unit
|
|
1567
|
+
|
1565
|
1568
|
|
1566
|
1569
|
}
|
1567
|
1570
|
if (obj.total == 0 || obj.total == undefined) {
|
|
@@ -1570,7 +1573,7 @@
|
1570
|
1573
|
if (obj.type == 3) {
|
1571
|
1574
|
obj.single_dose = 1
|
1572
|
1575
|
}
|
1573
|
|
-
|
|
1576
|
+ console.log(obj)
|
1574
|
1577
|
this.prescriptions[i].project.push(obj)
|
1575
|
1578
|
}
|
1576
|
1579
|
this.curStatus = 2
|