see999 3 years ago
parent
commit
e7352c8bfc

+ 7 - 0
src/xt_pages/data/components/addDrugs.vue View File

@@ -705,6 +705,13 @@
705 705
           }
706 706
 
707 707
           this.formTitle = '编辑'
708
+          let unitArr = []
709
+          this.unitList.map(item => {
710
+            unitArr.push(item.id)
711
+          })
712
+          if(unitArr.indexOf(this.form.drug_dose_unit) == -1){
713
+            this.form.drug_dose_unit = ''
714
+          }
708 715
 
709 716
         }
710 717
         this.getAdviceConfig()

+ 1 - 1
src/xt_pages/data/components/drugs.vue View File

@@ -142,7 +142,7 @@
142 142
           <div>{{scope.row.drug_status.indexOf('停用') == -1 ? '启用':'停用' }}</div>
143 143
         </template>
144 144
       </el-table-column>
145
-      <el-table-column prop="date" label="操作" width="250" align="center" fixed="right">
145
+      <el-table-column prop="date" label="操作" width="280" align="center" fixed="right">
146 146
         <template slot-scope="scope">
147 147
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
148 148
           <el-button type="danger" size="small" @click="deleteDurg(scope.row.id,scope.$index)">删除</el-button>

+ 48 - 3
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

@@ -512,6 +512,46 @@ export default {
512 512
             console.log("列表数据",schedules)
513 513
             var config = resp.data.config
514 514
             console.log("config222222",config.is_open)
515
+            let project_config = resp.data.project_config
516
+            console.log('project_config',resp.data.hisAdvices)
517
+            if(project_config.is_open == 1){
518
+              this.project = resp.data.project
519
+              resp.data.hisAdvices.map((item,index) => {
520
+                if(this.project[index].project.length > 0){
521
+                  this.project[index].project.map(it => {
522
+                    let obj = {
523
+                      advice_doctor: it.doctor,
524
+                      start_time:it.start_time,
525
+                      advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
526
+                      execution_time:it.execution_time,
527
+                      execution_state:it.execution_state,
528
+                      execution_staff:it.execution_staff,
529
+                      check_time:it.check_time,
530
+                      check_state:it.check_state,
531
+                      checker:it.checker,
532
+                      created_time:it.ctime,
533
+                      delivery_way:'',
534
+                      execution_frequency:'',
535
+                      remark:'',
536
+                      id:it.id,
537
+                      patient_id:it.patient_id,
538
+                      parent_id:0,
539
+                      groupno:0
540
+                    }
541
+                    // let advice = []
542
+                    // advice.push(obj)
543
+                    // let advices = {
544
+                    //   advices: advice,
545
+                    //   group_no: 123
546
+                    // }
547
+
548
+                //     // console.log(11111,item.new_advice)
549
+                    item.doctor_advice.push(obj)
550
+                  })
551
+                }
552
+              })
553
+            }
554
+            console.log('resp.data.hisAdvices',resp.data.hisAdvices)
515 555
            if(config.is_open == 0 || config.is_open == 2){
516 556
             this.show = true
517 557
             this.showOne = false
@@ -638,7 +678,7 @@ export default {
638 678
             this.indexInfoList = newArr
639 679
            }
640 680
          }
641
-        //  console.log("列表22222",this.scheduleMap)
681
+         console.log("列表22222",this.indexInfoList)
642 682
         })
643 683
     },
644 684
     getValue: function(val) {
@@ -878,7 +918,7 @@ export default {
878 918
             tempSingleDoseDesc =
879 919
               ' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
880 920
           } else {
881
-            tempSingleDoseDesc = row.single_dose + '' + row.single_dose_unit
921
+            tempSingleDoseDesc = row.single_dose ? row.single_dose : '' + '' + row.single_dose_unit ? row.single_dose_unit : ''
882 922
           }
883 923
         }
884 924
 
@@ -887,7 +927,12 @@ export default {
887 927
         }
888 928
 
889 929
         if (isChild == 1) {
890
-          // 不是子药
930
+          // 不是子药 
931
+          console.log(tempDrugSpecDesc)
932
+          console.log(tempPrescribingNumberDesc)
933
+          console.log(tempSingleDoseDesc)
934
+          console.log(11,row.delivery_way)
935
+          console.log(22,row.execution_frequency)
891 936
 
892 937
           return (
893 938
             row.advice_name +

+ 37 - 0
src/xt_pages/dialysis/doctorAdvicePrint.vue View File

@@ -285,6 +285,43 @@ export default {
285 285
                 if (resp.state == 1) {
286 286
                 this.admin_user = resp.data.adminUser
287 287
                 var config = resp.data.config
288
+                let project_config = resp.data.project_config
289
+                console.log('project_config',resp.data.project_config)
290
+                if(project_config.is_open == 1){
291
+                    this.project = resp.data.project
292
+                    resp.data.hisAdvices.map((item,index) => {
293
+                    item.new_advice = item.new_advice ? item.new_advice : []
294
+                    if(this.project[index].project.length > 0){
295
+                        this.project[index].project.map(it => {
296
+                        let obj = {
297
+                            advice_doctor: it.doctor,
298
+                            start_time:it.start_time,
299
+                            advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
300
+                            execution_time:it.execution_time,
301
+                            execution_state:it.execution_state,
302
+                            execution_staff:it.execution_staff,
303
+                            check_time:it.check_time,
304
+                            check_state:it.check_state,
305
+                            checker:it.checker,
306
+                            created_time:it.ctime,
307
+                            remark:'',
308
+                            id:it.id,
309
+                            parent_id:0,
310
+                            groupno:0
311
+                        }
312
+                        // let advice = []
313
+                        // advice.push(obj)
314
+                        // let advices = {
315
+                        //   advices: advice,
316
+                        //   group_no: 123
317
+                        // }
318
+
319
+                        // console.log(11111,item.new_advice)
320
+                        item.doctor_advice.push(obj)
321
+                        })
322
+                    }
323
+                    })
324
+                }
288 325
                 if(config.is_open == 0 || config.is_open == 2){
289 326
                 
290 327
                    var schedulesArr = resp.data.scheduals

+ 3 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -2500,6 +2500,7 @@
2500 2500
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2501 2501
                   obj.prescribing_number = 1
2502 2502
                 }
2503
+                
2503 2504
                 this.prescriptions[i].advices.push(obj)
2504 2505
               }
2505 2506
               this.curStatus = 1
@@ -2527,9 +2528,11 @@
2527 2528
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2528 2529
                   obj.prescribing_number = 1
2529 2530
                 }
2531
+                console.log('obj',obj)
2530 2532
                 this.prescriptions[i].advices.push(obj)
2531 2533
               }
2532 2534
               this.curStatus = 1
2535
+              
2533 2536
             }
2534 2537
 
2535 2538
             // if(this.activeName == 2){