Browse Source

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

陈少旭 5 days ago
parent
commit
24ac5cfd27
30 changed files with 1890 additions and 96 deletions
  1. 19 0
      src/api/advice.js
  2. 9 0
      src/api/config.js
  3. 9 0
      src/api/pharmacy.js
  4. 35 0
      src/router/modules/dialysis.js
  5. 1 1
      src/xt_pages/Dialysisanalysis/weightblood/components/blood_table.vue
  6. 37 8
      src/xt_pages/Pharmacy/DrugDispensing.vue
  7. 33 2
      src/xt_pages/Pharmacy/PatientDispensing.vue
  8. 34 2
      src/xt_pages/data/basicConfig.vue
  9. 66 0
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  10. 6 1
      src/xt_pages/dialysis/bloodPresssWatch.vue
  11. 4 1
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  12. 2 1
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  13. 367 0
      src/xt_pages/dialysis/doctorAdviceMonthStaticPrint.vue
  14. 309 0
      src/xt_pages/dialysis/doctorAdviceProjectPrint.vue
  15. 411 2
      src/xt_pages/dialysis/newDoctorAdvice.vue
  16. 3 2
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue
  17. 113 35
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  18. 3 3
      src/xt_pages/outpatientDoctorStation/print.vue
  19. 21 14
      src/xt_pages/outpatientDoctorStation/template/printOne.vue
  20. 6 0
      src/xt_pages/stock/detail/cancelStockDetail.vue
  21. 6 0
      src/xt_pages/stock/detail/stockInDetail.vue
  22. 7 0
      src/xt_pages/stock/drugs/components/drugCancelDetail.vue
  23. 6 0
      src/xt_pages/stock/drugs/components/drugInOrder.vue
  24. 0 5
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  25. 2 2
      src/xt_pages/stock/stockInventory.vue
  26. 0 1
      src/xt_pages/user/components/PatientDetail.vue
  27. 0 2
      src/xt_pages/user/components/PatientForm.vue
  28. 3 0
      src/xt_pages/user/dialysisRecord.vue
  29. 348 0
      src/xt_pages/user/dialysisRecordPrint.vue
  30. 30 14
      src/xt_pages/user/doctorAdvice.vue

+ 19 - 0
src/api/advice.js View File

@@ -604,3 +604,22 @@ export function getDocAdviceByPatientId(params){
604 604
     params:params,
605 605
   })
606 606
 }
607
+
608
+
609
+export function getDoctorAdviceMonthList(params){
610
+ 
611
+  return request({
612
+    url:"/api/schedule/getdoctoradvicemonthlist",
613
+    method:"get",
614
+    params:params,
615
+  })
616
+}
617
+
618
+export function getHisPrescrptionProjectMonthList(params){
619
+
620
+  return request({
621
+    url:"/api/schedule/gethisprescriptionprojectmonthlist",
622
+    method:"get",
623
+    params:params
624
+  })
625
+}

+ 9 - 0
src/api/config.js View File

@@ -251,4 +251,13 @@ export function getSelfPrintList(params){
251 251
     method:"get",
252 252
     params:params,
253 253
   })
254
+}
255
+
256
+export function changeDrugCodeOpen(params){
257
+ 
258
+  return request({
259
+    url:"/api/changedrugcodeopen",
260
+    method:"get",
261
+    params:params
262
+  })
254 263
 }

+ 9 - 0
src/api/pharmacy.js View File

@@ -173,4 +173,13 @@ export function updateDrugInventoryWarehouseInfo(params){
173 173
     method:"get",
174 174
     params:params
175 175
   })
176
+}
177
+
178
+export function changeDrugCode(params){
179
+
180
+  return request({
181
+    url:"/api/pharmacy/changedrugcode",
182
+    method:"get",
183
+    params:params,
184
+  })
176 185
 }

+ 35 - 0
src/router/modules/dialysis.js View File

@@ -120,6 +120,30 @@ export default {
120 120
       }
121 121
     },
122 122
 
123
+    {
124
+      path: '/dialysis/doctorMonthAdviceStaticPrint',
125
+      component: () => import('@/xt_pages/dialysis/doctorAdviceMonthStaticPrint'),
126
+      name: '透析医嘱月统计打印',
127
+      hidden: true,
128
+      is_menu: false,
129
+      meta: {
130
+        title: '透析医嘱月统计打印',
131
+        noCache: true
132
+      }
133
+    },
134
+
135
+    {
136
+      path: '/dialysis/dialysisRecordPrint',
137
+      component: () => import('@/xt_pages/user/dialysisRecordPrint'),
138
+      name: '并发症打印',
139
+      hidden: true,
140
+      is_menu: false,
141
+      meta: {
142
+        title: '并发症打印',
143
+        noCache: true
144
+      }
145
+    },
146
+
123 147
     {
124 148
       path: '/dialysis/doctorNewAdviceStaticPrint',
125 149
       component: () => import('@/xt_pages/dialysis/doctorNewAdviceStaticPrint'),
@@ -155,6 +179,17 @@ export default {
155 179
         noCache: true
156 180
       }
157 181
     },
182
+    {
183
+      path: '/dialysis/doctocAdviceProjectPrint',
184
+      component: () => import('@/xt_pages/dialysis/doctorAdviceProjectPrint'),
185
+      name: '透析耗材统计打印',
186
+      hidden: true,
187
+      is_menu: false,
188
+      meta: {
189
+        title: '透析耗材统计打印',
190
+        noCache: true
191
+      }
192
+    },
158 193
 
159 194
     {
160 195
       path: '/dialysis/signPrint',

+ 1 - 1
src/xt_pages/Dialysisanalysis/weightblood/components/blood_table.vue View File

@@ -53,7 +53,7 @@
53 53
               </el-select>
54 54
             </div>
55 55
             <div>
56
-              患者状态:
56
+              统计类型:
57 57
               <el-select v-model="blood_value" placeholder="请选择" style="width: 100px;">
58 58
                 <el-option :key="0" label="不限" :value="0"></el-option>
59 59
                 <el-option

+ 37 - 8
src/xt_pages/Pharmacy/DrugDispensing.vue View File

@@ -195,14 +195,14 @@
195 195
             <el-table-column
196 196
               type="index"
197 197
               label="序号"
198
-              width="120"
198
+              width="50"
199 199
               align="center"
200 200
             >
201 201
             </el-table-column>
202 202
             <el-table-column
203 203
               prop="name"
204 204
               label="患者名称"
205
-              width="180"
205
+              width="100"
206 206
               align="center"
207 207
             >
208 208
               <template slot-scope="scope">
@@ -212,7 +212,7 @@
212 212
             <el-table-column
213 213
               prop="name"
214 214
               label="单次用量"
215
-              width="170"
215
+              width="100"
216 216
               align="center"
217 217
             >
218 218
               <template slot-scope="scope">
@@ -222,7 +222,7 @@
222 222
             <el-table-column
223 223
               prop="name"
224 224
               label="用法"
225
-              width="160"
225
+              width="100"
226 226
               align="center"
227 227
             >
228 228
               <template slot-scope="scope">
@@ -232,7 +232,7 @@
232 232
             <el-table-column
233 233
               prop="name"
234 234
               label="频率"
235
-              width="160"
235
+              width="100"
236 236
               align="center"
237 237
             >
238 238
               <template slot-scope="scope">
@@ -242,7 +242,7 @@
242 242
             <el-table-column
243 243
               prop="name"
244 244
               label="天数"
245
-              width="160"
245
+              width="100"
246 246
               align="center"
247 247
             >
248 248
               <template slot-scope="scope">
@@ -252,17 +252,22 @@
252 252
             <el-table-column
253 253
               prop="name"
254 254
               label="总量"
255
-              width="160"
255
+              width="100"
256 256
               align="center"
257 257
             >
258 258
               <template slot-scope="scope">
259 259
                 {{ scope.row.total }}
260 260
               </template>
261 261
             </el-table-column>
262
+            <el-table-column label="药品追溯码" width="162" align="center">
263
+              <template slot-scope="scope">
264
+                 <el-input style="width: 100;" v-model="scope.row.DrugCode" @input="changeDrugCode(scope.row.ID,scope.row.DataSources,scope.row.DrugCode)"></el-input>
265
+              </template>
266
+            </el-table-column>
262 267
             <el-table-column
263 268
               prop="name"
264 269
               label="数据来源"
265
-              width="162"
270
+              width="102"
266 271
               align="center"
267 272
             >
268 273
               <template slot-scope="scope">
@@ -454,6 +459,7 @@ import {
454 459
   getcurrentname,
455 460
   getpartitionlist,
456 461
   routeofadministration,
462
+  changeDrugCode
457 463
 } from "@/api/pharmacy";
458 464
 const moment = require("moment");
459 465
 export default {
@@ -506,6 +512,29 @@ export default {
506 512
   },
507 513
 
508 514
   methods: {
515
+    changeDrugCode(id,DataSources,drug_code){
516
+       var is_source =0
517
+       if (DataSources == "his处方"){
518
+        is_source = 1
519
+       }
520
+       if (DataSources == "临时医嘱"){
521
+         is_source = 2
522
+       }
523
+       var params = {
524
+        id:id,
525
+        data_source:is_source,
526
+        drug_code:drug_code,
527
+       }
528
+       console.log("paramss",params)
529
+      
530
+      changeDrugCode(params).then(response=>{
531
+         if(response.data.state == 1){
532
+            this.$message.success("保存成功!")
533
+         }
534
+      })
535
+    
536
+
537
+    },
509 538
     tt() {},
510 539
     async fun3() {
511 540
       this.fun1().then((val) => {

+ 33 - 2
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -178,11 +178,11 @@
178 178
             <el-table-column
179 179
               type="index"
180 180
               label="序号"
181
-              width="120"
181
+              width="50"
182 182
               align="center"
183 183
             >
184 184
             </el-table-column>
185
-            <el-table-column label="名称" width="200" align="center">
185
+            <el-table-column label="名称" width="100" align="center">
186 186
               <template slot-scope="scope">
187 187
                 <span>{{ scope.row.Name ? scope.row.Name : "" }}</span>
188 188
               </template>
@@ -226,6 +226,11 @@
226 226
                 <span>{{ getManutuer(scope.row.DrugId) }}</span>
227 227
               </template>
228 228
             </el-table-column>
229
+            <el-table-column label="药品追溯码" width="162" align="center">
230
+              <template slot-scope="scope">
231
+                 <el-input style="width: 100;" v-model="scope.row.DrugCode" @input="changeDrugCode(scope.row.ID,scope.row.DataSources,scope.row.DrugCode)"></el-input>
232
+              </template>
233
+            </el-table-column>
229 234
             <el-table-column label="开立医生" width="150" align="center">
230 235
               <template slot-scope="scope">
231 236
                 <span>{{ scope.row.Doctor ? scope.row.Doctor : "" }}</span>
@@ -243,6 +248,8 @@
243 248
                 <span>{{getDrugName(scope.row.DrugId)}}</span>
244 249
               </template>
245 250
             </el-table-column>
251
+
252
+        
246 253
             <el-table-column label="备注" width="170" align="center">
247 254
               <template slot-scope="scope">
248 255
                 <span>{{ scope.row.Remarks ? scope.row.Remarks : "" }}</span>
@@ -304,7 +311,9 @@ import {
304 311
   dispensingmedicine,
305 312
   drugwithdrawal,
306 313
   getpartitionlist,
314
+  changeDrugCode
307 315
 } from "@/api/pharmacy";
316
+import dataDruguse from "../../router/modules/dataDruguse";
308 317
 const moment = require("moment");
309 318
 export default {
310 319
   components: {
@@ -792,6 +801,28 @@ export default {
792 801
          }
793 802
        }
794 803
        return spc
804
+    },
805
+    changeDrugCode(id,DataSources,drug_code){
806
+       var is_source =0
807
+       if (DataSources == "his处方"){
808
+        is_source = 1
809
+       }
810
+       if (DataSources == "临时医嘱"){
811
+         is_source = 2
812
+       }
813
+       var params = {
814
+        id:id,
815
+        data_source:is_source,
816
+        drug_code:drug_code,
817
+       }
818
+       console.log("paramss",params)
819
+      changeDrugCode(params).then(response=>{
820
+         if(response.data.state == 1){
821
+            this.$message.success("保存成功!")
822
+         }
823
+      })
824
+    
825
+
795 826
     }
796 827
   },
797 828
 };

+ 34 - 2
src/xt_pages/data/basicConfig.vue View File

@@ -57,6 +57,11 @@
57 57
             <p style="margin-top:20px;">药品在执行时自备药出库:
58 58
                <el-switch v-model="self_drug_out_open" @change="changeSelfPrescriptionOutOpen"></el-switch>
59 59
             </p>
60
+
61
+            
62
+            <p style="margin-top:20px;">药品在患者发药显示:
63
+               <el-switch v-model="drug_code_open" @change="changeDrugCodeOpen"></el-switch>
64
+            </p>
60 65
         </div>
61 66
 
62 67
 
@@ -112,7 +117,7 @@
112 117
 
113 118
 <script>
114 119
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
115
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig,changeSettleOpenConfig,changeGoodOutOpen,changeSelfPrescriptionOpen,changeSelfPrescriptionOutOpen,getSelfPrintList} from '@/api/config'
120
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig,changeSettleOpenConfig,changeGoodOutOpen,changeSelfPrescriptionOpen,changeSelfPrescriptionOutOpen,getSelfPrintList,changeDrugCodeOpen} from '@/api/config'
116 121
 
117 122
 export default {
118 123
   name: "printTemplate",
@@ -137,7 +142,8 @@ export default {
137 142
       drug_settle_open:false,
138 143
       good_out_open:false,
139 144
       self_prescription_out_open:false,
140
-      self_drug_out_open:false
145
+      self_drug_out_open:false,
146
+      drug_code_open:false,
141 147
     };
142 148
   },
143 149
   methods: {
@@ -195,6 +201,12 @@ export default {
195 201
               this.good_out_open = false
196 202
             }
197 203
 
204
+            if(response.data.data.is_code_open == 1){
205
+               this.drug_code_open = true
206
+            }else{
207
+                this.drug_code_open = false
208
+            }
209
+
198 210
           } else {
199 211
             this.$message.error(response.data.msg)
200 212
           }
@@ -536,7 +548,27 @@ export default {
536 548
            }
537 549
         }
538 550
       })
