Просмотр исходного кода

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 лет назад
Родитель
Сommit
fe94c759b7

+ 7 - 0
src/xt_pages/data/components/addDrugs.vue Просмотреть файл

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

+ 1 - 1
src/xt_pages/data/components/drugs.vue Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 Просмотреть файл

@@ -2494,6 +2494,7 @@
2494 2494
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2495 2495
                   obj.prescribing_number = 1
2496 2496
                 }
2497
+                
2497 2498
                 this.prescriptions[i].advices.push(obj)
2498 2499
               }
2499 2500
               this.curStatus = 1
@@ -2521,9 +2522,11 @@
2521 2522
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2522 2523
                   obj.prescribing_number = 1
2523 2524
                 }
2525
+                console.log('obj',obj)
2524 2526
                 this.prescriptions[i].advices.push(obj)
2525 2527
               }
2526 2528
               this.curStatus = 1
2529
+              
2527 2530
             }
2528 2531
 
2529 2532
             // if(this.activeName == 2){