Browse Source

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

yq1 7 months ago
parent
commit
f07e270db8
26 changed files with 1240 additions and 361 deletions
  1. 6 1
      src/api/drug/drug.js
  2. 11 0
      src/router/modules/patient.js
  3. 3 3
      src/router/modules/selfPreparedMedicine.js
  4. 5 5
      src/xt_pages/data/basicConfig.vue
  5. 15 1
      src/xt_pages/data/components/addDrugs.vue
  6. 6 0
      src/xt_pages/data/components/drugs.vue
  7. 1 1
      src/xt_pages/dialysis/batch_print/batch_print_order_seventynine.vue
  8. 9 2
      src/xt_pages/dialysis/batch_print/batch_print_order_seventythree.vue
  9. 17 5
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  10. 7 0
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  11. 11 8
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  12. 1 1
      src/xt_pages/dialysis/doctorAdvicePrintOne.vue
  13. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventynine.vue
  14. 143 5
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  15. 122 111
      src/xt_pages/outpatientTool/components/pdetail.vue
  16. 4 2
      src/xt_pages/stock/selfPreparedMedicine/addWarehouseOut.vue
  17. 33 28
      src/xt_pages/stock/selfPreparedMedicine/editWarehouseInfo.vue
  18. 76 42
      src/xt_pages/stock/selfPreparedMedicine/editWarehouseOut.vue
  19. 79 11
      src/xt_pages/stock/selfPreparedMedicine/newDrugQuery.vue
  20. 122 47
      src/xt_pages/stock/selfPreparedMedicine/patientDrugQuery.vue
  21. 2 1
      src/xt_pages/stock/selfPreparedMedicine/selfDrugBatchNumber.vue
  22. 6 3
      src/xt_pages/stock/selfPreparedMedicine/selfDrugFlow.vue
  23. 35 31
      src/xt_pages/stock/selfPreparedMedicine/warehouseInfo.vue
  24. 65 44
      src/xt_pages/stock/selfPreparedMedicine/warehouseOut.vue
  25. 15 8
      src/xt_pages/user/components/PatientSidebar.vue
  26. 445 0
      src/xt_pages/user/lapsoSummary.vue

+ 6 - 1
src/api/drug/drug.js View File

@@ -910,5 +910,10 @@ export function deleteSelfWarehouseOutList(id,params){
910 910
 }
911 911
 
912 912
 export function getSelfDrugWarehouseOutDetailByPatientId(params){
913
-
913
+  
914
+  return request({
915
+    url:"/api/drug/getselfDrugwarehouseoutdetailbypatientid",
916
+    method:"Get",
917
+    params:params,
918
+  })
914 919
 }

+ 11 - 0
src/router/modules/patient.js View File

@@ -172,6 +172,17 @@ export default {
172 172
       noCache: true
173 173
     }
174 174
   },
175
+  {
176
+    path: '/patient/patient/:id/lapsoSummary',
177
+    component: () => import('@/xt_pages/user/lapsoSummary'),
178
+    hidden: true,
179
+    is_menu: false,
180
+    name: 'lapsoSummary',
181
+    meta: {
182
+      title: 'lapsoSummary',
183
+      noCache: true
184
+    }
185
+  },
175 186
   {
176 187
     path: '/patients/course',
177 188
     component: () => import('@/xt_pages/user/courseOfDisease'),

+ 3 - 3
src/router/modules/selfPreparedMedicine.js View File

@@ -24,7 +24,7 @@ export default {
24 24
       path:'/stock/selfdrugquery',
25 25
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/selfDrugQuery'),
26 26
       name: 'stockquery',
27
-      meta: { title: '自备药库存查询', noCache: true }
27
+      meta: { title: '库存查询', noCache: true }
28 28
 
29 29
     },
30 30
 
@@ -32,7 +32,7 @@ export default {
32 32
       path: '/stock/selfwarehouse/info',
33 33
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/warehouseInfo'),
34 34
       name: 'selfPrepareWaresing',
35
-      meta: { title: '自备药入库', noCache: true }
35
+      meta: { title: '入库', noCache: true }
36 36
 
37 37
     },
38 38
     {
@@ -55,7 +55,7 @@ export default {
55 55
       path: '/stock/selfwarehouse/out',
56 56
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/warehouseOut'),
57 57
       name: 'selfPrepareWareOut',
58
-      meta: { title: '自备药出库', noCache: true }
58
+      meta: { title: '出库', noCache: true }
59 59
 
60 60
     },
61 61
     {

+ 5 - 5
src/xt_pages/data/basicConfig.vue View File

@@ -46,17 +46,17 @@
46 46
                 <el-switch v-model="good_out_open" @change="changeGoodOutOpen"></el-switch>
47 47
             </p>
48 48
 
49
-            <!-- <p style="margin-top:20px;">药品耗材在结算时出库:
49
+            <p style="margin-top:20px;">药品耗材在结算时出库:
50 50
                 <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
51
-            </p> -->
51
+            </p>
52 52
 
53
-            <!-- <p style="margin-top:20px;">药品在保存处方时同步到自备库:
53
+            <p style="margin-top:20px;">药品在保存处方时同步到自备库:
54 54
                <el-switch v-model="self_prescription_out_open" @change="changeSelfPrescriptionOpen"></el-switch>
55 55
             </p>
56 56
 
57 57
             <p style="margin-top:20px;">药品在执行时自备药出库:
58 58
                <el-switch v-model="self_drug_out_open" @change="changeSelfPrescriptionOutOpen"></el-switch>
59
-            </p> -->
59
+            </p>
60 60
         </div>
61 61
 
62 62
 
@@ -544,7 +544,7 @@ export default {
544 544
     // this.getOrderConfig()
545 545
     this.getDataPrintList()
546 546
 
547
-    // this.getSelfPrintList()
547
+    this.getSelfPrintList()
548 548
   }
549 549
 };
550 550
 </script>

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

@@ -509,6 +509,17 @@
509 509
                             </el-option>
510 510
                         </el-select>
511 511
                     </el-form-item>
512
+
513
+                    <el-form-item label="是否自备药:" prop="is_pharmacy">
514
+                        <el-select v-model="form.is_self_drug" style="width:160px;" placeholder="请选择">
515
+                            <el-option
516
+                                    v-for="item in selfDrugList"
517
+                                    :key="item.id"
518
+                                    :label="item.name"
519
+                                    :value="item.id">
520
+                            </el-option>
521
+                        </el-select>
522
+                    </el-form-item>
512 523
                     <el-form-item label="" style="visibility: hidden;">
513 524
                         <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
514 525
                     </el-form-item>
@@ -655,6 +666,7 @@
655 666
           bby01:"",
656 667
           is_project:"",
657 668
           is_show:"",
669
+          is_self_drug:"2"
658 670
         },
659 671
 
660 672
         rules: {
@@ -714,7 +726,8 @@
714 726
           name: "否"
715 727
         }],
716 728
         projectList:[{id:"1",name:"是"},{id:"2",name:"否"}],
717
-        showList:[{id:"1",name:"是"},{id:"2",name:"否"}]
729
+        showList:[{id:"1",name:"是"},{id:"2",name:"否"}],
730
+        selfDrugList:[{id:"1",name:"是"},{id:"2",name:"否"}]
718 731
       }
719 732
     },
720 733
     props: {
@@ -988,6 +1001,7 @@
988 1001
         form['bby01'] = this.form.bby01
989 1002
         form['is_project'] = this.form.is_project
990 1003
         form['is_show'] = this.form.is_show
1004
+        form['is_self_drug'] = parseInt(this.form.is_self_drug)
991 1005
         return form
992 1006
       },
993 1007
       getlist() {

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

@@ -748,6 +748,12 @@
748 748
                 this.formValue.is_show = this.formValue.is_show.toString()
749 749
               }
750 750
 
751
+              if(this.formValue.is_self_drug <=0){
752
+                  this.formValue.is_self_drug = ""
753
+              }else{
754
+                this.formValue.is_self_drug = this.formValue.is_self_drug.toString()
755
+              }
756
+
751 757
 
752 758
               this.$refs.addDrugs.show(id, this.formValue)
753 759
 

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seventynine.vue View File

@@ -133,7 +133,7 @@
133 133
                   <tr>
134 134
                     <td colspan="2">
135 135
                       <div style="line-height:30px;">
136
-                      <span>计划脱水量: {{ record.prescription.prescription_water ? record.prescription.prescription_water : "" }} </span>ml &nbsp;&nbsp;
136
+                      <span>计划脱水量: {{ record.prescription.prescription_water ? record.prescription.prescription_water : "" }} </span>L &nbsp;&nbsp;
137 137
                       <span>透析液流量: {{ record.prescription.dialysate_flow ? record.prescription.dialysate_flow : "" }} </span>ml/h
138 138
                       </div>
139 139
                     </td>

+ 9 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_seventythree.vue View File

@@ -93,13 +93,20 @@
93 93
             <div class="inline_block" style="flex: 1">
94 94
               透析次数:
95 95
               <div class="under_line" style="width: 70px; text-align: center">
96
-                {{
96
+                <!-- {{
97 97
                   record.patient.total_dialysis +
98 98
                   record.patient.user_sys_before_count
99 99
                     ? record.patient.total_dialysis +
100 100
                       record.patient.user_sys_before_count
101 101
                     : "/"
102
-                }}
102
+                }} -->
103
+                {{
104
+                  record.Count +
105
+                  record.patient.user_sys_before_count
106
+                    ?  record.Count +
107
+                      record.patient.user_sys_before_count
108
+                    : "/"
109
+                 }}
103 110
               </div>
104 111
             </div>
105 112
           </div>

+ 17 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -1219,8 +1219,8 @@
1219 1219
                         </div>
1220 1220
                         mmol/L
1221 1221
                       </div>
1222
-                      <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478 && org_id!=0&&org_id!=10510">
1223
-                        流量:
1222
+                      <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478 && org_id!=0&&org_id!=10510 &&org_id!=10683">
1223
+                       透析液流量:
1224 1224
                         <div
1225 1225
                           class="under_line"
1226 1226
                           style="width: 50px; text-align: center"
@@ -1671,8 +1671,13 @@
1671 1671
                             "
1672 1672
                             width="50"
1673 1673
                           >
1674
-                            置换量<br />
1675
-                            <span v-if="org_id!=10598 && org_id!=10567">(ml)</span>
1674
+                          <span v-if="org_id!=0&&org_id!=10683">置换量</span> 
1675
+                          <span v-if="org_id ==0||org_id==10683">置换液速度</span> 
1676
+                            <br />
1677
+                            <span v-if="org_id!=10598 && org_id!=10567">
1678
+                              <span v-if="org_id!=0&&org_id!=10683">(ml)</span>
1679
+                              <span v-if="org_id ==0||org_id==10683">(ml/h)</span>
1680
+                            </span>
1676 1681
                             <span v-if="org_id==10598 || org_id == 10567">L</span>
1677 1682
                           </td>
1678 1683
                           <td v-if="org_id == 3877  || org_id == 10449" width="50">滤前压(mmHg)</td>
@@ -1908,11 +1913,18 @@
1908 1913
                             "
1909 1914
                             style="width: 50px"
1910 1915
                           >
