Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 9 months ago
parent
commit
61e1b49456
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue

+ 5 - 2
src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue View File

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