XMLWAN 2 yıl önce
ebeveyn
işleme
31869b8480

+ 0 - 1
src/api/advice.js Dosyayı Görüntüle

@@ -494,7 +494,6 @@ export function GetLastOrNextDoctorAdvice(params) {
494 494
 }
495 495
 
496 496
 export function getSchedualDoctors(params) {
497
-  console.log('中国国323322332232323232323', params)
498 497
   return request({
499 498
     url: '/api/schedule/advices',
500 499
     method: 'get',

+ 2 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Dosyayı Görüntüle

@@ -1329,7 +1329,8 @@
1329 1329
       console.log("针眼",this.pinholings)
1330 1330
       this.catheter_maintenancelist = getDataConfig('hemodialysis','catheter_maintenance')
1331 1331
       console.log("导管维护",this.catheter_maintenancelist)
1332
-     
1332
+       
1333
+      console.log("predialysis_evaluation2332323323222323",this.predialysis_evaluation)
1333 1334
       // this.weight_adjust.weight = this.dry_weight.dry_weight
1334 1335
 
1335 1336
       // if(this.predialysis_evaluation.id == 0){

+ 37 - 41
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Dosyayı Görüntüle

@@ -441,7 +441,7 @@ export default {
441 441
     this.getTemplateInfo();
442 442
     this.requestSchedualDoctors(this.time)
443 443
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
444
-
444
+    this.org_id = this.$store.getters.xt_user.template_info.org_id;
445 445
   },
446 446
   methods: {
447 447
     getTemplateInfo() {
@@ -536,51 +536,47 @@ export default {
536 536
             if(project_config.is_open == 1){
537 537
               this.project = resp.data.project
538 538
               console.log( this.project)
539
+             
539 540
               let projectArr = []
540
-              this.project.map(item => {
541
-                resp.data.hisAdvices.map(it => {
542
-                  if(item.patient_id == it.patient_id){
543
-                    projectArr.push(item)
541
+              if(this.org_id !=9671 && this.org_id!= 10318){
542
+                this.project.map(item => {
543
+                  resp.data.hisAdvices.map(it => {
544
+                    if(item.patient_id == it.patient_id){
545
+                      projectArr.push(item)
546
+                    }
547
+                  })
548
+                })
549
+               
550
+                 resp.data.hisAdvices.map((item,index) => {
551
+                  if(projectArr[index].project && projectArr[index].project.length > 0){
552
+                    projectArr[index].project.map(it => {
553
+                      let obj = {
554
+                        advice_doctor: it.doctor,
555
+                        start_time:it.start_time,
556
+                        advice_name:it.team_id > 0 && it.is_check_team == 1 ? it.team.project_team : it.type == 2 ? it.project.project_name : it.good_info.good_name,
557
+                        execution_time:it.execution_time,
558
+                        execution_state:it.execution_state,
559
+                        execution_staff:it.execution_staff,
560
+                        check_time:it.check_time,
561
+                        check_state:it.check_state,
562
+                        checker:it.checker,
563
+                        created_time:it.ctime,
564
+                        delivery_way:'',
565
+                        execution_frequency:'',
566
+                        remark:'',
567
+                        id:it.id,
568
+                        patient_id:it.patient_id,
569
+                        parent_id:0,
570
+                        groupno:0
571
+                      }
572
+                      item.doctor_advice.push(obj)
573
+                    })
544 574
                   }
545 575
                 })
546
-              })
547
-
576
+              }
577
+            
548 578
               console.log(projectArr)
549 579
 
550
-              resp.data.hisAdvices.map((item,index) => {
551
-                if(projectArr[index].project && projectArr[index].project.length > 0){
552
-                  projectArr[index].project.map(it => {
553
-                    let obj = {
554
-                      advice_doctor: it.doctor,
555
-                      start_time:it.start_time,
556
-                      advice_name:it.team_id > 0 && it.is_check_team == 1 ? it.team.project_team : it.type == 2 ? it.project.project_name : it.good_info.good_name,
557
-                      execution_time:it.execution_time,
558
-                      execution_state:it.execution_state,
559
-                      execution_staff:it.execution_staff,
560
-                      check_time:it.check_time,
561
-                      check_state:it.check_state,
562
-                      checker:it.checker,
563
-                      created_time:it.ctime,
564
-                      delivery_way:'',
565
-                      execution_frequency:'',
566
-                      remark:'',
567
-                      id:it.id,
568
-                      patient_id:it.patient_id,
569
-                      parent_id:0,
570
-                      groupno:0
571
-                    }
572
-                    // let advice = []
573
-                    // advice.push(obj)
574
-                    // let advices = {
575
-                    //   advices: advice,
576
-                    //   group_no: 123
577
-                    // }
578
-
579
-                //     // console.log(11111,item.new_advice)
580
-                    item.doctor_advice.push(obj)
581
-                  })
582
-                }
583
-              })
584 580
             }
585 581
             console.log('resp.data.hisAdvices',resp.data.hisAdvices)
586 582
            if(config.is_open == 0 || config.is_open == 2){

+ 26 - 30
src/xt_pages/dialysis/doctorAdvicePrint.vue Dosyayı Görüntüle

@@ -258,7 +258,8 @@ export default {
258 258
             time:'',
259 259
             show:true,
260 260
             showOne:false,
261
-            delivery_way:""
261
+            delivery_way:"",
262
+            org_id:0,
262 263
         }
263 264
     },
264 265
     methods:{
@@ -291,36 +292,31 @@ export default {
291 292
                     this.project = resp.data.project
292 293
                     resp.data.hisAdvices.map((item,index) => {
293 294
                     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
295
+                      if(this.org_id!=9671 && this.org_id!= 10318){
296
+                        if(this.project[index].project.length > 0){
297
+                            this.project[index].project.map(it => {
298
+                            let obj = {
299
+                                advice_doctor: it.doctor,
300
+                                start_time:it.start_time,
301
+                                advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
302
+                                execution_time:it.execution_time,
303
+                                execution_state:it.execution_state,
304
+                                execution_staff:it.execution_staff,
305
+                                check_time:it.check_time,
306
+                                check_state:it.check_state,
307
+                                checker:it.checker,
308
+                                created_time:it.ctime,
309
+                                remark:'',
310
+                                id:it.id,
311
+                                parent_id:0,
312
+                                groupno:0
313
+                            }
314
+                        
315
+                            item.doctor_advice.push(obj)
316
+                            })
311 317
                         }
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 318
                     }
323
-                    })
319
+                   })
324 320
                 }
325 321
                 if(config.is_open == 0 || config.is_open == 2){
326 322
 
@@ -781,11 +777,11 @@ export default {
781 777
     created(){
782 778
       var time = this.$route.query.time
783 779
       var delivery_way = this.$route.query.delivery_way
784
-      console.log("delivery_Way",delivery_way)
785 780
       this.delivery_way = delivery_way
786 781
       this.time = moment(time).format('YYYY-MM-DD')
787 782
       console.log(11,this.$route.query)
788 783
       this.requestSchedualDoctors(time)
784
+      this.org_id = this.$store.getters.xt_user.template_info.org_id;
789 785
     }
790 786
 }
791 787
 </script>

+ 1 - 1
src/xt_pages/outpatientTool/export.vue Dosyayı Görüntüle

@@ -65,7 +65,7 @@
65 65
           end-placeholder="结束日期"
66 66
         >
67 67
         </el-date-picker>
68
-         <el-button  size="small" type="primary" @click="exportList">导出</el-button>
68
+         <el-button  size="small" type="primary" @click="exportList" style="width:50px">导出</el-button>
69 69
         <el-table
70 70
         :data="tableList"
71 71
          border

+ 159 - 90
src/xt_pages/outpatientTool/exportOne.vue Dosyayı Görüntüle

@@ -65,61 +65,78 @@
65 65
           end-placeholder="结束日期"
66 66
         >
67 67
         </el-date-picker>
68
-         <el-button  size="small" type="primary" @click="exportList">导出</el-button>
68
+         <el-button  size="small" type="primary" @click="exportList" style="width:50px">导出</el-button>
69 69
         <el-table
70 70
         :data="tableList"
71 71
          border
72 72
         style="width: 100%">
73 73
          <el-table-column prop="date" label="姓名"  width="100" align="center">
74 74
            <template slot-scope="scope" >
75
-            {{ scope.row.name }}
75
+            {{ scope.row.patient.name }}
76 76
            </template>
77 77
         </el-table-column>
78 78
         <el-table-column  prop="date"  label="身份证"  width="200" align="center">
79 79
            <template slot-scope="scope" >
80
-            {{ scope.row.id_card_no }}
80
+            {{ scope.row.patient.id_card_no }}
81 81
            </template> 
82 82
         </el-table-column>
83 83
         <el-table-column prop="name"  label="医保类型" width="100" align="center">
84 84
           <template slot-scope="scope" >
85
-            <span v-if="scope.row.insutype == 0">居民</span>
86
-            <span v-if="scope.row.insutype == 310">职工</span>
87
-            <span v-if="scope.row.insutype == 390">居民</span>
85
+            <span v-if="scope.row.order.insutype == 0">居民</span>
86
+            <span v-if="scope.row.order.insutype == 310">职工</span>
87
+            <span v-if="scope.row.order.insutype == 390">居民</span>
88 88
            </template>  
89 89
         </el-table-column>
90 90
         <el-table-column  prop="address" label="年"  width="50" align="center">
91 91
           <template slot-scope="scope" >
92
-            {{getTime(scope.row.settle_accounts_date)}}
92
+            {{getTime(scope.row.order.settle_accounts_date)}}
93 93
          </template>  
94 94
         </el-table-column>
95 95
          <el-table-column prop="address" label="月"  width="50"  align="center">
96 96
           <template slot-scope="scope">
97
-            {{getTimeOne(scope.row.settle_accounts_date)}}
97
+            {{getTimeOne(scope.row.order.settle_accounts_date)}}
98 98
            </template>  
99 99
         </el-table-column>
100
-         <el-table-column prop="address" label="收费项目"  width="100" align="center">
100
+         <el-table-column prop="address" label="药品编码"  width="100" align="center">
101 101
            <template slot-scope="scope" >
102
-            <span v-if="scope.row.med_chrgitm_type == '01'">床位费</span>
103
-            <span v-if="scope.row.med_chrgitm_type == '02'">诊察费</span>
104
-            <span v-if="scope.row.med_chrgitm_type == '03'">检查费</span>
105
-            <span v-if="scope.row.med_chrgitm_type == '04'">化验费</span>
106
-            <span v-if="scope.row.med_chrgitm_type == '05'">治疗费</span>
107
-            <span v-if="scope.row.med_chrgitm_type == '06'">手术费</span>
108
-            <span v-if="scope.row.med_chrgitm_type == '08'">材料费</span>
109
-            <span v-if="scope.row.med_chrgitm_type == '09'">西药费</span>
110
-            <span v-if="scope.row.med_chrgitm_type == '11'">中成费</span>
111
-            <span v-if="scope.row.med_chrgitm_type == '14'">其他费</span>
102
+             <span v-if="scope.row.his_doctor_advice.id > 0">
103
+               {{scope.row.his_doctor_advice.id}}
104
+             </span>
105
+             <span v-if="scope.row.his_prescription_project.id > 0">
106
+               {{scope.row.his_prescription_project.id}}
107
+             </span>
112 108
            </template>  
113 109
         </el-table-column>
114
-         <el-table-column prop="address" label="数量"  width="100" align="center">
110
+         <el-table-column prop="address" label="名称"  width="100" align="center">
115 111
            <template slot-scope="scope" >
116
-            {{getCount(scope.row.child)}}
112
+             <span v-if="scope.row.his_doctor_advice.id > 0">
113
+               {{scope.row.his_doctor_advice.advice_name}}
114
+             </span>
115
+             <span v-if="scope.row.his_prescription_project.id > 0">
116
+               {{scope.row.his_prescription_project.good_info.good_name}}
117
+             </span>
117 118
            </template>  
118 119
           </el-table-column>
119 120
        
120
-         <el-table-column  prop="address"  label="金额"  width="130" align="center">
121
+         <el-table-column  prop="address"  label="单位"  width="130" align="center">
121 122
          <template slot-scope="scope" >
122
-            {{getAllPrice(scope.row.child)}}
123
+          
124
+             <span v-if="scope.row.his_doctor_advice.id > 0">
125
+               {{scope.row.his_doctor_advice.prescribing_number_unit}}
126
+             </span>
127
+             <span v-if="scope.row.his_prescription_project.id > 0">
128
+               {{scope.row.his_prescription_project.unit}}
129
+             </span>
130
+           </template>  
131
+        </el-table-column>
132
+        <el-table-column  prop="address"  label="数量"  width="130" align="center">
133
+         <template slot-scope="scope" >
134
+               {{scope.row.cnt}}
135
+           </template>  
136
+        </el-table-column>
137
+       <el-table-column  prop="address"  label="金额"  width="130" align="center">
138
+         <template slot-scope="scope" >   
139
+               {{(scope.row.cnt * scope.row.pric).toFixed(2)}}
123 140
            </template>  
124 141
         </el-table-column>
125 142
          </el-table>
@@ -151,13 +168,14 @@ export default {
151 168
       keywords: "",
152 169
       tableList:[],
153 170
       tableData:[],
154
-     chargeDate: [
171
+      chargeDate: [
155 172
         moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
156 173
         moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
157 174
       ],
158 175
       start_time:"",
159 176
       end_time:"",
160
-
177
+      drugList:[],
178
+      goodList:[],
161 179
     };
162 180
   },
163 181
 
@@ -247,7 +265,19 @@ export default {
247 265
         end_time:this.end_time,
248 266
        } 
249 267
      getHisAdviceOrderList(params).then(response=>{
250
-
268
+        if(response.data.state == 1){
269
+          var arr= []
270
+           var list =  response.data.data.list
271
+           console.log("list2323322323我的",list)
272
+           for(let i=0;i<list.length;i++){
273
+             if(list[i].order.order_status  == 2){
274
+               arr.push(list[i])
275
+             }
276
+           }
277
+           this.tableList = arr
278
+           this.tableData = arr
279
+         
280
+        }
251 281
      })
252 282
     },
253 283
     changeDate(){
@@ -299,71 +329,110 @@ export default {
299 329
         return ""
300 330
       }
301 331
     },
302
-      exportList(){
303
-         import('@/vendor/Export2Excel').then(excel => {
304
-          for(let i=0;i<this.tableData.length;i++){
305
-             if(this.tableData[i].insutype == 310){
306
-              this.tableData[i].insutype = "职工"
307
-             }
308
-             if(this.tableData[i].insutype == 390){
309
-              this.tableData[i].insutype = "居民"
310
-             }
311
-             
312
-             this.tableData[i].year = this.getTime(this.tableData[i].settle_accounts_date)
313
-             this.tableData[i].month = this.getTimeOne(this.tableData[i].settle_accounts_date)
314
-              
315
-             if(this.tableData[i].med_chrgitm_type == "01"){
316
-               this.tableData[i].med_chrgitm_type = "床位费"
317
-             }
318
-             if(this.tableData[i].med_chrgitm_type == "02"){
319
-               this.tableData[i].med_chrgitm_type = "诊察费"
320
-             }
321
-             if(this.tableData[i].med_chrgitm_type == "03"){
322
-               this.tableData[i].med_chrgitm_type = "检查费"
323
-             }
324
-             if(this.tableData[i].med_chrgitm_type == "04"){
325
-               this.tableData[i].med_chrgitm_type = "化验费"
326
-             }
327
-             if(this.tableData[i].med_chrgitm_type == "05"){
328
-               this.tableData[i].med_chrgitm_type = "治疗费"
329
-             }
330
-             if(this.tableData[i].med_chrgitm_type == "06"){
331
-               this.tableData[i].med_chrgitm_type = "治疗费"
332
-             }
333
-             if(this.tableData[i].med_chrgitm_type == "08"){
334
-               this.tableData[i].med_chrgitm_type = "材料费"
335
-             }
336
-             if(this.tableData[i].med_chrgitm_type == "09"){
337
-               this.tableData[i].med_chrgitm_type = "西药费"
338
-             }
339
-             if(this.tableData[i].med_chrgitm_type == "11"){
340
-               this.tableData[i].med_chrgitm_type = "中成费"
341
-             }
342
-             if(this.tableData[i].med_chrgitm_type == "14"){
343
-               this.tableData[i].med_chrgitm_type = "其他费"
344
-             }
345
-             
346
-             this.tableData[i].sum_count = this.getCount(this.tableData[i].child)
347
-
348
-             this.tableData[i].find_price = this.getAllPrice(this.tableData[i].child)
332
+    exportList(){
333
+      import('@/vendor/Export2Excel').then(excel => {
334
+      for(let i=0;i<this.tableData.length;i++){
335
+          if(this.tableData[i].insutype == 310){
336
+          this.tableData[i].insutype = "职工"
337
+          }
338
+          if(this.tableData[i].insutype == 390){
339
+          this.tableData[i].insutype = "居民"
340
+          }
341
+          
342
+          this.tableData[i].year = this.getTime(this.tableData[i].settle_accounts_date)
343
+          this.tableData[i].month = this.getTimeOne(this.tableData[i].settle_accounts_date)
344
+          
345
+          if(this.tableData[i].med_chrgitm_type == "01"){
346
+            this.tableData[i].med_chrgitm_type = "床位费"
349 347
           }
350
-         const tHeader = ['姓名','身份证','医保类型','年','月','收费项目','数量','金额']
351
-         const filterVal = ['name', 'id_card_no','insutype','year','month','med_chrgitm_type','sum_count','find_price']
352
-
353
-         const data = this.formatJson(filterVal,this.tableData)
354
-
355
-         excel.export_json_to_excel({
356
-           header: tHeader,
357
-           data,
358
-           filename: '药品信息'
359
-         })
360
-          this.downloadLoading = false
361
-
362
-        })
363
-       },
364
-       formatJson(filterVal, jsonData) {
365
-        return jsonData.map(v => filterVal.map(j => v[j]))
366
-       },
348
+          if(this.tableData[i].med_chrgitm_type == "02"){
349
+            this.tableData[i].med_chrgitm_type = "诊察费"
350
+          }
351
+          if(this.tableData[i].med_chrgitm_type == "03"){
352
+            this.tableData[i].med_chrgitm_type = "检查费"
353
+          }
354
+          if(this.tableData[i].med_chrgitm_type == "04"){
355
+            this.tableData[i].med_chrgitm_type = "化验费"
356
+          }
357
+          if(this.tableData[i].med_chrgitm_type == "05"){
358
+            this.tableData[i].med_chrgitm_type = "治疗费"
359
+          }
360
+          if(this.tableData[i].med_chrgitm_type == "06"){
361
+            this.tableData[i].med_chrgitm_type = "治疗费"
362
+          }
363
+          if(this.tableData[i].med_chrgitm_type == "08"){
364
+            this.tableData[i].med_chrgitm_type = "材料费"
365
+          }
366
+          if(this.tableData[i].med_chrgitm_type == "09"){
367
+            this.tableData[i].med_chrgitm_type = "西药费"
368
+          }
369
+          if(this.tableData[i].med_chrgitm_type == "11"){
370
+            this.tableData[i].med_chrgitm_type = "中成费"
371
+          }
372
+          if(this.tableData[i].med_chrgitm_type == "14"){
373
+            this.tableData[i].med_chrgitm_type = "其他费"
374
+          }
375
+
376
+        this.tableData[i].name = this.tableData[i].patient.name
377
+        this.tableData[i].id_card_no = this.tableData[i].patient.id_card_no 
378
+        this.tableData[i].total_price = (this.tableData[i].cnt * this.tableData[i].pric).toFixed(2)
379
+        if(this.tableData[i].his_doctor_advice.id > 0){
380
+          this.tableData[i].his_advice_name = this.tableData[i].his_doctor_advice.advice_name
381
+          this.tableData[i].his_prescribing_number_unit = this.tableData[i].his_doctor_advice.prescribing_number_unit
382
+        }
383
+        if(this.tableData[i].his_prescription_project.id > 0){
384
+          this.tableData[i].his_advice_name = this.tableData[i].his_prescription_project.good_info.good_name
385
+          this.tableData[i].his_prescribing_number_unit = this.tableData[i].his_prescription_project.unit
386
+        }
387
+        if(this.tableData[i].order.insutype == 0){
388
+           this.tableData[i].insutype = "居民"
389
+        }
390
+        if(this.tableData[i].order.insutype == 310){
391
+          this.tableData[i].insutype = "职工"
392
+        }
393
+        if(this.tableData[i].order.insutype == 390){
394
+          this.tableData[i].insutype = "居民"
395
+        }
396
+        
397
+        this.tableData[i].year = this.getTime(this.tableData[i].order.settle_accounts_date)
398
+        this.tableData[i].month = this.getTimeOne(this.tableData[i].order.settle_accounts_date)
399
+      }
400
+      const tHeader = ['姓名','身份证','医保类型','年','月','名称','单位','数量','金额']
401
+      const filterVal = ['name', 'id_card_no','insutype','year','month','his_advice_name','his_prescribing_number_unit','cnt','total_price']
402
+
403
+      const data = this.formatJson(filterVal,this.tableData)
404
+
405
+      excel.export_json_to_excel({
406
+        header: tHeader,
407
+        data,
408
+        filename: '药品信息'
409
+      })
410
+      this.downloadLoading = false
411
+
412
+    })
413
+   },
414
+   formatJson(filterVal, jsonData) {
415
+     return jsonData.map(v => filterVal.map(j => v[j]))
416
+    },
417
+    getDrugNumber(drug_id){
418
+      
419
+      var id = ""
420
+      for(let i=0;i<this.drugList.length;i++){
421
+        if(this.drugList[i].id == drug_id){
422
+          id = this.drugList[i].id
423
+        }
424
+      }
425
+      return id
426
+    },
427
+    getGoodNumber(good_id){
428
+      var good_name = ""
429
+      for(let i=0;i<this.goodList.length;i++){
430
+        if(this.goodList[i].id == good_id){
431
+           good_name = this.goodList[i].good_name
432
+        }
433
+      }
434
+      return good_name
435
+    }
367 436
   },
368 437
   created() {
369 438