1911
-                            {{
1916
+                           <span v-if="org_id!=0&&org_id!=10683">{{
1912 1917
                               monitor_record.replacement_total
1913 1918
                                 ? monitor_record.replacement_total
1914 1919
                                 : ""
1915 1920
                             }}
1921
+                            </span> 
1922
+                            <span v-if="org_id==0||org_id==10683">{{
1923
+                              monitor_record.replacement_speed
1924
+                                ? monitor_record.replacement_speed
1925
+                                : ""
1926
+                            }}
1927
+                            </span> 
1916 1928
                           </td>
1917 1929
                           <td v-if="org_id == 3877  || org_id == 10449">
1918 1930
                             {{

+ 7 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -1255,6 +1255,13 @@
1255 1255
          //最后一次血管通路
1256 1256
 
1257 1257
          if(this.lastAssessment!=null){
1258
+          if(this.$store.getters.xt_user.template_info.org_id == 10697){
1259
+
1260
+            this.assessmentBeforeDislysis.breathing_rate =18
1261
+
1262
+            this.assessmentBeforeDislysis.temperature = 36.7
1263
+
1264
+          }
1258 1265
            var blood_id = 0
1259 1266
            for(let i= 0;i<this.blood_access_part_opera.length;i++){
1260 1267
               if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_part_opera[i].name){

+ 11 - 8
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -362,8 +362,8 @@
362 362
                     </el-col>
363 363
 
364 364
                     <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
365
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 &&  this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 &&this.$store.getters.xt_user.template_info.org_id != 10495 &&this.$store.getters.xt_user.template_info.org_id != 10375 &&this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702">
366
-                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 &&this.$store.getters.xt_user.template_info.template_id != 45 &&this.$store.getters.xt_user.template_info.org_id != 10346 &&this.$store.getters.xt_user.template_info.org_id != 10387 &&this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 &&this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600">
365
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 &&  this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 &&this.$store.getters.xt_user.template_info.org_id != 10495 &&this.$store.getters.xt_user.template_info.org_id != 10375 &&this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10510">
366
+                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 &&this.$store.getters.xt_user.template_info.template_id != 45 &&this.$store.getters.xt_user.template_info.org_id != 10346 &&this.$store.getters.xt_user.template_info.org_id != 10387 &&this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 &&this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10510">
367 367
                             <el-form-item v-if='dialysisPrescription.anticoagulant != 1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.org_id != 9987 &&  this.$store.getters.xt_user.template_info.org_id!=9990' :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
368 368
 
369 369
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -402,7 +402,8 @@
402 402
                                     this.$store.getters.xt_user.template_info.org_id ==10495 ||
403 403
                                     this.$store.getters.xt_user.template_info.org_id ==10375 ||
404 404
                                     this.$store.getters.xt_user.template_info.org_id ==10551 ||
405
-                                    this.$store.getters.xt_user.template_info.org_id ==10600
405
+                                    this.$store.getters.xt_user.template_info.org_id ==10600 ||
406
+                                    this.$store.getters.xt_user.template_info.org_id ==10510 
406 407
                                     '
407 408
                                     :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
408 409
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -467,7 +468,7 @@
467 468
 
468 469
 
469 470
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持')  && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
470
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702">
471
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10510">
471 472
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 ">
472 473
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
473 474
                                           v-if="anticoagulant.weichi != -1 &&
@@ -480,6 +481,7 @@
480 481
                                             this.$store.getters.xt_user.template_info.org_id != 10495 &&
481 482
                                             this.$store.getters.xt_user.template_info.org_id != 10375 &&
482 483
                                             this.$store.getters.xt_user.template_info.org_id != 10551 &&
484
+                                            this.$store.getters.xt_user.template_info.org_id != 10510 &&
483 485
                                             this.$store.getters.xt_user.template_info.org_id != 10600" prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
484 486
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
485 487
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
@@ -499,7 +501,8 @@
499 501
                                           this.$store.getters.xt_user.template_info.org_id == 10495 ||
500 502
                                           this.$store.getters.xt_user.template_info.org_id == 10375 ||
501 503
                                           this.$store.getters.xt_user.template_info.org_id == 10551 ||
502
-                                          this.$store.getters.xt_user.template_info.org_id == 10600
504
+                                          this.$store.getters.xt_user.template_info.org_id == 10600 ||
505
+                                          this.$store.getters.xt_user.template_info.org_id == 10510 
503 506
                                           " prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
504 507
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
505 508
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
@@ -578,10 +581,10 @@
578 581
 
579 582
 
580 583
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
581
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702">
584
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702&& this.$store.getters.xt_user.template_info.org_id != 10510">
582 585
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 10495">
583 586
                             <el-form-item
584
-                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375  && this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600'
587
+                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375  && this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600  && this.$store.getters.xt_user.template_info.org_id != 10510'
585 588
                                     :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
586 589
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
587 590
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
@@ -589,7 +592,7 @@
589 592
                                           v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
590 593
                             </el-form-item>
591 594
                             <el-form-item
592
-                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38||  this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.template_id == 54 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10551 || this.$store.getters.xt_user.template_info.org_id == 10600 '
595
+                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38||  this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.template_id == 54 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10551 || this.$store.getters.xt_user.template_info.org_id == 10600 || this.$store.getters.xt_user.template_info.org_id == 10510'
593 596
                                     :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
594 597
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
595 598
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>

+ 1 - 1
src/xt_pages/dialysis/doctorAdvicePrintOne.vue View File

@@ -256,7 +256,7 @@ export default {
256 256
                     this.project = resp.data.project
257 257
                     resp.data.hisAdvices.map((item,index) => {
258 258
                     item.new_advice = item.new_advice ? item.new_advice : []
259
-                      if(this.org_id!=9671 && this.org_id!= 10318 && this.org_id!=0 && this.org_id!=10375){
259
+                      if(this.org_id!=9671 && this.org_id!= 10318 && this.org_id!=0 && this.org_id!=10375 && this.org_id!=10633){
260 260
                         if(this.project[index].project.length > 0){
261 261
                             this.project[index].project.map(it => {
262 262
                             let obj = {

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventynine.vue View File

@@ -113,7 +113,7 @@
113 113
             <tr>
114 114
               <td colspan="2">
115 115
                 <div style="line-height:30px;">
116
-                 <span>计划脱水量: {{ prescription.prescription_water ? prescription.prescription_water : "" }} </span>ml &nbsp;&nbsp;
116
+                 <span>计划脱水量: {{ prescription.prescription_water ? prescription.prescription_water : "" }} </span>L &nbsp;&nbsp;
117 117
                  <span>透析液流量: {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }} </span>ml/h
118 118
                 </div>
119 119
               </td>

+ 143 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -971,6 +971,7 @@
971 971
                     <div
972 972
                       class="inline_block"
973 973
                       style="margin-left: 10px; flex: 1"
974
+                      v-if="org_id!=10683"
974 975
                     >
975 976
                       血流量:
976 977
                       <div
@@ -1295,7 +1296,7 @@
1295 1296
                       </div>
1296 1297
                       mmol/L
1297 1298
                     </div>
1298
-                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478">
1299
+                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478 && org_id!=10683 && org_id!=0">
1299 1300
                       透析液流量:
1300 1301
                       <div
1301 1302
                         class="under_line"
@@ -1735,8 +1736,13 @@
1735 1736
                         <td width="50" v-if="org_id == 10600 || org_id ==10598 || org_id ==10683">超滤率<br/>(ml/h)</td>
1736 1737
                         <td width="50" v-if="org_id ==3877 || org_id == 10449 || org_id ==0">累计超滤量<br />(ml)</td>
1737 1738
                         <td v-if="(prescription.mode_id == 2 ||prescription.mode_id == 5 ||prescription.mode_id == 12) &&org_id!=10478 && org_id!=0 && org_id!=10206" width="50">
1738
-                          置换量<br />
1739
-                          <span v-if="org_id!=10598 && org_id!=10567">(ml)</span>
1739
+                          <span v-if="org_id == 0 || org_id == 10683">置换液速度</span>
1740
+                          <span v-if="org_id!=0&&org_id!=10683">置换量</span> 
1741
+                          <br />
1742
+                          <span v-if="org_id!=10598 && org_id!=10567">
1743
+                            <span v-if="org_id!=0&&org_id!=10683">(ml)</span>
1744
+                            <span v-if="org_id ==0||org_id==10683">(ml/h)</span>
1745
+                          </span>
1740 1746
                           <span v-if="org_id==10598 || org_id == 10567">(L)</span>
1741 1747
                         </td>
1742 1748
                         <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
@@ -1873,11 +1879,20 @@
1873 1879
                           style="width: 50px"
1874 1880
                         >
1875 1881
                           <span>
1882
+                           <span v-if="org_id!=0&&org_id!=10683"> 
1876 1883
                             {{
1877 1884
                               monitor.displacement_quantity
1878 1885
                                 ? monitor.displacement_quantity
1879 1886
                                 : ""
1880 1887
                             }}
1888
+                            </span> 
1889
+                            <span v-if="org_id == 0 || org_id == 10683">
1890
+                              {{
1891
+                              monitor.replacement_speed
1892
+                                ? monitor.replacement_speed
1893
+                                : ""
1894
+                             }}
1895
+                            </span>
1881 1896
                           </span>
1882 1897
                         </td>
1883 1898
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
@@ -3367,7 +3382,7 @@
3367 3382
 
3368 3383
 
3369 3384
                   </div>
3370
-                  <div v-if="org_id!=10440">
3385
+                  <div v-if="org_id ==10644">
3371 3386
                     <div class="inline_block" style="flex: 1" v-if="predialysis.catheter == ''">
3372 3387
                       穿刺护士:
3373 3388
                       <div
@@ -3489,7 +3504,130 @@
3489 3504
                     </div>
3490 3505
                   </div>
3491 3506
 
3492
-                  <div v-if="org_id==0||org_id==10440">
3507
+
3508
+                  <div v-if="org_id !=10644 && org_id!=10440">
3509
+                    <div class="inline_block" style="flex: 1" v-if="predialysis.catheter == ''">
3510
+                      穿刺护士:
3511
+                      <div
3512
+                        class="under_line"
3513
+                        style="width: 90px; text-align: center"
3514
+                      >
3515
+                        <span
3516
+                          style="height: 30px; display: inline-block"
3517
+                          v-if="
3518
+                            setAdminUserES(
3519
+                              dialysisOrder == null
3520
+                                ? 0
3521
+                                : dialysisOrder.puncture_nurse
3522
+                            ) == ''
3523
+                          "
3524
+                        >
3525
+                          {{
3526
+                            getAdminUser(
3527
+                              dialysisOrder == null
3528
+                                ? 0
3529
+                                : dialysisOrder.puncture_nurse
3530
+                            )
3531
+                          }}</span
3532
+                        >
3533
+                        <img
3534
+                          style="height: 35px"
3535
+                          :src="
3536
+                            setAdminUserES(
3537
+                              dialysisOrder == null
3538
+                                ? 0
3539
+                                : dialysisOrder.puncture_nurse
3540
+                            )
3541
+                          "
3542
+                          alt=""
3543
+                          srcset=""
3544
+                          v-else
3545
+                        />
3546
+                      </div>
3547
+                    </div>
3548
+
3549
+                    <div class="inline_block" style="flex: 1" v-if="predialysis.catheter != ''">
3550
+                      穿刺护士:
3551
+
3552
+                      <div
3553
+                        class="under_line"
3554
+                        style="width: 90px; text-align: center"
3555
+                        v-if="org_id==10644"
3556
+                      >
3557
+                        <span
3558
+                          style="height: 30px; display: inline-block"
3559
+                          v-if="
3560
+                            setAdminUserES(
3561
+                              dialysisOrder == null
3562
+                                ? 0
3563
+                                : dialysisOrder.puncture_nurse
3564
+                            ) == ''
3565
+                          "
3566
+                        >
3567
+                          {{
3568
+                            getAdminUser(
3569
+                              dialysisOrder == null
3570
+                                ? 0
3571
+                                : dialysisOrder.puncture_nurse
3572
+                            )
3573
+                          }}</span
3574
+                        >
3575
+                        <img
3576
+                          style="height: 35px"
3577
+                          :src="
3578
+                            setAdminUserES(
3579
+                              dialysisOrder == null
3580
+                                ? 0
3581
+                                : dialysisOrder.puncture_nurse
3582
+                            )
3583
+                          "
3584
+                          alt=""
3585
+                          srcset=""
3586
+                          v-else
3587
+                        />
3588
+                      </div>
3589
+
3590
+                      <div
3591
+                        class="under_line"
3592
+                        style="width: 90px; text-align: center"
3593
+                        v-if="org_id!=10644"
3594
+                      >
3595
+                        <span
3596
+                          style="height: 30px; display: inline-block"
3597
+                          v-if="
3598
+                            setAdminUserES(
3599
+                              dialysisOrder == null
3600
+                                ? 0
3601
+                                : dialysisOrder.puncture_nurse
3602
+                            ) == ''
3603
+                          "
3604
+                        >
3605
+                          {{
3606
+                            getAdminUser(
3607
+                              dialysisOrder == null
3608
+                                ? 0
3609
+                                : dialysisOrder.puncture_nurse
3610
+                            )
3611
+                          }}</span
3612
+                        >
3613
+                        <img
3614
+                          style="height: 35px"
3615
+                          :src="
3616
+                            setAdminUserES(
3617
+                              dialysisOrder == null
3618
+                                ? 0
3619
+                                : dialysisOrder.puncture_nurse
3620
+                            )
3621
+                          "
3622
+                          alt=""
3623
+                          srcset=""
3624
+                          v-else
3625
+                        />
3626
+                      </div>
3627
+                    </div>
3628
+                  </div>
3629
+
3630
+                  <div v-if="org_id==10440">
3493 3631
 
3494 3632
                     <div class="inline_block" style="flex: 1">
3495 3633
                      <div>

+ 122 - 111
src/xt_pages/outpatientTool/components/pdetail.vue View File

@@ -114,7 +114,7 @@
114 114
       </el-table-column>
115 115
 
116 116
       <el-table-column align="center" prop="price" label="单价">
117
-        <template slot-scope="scope">{{scope.row.price.toFixed(2)}}</template>
117
+        <template slot-scope="scope">{{scope.row.price}}</template>
118 118
       </el-table-column>
119 119
 
120 120
       <el-table-column align="center" prop="sum" label="金额">
@@ -126,6 +126,10 @@
126 126
       <el-table-column align="center" prop="name" label="是否结算">
127 127
         <template slot-scope="scope">{{scope.row.order_status == 2?'已结算':'未结算'}}</template>
128 128
       </el-table-column>
129
+
130
+      <el-table-column align="center" prop="name" label="结算时间">
131
+        <template slot-scope="scope">{{scope.row.order_status == 2?scope.row.setl_time:''}}</template>
132
+      </el-table-column>
129 133
     </el-table>
130 134
   </div>
131 135
 
@@ -528,6 +532,8 @@ export default {
528 532
               newObj['price'] = orders[c].pric
529 533
 
530 534
               newObj['order_status'] = orders[c].order_status
535
+              newObj['setl_time'] = orders[c].setl_time
536
+
531 537
               newObj['med_type'] = orders[c].med_type
532 538
               newObj['record_date'] = orders[c].record_date
533 539
               newObj['unit'] = orders[c].unit
@@ -546,7 +552,6 @@ export default {
546 552
                 newObj['item_id'] = orders[c].item_id
547 553
                 if (orders[c].p_type == 2) {
548 554
                   newObj['type'] = 2
549
-
550 555
                   newObj['item_spec'] = ""
551 556
                   newObj['item_name'] = orders[c].item_name
552 557
                 } else if (orders[c].p_type == 3) {
@@ -561,120 +566,126 @@ export default {
561 566
             tempPatientsTwo.push(obj)
562 567
           }
563 568
 
564
-          for (let d = 0; d < tempPatientsTwo.length; d++) {
565
-            tempPatientsTwo[d]['new_order_info'] = []
566
-            let project = []
567
-            let advice = []
568
-            for (let b = 0; b < tempPatientsTwo[d].order_info.length; b++) {
569
-              if (tempPatientsTwo[d].order_info[b].type == 1) {
570
-                advice.push(tempPatientsTwo[d].order_info[b])
571
-              } else {
572
-                project.push(tempPatientsTwo[d].order_info[b])
573
-              }
574
-            }
575
-            project = this.uniqueProjectAndAdvice(project)
576
-            advice = this.uniqueProjectAndAdvice(advice)
577
-
578
-            for (let i = 0; i < project.length; i++) {
579
-              let obj = {}
580
-              let count = 0
581
-              for (let a = 0; a < tempPatientsTwo[d].order_info.length; a++) {
582
-                if (project[i].item_id == tempPatientsTwo[d].order_info[a].item_id && project[i].price == tempPatientsTwo[d].order_info[a].price) {
583
-                  count = count + tempPatientsTwo[d].order_info[a].count
584
-                }
585
-              }
586
-
587
-              obj['price'] = project[i].price
588
-              obj['type'] = project[i].type
589
-              obj['item_name'] = project[i].item_name
590
-              obj['item_spec'] = project[i].item_spec
591
-
592
-              obj['order_status'] = project[i].order_status
593
-              obj['med_type'] = project[i].med_type
594
-              obj['record_date'] = project[i].record_date
595
-              obj['item_cost_type'] = project[i].item_cost_type
596
-              obj['unit'] = project[i].unit
597
-
598
-
599
-              // obj['item_total'] = project[i].item_total
600
-
601
-              obj['item_id'] = project[i].item_id
602
-              obj['name'] = tempPatientsTwo[d].name
603
-              obj['patient_id'] = tempPatientsTwo[d].patient_id
604
-              obj['count'] = count
605
-              tempPatientsTwo[d].new_order_info.push(obj)
606
-            }
607
-
608
-            for (let i = 0; i < advice.length; i++) {
609
-              let obj = {}
610
-              let count = 0
611
-              for (let a = 0; a < tempPatientsTwo[d].order_info.length; a++) {
612
-                if (advice[i].item_id == tempPatientsTwo[d].order_info[a].item_id && advice[i].price == tempPatientsTwo[d].order_info[a].price) {
613
-                  count = count + tempPatientsTwo[d].order_info[a].count
614
-                }
615
-              }
616
-
617
-              obj['price'] = advice[i].price
618
-              obj['type'] = advice[i].type
619
-              obj['item_name'] = advice[i].item_name
620
-              obj['item_spec'] = advice[i].item_spec
621
-              obj['item_id'] = advice[i].item_id
622
-              obj['unit'] = advice[i].unit
623
-
624
-              obj['name'] = tempPatientsTwo[d].name
625
-              obj['order_status'] = advice[i].order_status
626
-              obj['med_type'] = advice[i].med_type
627
-              obj['record_date'] = advice[i].record_date
628
-              obj['item_cost_type'] = advice[i].item_cost_type
629
-              // obj['item_total'] = advice[i].item_total
630
-              obj['patient_id'] = tempPatientsTwo[d].patient_id
631
-              obj['count'] = count
632
-              tempPatientsTwo[d].new_order_info.push(obj)
633
-            }
634
-
635
-          }
636 569
           for (let i = 0; i < tempPatientsTwo.length; i++) {
637
-            let total = 0
638
-            for (let b = 0; b < tempPatientsTwo[i].new_order_info.length; b++) {
639
-              let new_name = tempPatientsTwo[i].new_order_info[b].item_name
640
-              if (new_name != undefined) {
641
-                if (new_name.length != 0) {
642
-                  console.log(parseFloat(tempPatientsTwo[i].new_order_info[b].count) * parseFloat(tempPatientsTwo[i].new_order_info[b].price))
643
-                  total = parseFloat(total) + parseFloat((parseFloat(tempPatientsTwo[i].new_order_info[b].count) * parseFloat(tempPatientsTwo[i].new_order_info[b].price)).toFixed(2))
644
-                }
645
-
646
-              }
647
-
570
+            for (let b = 0; b < tempPatientsTwo[i].order_info.length; b++) {
571
+            let obj = {
572
+              name: tempPatientsTwo[i].name,
573
+              patient_id: tempPatientsTwo[i].patient_id,
574
+              price: tempPatientsTwo[i].order_info[b].price,
575
+              type: tempPatientsTwo[i].order_info[b].type,
576
+              item_name: tempPatientsTwo[i].order_info[b].item_name,
577
+              item_id: tempPatientsTwo[i].order_info[b].item_id,
578
+              count: tempPatientsTwo[i].order_info[b].count,
579
+              item_spec: tempPatientsTwo[i].order_info[b].item_spec,
580
+              order_status: tempPatientsTwo[i].order_info[b].order_status,
581
+              setl_time: tempPatientsTwo[i].order_info[b].setl_time,
582
+              med_type: tempPatientsTwo[i].order_info[b].med_type,
583
+              record_date: tempPatientsTwo[i].order_info[b].record_date,
584
+              item_cost_type: tempPatientsTwo[i].order_info[b].item_cost_type,
585
+              unit: tempPatientsTwo[i].order_info[b].unit,
586
+              sum: parseFloat(tempPatientsTwo[i].order_info[b].price * tempPatientsTwo[i].order_info[b].count).toFixed(2),
648 587
             }
649
-            tempPatientsTwo[i]['total'] = total
588
+            this.tableData.push(obj)
650 589
           }
651
-          for (let i = 0; i < tempPatientsTwo.length; i++) {
652
-            // console.log(111,tempPatientsTwo[i].total)
653
-            if (tempPatientsTwo[i].new_order_info.length > 0) {
590
+        }
654 591
 
655
-              for (let b = 0; b < tempPatientsTwo[i].new_order_info.length; b++) {
592
+          // for (let d = 0; d < tempPatientsTwo.length; d++) {
593
+          //   tempPatientsTwo[d]['new_order_info'] = []
594
+          //   let project = []
595
+          //   let advice = []
596
+          //   for (let b = 0; b < tempPatientsTwo[d].order_info.length; b++) {
597
+          //     if (tempPatientsTwo[d].order_info[b].type == 1) {
598
+          //       advice.push(tempPatientsTwo[d].order_info[b])
599
+          //     } else {
600
+          //       project.push(tempPatientsTwo[d].order_info[b])
601
+          //     }
602
+          //   }
603
+          //   project = this.uniqueProjectAndAdvice(project)
604
+          //   advice = this.uniqueProjectAndAdvice(advice)
605
+          //
606
+          //   for (let i = 0; i < project.length; i++) {
607
+          //     let obj = {}
608
+          //     let count = 0
609
+          //     for (let a = 0; a < tempPatientsTwo[d].order_info.length; a++) {
610
+          //       if (project[i].item_id == tempPatientsTwo[d].order_info[a].item_id && project[i].price == tempPatientsTwo[d].order_info[a].price) {
611
+          //         count = count + tempPatientsTwo[d].order_info[a].count
612
+          //       }
613
+          //     }
614
+          //
615
+          //     obj['price'] = project[i].price
616
+          //     obj['type'] = project[i].type
617
+          //     obj['item_name'] = project[i].item_name
618
+          //     obj['item_spec'] = project[i].item_spec
619
+          //
620
+          //     obj['order_status'] = project[i].order_status
621
+          //     obj['setl_time'] = project[i].setl_time
622
+          //
623
+          //     obj['med_type'] = project[i].med_type
624
+          //     obj['record_date'] = project[i].record_date
625
+          //     obj['item_cost_type'] = project[i].item_cost_type
626
+          //     obj['unit'] = project[i].unit
627
+          //
628
+          //
629
+          //     // obj['item_total'] = project[i].item_total
630
+          //
631
+          //     obj['item_id'] = project[i].item_id
632
+          //     obj['name'] = tempPatientsTwo[d].name
633
+          //     obj['patient_id'] = tempPatientsTwo[d].patient_id
634
+          //     obj['count'] = count
635
+          //     tempPatientsTwo[d].new_order_info.push(obj)
636
+          //   }
637
+          //
638
+          //   for (let i = 0; i < advice.length; i++) {
639
+          //     let obj = {}
640
+          //     let count = 0
641
+          //     for (let a = 0; a < tempPatientsTwo[d].order_info.length; a++) {
642
+          //       if (advice[i].item_id == tempPatientsTwo[d].order_info[a].item_id && advice[i].price == tempPatientsTwo[d].order_info[a].price) {
643
+          //         count = count + tempPatientsTwo[d].order_info[a].count
644
+          //       }
645
+          //     }
646
+          //
647
+          //     obj['price'] = advice[i].price
648
+          //     obj['type'] = advice[i].type
649
+          //     obj['item_name'] = advice[i].item_name
650
+          //     obj['item_spec'] = advice[i].item_spec
651
+          //     obj['item_id'] = advice[i].item_id
652
+          //     obj['unit'] = advice[i].unit
653
+          //
654
+          //     obj['name'] = tempPatientsTwo[d].name
655
+          //     obj['order_status'] = advice[i].order_status
656
+          //     obj['setl_time'] = advice[i].setl_time
657
+          //
658
+          //     obj['med_type'] = advice[i].med_type
659
+          //     obj['record_date'] = advice[i].record_date
660
+          //     obj['item_cost_type'] = advice[i].item_cost_type
661
+          //     // obj['item_total'] = advice[i].item_total
662
+          //     obj['patient_id'] = tempPatientsTwo[d].patient_id
663
+          //     obj['count'] = count
664
+          //     tempPatientsTwo[d].new_order_info.push(obj)
665
+          //   }
666
+          //
667
+          // }
668
+          // for (let i = 0; i < tempPatientsTwo.length; i++) {
669
+          //   let total = 0
670
+          //   for (let b = 0; b < tempPatientsTwo[i].new_order_info.length; b++) {
671
+          //     let new_name = tempPatientsTwo[i].new_order_info[b].item_name
672
+          //     if (new_name != undefined) {
673
+          //       if (new_name.length != 0) {
674
+          //         console.log(parseFloat(tempPatientsTwo[i].new_order_info[b].count) * parseFloat(tempPatientsTwo[i].new_order_info[b].price))
675
+          //         total = parseFloat(total) + parseFloat((parseFloat(tempPatientsTwo[i].new_order_info[b].count) * parseFloat(tempPatientsTwo[i].new_order_info[b].price)).toFixed(2))
676
+          //       }
677
+          //
678
+          //     }
679
+          //
680
+          //   }
681
+          //   tempPatientsTwo[i]['total'] = total
682
+          // }
683
+          // for (let i = 0; i < tempPatientsTwo.length; i++) {
684
+          //   // console.log(111,tempPatientsTwo[i].total)
685
+          //   if (tempPatientsTwo[i].new_order_info.length > 0) {
686
+          //
656 687
 
657
-                let obj = {
658
-                  name: tempPatientsTwo[i].name,
659
-                  patient_id: tempPatientsTwo[i].patient_id,
660
-                  price: tempPatientsTwo[i].new_order_info[b].price,
661
-                  type: tempPatientsTwo[i].new_order_info[b].type,
662
-                  item_name: tempPatientsTwo[i].new_order_info[b].item_name,
663
-                  item_id: tempPatientsTwo[i].new_order_info[b].item_id,
664
-                  count: tempPatientsTwo[i].new_order_info[b].count,
665
-                  item_spec: tempPatientsTwo[i].new_order_info[b].item_spec,
666
-                  order_status: tempPatientsTwo[i].new_order_info[b].order_status,
667
-                  med_type: tempPatientsTwo[i].new_order_info[b].med_type,
668
-                  record_date: tempPatientsTwo[i].new_order_info[b].record_date,
669
-                  item_cost_type: tempPatientsTwo[i].new_order_info[b].item_cost_type,
670
-                  unit: tempPatientsTwo[i].new_order_info[b].unit,
671
-                }
672
-                obj['sum'] = parseFloat(tempPatientsTwo[i].new_order_info[b].price * tempPatientsTwo[i].new_order_info[b].count).toFixed(2)
673
-                obj['total'] = tempPatientsTwo[i].total
674
-                this.tableData.push(obj)
675
-              }
676
-            }
677
-          }
688
+          // }
678 689
           console.log(this.tableData)
679 690
           this.handleSpanTempArr()
680 691
           console.log(this.tableData)

+ 4 - 2
src/xt_pages/stock/selfPreparedMedicine/addWarehouseOut.vue View File

@@ -765,8 +765,9 @@
765 765
         this.$router.go(-1);
766 766
       },
767 767
       submit() {
768
-      this.$refs["tableForm"].validate((valid) => {
768
+        this.$refs["tableForm"].validate((valid) => {
769 769
         if (valid) {
770
+          this.loading = true
770 771
           const array = this.recordInfo.recordData;
771 772
           let total = 0;
772 773
           for (let i = 0; i < array.length; i++) {
@@ -843,7 +844,6 @@
843 844
               return false;
844 845
             } else {
845 846
               this.loading = false;
846
-              loading.close();
847 847
               var msg = response.data.data.msg;
848 848
               var drug_name = response.data.data.drug_name;
849 849
               var dose = response.data.data.dose;
@@ -1167,8 +1167,10 @@
1167 1167
             warehouse_out_id:this.warehouse_out_id,
1168 1168
             patient_id:this.patient_id,
1169 1169
          }
1170
+         this.loading = true
1170 1171
         checkSelfOutDrugQuery(params).then(response=>{
1171 1172
           if(response.data.state ==1){
1173
+            this.loading = false
1172 1174
             var warehousingOutInfoList = response.data.data.warehousingOutInfoList
1173 1175
               var msg =response.data.data.msg
1174 1176
               if(msg == 1){

+ 33 - 28
src/xt_pages/stock/selfPreparedMedicine/editWarehouseInfo.vue View File

@@ -579,7 +579,7 @@
579 579
       },
580 580
       handleDelete: function (index, row) {
581 581
 
582
-        this.$confirm('确定删除' + row.name + row.sub_name + '方案吗?', '提示', {
582
+        this.$confirm('确定删除吗?', '提示', {
583 583
           confirmButtonText: '确定',
584 584
           cancelButtonText: '取消',
585 585
           type: 'warning'
@@ -595,7 +595,7 @@
595 595
                 type: 'success',
596 596
                 duration: 2000
597 597
               })
598
-              this.tableData.splice(index, 1)
598
+              this.recordInfo.recordData.splice(index, 1)
599 599
 
600 600
             }
601 601
           })
@@ -969,8 +969,10 @@
969 969
             warehousing_id:this.warehousing_id,
970 970
             patient_id:this.patient_id,
971 971
           }
972
+          this.loading = true
972 973
         returnSelfCheckWarehouse(params).then(response=>{
973 974
            if(response.data.state == 1){
975
+            this.loading = false
974 976
             var list = response.data.data.list
975 977
              this.$message.success("反审核成功!")
976 978
              this.showCheck = true
@@ -984,44 +986,47 @@
984 986
       },
985 987
       //新
986 988
       getSelfDrugWarehouseInfoById(id){
987
-        
989
+        this.recordInfo.recordData = []
988 990
         getSelfDrugWarehouseInfoById(id).then(response=>{
989 991
            if(response.data.state == 1){
990 992
              var info = response.data.data.info
991
-             if(info.is_check == 2){
993
+             for(let i=0;i<info.length;i++){
994
+              const tempObj = {};
995
+              tempObj["id"] = info[i].id;
996
+              tempObj["drug_id"] = info[i].drug_id;
997
+              tempObj["drug_name"] = info[i].drug.drug_name;
998
+              tempObj["max_unit"] = info[i].max_unit;
999
+              tempObj["min_unit"] = info[i].min_unit,
1000
+              tempObj["product_date"] = this.getTimeOne(info[i].product_date);
1001
+              tempObj["expiry_date"] = this.getTimeOne(info[i].expiry_date);
1002
+              tempObj["warehousing_count"] = info[i].warehousing_count.toString();
1003
+              tempObj["remark"] = info[i].remark;
1004
+              tempObj["dealer"] =info[i].dealer
1005
+              tempObj["manufacturer"] = info[i].manufacturer;
1006
+              tempObj["batch_number"] = info[i].batch_number;
1007
+              tempObj["drug_type"] =this.GetDrugTypeName(info[i].drug.drug_type) 
1008
+              tempObj["number"] = info[i].number;
1009
+              tempObj["count_unit"] = info[i].max_unit;
1010
+              tempObj["name"] = info[i].drug.dose + info[i].drug.dose_unit + "*" + info[i].drug.min_number+info[i].drug.min_unit +"/"+info[i].drug.max_unit
1011
+            
1012
+              this.recordInfo.recordData.push(tempObj);
1013
+             }
1014
+             var warehouseInfo  =  response.data.data.warehouseInfo
1015
+             if(warehouseInfo.is_check == 2){
992 1016
                this.showCheck = true
993 1017
                this.showReturnCheck = false
994 1018
              }
995
-             if(info.is_check == 1){
1019
+             if(warehouseInfo.is_check == 1){
996 1020
                 this.showCheck = false
997 1021
                 this.showReturnCheck = true
998 1022
              }
999
-             this.patient_id = info.patient_id
1000
-             this.warehousing_time  =this.getTimeOne(info.record_date)
1023
+             this.patient_id = warehouseInfo.patient_id
1024
+             this.warehousing_time  =this.getTimeOne(warehouseInfo.warehousing_time)
1001 1025
              this.manufacturerList = response.data.data.manufacturerList
1002 1026
              this.dealerList = response.data.data.dealerList
1003 1027
              this.drugTypeList = response.data.data.drugTypeList
1004
-             var warehouseInfo  =  response.data.data.warehouseInfo
1005 1028
              this.warehousing_id  = warehouseInfo.id
1006
-             const tempObj = {};
1007
-             tempObj["id"] = info.id;
1008
-             tempObj["drug_id"] = info.drug_id;
1009
-             tempObj["drug_name"] = info.drug.drug_name;
1010
-             tempObj["max_unit"] = info.max_unit;
1011
-             tempObj["min_unit"] = info.min_unit,
1012
-             tempObj["product_date"] = this.getTimeOne(info.product_date);
1013
-             tempObj["expiry_date"] = this.getTimeOne(info.expiry_date);
1014
-             tempObj["warehousing_count"] = info.warehousing_count.toString();
1015
-             tempObj["remark"] = info.remark;
1016
-             tempObj["dealer"] =this.getDealer(info.dealer) 
1017
-             tempObj["manufacturer"] = this.getManufacturer(info.manufacturer);
1018
-             tempObj["batch_number"] = info.batch_number;
1019
-             tempObj["drug_type"] =this.GetDrugTypeName(info.drug.drug_type) 
1020
-             tempObj["number"] = info.number;
1021
-             tempObj["count_unit"] = info.max_unit;
1022
-             tempObj["name"] = info.drug.dose + info.drug.dose_unit + "*" + info.drug.min_number+info.drug.min_unit +"/"+info.drug.max_unit
1023
-             this.recordInfo.recordData = []
1024
-             this.recordInfo.recordData.push(tempObj);
1029
+           
1025 1030
            }
1026 1031
         })
1027 1032
       },
@@ -1046,7 +1051,7 @@
1046 1051
        GetDrugTypeName(drug_type){
1047 1052
             var name = ""
1048 1053
             for(let i=0;i<this.drugTypeList.length;i++){
1049
-            if(drug_type == this.drugTypeList[i].value){
1054
+            if(drug_type == this.drugTypeList[i].id){
1050 1055
                 name = this.drugTypeList[i].name
1051 1056
             }
1052 1057
             }

+ 76 - 42
src/xt_pages/stock/selfPreparedMedicine/editWarehouseOut.vue View File

@@ -12,6 +12,7 @@
12 12
             size="small"
13 13
             type="primary"
14 14
             @click="submit()"
15
+            v-if="is_sys!=1 && is_check!=1"
15 16
             class="filter-item"
16 17
             >保 存</el-button
17 18
           >
@@ -36,7 +37,7 @@
36 37
       </div>
37 38
       <div class="app-container" v-loading="loading">
38 39
        
39
-        <div class="cell clearfix">
40
+        <div class="cell clearfix" v-if="is_sys == 0">
40 41
           <label class="title"
41 42
             ><span class="name"><span style="color: red">*</span>患者</span>
42 43
             :</label
@@ -637,6 +638,14 @@
637 638
         return name;
638 639
       },
639 640
       handleEdit: function (index, row) {
641
+        if(this.is_sys == 1){
642
+           this.$message.error("自动出库不能编辑!")
643
+           return
644
+        }
645
+        if(this.is_check == 1){
646
+           this.$message.error("自动出库不能编辑!")
647
+           return
648
+        }
640 649
         const tempObj = {};
641 650
         tempObj["id"] = 0;
642 651
         tempObj["drug_id"] = 0;
@@ -669,6 +678,14 @@
669 678
         this.recordInfo.recordData.push(tempObj);
670 679
       },
671 680
       handleDelete: function (index, row) {
681
+        if(this.is_sys == 1){
682
+         this.$message.error("自动出库不能删除!")
683
+         return
684
+        }
685
+        if(this.is_check == 1){
686
+          this.$message.error("已经审核不能删除!")
687
+          return
688
+        }
672 689
         if (this.recordInfo.recordData.length <= 1) {
673 690
           this.$message.error("只有一条记录的时候无法删除");
674 691
           return;
@@ -864,6 +881,7 @@
864 881
               var dealerList = response.data.data.dealerList
865 882
               var manufacturerList = response.data.data.manufacturerList
866 883
               var drugTypeList = response.data.data.drugTypeList
884
+
867 885
               
868 886
               for(let i=0;i<warehousingOutInfo.length;i++){
869 887
                 for(let j=0;j<dealerList.length;j++){
@@ -1171,58 +1189,68 @@
1171 1189
       },
1172 1190
 
1173 1191
       getSelfDrugWarehouseOutById(id){
1192
+        this.recordInfo.recordData = []
1174 1193
         getSelfDrugWarehouseOutById(id).then(response=>{
1175 1194
           if(response.data.state ==1){
1176 1195
               var outInfo = response.data.data.outInfo
1177
-              if(outInfo.is_check == 2){
1196
+              var outOne = response.data.data.outOne
1197
+              if(outInfo!=null){
1198
+                for(let i=0;i<outInfo.length;i++){
1199
+                  const tempObj = {};
1200
+                  tempObj["id"] = outInfo[i].id;
1201
+                  tempObj["drug_id"] = outInfo[i].drug_id;
1202
+                  tempObj["max_unit"] = outInfo[i].count_unit;
1203
+                  tempObj["min_unit"] = outInfo[i].min_unit, 
1204
+                  tempObj["return_count"] = "";
1205
+                  tempObj["price"] = "";
1206
+                  tempObj["remark"] = outInfo[i].remark;
1207
+                  // tempObj["manufacturer"] = this.getManufacturer(outInfo[i].manufacturer)
1208
+                  tempObj["manufacturer"] = outInfo[i].manufacturer
1209
+                  tempObj["batch_number"] = outInfo[i].batch_number;
1210
+                  tempObj["drug_type"] = this.GetDrugTypeName(outInfo[i].drug.drug_type) 
1211
+                  tempObj["dose"] = "";
1212
+                  tempObj["dose_unit"] = "";
1213
+                  tempObj["min_number"] = "";
1214
+                  // tempObj["dealer"] = this.getDealer(outInfo[i].dealer) 
1215
+                  tempObj["dealer"] = outInfo[i].dealer
1216
+                  tempObj["number"] = "";
1217
+                  tempObj["warehouse_info_id"] = outInfo[i].warehouse_info_id;
1218
+                  tempObj["count"] = (outInfo[i].count).toString();
1219
+                  tempObj["admin_user_id"] = this.$store.getters.xt_user.user.user_name;
1220
+                  tempObj["retail_price"] = 0;
1221
+                  tempObj["last_price"] = "";
1222
+                  tempObj["stock_count"] = "";
1223
+                  tempObj["total_count"] = 0;
1224
+                  tempObj["max_unit_fisrt"] = 0;
1225
+                  tempObj["min_unit_fisrt"] = 0;
1226
+                  tempObj["total_price"] = 0;
1227
+                  tempObj["patient_id"] = outInfo[i].patient_id
1228
+                  tempObj["product_date"] = this.getTimeOne(outInfo[i].product_date);
1229
+                  tempObj["expiry_date"]=this.getTimeOne(outInfo[i].expiry_date)
1230
+                  tempObj["class_type"] = ""
1231
+                  tempObj["drug_name"] = outInfo[i].drug.drug_name
1232
+                  tempObj["name"] = outInfo[i].drug.dose + outInfo[i].drug.dose_unit + "*" + outInfo[i].drug.min_number+outInfo[i].drug.min_unit +"/"+outInfo[i].drug.max_unit
1233
+                 
1234
+                  this.recordInfo.recordData.push(tempObj);
1235
+                }
1236
+              }
1237
+            
1238
+              if(outOne.is_check == 2){
1178 1239
                this.showCheck = true
1179 1240
                this.showReturnCheck = false
1180 1241
              }
1181
-             if(outInfo.is_check == 1){
1242
+             if(outOne.is_check == 1){
1182 1243
                 this.showCheck = false
1183 1244
                 this.showReturnCheck = true
1184 1245
              }
1185 1246
               this.manufacturerList = response.data.data.manufacturerList
1186 1247
               this.dealerList = response.data.data.dealerList
1187 1248
               this.drugTypeList = response.data.data.drugTypeList
1188
-              console.log("out_info",outInfo)
1189
-              const tempObj = {};
1190
-              this.patient_id = outInfo.patient_id
1191
-              this.warehouse_out_time = this.getTimeOne(outInfo.sys_record_time);
1192
-              this.warehouse_out_id  = outInfo.warehouse_out_id
1193
-              tempObj["id"] = outInfo.id;
1194
-              tempObj["drug_id"] = outInfo.drug_id;
1195
-              tempObj["max_unit"] = outInfo.count_unit;
1196
-              tempObj["min_unit"] = outInfo.min_unit, 
1197
-              tempObj["return_count"] = "";
1198
-              tempObj["price"] = "";
1199
-              tempObj["remark"] = outInfo.remark;
1200
-              tempObj["manufacturer"] = this.getManufacturer(outInfo.manufacturer)
1201
-              tempObj["batch_number"] = outInfo.batch_number;
1202
-              tempObj["drug_type"] = this.GetDrugTypeName(outInfo.drug.drug_type) 
1203
-              tempObj["dose"] = "";
1204
-              tempObj["dose_unit"] = "";
1205
-              tempObj["min_number"] = "";
1206
-              tempObj["dealer"] = this.getDealer(outInfo.dealer) 
1207
-              tempObj["number"] = "";
1208
-              tempObj["warehouse_info_id"] = outInfo.warehouse_info_id;
1209
-              tempObj["count"] = (outInfo.count).toString();
1210
-              tempObj["admin_user_id"] = this.$store.getters.xt_user.user.user_name;
1211
-              tempObj["retail_price"] = 0;
1212
-              tempObj["last_price"] = "";
1213
-              tempObj["stock_count"] = "";
1214
-              tempObj["total_count"] = 0;
1215
-              tempObj["max_unit_fisrt"] = 0;
1216
-              tempObj["min_unit_fisrt"] = 0;
1217
-              tempObj["total_price"] = 0;
1218
-              tempObj["patient_id"] = outInfo.patient_id
1219
-              tempObj["product_date"] = this.getTimeOne(outInfo.product_date);
1220
-              tempObj["expiry_date"]=this.getTimeOne(outInfo.expiry_date)
1221
-              tempObj["class_type"] = ""
1222
-              tempObj["drug_name"] = outInfo.drug.drug_name
1223
-              tempObj["name"] = outInfo.drug.dose + outInfo.drug.dose_unit + "*" + outInfo.drug.min_number+outInfo.drug.min_unit +"/"+outInfo.drug.max_unit
1224
-              this.recordInfo.recordData = []
1225
-              this.recordInfo.recordData.push(tempObj);
1249
+             
1250
+              this.patient_id = outOne.patient_id
1251
+              this.warehouse_out_time = this.getTimeOne(outOne.warehouse_out_time);
1252
+              this.warehouse_out_id  = outOne.id
1253
+             
1226 1254
           }
1227 1255
         })
1228 1256
       },
@@ -1246,9 +1274,11 @@
1246 1274
             return name;
1247 1275
        },
1248 1276
        GetDrugTypeName(drug_type){
1277
+        console.log("haaaaaaaaaaaaaaaaa",drug_type)
1278
+        console.log("bbbbbbbbbbbbbb",this.drugTypeList)
1249 1279
             var name = ""
1250 1280
             for(let i=0;i<this.drugTypeList.length;i++){
1251
-            if(drug_type == this.drugTypeList[i].value){
1281
+            if(drug_type == this.drugTypeList[i].id){
1252 1282
                 name = this.drugTypeList[i].name
1253 1283
             }
1254 1284
             }
@@ -1260,8 +1290,10 @@
1260 1290
             warehouse_out_id:this.warehouse_out_id,
1261 1291
             patient_id:this.patient_id,
1262 1292
          }
1293
+         this.loading = true
1263 1294
         checkSelfOutDrugQuery(params).then(response=>{
1264 1295
           if(response.data.state ==1){
1296
+            this.loading = false
1265 1297
             var warehousingOutInfoList = response.data.data.warehousingOutInfoList
1266 1298
               var msg =response.data.data.msg
1267 1299
               if(msg == 1){
@@ -1289,8 +1321,10 @@
1289 1321
            warehouse_out_id:this.warehouse_out_id,
1290 1322
            patient_id:this.patient_id,
1291 1323
          }
1324
+         this.loading = true
1292 1325
         returnCheckSelfOutDrugQuery(params).then(response=>{
1293 1326
            if(response.data.state ==1){
1327
+            this.loading = false
1294 1328
             var out = response.data.data.out
1295 1329
             this.$message.success("反审核成功!")
1296 1330
             this.showCheck = true

+ 79 - 11
src/xt_pages/stock/selfPreparedMedicine/newDrugQuery.vue View File

@@ -4,7 +4,7 @@
4 4
           v-loading="loading"
5 5
           element-loading-text="拼命加载中">
6 6
           <el-input v-model="keyword" style="width:200px" placeholder="请输入药品名称" ></el-input>
7
-          <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
7
+          <el-button  type="primary" icon="el-icon-search" @click="seach" style="margin-bottom: 10px;">搜索</el-button>
8 8
              <el-table
9 9
               :row-style="{ color: '#303133' }"
10 10
               :header-cell-style="{
@@ -34,26 +34,26 @@
34 34
       
35 35
               <el-table-column label="入库数量" align="center">
36 36
                 <template slot-scope="scope">
37
-                  {{scope.row.sum_in_count}} {{scope.row.drug.min_unit }}
37
+                  {{getSumInCount(scope.row.child)}} {{scope.row.drug.min_unit }}
38 38
                  </template>
39 39
               </el-table-column>
40 40
             
41 41
               <el-table-column label="出库数量" align="center">
42 42
                 <template slot-scope="scope">
43
-                  {{scope.row.sum_act_out_count}} {{scope.row.drug.min_unit }}
43
+                  {{getSumActCount(scope.row.child)}}  {{scope.row.drug.min_unit }}
44 44
                </template>
45 45
               </el-table-column>
46 46
   
47 47
               <el-table-column label="退库数量" align="center">
48 48
                 <template slot-scope="scope">
49
-                    {{scope.row.sum_cancel_count}} {{scope.row.drug.min_unit }}
49
+                    {{getSumCancelCount(scope.row.child)}} {{scope.row.drug.min_unit }}
50 50
                 </template>
51 51
               </el-table-column>
52 52
   
53 53
                <el-table-column label="实际出库" align="center">
54 54
                 <template slot-scope="scope">
55 55
                   <span>
56
-                    {{scope.row.sum_out_count}} {{scope.row.drug.min_unit }}
56
+                    {{getSumOutCount(scope.row.child)}} {{scope.row.drug.min_unit }}
57 57
                  </span>
58 58
                </template>
59 59
               </el-table-column>
@@ -61,7 +61,7 @@
61 61
               <el-table-column label="剩余库存" align="center">
62 62
                 <template slot-scope="scope">
63 63
                   <span>
64
-                    {{ scope.row.flush_count }} {{scope.row.drug.min_unit }}
64
+                    {{getSumFlushCount(scope.row.child) }} {{scope.row.drug.min_unit }}
65 65
                   </span>
66 66
                 </template>
67 67
               </el-table-column>
@@ -91,7 +91,7 @@
91 91
              <el-pagination
92 92
               @size-change="handleSizeChange"
93 93
               @current-change="handleCurrentChange"
94
-              :page-sizes="[10, 50, 100,200,300,400,500,1000]"
94
+              :page-sizes="[500,1000]"
95 95
               :page-size="10"
96 96
               background
97 97
               align="right"
@@ -137,7 +137,7 @@
137 137
        manufacturerList:[],
138 138
        page:1,
139 139
        total:0,
140
-       limit:10,
140
+       limit:1000,
141 141
        pageone:1,
142 142
        totalone:0,
143 143
        keyword:"",
@@ -190,7 +190,7 @@
190 190
          }
191 191
         specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
192 192
        
193
-        this.$router.push({path:"/stock/selfwarehouse/selfdrugflow?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count})
193
+        this.$router.push({path:"/stock/selfwarehouse/selfdrugflow?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count+"&patient_id="+val.patient_id})
194 194
       },
195 195
       toClickOne(val){
196 196
         var manufacturer_name = ""
@@ -202,7 +202,7 @@
202 202
          }
203 203
         specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
204 204
 
205
-        this.$router.push({path:"/stock/selfwarehouse/selfdrugbatchnumber?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count})
205
+        this.$router.push({path:"/stock/selfwarehouse/selfdrugbatchnumber?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count+"&patient_id="+val.patient_id})
206 206
       },
207 207
     
208 208
       open(){
@@ -218,8 +218,41 @@
218 218
         getSelfDrugQuery(params).then(response=>{
219 219
            if(response.data.state == 1){
220 220
               var list = response.data.data.list
221
+              console.log("list==================",list)
222
+              if(list!=null && list.length >0){
223
+                 let dataInfo = {}
224
+                 list.forEach((item, index) => {
221 225
               
222
-              this.tableList =list
226
+                  let { drug_id } = item
227
+                  if (!dataInfo[drug_id]) {
228
+                    dataInfo[drug_id] = {
229
+                      drug_id:item.drug_id,
230
+                      drug:item.drug,
231
+                      advice_name:item.drug.drug_name,
232
+                      child: [],
233
+                      count:0,
234
+                      patient_id:0,
235
+                    }
236
+                  }
237
+                })
238
+                let arr = Object.values(dataInfo)
239
+              
240
+
241
+                if(arr!=null && arr.length >0){
242
+                  for(let i=0;i<arr.length;i++){
243
+                    for(let j=0;j<list.length;j++){
244
+                      if(arr[i].drug_id == list[j].drug_id){
245
+                          arr[i].child.push(list[j])
246
+                      }
247
+                    }
248
+                  }
249
+                }
250
+                console.log("arr----------------",arr)
251
+
252
+                this.tableList = []
253
+                this.tableList = arr
254
+              }
255
+           
223 256
               var total =  response.data.data.total
224 257
               this.total = total
225 258
               this.manufacturerList = response.data.data.manufacturerList
@@ -387,6 +420,41 @@
387 420
         toPrint(){
388 421
           this.$router.push("/good/new/query/print?start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.keyword+"&storehouse_id="+this.storehouse_id+"&page="+this.page+"&limit="+this.limit+"&good_type="+this.good_type)
389 422
         },
423
+        getSumInCount(val){
424
+          var in_count =0
425
+          for(let i=0;i<val.length;i++){
426
+             in_count +=val[i].sum_in_count
427
+          }
428
+          return in_count
429
+        },
430
+        getSumActCount(val){
431
+          var in_count =0
432
+          for(let i=0;i<val.length;i++){
433
+             in_count +=val[i].sum_act_out_count
434
+          }
435
+          return in_count
436
+        },
437
+        getSumCancelCount(val){
438
+          var in_count =0
439
+          for(let i=0;i<val.length;i++){
440
+             in_count +=val[i].sum_cancel_count
441
+          }
442
+          return in_count
443
+        },
444
+        getSumOutCount(val){
445
+          var in_count =0
446
+          for(let i=0;i<val.length;i++){
447
+             in_count +=val[i].sum_out_count
448
+          }
449
+          return in_count
450
+        },
451
+        getSumFlushCount(val){
452
+          var in_count =0
453
+          for(let i=0;i<val.length;i++){
454
+             in_count +=val[i].flush_count
455
+          }
456
+          return in_count
457
+        }
390 458
     },
391 459
     created(){
392 460
       this.getlist()

+ 122 - 47
src/xt_pages/stock/selfPreparedMedicine/patientDrugQuery.vue View File

@@ -4,7 +4,7 @@
4 4
         element-loading-text="拼命加载中">
5 5
          <el-container>
6 6
                <div style="width:27%">
7
-                <el-row style="white-space:nowrap;display:flex;line-height: 31px;">
7
+                <!-- <el-row style="white-space:nowrap;display:flex;line-height: 31px;">
8 8
                    <span style="font-size:14px;color:#606266"> 时间:</span>
9 9
                     <el-date-picker
10 10
                       size="small"
@@ -32,7 +32,7 @@
32 32
                         value-format="yyyy-MM-dd"
33 33
                         @change="endTimeChange"
34 34
                     ></el-date-picker>
35
-                </el-row>
35
+                </el-row> -->
36 36
                 <el-row></el-row>
37 37
                  <el-row>
38 38
                    <el-col :span="24" style="display:flex">
@@ -86,8 +86,8 @@
86 86
 
87 87
                    <el-tab-pane label="患者使用列表">
88 88
                      <div style="float:right;margin-bottom:10px">
89
-                      <el-button type="primary" @click="toPrint">打印</el-button>
90
-                      <el-button type="primary" @click="exportList">导出</el-button>
89
+                      <!-- <el-button type="primary" @click="toPrint">打印</el-button>
90
+                      <el-button type="primary" @click="exportList">导出</el-button> -->
91 91
                       </div>
92 92
                      <el-table
93 93
                           :data="tableList"
@@ -102,11 +102,20 @@
102 102
                         >
103 103
                      <el-table-column
104 104
                        prop="date"
105
-                       label="名称"
105
+                       label="药品名称"
106 106
                       align="center"
107 107
                       >
108 108
                       <template slot-scope="scope">
109
-                        {{scope.row.drug_name}}
109
+                        {{scope.row.drug.drug_name}}
110
+                      </template>
111
+                    </el-table-column>
112
+                    <el-table-column
113
+                       prop="date"
114
+                       label="药品规格"
115
+                      align="center"
116
+                      >
117
+                      <template slot-scope="scope">
118
+                        {{ scope.row.drug.dose}}{{ scope.row.drug.dose_unit }} * {{ scope.row.drug.min_number }}{{ scope.row.drug.min_unit }} /{{ scope.row.drug.max_unit }}
110 119
                       </template>
111 120
                     </el-table-column>
112 121
                      <el-table-column
@@ -114,7 +123,7 @@
114 123
                       label="生产厂家"
115 124
                       align="center">
116 125
                       <template slot-scope="scope">
117
-                        {{scope.row.manufacturer}}
126
+                        {{ getManufacturName(scope.row.drug.manufacturer) }}
118 127
                       </template>
119 128
                      </el-table-column>
120 129
                       <el-table-column
@@ -127,13 +136,71 @@
127 136
                      </el-table-column>
128 137
                       <el-table-column
129 138
                        prop="name"
130
-                      label="数量"
139
+                      label="入库数量"
140
+                      align="center">
141
+                      <template slot-scope="scope">
142
+                         {{ scope.row.sum_in_count }}
143
+                      </template>
144
+                     </el-table-column>
145
+
146
+                     <el-table-column
147
+                       prop="name"
148
+                      label="出库数量"
149
+                      align="center">
150
+                      <template slot-scope="scope">
151
+                        {{ scope.row.sum_out_count }}
152
+                      </template>
153
+                     </el-table-column>
154
+
155
+                     <el-table-column
156
+                       prop="name"
157
+                      label="退库数量"
158
+                      align="center">
159
+                      <template slot-scope="scope">
160
+                        {{ scope.row.sum_cancel_count }}
161
+                      </template>
162
+                     </el-table-column>
163
+
164
+                     <el-table-column
165
+                       prop="name"
166
+                      label="实际出库"
167
+                      align="center">
168
+                      <template slot-scope="scope">
169
+                        {{ scope.row.sum_act_out_count }}
170
+                      </template>
171
+                     </el-table-column>
172
+
173
+
174
+                     
175
+                     <el-table-column
176
+                       prop="name"
177
+                      label="剩余库存"
131 178
                       align="center">
132 179
                       <template slot-scope="scope">
133
-                         {{getCount(scope.row.child,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}
180
+                        {{ scope.row.flush_count }}
134 181
                       </template>
135 182
                      </el-table-column>
136 183
 
184
+                     <el-table-column label="操作" align="center" width="200px">
185
+               
186
+                      <template slot-scope="scope">
187
+                        <el-button
188
+                          size="small"
189
+                          type="primary"
190
+                          @click="toClick(scope.row)"
191
+                        >库存流水
192
+                        </el-button>
193
+                        <el-button
194
+                          size="small"
195
+                          type="primary"
196
+                          @click="toClickOne(scope.row)"
197
+                        >批次
198
+                        </el-button>
199
+        
200
+                      
201
+                        </template>
202
+                    </el-table-column>
203
+
137 204
                      </el-table>
138 205
                       <el-pagination
139 206
                         @size-change="handleSizeChange"
@@ -200,6 +267,24 @@ export default {
200 267
     endTimeChange(){
201 268
       this.handleCurrentChange(this.patient)
202 269
     },
270
+    getManufacturName(id){
271
+        var manufacturer_name = ""
272
+        for(let i=0;i<this.manufacturerList.length;i++){
273
+          if(id == this.manufacturerList[i].id){
274
+             manufacturer_name = this.manufacturerList[i].manufacturer_name
275
+          }
276
+        }
277
+        return manufacturer_name
278
+      },
279
+    getDearName(id){
280
+        var dear_name = ""
281
+        for(let i=0;i<this.dealerList.length;i++){
282
+          if(id == this.dealerList[i].id){
283
+            dear_name = this.dealerList[i].dealer_name
284
+          }
285
+        }
286
+        return dear_name
287
+    },
203 288
     getlist(){
204 289
         this.loading = true
205 290
         var params = {
@@ -231,45 +316,9 @@ export default {
231 316
      getSelfDrugWarehouseOutDetailByPatientId(params).then(response=>{
232 317
         if(response.data.state == 1){
233 318
           var list = response.data.data.list
234
-          console.log("list233223232323",list)
235
-          var outlist = response.data.data.outlist
236
-          this.manufacturerList = response.data.data.manufacturerList
237
-          if(list!=null && list.length > 0){
238
-            for(let i=0;i<list.length;i++){
239
-              if(list[i].count_unit == list[i].drug.max_unit){
240
-                 list[i].count = list[i].count * list[i].drug.min_number
241
-              }
242
-            }
243
-          }
244
-          let dataInfo = {}
245
-          list.forEach((item, index) => {
246
-            let { drug_id } = item
247
-            if (!dataInfo[drug_id]) {
248
-              dataInfo[drug_id] = {
249
-                drug_id,
250
-                child: [],
251
-                dose:item.drug.dose,
252
-                dose_unit:item.drug.dose_unit,
253
-                min_number:item.drug.min_number,
254
-                min_unit:item.drug.min_unit,
255
-                max_unit:item.drug.max_unit,
256
-                drug_name:item.drug.drug_name,
257
-                manufacturer:this.getManufacturName(item.manufacturer),
258
-              }
259
-            }
260
-          })
261
-          let arr = Object.values(dataInfo)
262
-          arr.forEach((item,index)=>{
263
-            for(let i=0;i<outlist.length;i++){
264
-               if(item.drug_id == outlist[i].drug_id){
265
-                 item.child.push(outlist[i])
266
-               }
267
-            }
268
-          })
269
-        
270
-        
271
-          this.tableList = arr
319
+          this.tableList = list
272 320
           this.total = response.data.data.total
321
+          this.manufacturerList = response.data.data.manufacturerList
273 322
         }
274 323
      })
275 324
    },
@@ -411,7 +460,33 @@ export default {
411 460
           }
412 461
         }
413 462
         return patient_name
463
+       },
464
+       toClick(val){
465
+       
466
+       var manufacturer_name = ""
467
+       var specification_name = ""
468
+       for(let i=0;i<this.manufacturerList.length;i++){
469
+          if(val.drug.manufacturer == this.manufacturerList[i].id){
470
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
471
+          }
414 472
        }
473
+      specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
474
+     
475
+      this.$router.push({path:"/stock/selfwarehouse/selfdrugflow?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count+"&patient_id="+val.patient_id})
476
+    },
477
+    toClickOne(val){
478
+      var manufacturer_name = ""
479
+       var specification_name = ""
480
+       for(let i=0;i<this.manufacturerList.length;i++){
481
+          if(val.drug.manufacturer == this.manufacturerList[i].id){
482
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
483
+          }
484
+       }
485
+      specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
486
+
487
+      this.$router.push({path:"/stock/selfwarehouse/selfdrugbatchnumber?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count+"&patient_id="+val.patient_id})
488
+    },
489
+      
415 490
   },
416 491
   created(){
417 492
     var nowDate = new Date();

+ 2 - 1
src/xt_pages/stock/selfPreparedMedicine/selfDrugBatchNumber.vue View File

@@ -6,7 +6,7 @@
6 6
       <div class="app-container ">
7 7
         <div class="cell clearfix">
8 8
          药品名称:<span>{{getName(this.$route.query.drug_id)}}</span>&nbsp;
9
-         库存: {{this.$route.query.over_plus}}
9
+         <!-- 库存: {{this.$route.query.over_plus}} -->
10 10
          规格:<span>{{drug.dose}}{{drug.dose_unit}}*{{drug.min_number}}{{drug.min_unit}}/{{drug.max_unit}}</span>&nbsp;
11 11
          厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
12 12
         </div>
@@ -266,6 +266,7 @@
266 266
              end_time:this.end_time,
267 267
              page:this.page,
268 268
              limit:this.limit,
269
+             patient_id:this.$route.query.patient_id,
269 270
          }
270 271
         getSelfDrugBatchNumberList(params).then(response=>{
271 272
            if(response.data.state ==1){

+ 6 - 3
src/xt_pages/stock/selfPreparedMedicine/selfDrugFlow.vue View File

@@ -6,7 +6,7 @@
6 6
       <div class="app-container ">
7 7
         <div class="cell clearfix">
8 8
          药品名称:<span>{{getName(this.$route.query.drug_id)}}</span>&nbsp;
9
-         库存: {{this.$route.query.over_plus}}
9
+         库存: {{this.$route.query.overCount}}{{ drug.min_unit }}
10 10
          规格:<span>{{drug.dose}}{{drug.dose_unit}}*{{drug.min_number}}{{drug.min_unit}}/{{drug.max_unit}}</span>&nbsp;
11 11
          厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
12 12
         </div>
@@ -79,12 +79,13 @@
79 79
                <span v-if="scope.row.consumable_type == 12">调拨出库</span>
80 80
                <span v-if="scope.row.consumable_type == 13">调拨入库</span>
81 81
                <span v-if="scope.row.consumable_type == 15">结算出库</span>
82
+               <span v-if="scope.row.consumable_type == 20">处方出库</span>
82 83
              </template>
83 84
           </el-table-column>
84 85
           <el-table-column prop="drug_name" label="出/入库单据编码" align="center">
85 86
              <template slot-scope="scope">
86 87
                <span v-if="scope.row.consumable_type == 1">{{scope.row.warehousing_order}}</span>
87
-                <span v-if="scope.row.consumable_type == 2 || scope.row.consumable_type == 3 || scope.row.consumable_type == 12 || scope.row.consumable_type == 15">{{scope.row.warehouse_out_order_number}}</span>
88
+                <span v-if="scope.row.consumable_type == 2 || scope.row.consumable_type == 3 || scope.row.consumable_type == 12 || scope.row.consumable_type == 15 || scope.row.consumable_type==20">{{scope.row.warehouse_out_order_number}}</span>
88 89
                 <span v-if="scope.row.consumable_type == 4 || scope.row.consumable_type == 7">{{scope.row.cancel_order_number}}</span>
89 90
                 <span v-if="scope.row.consumable_type == 5">{{scope.row.warehouse_out_order_number}}</span>
90 91
                 <span v-if="scope.row.consumable_type == 10 || scope.row.consumable_type == 11 || scope.row.consumable_type == 13">{{scope.row.warehousing_order}}</span>
@@ -270,15 +271,17 @@
270 271
              end_time:this.end_time,
271 272
              page:this.page,
272 273
              limit:this.limit,
274
+             patient_id:this.$route.query.patient_id,
273 275
          }
274 276
         getSelfDrugFlow(params).then(response=>{
275 277
            if(response.data.state ==1){
276 278
               var list = response.data.data.list
279
+             
277 280
               this.tableList =list
278 281
               var total =  response.data.data.total
279 282
               this.total = total
280 283
               this.drug =response.data.data.drug
281
-              this.patients= response.data.data.patients
284
+              this.patientList= response.data.data.patients
282 285
            }
283 286
         })
284 287
       },

+ 35 - 31
src/xt_pages/stock/selfPreparedMedicine/warehouseInfo.vue View File

@@ -90,10 +90,10 @@
90 90
         <!-- <el-button size="small" icon="el-icon-delete" @click="batchDelete"
91 91
           >删除</el-button
92 92
         > -->
93
-        <el-button size="small" type="primary" @click="drugPrint()"
93
+        <!-- <el-button size="small" type="primary" @click="drugPrint()"
94 94
           >打印</el-button
95 95
         >
96
-        <el-button size="small" type="primary" @click="toExport()" :disabled="exportLoding">导出</el-button>
96
+        <el-button size="small" type="primary" @click="toExport()" :disabled="exportLoding">导出</el-button> -->
97 97
         <div>
98 98
           <span>&nbsp;&nbsp;</span>
99 99
           <label class="title"><span class="name">审核状态</span> :</label>
@@ -238,10 +238,7 @@
238 238
           color: '#606266',
239 239
         }"
240 240
       >
241
-        <el-table-column align="center" type="selection" width="55">
242
-        </el-table-column>
243
-
244
-
241
+      
245 242
         <el-table-column label="药品名称" align="center">
246 243
           <template slot-scope="scope">
247 244
              {{ scope.row.drug_name }}
@@ -537,11 +534,11 @@ export default {
537 534
     },
538 535
     handleSizeChange(val) {
539 536
       this.limit = val;
540
-      this.GetWarehouse();
537
+      this.getAllSelfDrugWarehouse();
541 538
     },
542 539
     handleCurrentChange(val) {
543 540
       this.page = val;
544
-      this.GetWarehouse();
541
+      this.getAllSelfDrugWarehouse();
545 542
     },
546 543
     startTimeChange(val) {
547 544
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
@@ -551,7 +548,7 @@ export default {
551 548
       } else {
552 549
         this.startTime = this.getTimestamp(val);
553 550
         this.start_time = val;
554
-        this.GetWarehouse();
551
+        this.getAllSelfDrugWarehouse();
555 552
       }
556 553
     },
557 554
     endTimeChange(val) {
@@ -561,7 +558,7 @@ export default {
561 558
         this.end_time = "";
562 559
       } else {
563 560
         this.end_time = val;
564
-        this.GetWarehouse();
561
+        this.getAllSelfDrugWarehouse();
565 562
       }
566 563
     },
567 564
     getTimestamp(time) {
@@ -690,9 +687,35 @@ export default {
690 687
         .catch(() => {});
691 688
     },
692 689
     handleCurrentChangeOne(val) {
690
+         this.tableDataList = []
693 691
          getSelfDrugWarehouseInfoById(val.id).then(response=>{
694 692
           if(response.data.state ==1){
695 693
             var info = response.data.data.info
694
+            console.log("info==================",info)
695
+            for(let i=0;i<info.length;i++){
696
+              const tempObj = {};
697
+              tempObj["id"] = info[i].id;
698
+              tempObj["drug_id"] = info[i].drug_id;
699
+              tempObj["drug_name"] = info[i].drug.drug_name;
700
+              tempObj["max_unit"] = info[i].max_unit;
701
+              tempObj["min_unit"] = info[i].min_unit,
702
+              tempObj["product_date"] = this.getTimeOne(info[i].product_date);
703
+              tempObj["expiry_date"] = this.getTimeOne(info[i].expiry_date);
704
+              tempObj["warehousing_count"] = info[i].warehousing_count.toString();
705
+              tempObj["remark"] = info[i].remark;
706
+              tempObj["dealer"] =this.getDealer(info[i].dealer) 
707
+              tempObj["manufacturer"] = this.getManufacturer(info[i].manufacturer);
708
+              tempObj["batch_number"] = info[i].batch_number;
709
+              tempObj["drug_type"] =this.GetDrugTypeName(info[i].drug.drug_type) 
710
+              tempObj["number"] = info[i].number;
711
+              tempObj["count_unit"] = info[i].max_unit;
712
+              tempObj["name"] = info[i].drug.dose + info[i].drug.dose_unit + "*" + info[i].drug.min_number+info[i].drug.min_unit +"/"+info[i].drug.max_unit
713
+             
714
+              this.tableDataList.push(tempObj);
715
+          
716
+            }
717
+            console.log("i报个=-----------------------",this.tableDataList)
718
+         
696 719
 
697 720
             var warehouseInfo =  response.data.data.warehouseInfo
698 721
 
@@ -713,27 +736,8 @@ export default {
713 736
              this.drugTypeList = response.data.data.drugTypeList
714 737
              var warehouseInfo  =  response.data.data.warehouseInfo
715 738
              this.warehousing_id  = warehouseInfo.id
716
-             const tempObj = {};
717
-             
718
-             tempObj["id"] = info.id;
719
-             tempObj["drug_id"] = info.drug_id;
720
-             tempObj["drug_name"] = info.drug.drug_name;
721
-             tempObj["max_unit"] = info.max_unit;
722
-             tempObj["min_unit"] = info.min_unit,
723
-             tempObj["product_date"] = this.getTimeOne(info.product_date);
724
-             tempObj["expiry_date"] = this.getTimeOne(info.expiry_date);
725
-             tempObj["warehousing_count"] = info.warehousing_count.toString();
726
-             tempObj["remark"] = info.remark;
727
-             tempObj["dealer"] =this.getDealer(info.dealer) 
728
-             tempObj["manufacturer"] = this.getManufacturer(info.manufacturer);
729
-             tempObj["batch_number"] = info.batch_number;
730
-             tempObj["drug_type"] =this.GetDrugTypeName(info.drug.drug_type) 
731
-             tempObj["number"] = info.number;
732
-             tempObj["count_unit"] = info.max_unit;
733
-           
734
-             tempObj["name"] = info.drug.dose + info.drug.dose_unit + "*" + info.drug.min_number+info.drug.min_unit +"/"+info.drug.max_unit
735
-             this.tableDataList = []
736
-             this.tableDataList.push(tempObj);
739
+ 
740
+          
737 741
           }
738 742
 
739 743
        })

+ 65 - 44
src/xt_pages/stock/selfPreparedMedicine/warehouseOut.vue View File

@@ -106,10 +106,10 @@
106 106
         <!-- <el-button size="small" icon="el-icon-delete" @click="batchDelete"
107 107
           >删除</el-button
108 108
         > -->
109
-        <el-button size="small" type="primary" @click="drugPrint()"
109
+        <!-- <el-button size="small" type="primary" @click="drugPrint()"
110 110
           >打印</el-button
111 111
         >
112
-        <el-button size="small" type="primary" @click="toExport()" :disabled="exportLoding">导出</el-button>
112
+        <el-button size="small" type="primary" @click="toExport()" :disabled="exportLoding">导出</el-button> -->
113 113
         <div>
114 114
           <span>&nbsp;&nbsp;</span>
115 115
           <label class="title"><span class="name">审核状态</span> :</label>
@@ -164,11 +164,11 @@
164 164
           </template>
165 165
         </el-table-column>
166 166
 
167
-        <el-table-column label="患者名称" align="center">
167
+        <!-- <el-table-column label="患者名称" align="center">
168 168
           <template slot-scope="scope">
169 169
              {{getPatientName(scope.row.patient_id)}}
170 170
           </template>
171
-        </el-table-column>
171
+        </el-table-column> -->
172 172
 
173 173
         <el-table-column label="制单人" align="center">
174 174
           <template slot-scope="scope">
@@ -251,10 +251,6 @@
251 251
           color: '#606266',
252 252
         }"
253 253
       >
254
-        <el-table-column align="center" type="selection" width="55">
255
-        </el-table-column>
256
-
257
-    
258 254
         <el-table-column label="药品名称" align="center">
259 255
           <template slot-scope="scope">
260 256
              {{ scope.row.drug_name }}
@@ -285,8 +281,14 @@
285 281
           </template>
286 282
         </el-table-column>
287 283
 
288
-      
289 284
 
285
+        <el-table-column label="使用患者" align="center">
286
+          <template slot-scope="scope">
287
+             {{getPatientName(scope.row.patient_id )}}
288
+          </template>
289
+        </el-table-column>
290
+
291
+      
290 292
         <el-table-column label="生产厂家" align="center">
291 293
           <template slot-scope="scope">
292 294
             {{scope.row.manufacturer}}
@@ -332,7 +334,7 @@ import {
332 334
 import { getAllDrugList } from "@/api/data";
333 335
 import { getDictionaryDataConfig } from "@/utils/data";
334 336
 import BreadCrumb from "../../components/bread-crumb";
335
-  import { getallPatientList,getAllSelfDrugWarehouseOutList,deleteSelfWarehouseOutList,getAllSelfDrugWarehouseOut,getSelfDrugWarehouseOutById} from "@/api/drug/drug"
337
+  import { getallPatientList,deleteSelfWarehouseOutList,getAllSelfDrugWarehouseOut,getSelfDrugWarehouseOutById} from "@/api/drug/drug"
336 338
 export default {
337 339
   name: "drugStockInOrder",
338 340
   components: { BreadCrumb },
@@ -430,6 +432,7 @@ export default {
430 432
       doctorList:[],
431 433
       recordDataList:[],
432 434
       loading:false,
435
+      patientList:[],
433 436
     };
434 437
   },
435 438
 
@@ -580,6 +583,15 @@ export default {
580 583
     },
581 584
     handleDelete: function (index, row) {
582 585
 
586
+        if(row.is_check == 1){
587
+            this.$message.error("该出库单已经审核,无法删除!")
588
+            return false
589
+        }
590
+        if(row.is_sys ==1 ){
591
+          this.$message.error("自动出库,无法删除!")
592
+          return false
593
+        }
594
+
583 595
         this.$confirm('确定删除吗?', '提示', {
584 596
           confirmButtonText: '确定',
585 597
           cancelButtonText: '取消',
@@ -940,9 +952,48 @@ export default {
940 952
          return user_name
941 953
       },
942 954
       getSelfDrugWarehouseOutById(id){
955
+        this.recordDataList = []
943 956
         getSelfDrugWarehouseOutById(id).then(response=>{
944 957
           if(response.data.state ==1){
945 958
               var outInfo = response.data.data.outInfo
959
+              if(outInfo!=null && outInfo.length >0){
960
+                 for(let i=0;i<outInfo.length;i++){
961
+                  const tempObj = {};
962
+                  tempObj["id"] = outInfo[i].id;
963
+                  tempObj["drug_id"] = outInfo[i].drug_id;
964
+                  tempObj["max_unit"] = outInfo[i].count_unit;
965
+                  tempObj["min_unit"] = outInfo[i].min_unit, 
966
+                  tempObj["return_count"] = "";
967
+                  tempObj["price"] = "";
968
+                  tempObj["remark"] = outInfo[i].remark;
969
+                  tempObj["manufacturer"] = this.getManufacturer(outInfo[i].manufacturer)
970
+                  tempObj["batch_number"] = outInfo[i].batch_number;
971
+                  tempObj["drug_type"] = this.GetDrugTypeName(outInfo[i].drug.drug_type) 
972
+                  tempObj["dose"] = "";
973
+                  tempObj["dose_unit"] = "";
974
+                  tempObj["min_number"] = "";
975
+                  tempObj["dealer"] = this.getDealer(outInfo[i].dealer) 
976
+                  tempObj["number"] = "";
977
+                  tempObj["warehouse_info_id"] = outInfo[i].warehouse_info_id;
978
+                  tempObj["count"] = (outInfo[i].count).toString();
979
+                  tempObj["admin_user_id"] = this.$store.getters.xt_user.user.user_name;
980
+                  tempObj["retail_price"] = 0;
981
+                  tempObj["last_price"] = "";
982
+                  tempObj["stock_count"] = "";
983
+                  tempObj["total_count"] = 0;
984
+                  tempObj["max_unit_fisrt"] = 0;
985
+                  tempObj["min_unit_fisrt"] = 0;
986
+                  tempObj["total_price"] = 0;
987
+                  tempObj["patient_id"] = outInfo[i].patient_id
988
+                  tempObj["product_date"] = this.getTimeOne(outInfo[i].product_date);
989
+                  tempObj["expiry_date"]=this.getTimeOne(outInfo[i].expiry_date)
990
+                  tempObj["class_type"] = ""
991
+                  tempObj["drug_name"] = outInfo[i].drug.drug_name
992
+                  tempObj["name"] = outInfo[i].drug.dose + outInfo[i].drug.dose_unit + "*" + outInfo[i].drug.min_number+outInfo[i].drug.min_unit +"/"+outInfo[i].drug.max_unit
993
+                
994
+                  this.recordDataList.push(tempObj);
995
+                 }
996
+              }
946 997
               this.isShow = true
947 998
               if(outInfo.is_check == 2){
948 999
                this.showCheck = true
@@ -956,43 +1007,13 @@ export default {
956 1007
               this.dealerList = response.data.data.dealerList
957 1008
               this.drugTypeList = response.data.data.drugTypeList
958 1009
               console.log("out_info",outInfo)
959
-              const tempObj = {};
1010
+            
960 1011
               this.patient_id = outInfo.patient_id
961 1012
               this.warehouse_out_time = this.getTimeOne(outInfo.sys_record_time);
962 1013
               this.warehouse_out_id  = outInfo.warehouse_out_id
963
-              tempObj["id"] = outInfo.id;
964
-              tempObj["drug_id"] = outInfo.drug_id;
965
-              tempObj["max_unit"] = outInfo.count_unit;
966
-              tempObj["min_unit"] = outInfo.min_unit, 
967
-              tempObj["return_count"] = "";
968
-              tempObj["price"] = "";
969
-              tempObj["remark"] = outInfo.remark;
970
-              tempObj["manufacturer"] = this.getManufacturer(outInfo.manufacturer)
971
-              tempObj["batch_number"] = outInfo.batch_number;
972
-              tempObj["drug_type"] = this.GetDrugTypeName(outInfo.drug.drug_type) 
973
-              tempObj["dose"] = "";
974
-              tempObj["dose_unit"] = "";
975
-              tempObj["min_number"] = "";
976
-              tempObj["dealer"] = this.getDealer(outInfo.dealer) 
977
-              tempObj["number"] = "";
978
-              tempObj["warehouse_info_id"] = outInfo.warehouse_info_id;
979
-              tempObj["count"] = (outInfo.count).toString();
980
-              tempObj["admin_user_id"] = this.$store.getters.xt_user.user.user_name;
981
-              tempObj["retail_price"] = 0;
982
-              tempObj["last_price"] = "";
983
-              tempObj["stock_count"] = "";
984
-              tempObj["total_count"] = 0;
985
-              tempObj["max_unit_fisrt"] = 0;
986
-              tempObj["min_unit_fisrt"] = 0;
987
-              tempObj["total_price"] = 0;
988
-              tempObj["patient_id"] = outInfo.patient_id
989
-              tempObj["product_date"] = this.getTimeOne(outInfo.product_date);
990
-              tempObj["expiry_date"]=this.getTimeOne(outInfo.expiry_date)
991
-              tempObj["class_type"] = ""
992
-              tempObj["drug_name"] = outInfo.drug.drug_name
993
-              tempObj["name"] = outInfo.drug.dose + outInfo.drug.dose_unit + "*" + outInfo.drug.min_number+outInfo.drug.min_unit +"/"+outInfo.drug.max_unit
994
-              this.recordDataList = []
995
-              this.recordDataList.push(tempObj);
1014
+
1015
+              // this.patientList =response.data.data.patients
1016
+      
996 1017
           }
997 1018
         })
998 1019
       },

+ 15 - 8
src/xt_pages/user/components/PatientSidebar.vue View File

@@ -179,7 +179,12 @@ export default {
179 179
             }, {
180 180
               name: '1-10',
181 181
               label: '出院小结'
182
-            }
182
+            },
183
+            // {
184
+            //   name: '1-12',
185
+            //   label: '转归记录'
186
+            // }
187
+
183 188
           ]
184 189
         },
185 190
         {
@@ -283,6 +288,7 @@ export default {
283 288
   },
284 289
   methods: {
285 290
     handleNodeClick(data) {
291
+      console.log("Data-----------",data.name)
286 292
       var name = data.name
287 293
       this.name = data.name
288 294
       window.sessionStorage.setItem('patientKey',data.name)
@@ -328,6 +334,8 @@ export default {
328 334
         this.$router.push({path:'/patient/patient/'+this.id+'/hospitalSummary'})
329 335
       } else if(name == '1-11'){
330 336
         this.$router.push({path:'/patient/patient/'+this.id+'/firstDisease'})
337
+      }else if(name == '1-12'){
338
+        this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
331 339
       } else if(name == '3-1'){
332 340
         this.$router.push({ path: '/patients/sickhistory?id=' + this.id })
333 341
 
@@ -496,9 +504,9 @@ export default {
496 504
     }
497 505
   },
498 506
   created() {
499
-    var patientKey =  window.sessionStorage.getItem('patientKey')
507
+    var patientKey = window.sessionStorage.getItem('patientKey')
508
+    console.log("patient-----------------",patientKey)
500 509
     this.org_id = this.$store.getters.xt_user.template_info.org_id
501
-    console.log("patient",patientKey)
502 510
     var query = this.$route.path
503 511
     console.log("query",this.$route.path)
504 512
     if(patientKey){
@@ -519,11 +527,10 @@ export default {
519 527
           path: '/patients/patient/' + this.id + '/dryWeight'
520 528
         })
521 529
       }else if(patientKey == '1-11'){
522
-       this.$router.push({
523
-          path: '/patients/patient/' + this.id + '/firstDisease'
524
-        })
525
-      }
526
-       else if (patientKey == '1-5') {
530
+       this.$router.push({path: '/patients/patient/' + this.id + '/firstDisease'})
531
+      }else if(patientKey == '1-12'){
532
+        this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
533
+      }else if (patientKey == '1-5') {
527 534
         this.$router.push({ path: '/patients/rescue?id=' + this.id })
528 535
       } else if (patientKey == '2-1') {
529 536
         this.$router.push({

+ 445 - 0
src/xt_pages/user/lapsoSummary.vue View File

@@ -0,0 +1,445 @@
1
+<template>
2
+    <div class="patient-container">
3
+      <patient-sidebar :id="patientID" defaultActive="1-6" v-on:tran-patient="onTranPatient"></patient-sidebar>
4
+      <div class="patient-app-container advice-container app-container">
5
+        <div style="display:flex;justify-content: space-between;align-items: center;margin-bottom: 12px;">
6
+           <span style="font-weight:bold;">转归记录列表</span>
7
+           <el-button size="medium" type="primary" @click="dialogVisible =true">新增</el-button>
8
+        </div>
9
+        <el-table class="oictable" :data="tableData" border style="width:100%">
10
+        <el-table-column prop="start_time" label="建立日期" width="100" align="center">
11
+            <template slot-scope="scope">
12
+              <span>{{ getTime(scope.row.start_time)}}</span>
13
+            </template>
14
+       </el-table-column>
15
+        <el-table-column prop="blood_access_part_opera_id" label="血管通路" align="center" width="120">
16
+          <template slot-scope="scope">
17
+             <router-link
18
+                :to="'/patients/patient/' + scope.row.patient_id+'/vascularAccessDetail/'+scope.row.id"
19
+                style="color:#409eff;width:100%;display:block;"
20
+              >{{ scope.row.blood_access_part_opera_id }}
21
+              </router-link
22
+              >
23
+          </template>
24
+       </el-table-column>
25
+       <el-table-column prop="blood_access_part_id" label="血管通路部位" width="200" align="center">
26
+          <template slot-scope="scope">
27
+             <span>{{scope.row.blood_access_part_id}}</span>  
28
+          </template>
29
+       </el-table-column>
30
+        <el-table-column prop="inflow_pass" label="血管通路部位(其他)" width="100" align="center">
31
+           <template slot-scope="scope">
32
+              <span>{{scope.row.other_vascular}}</span>
33
+           </template>
34
+        </el-table-column>
35
+        <el-table-column prop="date" label="首次启用日期" width="120" align="center">
36
+            <template slot-scope="scope">
37
+              <span>{{ getTime(scope.row.first_start_time)}}</span>
38
+            </template>
39
+        </el-table-column>
40
+       
41
+         <el-table-column prop="date" label="停用日期" align="center" width="100">
42
+            <template slot-scope="scope">
43
+              <span v-if="scope.row.stop_time>0">{{ getTime(scope.row.stop_time)}}</span>
44
+               <span v-if="scope.row.stop_time<0"></span>
45
+            </template>
46
+        </el-table-column>
47
+         <el-table-column prop="date" label="停用原因" align="center" width="120">
48
+            <template slot-scope="scope">
49
+               <span>{{scope.row.stop_reason}}</span>
50
+            </template>
51
+        </el-table-column>
52
+         <el-table-column prop="date" label="使用寿命(天)" align="center" width="120">
53
+            <template slot-scope="scope">
54
+             <span v-if="scope.row.stop_time>0&&(scope.row.stop_time - scope.row.start_time)/86400 == 0"></span> 
55
+             <span v-if="scope.row.stop_time>0&&(scope.row.stop_time - scope.row.start_time)/86400 != 0">{{(scope.row.stop_time - scope.row.start_time)/86400}}</span>
56
+            </template>
57
+        </el-table-column>
58
+         
59
+        <el-table-column prop="date" label="导管感染转归" align="center" width="120">
60
+            <template slot-scope="scope">
61
+               <span v-if="scope.row.ci_type == 1">拔管</span>
62
+               <span v-if="scope.row.ci_type == 2">治愈</span>
63
+               <span v-if="scope.row.ci_type == 3">死亡</span>
64
+               <span v-if="scope.row.ci_type == 4">放弃</span>
65
+               <span v-if="scope.row.ci_type == 9">其它</span>
66
+            </template>
67
+        </el-table-column>
68
+         
69
+         <el-table-column prop="date" label="血培养检查结果" align="center" width="120">
70
+            <template slot-scope="scope">
71
+               <span v-if="scope.row.blood_cultupe == 0">阴性</span>
72
+               <span v-if="scope.row.blood_cultupe == 1">阳性</span>
73
+               <span v-if="scope.row.blood_cultupe == 9">未查</span>
74
+            </template>
75
+        </el-table-column>
76
+        
77
+       <el-table-column prop="date" label="患者导管转归类型" align="center" width="120">
78
+            <template slot-scope="scope">
79
+               <span v-if="scope.row.sequelae_type == 1">局部感染</span>
80
+               <span v-if="scope.row.sequelae_type == 2">静脉炎</span>
81
+               <span v-if="scope.row.sequelae_type == 3">导管细菌定植</span>
82
+               <span v-if="scope.row.sequelae_type == 4">导管相关血型感染</span>
83
+            </template>
84
+        </el-table-column>
85
+         <el-table-column prop="date" label="备注" align="center" width="180">
86
+            <template slot-scope="scope">
87
+               <span>{{scope.row.remark}}</span>
88
+            </template>
89
+        </el-table-column>
90
+        <el-table-column prop="date" label="创始人" align="center" width="100">
91
+            <template slot-scope="scope">
92
+              <span>{{getDoctor(scope.row.creator)}}</span>
93
+            </template>
94
+        </el-table-column>
95
+         <el-table-column prop="date" fixed="right" label="操作" width="140" align="center">
96
+            <template slot-scope="scope">
97
+               <el-tooltip class="item" effect="dark" content="编辑" placement="top">
98
+                 <el-button
99
+                    type="primary"
100
+                    size="small"
101
+                    icon="el-icon-edit-outline"
102
+                   
103
+                    @click="handleUpdateAdviceTemplate(scope.row.id)"
104
+                    >
105
+                 </el-button>
106
+               </el-tooltip>
107
+                <el-tooltip class="item" effect="dark" content="删除" placement="top">
108
+                   <el-button
109
+                    size="small"
110
+                    type="danger"
111
+                    icon="el-icon-delete"
112
+                    @click="handleDeleteAdviceTemplate(scope.row.id, scope.$index)"
113
+                    >
114
+                   </el-button>
115
+                </el-tooltip>
116
+             </template>
117
+        </el-table-column>
118
+        </el-table>
119
+        <el-pagination
120
+          @size-change="handleSizeChange"
121
+          @current-change="handleCurrentChange"
122
+          :page-sizes="[10,20,50,100]"
123
+          :page-size="10"
124
+          background
125
+          style="margin-top:20px;"
126
+          align="right"
127
+          layout="total, sizes, prev, pager, next, jumper"
128
+          :total="total"></el-pagination>
129
+  
130
+        <el-dialog
131
+            title="新增"
132
+            :visible.sync="dialogVisible"
133
+            width="65%"
134
+            center>
135
+          <el-form label-width="150px" :model="form" ref="form" :rules="rules" >
136
+            <el-row  :gutter="24">
137
+              <el-col :span="24">
138
+                <el-form-item label="透析号:" >
139
+                    <el-input style="width:200px" v-model="dialysis_no"></el-input>
140
+                </el-form-item>
141
+                
142
+              </el-col>
143
+            </el-row>
144
+            <el-row  :gutter="24" >
145
+              <el-col :span="24">
146
+                 <el-form-item  label="姓名:">
147
+                    <el-input style="width:200px" v-model="name"></el-input>
148
+                 </el-form-item>
149
+              </el-col>
150
+            </el-row>
151
+            <el-row :gutter="24">
152
+                <el-col :span="24">
153
+                    <el-form-item label="转归类型:"  prop="access_project"  > 
154
+                        <el-radio-group style="padding: 10px;" v-model="lapse_type">
155
+                            <el-radio  label="1">转出</el-radio>
156
+                            <el-radio  label="2">院内转诊</el-radio>
157
+                      </el-radio-group>
158
+                    </el-form-item>
159
+                </el-col>
160
+            </el-row>
161
+
162
+            <el-row :gutter="24">
163
+                <el-col :span="24">
164
+                    <el-form-item label="转归分类:"  prop="access_project"  > 
165
+                        <el-radio-group style="padding: 10px;" v-model="lapse_class">
166
+                            <el-radio  label="1">终止透析</el-radio>
167
+                            <el-radio  label="2">转出院外</el-radio>
168
+                            <el-radio  label="3">回居住地透析</el-radio>
169
+                            <el-radio  label="4">临时透析</el-radio>
170
+                            <el-radio  label="5">转腹膜透析</el-radio>
171
+                            <el-radio  label="6">其他</el-radio>
172
+                            <el-radio  label="7">变更透析医院</el-radio>
173
+                      </el-radio-group>
174
+                    </el-form-item>
175
+                </el-col>
176
+            </el-row>
177
+
178
+            <el-row :gutter="24">
179
+                <el-col :span="24">
180
+                    <el-form-item label="转出原因:"  prop="access_project"> 
181
+                        <el-input style="width: 300px;height: 50px;"  type="textarea" v-model="lapse_reason"></el-input>
182
+                    </el-form-item>
183
+                </el-col>
184
+            </el-row>
185
+
186
+            <el-row :gutter="24">
187
+                <el-col :span="24">
188
+                    <el-form-item label="转出日期:"  prop="access_project"  > 
189
+                        <el-date-picker
190
+                            v-model="record_date"
191
+                            type="date"
192
+                            placeholder="选择日期">
193
+                         </el-date-picker>
194
+                    </el-form-item>
195
+                </el-col>
196
+            </el-row>
197
+
198
+            <el-row :gutter="24">
199
+                <el-col :span="24">
200
+                    <el-form-item label="操作人:"  prop="access_project"  > 
201
+                        <el-select v-model="admin_user_id" placeholder="请选择">
202
+                            <el-option
203
+                            v-for="item in options"
204
+                            :key="item.value"
205
+                            :label="item.label"
206
+                            :value="item.value">
207
+                            </el-option>
208
+                         </el-select>
209
+                    </el-form-item>
210
+                </el-col>
211
+            </el-row>
212
+
213
+            <el-row :gutter="24">
214
+                <el-col :span="24">
215
+                    <el-form-item label="备注:"  prop="access_project"  > 
216
+                        <el-input style="width: 300px;height: 50px;" type="textarea" v-model="remark"></el-input>
217
+                    </el-form-item>
218
+                </el-col>
219
+            </el-row>
220
+           
221
+          </el-form>
222
+  
223
+        <span slot="footer" class="dialog-footer">
224
+            <el-button @click="dialogVisible = false">取 消</el-button>
225
+            <el-button type="primary" @click="saveVasularAccess('form')">保存</el-button>
226
+        </span>
227
+        </el-dialog>
228
+  
229
+      </div>
230
+  
231
+       <!-- <multi-select-box
232
+          :propsForm="InnerDialogProps"
233
+          v-on:dialog-comfirm="innerDialogComfirm"
234
+          v-on:dialog-cancle="innerDialogCancle"
235
+        ></multi-select-box> -->
236
+        
237
+    </div>
238
+  </template>
239
+  <script>
240
+    const moment = require('moment')
241
+    import PatientSidebar from './components/PatientSidebar'
242
+    import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from '@/api/doctor'
243
+    import { saveVasularAccess,getAllVascularAccessList,getVascularAccessByDetail,updatedVasularAccess,DeleteVascularAccess,getAccessList } from '@/api/patient'
244
+  
245
+    import { jsGetAge, uParseTime } from '@/utils/tools'
246
+    import { getDataConfig } from '@/utils/data'
247
+    import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
248
+    import sitemap from './Sitemap'
249
+    export default {
250
+      name: 'doctorAdvice',
251
+      components: {
252
+        PatientSidebar,
253
+        multiSelectBox,
254
+        sitemap
255
+      },
256
+      data() {
257
+        return {
258
+          tableData: [],
259
+          nowtime: moment(new Date()).format('YYYY-MM-DD'),
260
+          page: 1,
261
+          limit: 10,
262
+          total: 0,
263
+          rules: {
264
+            start_time: [{ required: true, message: '请输入建立日期' }],
265
+            access_project: [{ required: true, message: '请选择通路项目' }],
266
+            blood_access_part_opera_id:[{required:true,message:'请选择血管通路类型'}],
267
+            blood_access_part_id:[{required:true,message:"请选择血管通路"}],
268
+           //  first_start_time:[{required:true,message:"请选择首次启用日期"}],
269
+            user_status:[{required:true,message:"请选择使用状态"}]
270
+          },
271
+          dialogVisible:false,
272
+          editDialogVisible:false,
273
+          form:{
274
+           id:0,
275
+           access_project:"1",
276
+           blood_access_part_id:"",
277
+           blood_access_part_opera_id:"",
278
+           inflow_pass:"",
279
+           start_time:moment(new Date()).format('YYYY-MM-DD'),
280
+           first_start_time:moment(new Date()).format('YYYY-MM-DD'),
281
+           stop_reason:"",
282
+           user_status:1,
283
+           remark:"",
284
+           stop_time:"",
285
+           other_vascular:"",
286
+           ci_type:"",//导管感染转归
287
+           blood_cultupe:"", //血培养检查结果
288
+           sequelae_type:"",//患者导管转归类型
289
+          },
290
+          options:[
291
+           {id:1,name:"启用"},
292
+           {id:2,name:"停用"},
293
+           {id:3,name:"备用"}
294
+          ],
295
+          optionsPass:[
296
+            {id:1,name:"流入-动脉"},
297
+            {id:2,name:"流出-静脉"},
298
+          ],
299
+  
300
+          blood_access_part_opera:[],
301
+          blood_access_part:[],
302
+          show:false,
303
+          doctorList:[],
304
+          InnerDialogProps: {
305
+            values: [],
306
+            visibility: false,
307
+            isShowTextArea: true,
308
+            customContent: '',
309
+            titles: '',
310
+            type: '' // 不同弹框类型,用来匹配数据
311
+          },
312
+          new_blood_access_part_opera:[],
313
+          new_blood_access_part:[],
314
+         // 导管感染类型
315
+          optionsOne:[
316
+             {id:1,name:"局部感染"},
317
+             {id:2,name:"静脉炎"},
318
+             {id:3,name:"导管细菌定植"},
319
+             {id:4,name:"导管相关血型感染"},
320
+          ],
321
+        //   导管转归类型
322
+          optionsTwo:[
323
+             {id:1,name:"拔管"},
324
+             {id:2,name:"治愈"},
325
+             {id:3,name:"死亡"},
326
+             {id:4,name:"放弃"},
327
+             {id:9,name:"其它"},
328
+          ],
329
+        //  血培养检查结果
330
+          optionsThree:[
331
+             {id:0,name:"阴性"},
332
+             {id:1,name:"阳性"},
333
+             {id:9,name:"未查"}
334
+          ],
335
+          showOne:false,
336
+          name:"",
337
+          dialysis_no:"",
338
+          lapse_type:"",
339
+          lapse_class:"",
340
+          lapse_reason:"",
341
+          record_date:"",
342
+          admin_user_id:"",
343
+          remark:""
344
+        }
345
+      },
346
+      methods: {
347
+        clickuseradvicecell(row, column, cell, event) {
348
+        },
349
+        onTranPatient: function(tranPatient) {
350
+          this.currentPatient = tranPatient
351
+        },
352
+        CreateTime(time) {
353
+          return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
354
+        },
355
+     
356
+       
357
+      
358
+       
359
+        handleSizeChange(limit) {
360
+          this.limit = limit
361
+          this.getlist()
362
+        },
363
+        handleCurrentChange(page) {
364
+          this.page = page
365
+        
366
+          this.getlist()
367
+        },
368
+        changeStatus(val){
369
+          if(val == 1 ){
370
+            this.show = false
371
+          }
372
+          if(val == 2){
373
+            this.show = true
374
+          }
375
+        },
376
+       getTime(val) {
377
+           if(val < 0){
378
+             return ""
379
+           }
380
+           if(val == ""){
381
+            return ""
382
+           }else {
383
+            return uParseTime(val, '{y}-{m}-{d}')
384
+           }
385
+        },
386
+     
387
+       getDoctor(id){
388
+         var name = ""
389
+         for(let i=0;i<this.doctorList.length;i++){
390
+            if(id == this.doctorList[i].admin_user_id){
391
+               name = this.doctorList[i].user_name
392
+            }
393
+         }
394
+         return name
395
+       },
396
+       handleDeleteAdviceTemplate(id,index){
397
+         this.$confirm("确认删除吗?", "删除", {
398
+          confirmButtonText: "确 定",
399
+          cancelButtonText: "取 消",
400
+          type: "warning"
401
+        })
402
+          .then(() => {
403
+            DeleteVascularAccess(id).then(response => {
404
+              if(response.data.state == 1){
405
+                var msg = response.data.data.msg
406
+                this.tableData.splice(index, 1);
407
+                this.$message.success("删除成功!")
408
+              }
409
+               
410
+              
411
+            });
412
+          })
413
+          .catch(() => {});
414
+       },
415
+       getlist(){
416
+            
417
+       }
418
+     
419
+  
420
+     
421
+      },
422
+      created() {
423
+        const id = this.$route.params && this.$route.params.id
424
+        this.patientID = parseInt(id)
425
+        this.getAllPatient()
426
+        this.getlist()
427
+      },
428
+     
429
+    }
430
+  </script>
431
+  
432
+  <style>
433
+    .oictable ::-webkit-scrollbar {
434
+      height: 15px;
435
+    }
436
+  </style>
437
+  
438
+  <style rel="stylesheet/scss" lang="scss">
439
+     ::-webkit-scrollbar{
440
+        height:15px;
441
+     }
442
+  
443
+  </style>
444
+  
445
+