28169 8 kuukautta sitten
vanhempi
commit
041e304602

+ 6 - 1
src/api/drug/drug.js Näytä tiedosto

@@ -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
 }

+ 3 - 3
src/router/modules/selfPreparedMedicine.js Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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>

+ 18 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Näytä tiedosto

@@ -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>

+ 4 - 2
src/xt_pages/stock/selfPreparedMedicine/addWarehouseOut.vue Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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
             }

+ 58 - 41
src/xt_pages/stock/selfPreparedMedicine/editWarehouseOut.vue Näytä tiedosto

@@ -864,6 +864,7 @@
864 864
               var dealerList = response.data.data.dealerList
865 865
               var manufacturerList = response.data.data.manufacturerList
866 866
               var drugTypeList = response.data.data.drugTypeList
867
+
867 868
               
868 869
               for(let i=0;i<warehousingOutInfo.length;i++){
869 870
                 for(let j=0;j<dealerList.length;j++){
@@ -1171,58 +1172,68 @@
1171 1172
       },
1172 1173
 
1173 1174
       getSelfDrugWarehouseOutById(id){
1175
+        this.recordInfo.recordData = []
1174 1176
         getSelfDrugWarehouseOutById(id).then(response=>{
1175 1177
           if(response.data.state ==1){
1176 1178
               var outInfo = response.data.data.outInfo
1177
-              if(outInfo.is_check == 2){
1179
+              var outOne = response.data.data.outOne
1180
+              if(outInfo!=null){
1181
+                for(let i=0;i<outInfo.length;i++){
1182
+                  const tempObj = {};
1183
+                  tempObj["id"] = outInfo[i].id;
1184
+                  tempObj["drug_id"] = outInfo[i].drug_id;
1185
+                  tempObj["max_unit"] = outInfo[i].count_unit;
1186
+                  tempObj["min_unit"] = outInfo[i].min_unit, 
1187
+                  tempObj["return_count"] = "";
1188
+                  tempObj["price"] = "";
1189
+                  tempObj["remark"] = outInfo[i].remark;
1190
+                  // tempObj["manufacturer"] = this.getManufacturer(outInfo[i].manufacturer)
1191
+                  tempObj["manufacturer"] = outInfo[i].manufacturer
1192
+                  tempObj["batch_number"] = outInfo[i].batch_number;
1193
+                  tempObj["drug_type"] = this.GetDrugTypeName(outInfo[i].drug.drug_type) 
1194
+                  tempObj["dose"] = "";
1195
+                  tempObj["dose_unit"] = "";
1196
+                  tempObj["min_number"] = "";
1197
+                  // tempObj["dealer"] = this.getDealer(outInfo[i].dealer) 
1198
+                  tempObj["dealer"] = outInfo[i].dealer
1199
+                  tempObj["number"] = "";
1200
+                  tempObj["warehouse_info_id"] = outInfo[i].warehouse_info_id;
1201
+                  tempObj["count"] = (outInfo[i].count).toString();
1202
+                  tempObj["admin_user_id"] = this.$store.getters.xt_user.user.user_name;
1203
+                  tempObj["retail_price"] = 0;
1204
+                  tempObj["last_price"] = "";
1205
+                  tempObj["stock_count"] = "";
1206
+                  tempObj["total_count"] = 0;
1207
+                  tempObj["max_unit_fisrt"] = 0;
1208
+                  tempObj["min_unit_fisrt"] = 0;
1209
+                  tempObj["total_price"] = 0;
1210
+                  tempObj["patient_id"] = outInfo[i].patient_id
1211
+                  tempObj["product_date"] = this.getTimeOne(outInfo[i].product_date);
1212
+                  tempObj["expiry_date"]=this.getTimeOne(outInfo[i].expiry_date)
1213
+                  tempObj["class_type"] = ""
1214
+                  tempObj["drug_name"] = outInfo[i].drug.drug_name
1215
+                  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
1216
+                 
1217
+                  this.recordInfo.recordData.push(tempObj);
1218
+                }
1219
+              }
1220
+            
1221
+              if(outOne.is_check == 2){
1178 1222
                this.showCheck = true
1179 1223
                this.showReturnCheck = false
1180 1224
              }
1181
-             if(outInfo.is_check == 1){
1225
+             if(outOne.is_check == 1){
1182 1226
                 this.showCheck = false
1183 1227
                 this.showReturnCheck = true
1184 1228
              }
1185 1229
               this.manufacturerList = response.data.data.manufacturerList
1186 1230
               this.dealerList = response.data.data.dealerList
1187 1231
               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);
1232
+             
1233
+              this.patient_id = outOne.patient_id
1234
+              this.warehouse_out_time = this.getTimeOne(outOne.warehouse_out_time);
1235
+              this.warehouse_out_id  = outOne.id
1236
+             
1226 1237
           }
1227 1238
         })
1228 1239
       },
@@ -1246,9 +1257,11 @@
1246 1257
             return name;
1247 1258
        },
1248 1259
        GetDrugTypeName(drug_type){
1260
+        console.log("haaaaaaaaaaaaaaaaa",drug_type)
1261
+        console.log("bbbbbbbbbbbbbb",this.drugTypeList)
1249 1262
             var name = ""
1250 1263
             for(let i=0;i<this.drugTypeList.length;i++){
1251
-            if(drug_type == this.drugTypeList[i].value){
1264
+            if(drug_type == this.drugTypeList[i].id){
1252 1265
                 name = this.drugTypeList[i].name
1253 1266
             }
1254 1267
             }
@@ -1260,8 +1273,10 @@
1260 1273
             warehouse_out_id:this.warehouse_out_id,
1261 1274
             patient_id:this.patient_id,
1262 1275
          }
1276
+         this.loading = true
1263 1277
         checkSelfOutDrugQuery(params).then(response=>{
1264 1278
           if(response.data.state ==1){
1279
+            this.loading = false
1265 1280
             var warehousingOutInfoList = response.data.data.warehousingOutInfoList
1266 1281
               var msg =response.data.data.msg
1267 1282
               if(msg == 1){
@@ -1289,8 +1304,10 @@
1289 1304
            warehouse_out_id:this.warehouse_out_id,
1290 1305
            patient_id:this.patient_id,
1291 1306
          }
1307
+         this.loading = true
1292 1308
         returnCheckSelfOutDrugQuery(params).then(response=>{
1293 1309
            if(response.data.state ==1){
1310
+            this.loading = false
1294 1311
             var out = response.data.data.out
1295 1312
             this.$message.success("反审核成功!")
1296 1313
             this.showCheck = true

+ 79 - 11
src/xt_pages/stock/selfPreparedMedicine/newDrugQuery.vue Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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
        })

+ 63 - 42
src/xt_pages/stock/selfPreparedMedicine/warehouseOut.vue Näytä tiedosto

@@ -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>
@@ -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
       },