551
+    },
552
+    changeDrugCodeOpen(){
553
+
554
+      var drug_out_open = 0 
555
+        if(this.drug_code_open == true){
556
+          drug_out_open = 1
557
+        }
558
+        if(this.drug_code_open == false){
559
+          drug_out_open = 2
560
+        }
561
+        var params = {
562
+          is_open:drug_out_open,
563
+        }
564
+      changeDrugCodeOpen(params).then(response=>{
565
+         if(response.data.state ==1){
566
+           var drugCodeOpen = response.data.data.drugCodeOpen
567
+           this.$message.success("保存成功!")
568
+         }
569
+      })
539 570
     }
571
+    
540 572
   },
541 573
   created() {
542 574
     this.getInitIsOpenConfig()

+ 66 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -825,6 +825,72 @@
825 825
                           >
826 826
                           HDF1000
827 827
                           </div>
828
+                          <div
829
+                            class="under_line"
830
+                            style="
831
+                              width: 100px;
832
+                              text-align: center;
833
+                              font-weight: 600;
834
+                            "
835
+                            v-if="record.prescription.mode_id == 38"
836
+                          >
837
+                          HDF80
838
+                          </div>
839
+                          <div
840
+                            class="under_line"
841
+                            style="
842
+                              width: 100px;
843
+                              text-align: center;
844
+                              font-weight: 600;
845
+                            "
846
+                            v-if="record.prescription.mode_id == 39"
847
+                          >
848
+                          HF16
849
+                          </div>
850
+                          <div
851
+                            class="under_line"
852
+                            style="
853
+                              width: 100px;
854
+                              text-align: center;
855
+                              font-weight: 600;
856
+                            "
857
+                            v-if="record.prescription.mode_id == 40"
858
+                          >
859
+                           HD(无肝素)
860
+                          </div>
861
+                          <div
862
+                            class="under_line"
863
+                            style="
864
+                              width: 100px;
865
+                              text-align: center;
866
+                              font-weight: 600;
867
+                            "
868
+                            v-if="record.prescription.mode_id == 41"
869
+                          >
870
+                           HDF17H
871
+                          </div>
872
+                          <div
873
+                            class="under_line"
874
+                            style="
875
+                              width: 100px;
876
+                              text-align: center;
877
+                              font-weight: 600;
878
+                            "
879
+                            v-if="record.prescription.mode_id == 42"
880
+                          >
881
+                           HD.
882
+                          </div>
883
+                          <div
884
+                            class="under_line"
885
+                            style="
886
+                              width: 100px;
887
+                              text-align: center;
888
+                              font-weight: 600;
889
+                            "
890
+                            v-if="record.prescription.mode_id == 43"
891
+                          >
892
+                          HD(2)
893
+                          </div>
828 894
                         </div>
829 895
                       </div>
830 896
 

+ 6 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -615,7 +615,8 @@
615 615
         </div>
616 616
       </div>
617 617
 
618
-      <div style="margin-left: 1050px; margin-bottom: 10px;">
618
+      <div style="margin-left: 1100px; margin-bottom: 10px;">
619
+        <el-button type="primary" size="small" @click="printOrder">透析并发症登记打印</el-button>
619 620
         <el-button type="primary" size="small" @click="toExport">导出</el-button>
620 621
       </div>
621 622
 
@@ -1884,6 +1885,10 @@ export default {
1884 1885
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
1885 1886
   },
1886 1887
   methods: {
1888
+   
1889
+    printOrder(){
1890
+      this.$router.push({ path: "/dialysis/dialysisRecordPrint",query:{page:this.listQuery.page,limit:this.listQuery.limit,schedul_type:this.listQuery.schedul_type,partition_type:this.listQuery.partition_type,schedul_time:this.listQuery.schedul_time,keywords:this.listQuery.keywords,start_time:this.listQuery.start_time,end_time:this.listQuery.end_time}} );
1891
+    },
1887 1892
     getTemplateInfo() {
1888 1893
       getPrintTemplate().then(response => {
1889 1894
         if (response.data.state == 0) {

+ 4 - 1
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -23,7 +23,10 @@
23 23
          <li v-if="isShow('置换速度')&& this.$store.getters.xt_user.template_info.org_id!=10375">
24 24
           <label>置换速度 : </label>
25 25
           <span class="content">{{displace_speed }}</span>
26
-            <span class="unit">L/h</span>
26
+            <span class="unit">
27
+              <span v-if="this.$store.getters.xt_user.template_info.org_id!=10414">L/h</span>
28
+              <span v-if="this.$store.getters.xt_user.template_info.org_id==10414">ml/min</span>
29
+            </span>
27 30
         </li>
28 31
 
29 32
         <li v-if="isShow('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375">

+ 2 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -4739,7 +4739,8 @@ mu
4739 4739
         id === 14 ||
4740 4740
         id === 15 ||
4741 4741
         id === 16 ||
4742
-        id === 19
4742
+        id === 19 ||
4743
+        id === 42
4743 4744
       ) {
4744 4745
         this.zhiShow = false
4745 4746
         this.huShow = false

+ 367 - 0
src/xt_pages/dialysis/doctorAdviceMonthStaticPrint.vue View File

@@ -0,0 +1,367 @@
1
+<template>
2
+    <div class="main-contain">
3
+      <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+          <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+          </el-col>
9
+        </el-row>
10
+      </div>
11
+      <div class="app-container" style="background-color: white;">
12
+  
13
+        <div id="print_content">
14
+          <div class="print_main_content">
15
+            <div class="order_title_panl">
16
+              <span class="main_title"> &nbsp;
17
+                透析药品
18
+              </span>
19
+              <span  style="float:right;">打印日期: &nbsp;
20
+                  {{ getNowTime() }}
21
+              </span>
22
+            </div>
23
+            <div class="table_panel">
24
+  
25
+              <table class="table">
26
+                <thead>
27
+                <tr>
28
+                  <td width="50">序号</td>
29
+                  <td width="100">药品名称</td>
30
+                  <td width="100">规格</td>
31
+                  <td width="100">数量</td>
32
+                  <td width="100">厂家</td>
33
+                </tr>
34
+                </thead>
35
+                <tbody>
36
+                 <tr v-for="(item,i) in tableMonthList" :key="i">
37
+                  <td>{{i+1}}</td>
38
+                  <td>{{item.advice_name}}</td>
39
+                   <td>{{item.specification_name}}</td>
40
+                  <td>
41
+                    <span v-if="config.is_open == 1">{{getHisCount(item.child,item.max_unit,item.min_unit,item.min_number)}}</span>
42
+                    <span v-if="config.is_open != 1">{{getCount(item.child)}}</span>
43
+                  </td>
44
+                  <td width="100">{{item.manufacturer_name}}</td>
45
+                 </tr>
46
+                </tbody>
47
+              </table>
48
+            </div>
49
+          </div>
50
+        </div>
51
+      </div>
52
+    </div>
53
+  </template>
54
+  
55
+  <script>
56
+    import { getDoctorAdviceMonthList } from '@/api/advice'
57
+    import { parseTime } from '@/utils'
58
+    import { uParseTime } from '@/utils/tools'
59
+    import BreadCrumb from '@/xt_pages/components/bread-crumb'
60
+    import print from 'print-js'
61
+    import { getDataConfig } from '@/utils/data'
62
+    export default {
63
+      name: 'SchedulePrint',
64
+      data() {
65
+        return {
66
+          crumbs: [
67
+            { path: false, name: '排班管理' },
68
+            { path: false, name: '排班打印' }
69
+          ],
70
+          td_1_width: '8%',
71
+          td_2_width: '8%',
72
+          td_3_width: '64%',
73
+          td_4_width: '20%',
74
+          month: 1,
75
+          begin_day: 1,
76
+          total:[],
77
+          list:[],
78
+          schedule_date:"",
79
+          schedule_type:0,
80
+          partition_type:0,
81
+          keywords:"",
82
+          loading:false,
83
+          tableData:[],
84
+          numberList:[],
85
+          partitionArr:[],
86
+          his_config:{},
87
+          typeList:[],
88
+          rowList:[],
89
+          dialysate_formulation:[],
90
+          body_fluid_option:[],
91
+          displace_liqui_part_option:[],
92
+          blood_access_option:[],
93
+          hemodialysisPipelinesOptions:[],
94
+          tableList:[],
95
+          druglist:[],
96
+          config:{},
97
+          org_id:0,
98
+          manufacturerList:[],
99
+          tableMonthList:[]
100
+        }
101
+      },
102
+      components: {
103
+        BreadCrumb
104
+      },
105
+      created() {
106
+        this.org_id = this.$store.getters.xt_user.template_info.org_id;
107
+        this.getlist()
108
+      },
109
+      methods: {
110
+       getNowTime: function () {
111
+        let dateTime;
112
+        let yy = new Date().getFullYear();
113
+        let mm = new Date().getMonth() + 1;
114
+        let dd = new Date().getDate();
115
+        
116
+        dateTime = yy + '-' + mm + '-' + dd
117
+        return dateTime
118
+       },
119
+        getlist(){
120
+        var params = {
121
+          start_time:this.$route.query.start_time,
122
+          end_time:this.$route.query.end_time
123
+        }
124
+        getDoctorAdviceMonthList(params).then(response=>{
125
+          if(response.data.state == 1){
126
+            var config = response.data.data.config
127
+            this.config = {}
128
+            this.config = config
129
+            var drugs = response.data.data.drugs
130
+            this.druglist = []
131
+            this.druglist = drugs
132
+            var manufacturerList =  response.data.data.manufacturerList
133
+            this.manufacturerList = []
134
+            this.manufacturerList = manufacturerList
135
+            var adviceMonthList = response.data.data.adviceList
136
+            var hisAdviceMonthList = response.data.data.hisAdviceList
137
+            if(config.is_open == 1){
138
+               
139
+              if(hisAdviceMonthList!=null && hisAdviceMonthList.length>0){
140
+                let dataInfo = {}
141
+                hisAdviceMonthList.forEach((item, index) => {
142
+                let { drug_id } = item
143
+                if (!dataInfo[drug_id])  {
144
+                  dataInfo[drug_id] = {
145
+                    drug_id:item.drug_id,
146
+                    advice_name:item.advice_name,
147
+                    manufacturer_name:this.getManufacturer(item.drug.manufacturer),
148
+                    specification_name:item.drug.dose + item.drug.dose_unit +"*"+item.drug.min_number+item.drug.min_unit+"/"+item.drug.max_unit,
149
+                    max_unit:item.drug.max_unit,
150
+                    min_unit:item.drug.min_unit,
151
+                    min_number:item.drug.min_number,
152
+                    child: [],
153
+                  }
154
+                }
155
+               })
156
+                let newArr = Object.values(dataInfo)
157
+                console.log("newArr----------------",newArr)
158
+                if(newArr!=null && newArr.length>0){
159
+                   for(let i=0;i<newArr.length;i++){
160
+                     for(let j=0;j<hisAdviceMonthList.length;j++){
161
+                       if(newArr[i].drug_id == hisAdviceMonthList[j].drug_id){
162
+                           newArr[i].child.push(hisAdviceMonthList[j])
163
+                       }
164
+                     }
165
+                   }
166
+                }
167
+                this.tableMonthList = []
168
+                this.tableMonthList = newArr
169
+
170
+              }
171
+            }
172
+
173
+            if(config.is_open == 2 || config.is_open ==0){
174
+             
175
+              if(adviceMonthList!=null && adviceMonthList.length>0){
176
+                 
177
+                if(adviceMonthList!=null && adviceMonthList.length > 0){
178
+                  let dataInfo = {}
179
+                  adviceMonthList.forEach((item, index) => {
180
+                  item.advice_name = item.advice_name.replace(/\s/g,"")
181
+                  let { advice_name } = item
182
+                  if (!dataInfo[advice_name]) {
183
+                      dataInfo[advice_name] = {
184
+                      advice_name:item.advice_name,
185
+                      child: [],
186
+                      count:0,
187
+                      specification_name:item.advice_desc +item.drug_spec_unit,
188
+                      manufacturer_name:""
189
+                    }
190
+                  }
191
+                  })
192
+                  let arr = Object.values(dataInfo)
193
+                  for(let i=0;i<arr.length;i++){
194
+                    for(let j=0;j<adviceMonthList.length;j++){
195
+                    if(arr[i].advice_name == adviceMonthList[j].advice_name){
196
+                        arr[i].child.push(adviceMonthList[j])
197
+                    }
198
+                  }
199
+                  }
200
+                   this.tableMonthList = []
201
+                   this.tableMonthList = arr
202
+                   console.log("hhhhhhhhhhhhhh",this.tableMonthList)
203
+                  }
204
+              }
205
+            }
206
+          }
207
+        })
208
+
209
+
210
+        console.log("params-=----",params)
211
+
212
+      },
213
+       getTimeOne(val) {
214
+          if(val == ""){
215
+          return ""
216
+          }else {
217
+          return uParseTime(val, '{y}-{m}-{d}')
218
+          }
219
+       },
220
+       getCount(val){
221
+         var count = 0
222
+         if(val!=null && val.length > 0){
223
+          for(let i=0;i<val.length;i++){
224
+            count += parseInt(val[i].prescribing_number)
225
+          }
226
+         }
227
+         if(count > 0){
228
+          return count
229
+         }else{
230
+          return 0
231
+         }
232
+       },
233
+      printAction: function() {
234
+      const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
235
+  
236
+      printJS({
237
+          printable: 'print_content',
238
+          type: 'html',
239
+          documentTitle: '  ',
240
+          style: style,
241
+          scanStyles: false
242
+       })
243
+      },
244
+      getSpecification(id){
245
+          var specification_name = ""
246
+          for(let i=0;i<this.druglist.length;i++){
247
+            if(id == this.druglist[i].id){
248
+              specification_name = this.druglist[i].dose+this.druglist[i].dose_unit +"*"+this.druglist[i].min_number+this.druglist[i].min_unit +"/"+this.druglist[i].max_unit
249
+            }
250
+          }
251
+          return specification_name
252
+        },
253
+       getHisCount(val,max_unit,min_unit,min_number){
254
+          var total = 0
255
+          var max_str = "";
256
+          var min_str = "";
257
+          for(let i=0;i<val.length;i++){
258
+            total+=parseInt(val[i].prescribing_number)
259
+          }
260
+          if (total < min_number) {
261
+          min_str = total + min_unit;
262
+        }
263
+        if (total == 0) {
264
+          min_str = "";
265
+          max_str = "";
266
+        }
267
+        if (total >= min_number) {
268
+          if (parseInt(total / min_number) != 0) {
269
+            max_str = parseInt(total / min_number) + max_unit;
270
+          }
271
+          if (total % min_number != 0) {
272
+            min_str = (total % min_number) + min_unit;
273
+          }
274
+        }
275
+        return max_str + min_str;
276
+          
277
+        },
278
+        getManufacturer(id){
279
+          var  manufacturer_name = ""
280
+          for(let i=0;i<this.manufacturerList.length;i++){
281
+              if(id== this.manufacturerList[i].id){
282
+                manufacturer_name = this.manufacturerList[i].manufacturer_name
283
+              }
284
+          }
285
+          return manufacturer_name
286
+      }
287
+     }
288
+    }
289
+  </script>
290
+  
291
+  <style rel="stylesheet/scss" lang="scss" scoped>
292
+    .print_main_content {
293
+      background-color: white;
294
+      width: 960px;
295
+      margin: 0 auto;
296
+      padding: 0 0 20px 0;
297
+  
298
+    .order_title_panl {
299
+      text-align: center;
300
+  
301
+    .main_title {
302
+      font-size: 18px;
303
+      line-height: 40px;
304
+      font-weight: 500;
305
+    }
306
+  
307
+    }
308
+    .table_panel {
309
+  
310
+    .table {
311
+      width: 100%;
312
+      border: 1px solid;
313
+      border-collapse: collapse;
314
+      padding: 2px;
315
+  
316
+    thead {
317
+  
318
+    tr {
319
+  
320
+    td {
321
+      border: 1px solid;
322
+      text-align: center;
323
+      font-size: 20px;
324
+      padding: 15px 5px;
325
+    }
326
+  
327
+    }
328
+    }
329
+    tbody {
330
+  
331
+    tr {
332
+  
333
+    td {
334
+      border: 1px solid;
335
+      text-align: center;
336
+      font-size: 18px;
337
+      padding: 10px 5px;
338
+  
339
+    .proj {
340
+      padding: 5px 0;
341
+      text-align: left;
342
+  
343
+    .proj_title {
344
+      font-size: 16px;
345
+      font-weight: 500;
346
+      line-height: 25px;
347
+    }
348
+  
349
+    .proj_item {
350
+      font-size: 15px;
351
+      line-height: 20px;
352
+  
353
+    .zone_name {
354
+      font-weight: 500;
355
+    }
356
+  
357
+    }
358
+    }
359
+    }
360
+    }
361
+    }
362
+    }
363
+    }
364
+    }
365
+  </style>
366
+  
367
+  

+ 309 - 0
src/xt_pages/dialysis/doctorAdviceProjectPrint.vue View File

@@ -0,0 +1,309 @@
1
+<template>
2
+    <div class="main-contain">
3
+      <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+          <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+          </el-col>
9
+        </el-row>
10
+      </div>
11
+      <div class="app-container" style="background-color: white;">
12
+  
13
+        <div id="print_content">
14
+          <div class="print_main_content">
15
+            <div class="order_title_panl">
16
+              <span class="main_title"> &nbsp;
17
+                透析耗材
18
+              </span>
19
+              <span  style="float:right;">打印日期: &nbsp;
20
+                {{ getNowTime() }}
21
+              </span>
22
+            </div>
23
+            <div class="table_panel">
24
+  
25
+              <table class="table">
26
+                <thead>
27
+                <tr>
28
+                  <td width="50">序号</td>
29
+                  <td width="100">耗材名称</td>
30
+                  <td width="100">规格</td>
31
+                  <td width="100">数量</td>
32
+                  
33
+                </tr>
34
+                </thead>
35
+                <tbody>
36
+                 <tr v-for="(item,i) in tableProjectList" :key="i">
37
+                  <td>{{i+1}}</td>
38
+                  <td>{{item.good_name}}</td>
39
+                   <td>{{item.specification_name}}</td>
40
+                  <td>
41
+                    {{item.count}}
42
+                  </td>
43
+                 </tr>
44
+                </tbody>
45
+              </table>
46
+            </div>
47
+          </div>
48
+        </div>
49
+      </div>
50
+    </div>
51
+  </template>
52
+  
53
+  <script>
54
+    import { getHisPrescrptionProjectMonthList  } from '@/api/advice'
55
+    import { parseTime } from '@/utils'
56
+    import { uParseTime } from '@/utils/tools'
57
+    import BreadCrumb from '@/xt_pages/components/bread-crumb'
58
+    import print from 'print-js'
59
+    import { getDataConfig } from '@/utils/data'
60
+    export default {
61
+      name: 'SchedulePrint',
62
+      data() {
63
+        return {
64
+          crumbs: [
65
+            { path: false, name: '排班管理' },
66
+            { path: false, name: '排班打印' }
67
+          ],
68
+          td_1_width: '8%',
69
+          td_2_width: '8%',
70
+          td_3_width: '64%',
71
+          td_4_width: '20%',
72
+          month: 1,
73
+          begin_day: 1,
74
+          total:[],
75
+          list:[],
76
+          schedule_date:"",
77
+          schedule_type:0,
78
+          partition_type:0,
79
+          keywords:"",
80
+          loading:false,
81
+          tableData:[],
82
+          numberList:[],
83
+          partitionArr:[],
84
+          his_config:{},
85
+          typeList:[],
86
+          rowList:[],
87
+          dialysate_formulation:[],
88
+          body_fluid_option:[],
89
+          displace_liqui_part_option:[],
90
+          blood_access_option:[],
91
+          hemodialysisPipelinesOptions:[],
92
+          tableList:[],
93
+          druglist:[],
94
+          config:{},
95
+          tableProjectList:[]
96
+        }
97
+      },
98
+      components: {
99
+        BreadCrumb
100
+      },
101
+      created() {
102
+        this.getlist()
103
+      },
104
+      methods: {
105
+       getNowTime: function () {
106
+            let dateTime;
107
+            let yy = new Date().getFullYear();
108
+            let mm = new Date().getMonth() + 1;
109
+            let dd = new Date().getDate();
110
+            
111
+            dateTime = yy + '-' + mm + '-' + dd
112
+            return dateTime
113
+       },
114
+       getlist(){
115
+        var params = {
116
+          start_time:this.$route.query.start_time,
117
+          end_time:this.$route.query.end_time
118
+        }
119
+        getHisPrescrptionProjectMonthList(params).then(response=>{
120
+          if(response.data.state ==1){
121
+            var projectMonthList = response.data.data.projectMonthList
122
+            console.log("projectMonthList",projectMonthList)
123
+
124
+            if(projectMonthList!=null && projectMonthList.length>0){
125
+              
126
+              let dataInfo = {}
127
+              projectMonthList.forEach((item, index) => {
128
+              let { project_id } = item
129
+              if (!dataInfo[project_id]) {
130
+                dataInfo[project_id] = {
131
+                  project_id:item.project_id,
132
+                  good_name:item.good_info.good_name,
133
+                  specification_name:item.good_info.specification_name,
134
+                  child: [],
135
+                  count:0,
136
+                }
137
+              }
138
+            })
139
+            let arr = Object.values(dataInfo)
140
+
141
+            if(arr!=null && arr.length >0){
142
+                for(let i =0;i<arr.length;i++){
143
+                  for(let j=0;j<projectMonthList.length;j++){
144
+                    if(arr[i].project_id == projectMonthList[j].project_id){
145
+                        arr[i].child.push(projectMonthList[j])
146
+                    }
147
+                  }
148
+                }
149
+                for(let i =0;i<arr.length;i++){
150
+                  for(let j=0;j<arr[i].child.length;j++){
151
+                    arr[i].count += parseInt(arr[i].child[j].count)
152
+                  }
153
+                }
154
+
155
+                console.log("arr0000000000000000000000",arr)
156
+                this.tableProjectList = []
157
+                this.tableProjectList = arr
158
+
159
+             }
160
+            }
161
+          }
162
+        })
163
+       },
164
+       getTimeOne(val) {
165
+          if(val == ""){
166
+          return ""
167
+          }else {
168
+          return uParseTime(val, '{y}-{m}-{d}')
169
+          }
170
+       },
171
+       getCount(val){
172
+         var count = 0
173
+         if(val!=null && val.length > 0){
174
+          for(let i=0;i<val.length;i++){
175
+            count += parseInt(val[i].prescribing_number)
176
+          }
177
+         }
178
+         if(count > 0){
179
+          return count
180
+         }else{
181
+          return 0
182
+         }
183
+       },
184
+      printAction: function() {
185
+      const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
186
+  
187
+      printJS({
188
+          printable: 'print_content',
189
+          type: 'html',
190
+          documentTitle: '  ',
191
+          style: style,
192
+          scanStyles: false
193
+       })
194
+      },
195
+      getSpecification(id){
196
+          var specification_name = ""
197
+          for(let i=0;i<this.druglist.length;i++){
198
+            if(id == this.druglist[i].id){
199
+              specification_name = this.druglist[i].dose+this.druglist[i].dose_unit +"*"+this.druglist[i].min_number+this.druglist[i].min_unit +"/"+this.druglist[i].max_unit
200
+            }
201
+          }
202
+          return specification_name
203
+        },
204
+       getHisCount(val,max_unit,min_unit,min_number){
205
+          var total = 0
206
+          var max_str = "";
207
+          var min_str = "";
208
+          for(let i=0;i<val.length;i++){
209
+            total+=parseInt(val[i].prescribing_number)
210
+          }
211
+          if (total < min_number) {
212
+          min_str = total + min_unit;
213
+        }
214
+        if (total == 0) {
215
+          min_str = "";
216
+          max_str = "";
217
+        }
218
+        if (total >= min_number) {
219
+          if (parseInt(total / min_number) != 0) {
220
+            max_str = parseInt(total / min_number) + max_unit;
221
+          }
222
+          if (total % min_number != 0) {
223
+            min_str = (total % min_number) + min_unit;
224
+          }
225
+        }
226
+        return max_str + min_str;
227
+          
228
+        },
229
+     }
230
+    }
231
+  </script>
232
+  
233
+  <style rel="stylesheet/scss" lang="scss" scoped>
234
+    .print_main_content {
235
+      background-color: white;
236
+      width: 960px;
237
+      margin: 0 auto;
238
+      padding: 0 0 20px 0;
239
+  
240
+    .order_title_panl {
241
+      text-align: center;
242
+  
243
+    .main_title {
244
+      font-size: 18px;
245
+      line-height: 40px;
246
+      font-weight: 500;
247
+    }
248
+  
249
+    }
250
+    .table_panel {
251
+  
252
+    .table {
253
+      width: 100%;
254
+      border: 1px solid;
255
+      border-collapse: collapse;
256
+      padding: 2px;
257
+  
258
+    thead {
259
+  
260
+    tr {
261
+  
262
+    td {
263
+      border: 1px solid;
264
+      text-align: center;
265
+      font-size: 20px;
266
+      padding: 15px 5px;
267
+    }
268
+  
269
+    }
270
+    }
271
+    tbody {
272
+  
273
+    tr {
274
+  
275
+    td {
276
+      border: 1px solid;
277
+      text-align: center;
278
+      font-size: 18px;
279
+      padding: 10px 5px;
280
+  
281
+    .proj {
282
+      padding: 5px 0;
283
+      text-align: left;
284
+  
285
+    .proj_title {
286
+      font-size: 16px;
287
+      font-weight: 500;
288
+      line-height: 25px;
289
+    }
290
+  
291
+    .proj_item {
292
+      font-size: 15px;
293
+      line-height: 20px;
294
+  
295
+    .zone_name {
296
+      font-weight: 500;
297
+    }
298
+  
299
+    }
300
+    }
301
+    }
302
+    }
303
+    }
304
+    }
305
+    }
306
+    }
307
+  </style>
308
+  
309
+  

+ 411 - 2
src/xt_pages/dialysis/newDoctorAdvice.vue View File

@@ -187,8 +187,13 @@
187 187
 
188 188
         <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id==10340">药品统计</el-button>
189 189
 
190
+
191
+        <el-button type="primary" size="small" @click="toStaticThree">药品月统计</el-button>
192
+
190 193
         <el-button type="primary" size="small" @click="toStaticTwo">耗材统计</el-button>
191 194
 
195
+        <el-button type="primary" size="small" @click="toStaticFour">耗材月统计</el-button>
196
+
192 197
 
193 198
       </div>
194 199
 
@@ -815,6 +820,171 @@
815 820
         <el-button type="primary" @click="startdialogVisibleTwo = false">确 定</el-button>
816 821
       </span>
817 822
     </el-dialog>
823
+
824
+    <el-dialog
825
+      title="药品月统计表"
826
+      :visible.sync="startMothdialogVisible"
827
+      width="60%">
828
+      <span>
829
+        <div class="cell clearfix" style="margin-bottom:10px">
830
+          <label class="title"> <span class="name">日期查询</span> : </label>
831
+          开始:
832
+          <el-date-picker
833
+            v-model="start_time"
834
+            prefix-icon="el-icon-date"
835
+            :editable="false"
836
+            style="width: 250px;"
837
+            type="date"
838
+            placeholder="选择日期时间"
839
+            align="right"
840
+            format="yyyy-MM-dd"
841
+            value-format="yyyy-MM-dd"
842
+           
843
+        ></el-date-picker>
844
+          结束:
845
+          <el-date-picker
846
+            v-model="end_time"
847
+            prefix-icon="el-icon-date"
848
+            :editable="false"
849
+            style="width: 250px;"
850
+            type="date"
851
+            placeholder="选择日期时间"
852
+            align="right"
853
+            format="yyyy-MM-dd"
854
+            value-format="yyyy-MM-dd"
855
+           
856
+        ></el-date-picker>
857
+           <el-button size="small"  @click="getAllQuery" type="primary">查询</el-button>
858
+           <el-button size="small" icon="el-icon-printer"  @click="toPrintTen" type="primary">打印</el-button>
859
+           <el-button size="small"  @click="toExportListThree" type="primary">导出</el-button>
860
+        </div>
861
+     
862
+      <el-table
863
+        :data="tableMonthList"
864
+        border
865
+        :row-style="{ color: '#303133' }"
866
+        :header-cell-style="{
867
+          backgroundColor: 'rgb(245, 247, 250)',
868
+          color: '#606266'
869
+        }"
870
+      >
871
+         <el-table-column  align="center"  label="序号">
872
+           <template slot-scope="scope">
873
+              {{scope.$index+1}}
874
+           </template>
875
+        </el-table-column>
876
+        <el-table-column  align="center"   label="药品名称">
877
+         <template slot-scope="scope">
878
+            {{scope.row.advice_name}}
879
+          </template>
880
+        </el-table-column>
881
+        <el-table-column  align="center"  label="规格">
882
+           <template slot-scope="scope">
883
+             {{scope.row.specification_name}}
884
+           </template>
885
+        </el-table-column>
886
+
887
+        <el-table-column  align="center"   label="数量">
888
+           <template slot-scope="scope">
889
+             <span v-if="config.is_open!=1">{{getCount(scope.row.child)}}</span>
890
+             <span v-if="config.is_open ==1">{{getHisCount(scope.row.child,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
891
+           </template>
892
+        </el-table-column>
893
+      
894
+        <el-table-column align="center" label="厂家">
895
+           <template slot-scope="scope">
896
+             {{scope.row.manufacturer_name}}
897
+           </template>
898
+        </el-table-column>
899
+
900
+
901
+      </el-table>
902
+      </span>
903
+      <span slot="footer" class="dialog-footer">
904
+        <el-button @click="startMothdialogVisible = false">取 消</el-button>
905
+        <el-button type="primary" @click="startMothdialogVisible = false">确 定</el-button>
906
+      </span>
907
+    </el-dialog>
908
+
909
+
910
+    <el-dialog
911
+      title="耗材统计表"
912
+      :visible.sync="startMonthdialogVisible"
913
+      width="60%">
914
+      <span>
915
+        <div class="cell clearfix" style="margin-bottom:10px">
916
+          <label class="title"> <span class="name">日期查询</span> : </label>
917
+          开始:
918
+          <el-date-picker
919
+            v-model="start_time"
920
+            prefix-icon="el-icon-date"
921
+            :editable="false"
922
+            style="width: 250px;"
923
+            type="date"
924
+            placeholder="选择日期时间"
925
+            align="right"
926
+            format="yyyy-MM-dd"
927
+            value-format="yyyy-MM-dd"
928
+           
929
+        ></el-date-picker>
930
+          结束:
931
+          <el-date-picker
932
+            v-model="end_time"
933
+            prefix-icon="el-icon-date"
934
+            :editable="false"
935
+            style="width: 250px;"
936
+            type="date"
937
+            placeholder="选择日期时间"
938
+            align="right"
939
+            format="yyyy-MM-dd"
940
+            value-format="yyyy-MM-dd"
941
+           
942
+        ></el-date-picker>
943
+           <el-button size="small"  @click="getGoodAllQuery" type="primary">查询</el-button>
944
+           <el-button size="small" icon="el-icon-printer"  @click="toExportListFour" type="primary">打印</el-button>
945
+           <el-button size="small"  @click="toExportListFour" type="primary">导出</el-button>
946
+        </div>
947
+      <el-table
948
+        :data="tableProjectList"
949
+        border
950
+        :row-style="{ color: '#303133' }"
951
+        :header-cell-style="{
952
+          backgroundColor: 'rgb(245, 247, 250)',
953
+          color: '#606266'
954
+        }"
955
+      >
956
+         <el-table-column  align="center"  label="序号">
957
+           <template slot-scope="scope">
958
+              {{scope.$index+1}}
959
+           </template>
960
+        </el-table-column>
961
+        <el-table-column  align="center"   label="耗材名称">
962
+         <template slot-scope="scope">
963
+            {{scope.row.good_name}}
964
+          </template>
965
+        </el-table-column>
966
+        <el-table-column  align="center"  label="规格">
967
+           <template slot-scope="scope">
968
+             {{scope.row.specification_name}}
969
+           </template>
970
+        </el-table-column>
971
+
972
+        <el-table-column  align="center"   label="数量">
973
+           <template slot-scope="scope">
974
+              {{scope.row.count}}
975
+           </template>
976
+        </el-table-column>
977
+
978
+
979
+
980
+      </el-table>
981
+      </span>
982
+      <span slot="footer" class="dialog-footer">
983
+        <el-button @click="startMonthdialogVisible = false">取 消</el-button>
984
+        <el-button type="primary" @click="startMonthdialogVisible = false">确 定</el-button>
985
+      </span>
986
+    </el-dialog>
987
+
818 988
     </div>
819 989
 
820 990
 
@@ -828,7 +998,7 @@ import { parseTime } from "@/utils";
828 998
 import { uParseTime } from '@/utils/tools'
829 999
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
830 1000
 import { getPrintTemplate } from "@/api/data";
831
-import { getNewSchedualDoctors,excutionDoctorAdvice,checkNewDoctorAdvice,settleNewDoctorAdvice,excutionDoctorAdviceById,GetMobileScheduleList } from '@/api/advice'
1001
+import { getNewSchedualDoctors,excutionDoctorAdvice,checkNewDoctorAdvice,settleNewDoctorAdvice,excutionDoctorAdviceById,GetMobileScheduleList,getDoctorAdviceMonthList,getHisPrescrptionProjectMonthList } from '@/api/advice'
832 1002
 import { PostSearch } from '@/api/patient'
833 1003
 export default {
834 1004
   name: "Patient",
@@ -906,6 +1076,7 @@ export default {
906 1076
       startdialogVisible:false,
907 1077
       startdialogVisibleOne:false,
908 1078
       startdialogVisibleTwo:false,
1079
+      startMonthdialogVisible:false,
909 1080
       schedule_type:0,
910 1081
       partion_type:0,
911 1082
       druglist:[],
@@ -920,7 +1091,13 @@ export default {
920 1091
       partion_str:"",
921 1092
       keyword:"",
922 1093
       tableProjectList:[],
923
-      manufacturerList:[]
1094
+      manufacturerList:[],
1095
+      start_time: moment().startOf('month').format('YYYY-MM-DD'),
1096
+      end_time: moment().endOf('month').format('YYYY-MM-DD'),
1097
+      startMothdialogVisible:false,
1098
+      adviceMonthList:[],
1099
+      hisAdviceMonthList:[],
1100
+      tableMonthList:[]
924 1101
     };
925 1102
   },
926 1103
   created() {
@@ -2188,6 +2365,156 @@ export default {
2188 2365
            }
2189 2366
          })
2190 2367
       },
2368
+      getAllQuery(){
2369
+        this.toStaticThree()
2370
+      },
2371
+      toStaticThree(){
2372
+        var params = {
2373
+          start_time:this.start_time,
2374
+          end_time:this.end_time
2375
+        }
2376
+        getDoctorAdviceMonthList(params).then(response=>{
2377
+          if(response.data.state == 1){
2378
+            this.startMothdialogVisible = true
2379
+            var config = response.data.data.config
2380
+            this.config = {}
2381
+            this.config = config
2382
+            var drugs = response.data.data.drugs
2383
+            this.druglist = []
2384
+            this.druglist = drugs
2385
+            var manufacturerList =  response.data.data.manufacturerList
2386
+            this.manufacturerList = []
2387
+            this.manufacturerList = manufacturerList
2388
+            var adviceMonthList = response.data.data.adviceList
2389
+            var hisAdviceMonthList = response.data.data.hisAdviceList
2390
+            if(config.is_open == 1){
2391
+               
2392
+              if(hisAdviceMonthList!=null && hisAdviceMonthList.length>0){
2393
+                let dataInfo = {}
2394
+                hisAdviceMonthList.forEach((item, index) => {
2395
+                let { drug_id } = item
2396
+                if (!dataInfo[drug_id])  {
2397
+                  dataInfo[drug_id] = {
2398
+                    drug_id:item.drug_id,
2399
+                    advice_name:item.advice_name,
2400
+                    manufacturer_name:this.getManufacturer(item.drug.manufacturer),
2401
+                    specification_name:item.drug.dose + item.drug.dose_unit +"*"+item.drug.min_number+item.drug.min_unit+"/"+item.drug.max_unit,
2402
+                    max_unit:item.drug.max_unit,
2403
+                    min_unit:item.drug.min_unit,
2404
+                    min_number:item.drug.min_number,
2405
+                    child: [],
2406
+                  }
2407
+                }
2408
+               })
2409
+                let newArr = Object.values(dataInfo)
2410
+                console.log("newArr----------------",newArr)
2411
+                if(newArr!=null && newArr.length>0){
2412
+                   for(let i=0;i<newArr.length;i++){
2413
+                     for(let j=0;j<hisAdviceMonthList.length;j++){
2414
+                       if(newArr[i].drug_id == hisAdviceMonthList[j].drug_id){
2415
+                           newArr[i].child.push(hisAdviceMonthList[j])
2416
+                       }
2417
+                     }
2418
+                   }
2419
+                }
2420
+                this.tableMonthList = []
2421
+                this.tableMonthList = newArr
2422
+
2423
+              }
2424
+            }
2425
+
2426
+            if(config.is_open == 2 || config.is_open ==0){
2427
+             
2428
+              if(adviceMonthList!=null && adviceMonthList.length>0){
2429
+                 
2430
+                if(adviceMonthList!=null && adviceMonthList.length > 0){
2431
+                  let dataInfo = {}
2432
+                  adviceMonthList.forEach((item, index) => {
2433
+                  item.advice_name = item.advice_name.replace(/\s/g,"")
2434
+                  let { advice_name } = item
2435
+                  if (!dataInfo[advice_name]) {
2436
+                      dataInfo[advice_name] = {
2437
+                      advice_name:item.advice_name,
2438
+                      child: [],
2439
+                      count:0,
2440
+                      specification_name:item.advice_desc +item.drug_spec_unit,
2441
+                      manufacturer_name:""
2442
+                    }
2443
+                  }
2444
+                  })
2445
+                  let arr = Object.values(dataInfo)
2446
+                  for(let i=0;i<arr.length;i++){
2447
+                    for(let j=0;j<adviceMonthList.length;j++){
2448
+                    if(arr[i].advice_name == adviceMonthList[j].advice_name){
2449
+                        arr[i].child.push(adviceMonthList[j])
2450
+                    }
2451
+                  }
2452
+                  }
2453
+                   this.tableMonthList = []
2454
+                   this.tableMonthList = arr
2455
+                   console.log("hhhhhhhhhhhhhh",this.tableMonthList)
2456
+                  }
2457
+              }
2458
+            }
2459
+          }
2460
+        })
2461
+
2462
+
2463
+        console.log("params-=----",params)
2464
+
2465
+      },
2466
+      toStaticFour(){
2467
+        var params = {
2468
+          start_time:this.start_time,
2469
+          end_time:this.end_time
2470
+        }
2471
+        getHisPrescrptionProjectMonthList(params).then(response=>{
2472
+          if(response.data.state ==1){
2473
+            var projectMonthList = response.data.data.projectMonthList
2474
+            console.log("projectMonthList",projectMonthList)
2475
+
2476
+            if(projectMonthList!=null && projectMonthList.length>0){
2477
+              
2478
+              let dataInfo = {}
2479
+              projectMonthList.forEach((item, index) => {
2480
+              let { project_id } = item
2481
+              if (!dataInfo[project_id]) {
2482
+                dataInfo[project_id] = {
2483
+                  project_id:item.project_id,
2484
+                  good_name:item.good_info.good_name,
2485
+                  specification_name:item.good_info.specification_name,
2486
+                  child: [],
2487
+                  count:0,
2488
+                }
2489
+              }
2490
+            })
2491
+            let arr = Object.values(dataInfo)
2492
+
2493
+            if(arr!=null && arr.length >0){
2494
+                for(let i =0;i<arr.length;i++){
2495
+                  for(let j=0;j<projectMonthList.length;j++){
2496
+                    if(arr[i].project_id == projectMonthList[j].project_id){
2497
+                        arr[i].child.push(projectMonthList[j])
2498
+                    }
2499
+                  }
2500
+                }
2501
+                for(let i =0;i<arr.length;i++){
2502
+                  for(let j=0;j<arr[i].child.length;j++){
2503
+                    arr[i].count += parseInt(arr[i].child[j].count)
2504
+                  }
2505
+                }
2506
+
2507
+                console.log("arr0000000000000000000000",arr)
2508
+
2509
+                this.startMonthdialogVisible = true
2510
+                this.tableProjectList = []
2511
+                this.tableProjectList = arr
2512
+
2513
+             }
2514
+            }
2515
+          }
2516
+        })
2517
+      },
2191 2518
       getDrugAdviceCount(advice_name,zone_name){
2192 2519
         var str = ""
2193 2520
         var arr =[]
@@ -2330,6 +2657,56 @@ export default {
2330 2657
             this.downloadLoading = false
2331 2658
           })
2332 2659
       },
2660
+      toExportListThree(){
2661
+        import('@/vendor/Export2Excel').then(excel => {
2662
+
2663
+          if(this.tableMonthList!=null && this.tableMonthList.length > 0){
2664
+            for(let i=0;i<this.tableMonthList.length;i++){
2665
+              this.tableMonthList[i].index = i+1
2666
+              if(this.config.is_open == 1){
2667
+                this.tableMonthList[i].total_count = this.getHisCount(this.tableMonthList[i].child,this.tableMonthList[i].max_unit,this.tableMonthList[i].min_unit,this.tableMonthList[i].min_number)
2668
+              }
2669
+              if(this.config.is_open!=1){
2670
+                this.tableMonthList[i].total_count = this.getCount(this.tableMonthList[i].child)
2671
+              }
2672
+
2673
+            }
2674
+          }
2675
+          const tHeader = ['序号','药品名称','规格','数量','厂家']
2676
+          const filterVal = ['index','advice_name','specification_name','total_count','manufacturer_name']
2677
+
2678
+          const data = this.formatJson(filterVal, this.tableMonthList)
2679
+          excel.export_json_to_excel({
2680
+            header: tHeader,
2681
+            data,
2682
+            filename: '药品月统计'
2683
+          })
2684
+            this.downloadLoading = false
2685
+          })
2686
+      },
2687
+      toExportListFour(){
2688
+        import('@/vendor/Export2Excel').then(excel => {
2689
+
2690
+          if(this.tableProjectList!=null && this.tableProjectList.length > 0){
2691
+            for(let i=0;i<this.tableProjectList.length;i++){
2692
+              this.tableProjectList[i].index = i+1
2693
+            }
2694
+          }
2695
+          const tHeader = ['序号','耗材名称','规格','数量']
2696
+          const filterVal = ['index','good_name','specification_name','count']
2697
+
2698
+          const data = this.formatJson(filterVal, this.tableProjectList)
2699
+          excel.export_json_to_excel({
2700
+            header: tHeader,
2701
+            data,
2702
+            filename: '耗材统计'
2703
+          })
2704
+            this.downloadLoading = false
2705
+          })
2706
+      },
2707
+      getGoodAllQuery(){
2708
+        this.toExportListThree()
2709
+      },
2333 2710
       formatJson(filterVal, jsonData) {
2334 2711
         return jsonData.map(v => filterVal.map(j => v[j]));
2335 2712
       },
@@ -2689,6 +3066,38 @@ export default {
2689 3066
             }
2690 3067
         }
2691 3068
         return manufacturer_name
3069
+    },
3070
+    getDrugName(drug_id,drugs){
3071
+      
3072
+      var drug_name = ""
3073
+      for(let i=0;i<drugs.length;i++){
3074
+         if(drug_id == drugs[i].id){
3075
+            drug_name = drugs[i].drug_name
3076
+         }
3077
+      }
3078
+      return drug_name
3079
+    },
3080
+    getMonthManufacturer(drug_id,drugs,manufacturerList){
3081
+      var manufacturer = 0
3082
+      for(let i=0;i<drugs.length;i++){
3083
+         if(drug_id == drugs[i].id){
3084
+          manufacturer = drugs[i].manufacturer
3085
+         }
3086
+      }
3087
+   
3088
+      var  manufacturer_name = ""
3089
+        for(let i=0;i<manufacturerList.length;i++){
3090
+            if(manufacturer== manufacturerList[i].id){
3091
+              manufacturer_name = manufacturerList[i].manufacturer_name
3092
+            }
3093
+        }
3094
+        return manufacturer_name
3095
+    },
3096
+    toPrintTen(){
3097
+      this.$router.push("/dialysis/doctorMonthAdviceStaticPrint?start_time="+this.start_time+"&end_time="+this.end_time)
3098
+    },
3099
+    toPrintTenOne(){
3100
+      this.$router.push("/dialysis/doctocAdviceProjectPrint?start_time="+this.start_time+"&end_time="+this.end_time)
2692 3101
     }
2693 3102
 
2694 3103
   },

+ 3 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue View File

@@ -1918,9 +1918,10 @@ export default {
1918 1918
         checkDate.push(obj29)
1919 1919
       } if (
1920 1920
         this.prescription.dialysis_irrigation == '' &&
1921
-        this.prescription.dialysis_dialyszers == ''
1921
+        this.prescription.dialysis_dialyszers == '' &&
1922
+        this.prescription.dialysis_strainer == ''
1922 1923
       ){
1923
-        const obj30 = "人工肾装置"
1924
+        const obj30 = "透析器"
1924 1925
         checkDate.push(obj30)
1925 1926
       } if (this.predialysis.machine_type == 0) {
1926 1927
         const obj31 = "透析机型"

+ 113 - 35
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -517,7 +517,7 @@
517 517
                         style="
518 518
                           width: 100px;
519 519
                           text-align: center;
520
-                          font-weight: 600;
520
+                         
521 521
                         "
522 522
                         v-if="prescription.mode_id == 1"
523 523
                       >
@@ -528,7 +528,7 @@
528 528
                         style="
529 529
                           width: 100px;
530 530
                           text-align: center;
531
-                          font-weight: 600;
531
+                        
532 532
                         "
533 533
                         v-if="prescription.mode_id == 2"
534 534
                       >
@@ -539,7 +539,7 @@
539 539
                         style="
540 540
                           width: 100px;
541 541
                           text-align: center;
542
-                          font-weight: 600;
542
+                         
543 543
                         "
544 544
                         v-if="prescription.mode_id == 3"
545 545
                       >
@@ -550,7 +550,7 @@
550 550
                         style="
551 551
                           width: 100px;
552 552
                           text-align: center;
553
-                          font-weight: 600;
553
+                          
554 554
                         "
555 555
                         v-if="prescription.mode_id == 4"
556 556
                       >
@@ -561,7 +561,7 @@
561 561
                         style="
562 562
                           width: 100px;
563 563
                           text-align: center;
564
-                          font-weight: 600;
564
+                         
565 565
                         "
566 566
                         v-if="prescription.mode_id == 5"
567 567
                       >
@@ -572,7 +572,7 @@
572 572
                         style="
573 573
                           width: 100px;
574 574
                           text-align: center;
575
-                          font-weight: 600;
575
+                         
576 576
                         "
577 577
                         v-if="prescription.mode_id == 6"
578 578
                       >
@@ -583,7 +583,7 @@
583 583
                         style="
584 584
                           width: 100px;
585 585
                           text-align: center;
586
-                          font-weight: 600;
586
+                          
587 587
                         "
588 588
                         v-if="prescription.mode_id == 7"
589 589
                       >
@@ -594,7 +594,7 @@
594 594
                         style="
595 595
                           width: 100px;
596 596
                           text-align: center;
597
-                          font-weight: 600;
597
+                         
598 598
                         "
599 599
                         v-if="prescription.mode_id == 8"
600 600
                       >
@@ -605,7 +605,7 @@
605 605
                         style="
606 606
                           width: 100px;
607 607
                           text-align: center;
608
-                          font-weight: 600;
608
+                          
609 609
                         "
610 610
                         v-if="prescription.mode_id == 9"
611 611
                       >
@@ -616,7 +616,7 @@
616 616
                         style="
617 617
                           width: 100px;
618 618
                           text-align: center;
619
-                          font-weight: 600;
619
+                          
620 620
                         "
621 621
                         v-if="prescription.mode_id == 10"
622 622
                       >
@@ -627,7 +627,7 @@
627 627
                         style="
628 628
                           width: 100px;
629 629
                           text-align: center;
630
-                          font-weight: 600;
630
+                         
631 631
                         "
632 632
                         v-if="prescription.mode_id == 11"
633 633
                       >
@@ -638,7 +638,7 @@
638 638
                         style="
639 639
                           width: 100px;
640 640
                           text-align: center;
641
-                          font-weight: 600;
641
+                          
642 642
                         "
643 643
                         v-if="prescription.mode_id == 12"
644 644
                       >
@@ -649,7 +649,7 @@
649 649
                         style="
650 650
                           width: 100px;
651 651
                           text-align: center;
652
-                          font-weight: 600;
652
+                         
653 653
                         "
654 654
                         v-if="prescription.mode_id == 13"
655 655
                       >
@@ -660,7 +660,7 @@
660 660
                         style="
661 661
                           width: 100px;
662 662
                           text-align: center;
663
-                          font-weight: 600;
663
+                         
664 664
                         "
665 665
                         v-if="prescription.mode_id == 14"
666 666
                       >
@@ -671,7 +671,7 @@
671 671
                         style="
672 672
                           width: 100px;
673 673
                           text-align: center;
674
-                          font-weight: 600;
674
+                         
675 675
                         "
676 676
                         v-if="prescription.mode_id == 15"
677 677
                       >
@@ -682,7 +682,7 @@
682 682
                         style="
683 683
                           width: 100px;
684 684
                           text-align: center;
685
-                          font-weight: 600;
685
+                          
686 686
                         "
687 687
                         v-if="prescription.mode_id == 16"
688 688
                       >
@@ -693,7 +693,7 @@
693 693
                         style="
694 694
                           width: 100px;
695 695
                           text-align: center;
696
-                          font-weight: 600;
696
+                          
697 697
                         "
698 698
                         v-if="prescription.mode_id == 17"
699 699
                       >
@@ -704,7 +704,7 @@
704 704
                         style="
705 705
                           width: 100px;
706 706
                           text-align: center;
707
-                          font-weight: 600;
707
+                          
708 708
                         "
709 709
                         v-if="prescription.mode_id == 18"
710 710
                       >
@@ -715,7 +715,7 @@
715 715
                         style="
716 716
                           width: 100px;
717 717
                           text-align: center;
718
-                          font-weight: 600;
718
+                          
719 719
                         "
720 720
                         v-if="prescription.mode_id == 19"
721 721
                       >
@@ -726,7 +726,7 @@
726 726
                         style="
727 727
                           width: 150px;
728 728
                           text-align: center;
729
-                          font-weight: 600;
729
+                         
730 730
                         "
731 731
                         v-if="prescription.mode_id == 22"
732 732
                       >
@@ -737,7 +737,7 @@
737 737
                         style="
738 738
                           width: 150px;
739 739
                           text-align: center;
740
-                          font-weight: 600;
740
+                          
741 741
                         "
742 742
                         v-if="prescription.mode_id == 23"
743 743
                       >
@@ -748,7 +748,7 @@
748 748
                         style="
749 749
                           width: 150px;
750 750
                           text-align: center;
751
-                          font-weight: 600;
751
+                         
752 752
                         "
753 753
                         v-if="prescription.mode_id == 24"
754 754
                       >
@@ -758,7 +758,7 @@
758 758
                         class="under_line"
759 759
                         style="width: 100px;
760 760
                           text-align: center;
761
-                          font-weight: 600;
761
+                         
762 762
                         "
763 763
                         v-if="prescription.mode_id == 25"
764 764
                       >
@@ -769,7 +769,7 @@
769 769
                         style="
770 770
                           width: 100px;
771 771
                           text-align: center;
772
-                          font-weight: 600;
772
+                         
773 773
                         "
774 774
                         v-if="prescription.mode_id == 29"
775 775
                       >
@@ -780,7 +780,7 @@
780 780
                         style="
781 781
                           width: 100px;
782 782
                           text-align: center;
783
-                          font-weight: 600;
783
+                          
784 784
                         "
785 785
                         v-if="prescription.mode_id == 30"
786 786
                       >
@@ -791,7 +791,7 @@
791 791
                         style="
792 792
                           width: 100px;
793 793
                           text-align: center;
794
-                          font-weight: 600;
794
+                          
795 795
                         "
796 796
                         v-if="prescription.mode_id == 31"
797 797
                       >
@@ -802,7 +802,7 @@
802 802
                         style="
803 803
                           width: 100px;
804 804
                           text-align: center;
805
-                          font-weight: 600;
805
+                          
806 806
                         "
807 807
                         v-if="prescription.mode_id == 32"
808 808
                       >
@@ -813,7 +813,7 @@
813 813
                         style="
814 814
                           width: 100px;
815 815
                           text-align: center;
816
-                          font-weight: 600;
816
+                          
817 817
                         "
818 818
                         v-if="prescription.mode_id == 33"
819 819
                       >
@@ -824,7 +824,7 @@
824 824
                         style="
825 825
                           width: 100px;
826 826
                           text-align: center;
827
-                          font-weight: 600;
827
+                          
828 828
                         "
829 829
                         v-if="prescription.mode_id == 34"
830 830
                       >
@@ -835,7 +835,7 @@
835 835
                         style="
836 836
                           width: 100px;
837 837
                           text-align: center;
838
-                          font-weight: 600;
838
+                         
839 839
                         "
840 840
                         v-if="prescription.mode_id == 35"
841 841
                       >
@@ -846,7 +846,7 @@
846 846
                         style="
847 847
                           width: 100px;
848 848
                           text-align: center;
849
-                          font-weight: 600;
849
+                          
850 850
                         "
851 851
                         v-if="prescription.mode_id == 36"
852 852
                       >
@@ -857,12 +857,82 @@
857 857
                         style="
858 858
                           width: 100px;
859 859
                           text-align: center;
860
-                          font-weight: 600;
860
+                         
861 861
                         "
862 862
                         v-if="prescription.mode_id == 37"
863 863
                       >
864 864
                       HDF1000
865 865
                       </div>
866
+                      <div
867
+                        class="under_line"
868
+                        style="
869
+                          width: 100px;
870
+                          text-align: center;
871
+                         
872
+                        "
873
+                        v-if="prescription.mode_id == 38"
874
+                      >
875
+                      HDF80
876
+                      </div>
877
+                      <div
878
+                        class="under_line"
879
+                        style="
880
+                          width: 100px;
881
+                          text-align: center;
882
+                          
883
+                        "
884
+                        v-if="prescription.mode_id == 39"
885
+                      >
886
+                      HF16
887
+                      </div>
888
+
889
+                      <div
890
+                        class="under_line"
891
+                        style="
892
+                          width: 100px;
893
+                          text-align: center;
894
+                          
895
+                        "
896
+                        v-if="prescription.mode_id == 40"
897
+                      >
898
+                      HD(无肝素)
899
+                      </div>
900
+
901
+                      <div
902
+                        class="under_line"
903
+                        style="
904
+                          width: 100px;
905
+                          text-align: center;
906
+                         
907
+                        "
908
+                        v-if="prescription.mode_id == 41"
909
+                      >
910
+                      HDF17H
911
+                      </div>
912
+
913
+                      <div
914
+                        class="under_line"
915
+                        style="
916
+                          width: 100px;
917
+                          text-align: center;
918
+                         
919
+                        "
920
+                        v-if="prescription.mode_id == 42"
921
+                      >
922
+                       HD.
923
+                      </div>
924
+
925
+                      <div
926
+                        class="under_line"
927
+                        style="
928
+                          width: 100px;
929
+                          text-align: center;
930
+                          
931
+                        "
932
+                        v-if="prescription.mode_id == 43"
933
+                      >
934
+                        HD(2)
935
+                      </div>
866 936
                     </div>
867 937
 
868 938
                     <div
@@ -5365,7 +5435,7 @@ export default {
5365 5435
 
5366 5436
         console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",this.doctor_advices)
5367 5437
 
5368
-        if(this.org_id ==10206 || this.org_id ==10644 || this.org_id ==10633 || this.org_id == 10489){
5438
+        if(this.org_id ==10206 || this.org_id ==10644 || this.org_id ==10633 || this.org_id == 10489 || this.org_id == 0){
5369 5439
           let projectsOne = [];
5370 5440
           response.data.data.projects.map((item) => {
5371 5441
               projectsOne.push(item);
@@ -5475,6 +5545,14 @@ export default {
5475 5545
             }
5476 5546
             }
5477 5547
 
5548
+          
5549
+
5550
+            for(let i=0;i<newHisArr.length;i++){
5551
+              newHisArr[i].advice_name_str = ""
5552
+              newHisArr[i].advice_name_str = newHisArr[i].project_team + (newHisArr[i].prescription_id).toString()
5553
+            }
5554
+            console.log("newHisArr===================================",newHisArr)
5555
+
5478 5556
             var ordHisArr = this.getQuChong(newHisArr)
5479 5557
 
5480 5558
            this.doctor_advices.push(...ordHisArr)
@@ -5616,9 +5694,9 @@ export default {
5616 5694
       let result = [];
5617 5695
         let obj = {};
5618 5696
         for (let i = 0; i < tempArr.length; i++) {
5619
-            if (!obj[tempArr[i].project_team]) {
5697
+            if (!obj[tempArr[i].advice_name_str]) {
5620 5698
                 result.push(tempArr[i]);
5621
-                obj[tempArr[i].project_team] = true;
5699
+                obj[tempArr[i].advice_name_str] = true;
5622 5700
             };
5623 5701
         };
5624 5702
         return result;

+ 3 - 3
src/xt_pages/outpatientDoctorStation/print.vue View File

@@ -3,7 +3,7 @@
3 3
     <div class="dialysisPage" style="padding-top: 40px">
4 4
       <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243 && org_id != 10537 && org_id != 10610 ">
5 5
 
6
-        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 10188 && org_id != 10217 && org_id != 10598 && org_id != 10644 && org_id != 10510 && org_id!=10653&&org_id !=0" v-bind:childResponse="childResponse"
6
+        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 10188 && org_id != 10217 && org_id != 10598 && org_id != 10644 && org_id != 10510 && org_id!=10653" v-bind:childResponse="childResponse"
7 7
         :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
8 8
         :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date"
9 9
         :prescription_id="prescription_id"></printOne>
@@ -27,7 +27,7 @@
27 27
           :prescription_id="prescription_id">
28 28
         </prinSeven>
29 29
 
30
-        <prineight v-if="org_id == 10644 "
30
+        <prineight v-if="org_id == 10644"
31 31
           v-bind:childResponse="childResponse"
32 32
           :advicePrint="advicePrint"
33 33
           :ids="ids"
@@ -64,7 +64,7 @@
64 64
           :prescription_id="prescription_id"
65 65
           :his_patient_id ="his_patient_id"
66 66
         ></printFive>
67
-        <printTwoteen v-if="org_id==10653 || org_id == 0"
67
+        <printTwoteen v-if="org_id==10653"
68 68
           v-bind:childResponse="childResponse"
69 69
           :advicePrint="advicePrint"
70 70
           :ids="ids"

+ 21 - 14
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

@@ -58,11 +58,10 @@
58 58
         </div>
59 59
         <div class="prescriptionBox" style="min-height: 350px;">
60 60
           <div class="Rp">Rp:</div>
61
-          <div
62
-            class="drugsBox"
61
+          <div class="drugsBox" 
63 62
             v-for="(it, index) in item.advices"
64 63
             :key="index"
65
-            :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
64
+            :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto','position': 'relative'}"
66 65
           >
67 66
             <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  'page-break-after':item.advices.length>=3&& item.advices[2]?'always':'auto'-->
68 67
             <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
@@ -70,19 +69,27 @@
70 69
               <span style="font-weight: bold">{{ index + 1 + "." }}</span
71 70
               >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
72 71
               v-if="it.drug.min_unit != it.drug.dose_unit"
73
-            >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
74
-            >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
75
-                it.drug.max_unit
76
-              }}&nbsp;×&nbsp; {{ it.prescribing_number
77
-              }}{{ it.prescribing_number_unit }}
72
+              >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
73
+              >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
74
+                  it.drug.max_unit
75
+                }}&nbsp;×&nbsp; {{ it.prescribing_number
76
+                }}{{ it.prescribing_number_unit }}
77
+              <!-- <div style="display: inline-block;margin-left: 30px;">
78
+                <span>{{ it.price}}</span>
79
+              </div> -->
78 80
             </div>
79 81
             <div style="margin-left: 100px">
80
-              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
81
-              >&nbsp;&nbsp;<span
82
-            >{{ it.execution_frequency }}&nbsp;{{
83
-                it.delivery_way
84
-              }}&nbsp;</span
85
-            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
82
+                <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
83
+                >&nbsp;&nbsp;<span
84
+              >{{ it.execution_frequency }}&nbsp;{{
85
+                  it.delivery_way
86
+                }}&nbsp;</span
87
+              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
88
+            </div>
89
+            <!-- 单价 -->
90
+            <div style="display: inline-block;position: absolute; top:0;right: 10%;"
91
+              v-if="org_id ==10210 || org_id ==0">
92
+                <span>{{ it.price}}</span>
86 93
             </div>
87 94
           </div>
88 95
 

+ 6 - 0
src/xt_pages/stock/detail/cancelStockDetail.vue View File

@@ -126,6 +126,12 @@
126 126
           </template>
127 127
         </el-table-column>
128 128
 
129
+        <el-table-column label="生产厂商" align="center">
130
+          <template slot-scope="scope">
131
+            {{ getManufactuerName(scope.row.manufacturer) }}
132
+          </template>
133
+        </el-table-column>
134
+
129 135
         <!-- <el-table-column label="单据类型" align="center">
130 136
           <template slot-scope="scope">
131 137
             {{ getTypeName(scope.row) }}

+ 6 - 0
src/xt_pages/stock/detail/stockInDetail.vue View File

@@ -131,6 +131,12 @@
131 131
             </template>
132 132
           </el-table-column>
133 133
 
134
+          <el-table-column label="生产厂商" align="center">
135
+            <template slot-scope="scope">
136
+              {{ getManufactuerName(scope.row.manufacturer) }}
137
+            </template>
138
+          </el-table-column>
139
+
134 140
           <el-table-column label="操作时间" align="center">
135 141
             <template slot-scope="scope">
136 142
               {{ getTime(scope.row.Warehousing.warehousing_time) }}

+ 7 - 0
src/xt_pages/stock/drugs/components/drugCancelDetail.vue View File

@@ -118,6 +118,12 @@
118 118
           </template>
119 119
         </el-table-column>
120 120
 
121
+        <el-table-column label="生产厂家" align="center">
122
+          <template slot-scope="scope">
123
+           {{getManufacturerName(scope.row.GoodInfo.manufacturer)}}
124
+          </template>
125
+        </el-table-column>
126
+
121 127
         <!-- <el-table-column label="单据类型" align="center">
122 128
           <template slot-scope="scope">
123 129
             <span v-if="scope.row.type == 1">药品退库单</span>
@@ -377,6 +383,7 @@ export default {
377 383
          if(response.data.state == 1){
378 384
            loading.close()
379 385
            var order =  response.data.data.order
386
+           console.log("order=----------------",order)
380 387
            var list = response.data.data.orderPrint
381 388
            this.dealerList =  response.data.data.dealerList
382 389
            this.manufacturerList =  response.data.data.manufacturerList

+ 6 - 0
src/xt_pages/stock/drugs/components/drugInOrder.vue View File

@@ -128,6 +128,12 @@
128 128
           </template>
129 129
         </el-table-column>
130 130
 
131
+        <el-table-column label="生产厂家" align="center">
132
+          <template slot-scope="scope">
133
+           {{getManufacturerName(scope.row.manufacturer)}}
134
+          </template>
135
+        </el-table-column>
136
+
131 137
         <el-table-column label="操作时间" align="center">
132 138
           <template slot-scope="scope">
133 139
             <span>{{getTime(scope.row.ctime)}}</span>

+ 0 - 5
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

@@ -161,11 +161,6 @@
161 161
           >
162 162
             </el-pagination>
163 163
      </div>
164
-
165
-
166
-
167
-  
168
-
169 164
   </div>
170 165
 </template>
171 166
 <script>

+ 2 - 2
src/xt_pages/stock/stockInventory.vue View File

@@ -22,9 +22,9 @@
22 22
                 <stockDamaged ref="childOne"></stockDamaged>
23 23
             </el-tab-pane>
24 24
 
25
-            <!-- <el-tab-pane label="盘点日志表" name="seven">
25
+            <el-tab-pane label="盘点日志表" name="seven">
26 26
                 <inventory-record ref="childSeven"></inventory-record>
27
-            </el-tab-pane> -->
27
+            </el-tab-pane>
28 28
         </el-tabs>
29 29
         
30 30
     </div>

+ 0 - 1
src/xt_pages/user/components/PatientDetail.vue View File

@@ -120,7 +120,6 @@
120 120
               <el-form-item
121 121
                 label="身份证号 : "
122 122
                 class="is-required"
123
-                prop="idCardNo"
124 123
               >
125 124
                 <el-input v-model="form.idCardNo" disabled></el-input>
126 125
               </el-form-item>

+ 0 - 2
src/xt_pages/user/components/PatientForm.vue View File

@@ -129,10 +129,8 @@
129 129
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
130 130
                 <el-form-item
131 131
                   label="身份证号 : "
132
-                  prop="idCardNo"
133 132
                 >
134 133
                   <el-input
135
-                    @input="checkIdCardNo"
136 134
                     v-model="form.idCardNo"
137 135
                   ></el-input><!---->
138 136
                 </el-form-item>

+ 3 - 0
src/xt_pages/user/dialysisRecord.vue View File

@@ -8,6 +8,8 @@
8 8
     <div class="patient-app-container app-container">
9 9
       <div style="clearfix">
10 10
 
11
+       
12
+
11 13
         <el-button
12 14
           style="float:right;"
13 15
           size="small"
@@ -834,6 +836,7 @@ export default {
834 836
         });
835 837
       }, 1);
836 838
     },
839
+   
837 840
     clickCurrent(val) {
838 841
 
839 842
       this.patient_id = val.patient_id

+ 348 - 0
src/xt_pages/user/dialysisRecordPrint.vue View File

@@ -0,0 +1,348 @@
1
+<template>
2
+    <div class="main-contain">
3
+      <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+          <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+          </el-col>
9
+        </el-row>
10
+      </div>
11
+      <div class="app-container" style="background-color: white;">
12
+  
13
+        <div id="print_content">
14
+          <div class="print_main_content">
15
+            <div class="order_title_panl">
16
+              <span class="main_title"> &nbsp;
17
+                透析并发症登记
18
+              </span>
19
+              <span  style="float:right;">打印日期: &nbsp;
20
+                  {{ getNowTime() }}
21
+              </span>
22
+            </div>
23
+            <div class="table_panel">
24
+  
25
+              <table class="table">
26
+                <thead>
27
+                <tr>
28
+                  <td width="50">序号</td>
29
+                  <td width="100">时间</td>
30
+                  <td width="100">姓名</td>
31
+                  <td width="100">性别</td>
32
+                  <td width="100">诊断</td>
33
+                  <td width="100">透析并发症</td>
34
+                  <td width="100">症状及处理</td>
35
+                  <td width="100">结果</td>
36
+                </tr>
37
+                </thead>
38
+                <tbody>
39
+                  <tr v-for="(item,i) in tableDataList" :key="i">
40
+                  <td width="50">{{ i+1 }}</td>
41
+                  <td width="100">{{ getTime(item.schedule_date) }}</td>
42
+                  <td width="100">{{item.patient.name}}</td>
43
+                  <td width="100">
44
+                    <span v-if="item.patient.gender==1">男</span>
45
+                    <span v-if="item.patient.gender==2">女</span>
46
+                  </td>
47
+                  <td width="100">{{ item.patient.diagnose }}</td>
48
+                  <td width="100">
49
+                    {{ item.assessment_before_dislysis.complication }}
50
+                  </td>
51
+                  <td width="100">
52
+                    {{ getMonitorSymptom(item.monitoring_record) }} {{ getMonitorDispose(item.monitoring_record) }}
53
+                  </td>
54
+                  <td width="100">{{ getMonitorSymptomResult(item.monitoring_record) }}</td>
55
+                  </tr>
56
+                </tbody>
57
+              </table>
58
+            </div>
59
+          </div>
60
+        </div>
61
+      </div>
62
+    </div>
63
+  </template>
64
+  
65
+  <script>
66
+    import { parseTime } from '@/utils'
67
+    import { uParseTime } from '@/utils/tools'
68
+    import BreadCrumb from '@/xt_pages/components/bread-crumb'
69
+    import print from 'print-js'
70
+    import { getDataConfig } from '@/utils/data'
71
+    import { getSchedualPatient } from "@/api/dialysis";
72
+    export default {
73
+      name: 'SchedulePrint',
74
+      data() {
75
+        return {
76
+          crumbs: [
77
+            { path: false, name: '排班管理' },
78
+            { path: false, name: '排班打印' }
79
+          ],
80
+          td_1_width: '8%',
81
+          td_2_width: '8%',
82
+          td_3_width: '64%',
83
+          td_4_width: '20%',
84
+          month: 1,
85
+          begin_day: 1,
86
+          total:[],
87
+          list:[],
88
+          schedule_date:"",
89
+          schedule_type:0,
90
+          partition_type:0,
91
+          keywords:"",
92
+          loading:false,
93
+          tableData:[],
94
+          numberList:[],
95
+          partitionArr:[],
96
+          his_config:{},
97
+          typeList:[],
98
+          rowList:[],
99
+          dialysate_formulation:[],
100
+          body_fluid_option:[],
101
+          displace_liqui_part_option:[],
102
+          blood_access_option:[],
103
+          hemodialysisPipelinesOptions:[],
104
+          tableList:[],
105
+          druglist:[],
106
+          config:{},
107
+          org_id:0,
108
+          manufacturerList:[],
109
+          tableMonthList:[],
110
+          tableDataList:[],
111
+        }
112
+      },
113
+      components: {
114
+        BreadCrumb
115
+      },
116
+      created() {
117
+        this.org_id = this.$store.getters.xt_user.template_info.org_id;
118
+ 
119
+         this.getlist()
120
+      },
121
+      methods: {
122
+        getMonitorDispose(val){
123
+          var dispose = ""
124
+          if(val!=null && val.length>0){
125
+
126
+            for(let i=0;i<val.length;i++){
127
+              dispose +=val[i].dispose+" "
128
+            }
129
+          }
130
+          return dispose
131
+        },
132
+        getMonitorSymptom(val){
133
+           
134
+          var symptom = ""
135
+          if(val!=null && val.length>0){
136
+             
137
+            for(let i=0;i<val.length;i++){
138
+               symptom +=val[i].symptom+" "
139
+            }
140
+          }
141
+          return symptom
142
+        },
143
+        getMonitorSymptomResult(val){
144
+            var result = ""
145
+          if(val!=null && val.length>0){
146
+             
147
+            for(let i=0;i<val.length;i++){
148
+                result +=val[i].result+" "
149
+            }
150
+          }
151
+          return result
152
+        },
153
+        getTime(val) {
154
+         if(val < 0){
155
+           return ""
156
+         }
157
+         if(val == ""){
158
+          return ""
159
+         }else {
160
+          return uParseTime(val, '{y}-{m}-{d}')
161
+         }
162
+        },
163
+        getlist(){
164
+             var params = {
165
+                page:this.$route.query.page,
166
+                limit:this.$route.query.limit,
167
+                schedul_type:this.$route.query.schedule_type,
168
+                partition_type:this.$route.query.partition_type,
169
+                schedul_time:this.$route.query.schedul_time,
170
+                partition_type:this.$route.query.partition_type,
171
+                schedul_time:this.$route.query.schedul_time,
172
+                keywords:this.$route.query.keywords,
173
+                start_time:this.$route.query.start_time,
174
+                end_time:this.$route.query.end_time
175
+
176
+             }
177
+           getSchedualPatient(params).then(response=>{
178
+             if(response.data.state == 1){
179
+                var schedule =  response.data.data.schedule
180
+                this.tableDataList = schedule
181
+             }
182
+           })
183
+        },
184
+       getNowTime: function () {
185
+        let dateTime;
186
+        let yy = new Date().getFullYear();
187
+        let mm = new Date().getMonth() + 1;
188
+        let dd = new Date().getDate();
189
+        
190
+        dateTime = yy + '-' + mm + '-' + dd
191
+        return dateTime
192
+       },
193
+       
194
+       getTimeOne(val) {
195
+          if(val == ""){
196
+          return ""
197
+          }else {
198
+          return uParseTime(val, '{y}-{m}-{d}')
199
+          }
200
+       },
201
+       getCount(val){
202
+         var count = 0
203
+         if(val!=null && val.length > 0){
204
+          for(let i=0;i<val.length;i++){
205
+            count += parseInt(val[i].prescribing_number)
206
+          }
207
+         }
208
+         if(count > 0){
209
+          return count
210
+         }else{
211
+          return 0
212
+         }
213
+       },
214
+      printAction: function() {
215
+      const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
216
+  
217
+      printJS({
218
+          printable: 'print_content',
219
+          type: 'html',
220
+          documentTitle: '  ',
221
+          style: style,
222
+          scanStyles: false
223
+       })
224
+      },
225
+      getSpecification(id){
226
+          var specification_name = ""
227
+          for(let i=0;i<this.druglist.length;i++){
228
+            if(id == this.druglist[i].id){
229
+              specification_name = this.druglist[i].dose+this.druglist[i].dose_unit +"*"+this.druglist[i].min_number+this.druglist[i].min_unit +"/"+this.druglist[i].max_unit
230
+            }
231
+          }
232
+          return specification_name
233
+        },
234
+       getHisCount(val,max_unit,min_unit,min_number){
235
+          var total = 0
236
+          var max_str = "";
237
+          var min_str = "";
238
+          for(let i=0;i<val.length;i++){
239
+            total+=parseInt(val[i].prescribing_number)
240
+          }
241
+          if (total < min_number) {
242
+          min_str = total + min_unit;
243
+        }
244
+        if (total == 0) {
245
+          min_str = "";
246
+          max_str = "";
247
+        }
248
+        if (total >= min_number) {
249
+          if (parseInt(total / min_number) != 0) {
250
+            max_str = parseInt(total / min_number) + max_unit;
251
+          }
252
+          if (total % min_number != 0) {
253
+            min_str = (total % min_number) + min_unit;
254
+          }
255
+        }
256
+        return max_str + min_str;
257
+          
258
+        },
259
+        getManufacturer(id){
260
+          var  manufacturer_name = ""
261
+          for(let i=0;i<this.manufacturerList.length;i++){
262
+              if(id== this.manufacturerList[i].id){
263
+                manufacturer_name = this.manufacturerList[i].manufacturer_name
264
+              }
265
+          }
266
+          return manufacturer_name
267
+      }
268
+     }
269
+    }
270
+  </script>
271
+  
272
+  <style rel="stylesheet/scss" lang="scss" scoped>
273
+    .print_main_content {
274
+      background-color: white;
275
+      width: 960px;
276
+      margin: 0 auto;
277
+      padding: 0 0 20px 0;
278
+  
279
+    .order_title_panl {
280
+      text-align: center;
281
+  
282
+    .main_title {
283
+      font-size: 18px;
284
+      line-height: 40px;
285
+      font-weight: 500;
286
+    }
287
+  
288
+    }
289
+    .table_panel {
290
+  
291
+    .table {
292
+      width: 100%;
293
+      border: 1px solid;
294
+      border-collapse: collapse;
295
+      padding: 2px;
296
+  
297
+    thead {
298
+  
299
+    tr {
300
+  
301
+    td {
302
+      border: 1px solid;
303
+      text-align: center;
304
+      font-size: 20px;
305
+      padding: 15px 5px;
306
+    }
307
+  
308
+    }
309
+    }
310
+    tbody {
311
+  
312
+    tr {
313
+  
314
+    td {
315
+      border: 1px solid;
316
+      text-align: center;
317
+      font-size: 18px;
318
+      padding: 10px 5px;
319
+  
320
+    .proj {
321
+      padding: 5px 0;
322
+      text-align: left;
323
+  
324
+    .proj_title {
325
+      font-size: 16px;
326
+      font-weight: 500;
327
+      line-height: 25px;
328
+    }
329
+  
330
+    .proj_item {
331
+      font-size: 15px;
332
+      line-height: 20px;
333
+  
334
+    .zone_name {
335
+      font-weight: 500;
336
+    }
337
+  
338
+    }
339
+    }
340
+    }
341
+    }
342
+    }
343
+    }
344
+    }
345
+    }
346
+  </style>
347
+  
348
+  

+ 30 - 14
src/xt_pages/user/doctorAdvice.vue View File

@@ -102,6 +102,22 @@
102 102
           </ul>
103 103
         </div>
104 104
       </div>
105
+
106
+      <div class="cell clearfix">
107
+        <label class="title"> <span class="name">给药途径</span> : </label>
108
+        <div class="time">
109
+          <ul class>
110
+            <li
111
+              :class="item.id == listQuery.delivery_way ? 'active' : ''"
112
+              @click="selectDeliveryWay(item.id)"
113
+              v-for="item in deliveryWay"
114
+              :key="item.id"
115
+            >
116
+              {{ item.name }}
117
+            </li>
118
+          </ul>
119
+        </div>
120
+      </div>
105 121
      
106 122
 
107 123
       <div class="cell clearfix">
@@ -3533,16 +3549,16 @@ export default {
3533 3549
       };
3534 3550
     },
3535 3551
     getList() {
3536
-      //  var name = ""
3537
-      //   for(let i=0;i<this.deliveryWay.length;i++){
3538
-      //       if(this.listQuery.delivery_way == this.deliveryWay[i].id){
3539
-      //         name = this.deliveryWay[i].name
3540
-      //       }
3541
-      //   }
3542
-      //   if(name == '全部'){
3543
-      //     name = ""
3544
-      //   }
3545
-      //  this.listQuery.delivery_way_one = name
3552
+       var name = ""
3553
+        for(let i=0;i<this.deliveryWay.length;i++){
3554
+            if(this.listQuery.delivery_way == this.deliveryWay[i].id){
3555
+              name = this.deliveryWay[i].name
3556
+            }
3557
+        }
3558
+        if(name == '全部'){
3559
+          name = ""
3560
+        }
3561
+       this.listQuery.delivery_way_one = name
3546 3562
       getDoctorAdviceList(this.listQuery).then(response => {
3547 3563
         if (response.data.state == 1) {
3548 3564
           this.adviceTableData = response.data.data.advices;
@@ -4525,10 +4541,10 @@ export default {
4525 4541
           this.deliveryWayOptions =
4526 4542
             response.data.data.drugways === null? []: response.data.data.drugways;
4527 4543
           this.executionFrequencyOptions = response.data.data.efs === null ? [] : response.data.data.efs;
4528
-          // var dics  =  response.data.data.dics
4529
-          // var obj = {id:0,name:"全部"}
4530
-          // this.deliveryWay.push(obj)
4531
-          // this.deliveryWay.push(...dics)
4544
+          var dics  =  response.data.data.dics
4545
+          var obj = {id:0,name:"全部"}
4546
+          this.deliveryWay.push(obj)
4547
+          this.deliveryWay.push(...dics)
4532 4548
         }
4533 4549
       });
4534 4550
     },