瀏覽代碼

新分支

28169 10 月之前
父節點
當前提交
56c9e864de
共有 24 個文件被更改,包括 7324 次插入56 次删除
  1. 2 1
      src/api/dialysis_record.js
  2. 10 0
      src/api/drug/drug.js
  3. 8 0
      src/router/modules/selfPreparedMedicine.js
  4. 1 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  5. 1 1
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  6. 7 8
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  7. 88 0
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  8. 59 5
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  9. 6 2
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  10. 2 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventy.vue
  11. 13 10
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue
  12. 8 6
      src/xt_pages/dialysis/template/DialysisPrintOrderseventyfive.vue
  13. 20 0
      src/xt_pages/stock/drugs/drugStockOutOrder.vue
  14. 20 2
      src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue
  15. 20 1
      src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue
  16. 1107 0
      src/xt_pages/stock/selfPreparedMedicine/addWarehouseInfo.vue
  17. 1208 0
      src/xt_pages/stock/selfPreparedMedicine/addWarehouseOut.vue
  18. 1101 0
      src/xt_pages/stock/selfPreparedMedicine/editWarehouseInfo.vue
  19. 0 0
      src/xt_pages/stock/selfPreparedMedicine/editWarehouseOut.vue
  20. 934 0
      src/xt_pages/stock/selfPreparedMedicine/warehouseInfo.vue
  21. 2655 0
      src/xt_pages/stock/selfPreparedMedicine/warehouseOut.vue
  22. 13 0
      src/xt_pages/stock/stockOutOrder.vue
  23. 23 17
      src/xt_pages/stock/stockOutOrderAdd.vue
  24. 18 1
      src/xt_pages/stock/stockOutOrderEdit.vue

+ 2 - 1
src/api/dialysis_record.js 查看文件

@@ -47,7 +47,7 @@ export function editMonitor(patient_id, schedule_date, data, mode) {
47 47
   })
48 48
 }
49 49
 
50
-export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse, blood_drawing, quality_nurse, puncture_needle, puncture_way, dialysis_dialyszers, dialysis_irrigation, blood_access_id, nuclein_date, schedule_remark, order_remark,catheter_operation,blood_flow_volume,dialysis_strainer) {
50
+export function startDialysis(dialysis_strainer,patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse, blood_drawing, quality_nurse, puncture_needle, puncture_way, dialysis_dialyszers, dialysis_irrigation, blood_access_id, nuclein_date, schedule_remark, order_remark,catheter_operation,blood_flow_volume) {
51 51
   var params = {
52 52
     patient_id: patient_id,
53 53
     date: schedule_date,
@@ -76,6 +76,7 @@ export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_
76 76
     blood_flow_volume:blood_flow_volume,
77 77
     dialysis_strainer:dialysis_strainer,
78 78
   }
79
+  console.log("dialysis_strainer",dialysis_strainer)
79 80
   console.log('params', params)
80 81
   return request({
81 82
     url: '/api/dialysis/start_record',

+ 10 - 0
src/api/drug/drug.js 查看文件

@@ -754,4 +754,14 @@ export function toCheckSelfWarehousingInfo(params){
754 754
     method:"get",
755 755
     params:params,
756 756
   })
757
+}
758
+
759
+
760
+export function postSelfDrugOutInfoWarehouse(){
761
+  
762
+  return request({
763
+    url:"/api/drug/postselfdrugwarehouse",
764
+    method:"Get",
765
+    params:params,
766
+  })
757 767
 }

+ 8 - 0
src/router/modules/selfPreparedMedicine.js 查看文件

@@ -42,6 +42,14 @@ export default {
42 42
       meta: { title: '自备药出库', noCache: true }
43 43
 
44 44
     },
45
+    {
46
+      path: '/stock/selfwarehouse/out/add',
47
+      component: () => import('@/xt_pages/stock/selfPreparedMedicine/addWarehouseOut'),
48
+      name: 'SelfeditWarehouseOut',
49
+      meta: { title: '自备药出库', noCache: true },
50
+      hidden: true,
51
+      is_menu: false,
52
+    },
45 53
     {
46 54
       path: '/stock/selfstockquery',
47 55
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/stockquery'),

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

@@ -30,7 +30,7 @@
30 30
           <el-col :span="8" v-if="isShow('实际超滤量')">
31 31
             <el-form-item
32 32
               label="实际超滤量(ml): " :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')"
33
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10558 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10612 || this.$store.getters.xt_user.template_info.org_id == 10617"  >
33
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10558 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10612 || this.$store.getters.xt_user.template_info.org_id == 10617 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10693"  >
34 34
               <el-input v-model="form.actual_ultrafiltration"></el-input>
35 35
             </el-form-item>
36 36
             <el-form-item label="实际超滤量(L): " v-else :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')">

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue 查看文件

@@ -1749,7 +1749,7 @@ export default {
1749 1749
           }
1750 1750
       }
1751 1751
 
1752
-      if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587 || this.$store.getters.xt_user.org.id == 10597 || this.$store.getters.xt_user.org.id == 10551 || this.$store.getters.xt_user.org.id == 10679){
1752
+      if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587 || this.$store.getters.xt_user.org.id == 10597 || this.$store.getters.xt_user.org.id == 10551 || this.$store.getters.xt_user.org.id == 10679 || this.$store.getters.xt_user.org.id == 10693 ||  this.$store.getters.xt_user.org.id == 10694){
1753 1753
         var date = new Date()
1754 1754
           var year = date.getFullYear()
1755 1755
           var month = date.getMonth() + 1

+ 7 - 8
src/xt_pages/dialysis/details/dialog/computer_dialog.vue 查看文件

@@ -927,17 +927,16 @@ export default {
927 927
           }else{
928 928
             blood_drawing = ""
929 929
           }
930
-
931
-
932
-
933 930
           console.log("质控护士", this.form.quality_nurse_id);
934 931
           console.log("this.form.nuclein_date", this.form.nuclein_date);
935
-          console.log("dialysis_strainer------------------",this.form.dialysis_strainer)
932
+         
933
+
934
+          var dialysis_strainer = this.form.dialysis_strainer
935
+          console.log("dialysis_strainer------------------",dialysis_strainer)
936 936
           startDialysis(
937
+            dialysis_strainer,
937 938
             this.patient_id,
938
-            this.schedule_date
939
-              ? parseTime(this.schedule_date, "{y}-{m}-{d}")
940
-              : parseTime(new Date(), "{y}-{m}-{d}"),
939
+            this.schedule_date? parseTime(this.schedule_date, "{y}-{m}-{d}"): parseTime(new Date(), "{y}-{m}-{d}"),
941 940
             this.form.nurse_id,
942 941
             this.form.bed_id,
943 942
             this.form.lood_drawing,
@@ -959,7 +958,7 @@ export default {
959 958
             this.form.nuclein_date,
960 959
             this.form.catheter_operation,
961 960
             this.form.blood_flow_volume,
962
-            this.form.dialysis_strainer,
961
+            
963 962
           ).then((rs) => {
964 963
             this.loading = false;
965 964
             var resp = rs.data;

+ 88 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -2862,6 +2862,94 @@ mu
2862 2862
             var hours = date.getHours()
2863 2863
             var minites = date.getMinutes()
2864 2864
 
2865
+            if (month < 10) {
2866
+              month = '0' + month
2867
+            }
2868
+            if (day < 10) {
2869
+              day = '0' + day
2870
+            }
2871
+            if (hours < 10) {
2872
+              hours = '0' + hours
2873
+            }
2874
+            if (minites < 10) {
2875
+              minites = '0' + minites
2876
+            }
2877
+            this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2878
+           }else if(this.$store.getters.xt_user.org.id == 10693){
2879
+            var date = new Date()
2880
+            var year = date.getFullYear()
2881
+            var month = date.getMonth() + 1
2882
+            var day = date.getDate()
2883
+
2884
+            var hours = date.getHours()
2885
+            var minites = date.getMinutes()
2886
+
2887
+            if (month < 10) {
2888
+              month = '0' + month
2889
+            }
2890
+            if (day < 10) {
2891
+              day = '0' + day
2892
+            }
2893
+            if (hours < 10) {
2894
+              hours = '0' + hours
2895
+            }
2896
+            if (minites < 10) {
2897
+              minites = '0' + minites
2898
+            }
2899
+            this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2900
+           }else if(this.$store.getters.xt_user.org.id == 10694){
2901
+            var date = new Date()
2902
+            var year = date.getFullYear()
2903
+            var month = date.getMonth() + 1
2904
+            var day = date.getDate()
2905
+
2906
+            var hours = date.getHours()
2907
+            var minites = date.getMinutes()
2908
+
2909
+            if (month < 10) {
2910
+              month = '0' + month
2911
+            }
2912
+            if (day < 10) {
2913
+              day = '0' + day
2914
+            }
2915
+            if (hours < 10) {
2916
+              hours = '0' + hours
2917
+            }
2918
+            if (minites < 10) {
2919
+              minites = '0' + minites
2920
+            }
2921
+            this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2922
+           }else if (this.$store.getters.xt_user.org.id == 10587){
2923
+            var date = new Date()
2924
+            var year = date.getFullYear()
2925
+            var month = date.getMonth() + 1
2926
+            var day = date.getDate()
2927
+
2928
+            var hours = date.getHours()
2929
+            var minites = date.getMinutes()
2930
+
2931
+            if (month < 10) {
2932
+              month = '0' + month
2933
+            }
2934
+            if (day < 10) {
2935
+              day = '0' + day
2936
+            }
2937
+            if (hours < 10) {
2938
+              hours = '0' + hours
2939
+            }
2940
+            if (minites < 10) {
2941
+              minites = '0' + minites
2942
+            }
2943
+            this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2944
+           }else if (this.$store.getters.xt_user.org.id == 10587){
2945
+            var date = new Date()
2946
+            var year = date.getFullYear()
2947
+            var month = date.getMonth() + 1
2948
+            var day = date.getDate()
2949
+
2950
+            var hours = date.getHours()
2951
+            var minites = date.getMinutes()
2952
+
2865 2953
             if (month < 10) {
2866 2954
               month = '0' + month
2867 2955
             }

+ 59 - 5
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -407,6 +407,8 @@
407 407
               }}
408 408
             </template>
409 409
           </el-table-column>
410
+
411
+
410 412
           <el-table-column
411 413
             prop="displacement_flow_quantity"
412 414
             align="center"
@@ -460,6 +462,23 @@
460 462
               }}
461 463
             </template>
462 464
           </el-table-column>
465
+
466
+
467
+          <el-table-column 
468
+            align="center"
469
+            label="超滤率(ml/h)"
470
+            width="100"
471
+            v-if="isShow('超滤率2')">
472
+            <template slot-scope="scope">
473
+              {{
474
+                scope.row.ultrafiltration_rate_one
475
+                  ? scope.row.ultrafiltration_rate_one
476
+                  : ""
477
+              }}
478
+            </template>
479
+
480
+          </el-table-column>
481
+
463 482
           <el-table-column
464 483
             prop="sodium_concentration"
465 484
             align="center"
@@ -582,7 +601,7 @@
582 601
                 org_id!=10558 &&
583 602
                 org_id!=10517 && 
584 603
                 org_id!=10414 && 
585
-                org_id!=10598 && org_id!=10694 && org_id!=10697) ||
604
+                org_id!=10598 && org_id!=10694 && org_id!=10697 && org_id!=10567) ||
586 605
                 org_id == 9779 ||
587 606
                 template_id == 11 ||
588 607
                 template_id == 20 ||
@@ -614,7 +633,7 @@
614 633
             width="100"
615 634
             v-if="
616 635
               isShow('置换量') &&
617
-              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id == 10551 || org_id ==10558 || org_id ==10517 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697) &&
636
+              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id == 10551 || org_id ==10558 || org_id ==10517 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id ==10567) &&
618 637
               template_id != 9779 &&
619 638
               template_id != 11 &&
620 639
               template_id != 20 &&
@@ -954,7 +973,17 @@
954 973
             </template>
955 974
           </el-table-column>
956 975
 
957
-
976
+          <el-table-column
977
+            prop="heparin"
978
+            align="center"
979
+            label="剩余肝素(ml)"
980
+            width="140"
981
+            v-if="isShow('剩余肝素')"
982
+          >
983
+            <template slot-scope="scope">
984
+              {{ scope.row.heparin_one }}
985
+            </template>
986
+          </el-table-column>
958 987
 
959 988
 
960 989
           <el-table-column
@@ -1256,6 +1285,13 @@
1256 1285
             </el-form-item>
1257 1286
           </el-col>
1258 1287
 
1288
+          <el-col  :span="8" v-if="isShow('超滤率2')">
1289
+            <el-form-item label="超滤率(ml/min)" :prop="isName('超滤率')"
1290
+              :rules="isCheckmust('超滤率')">
1291
+              <el-input v-model="form.ultrafiltration_rate_one" style="width:200px"></el-input>
1292
+            </el-form-item>
1293
+          </el-col>
1294
+
1259 1295
           <el-col
1260 1296
             :span="8"
1261 1297
             v-if="
@@ -1474,7 +1510,7 @@
1474 1510
             :span="8"
1475 1511
             v-if="
1476 1512
               isShow('置换量') &&
1477
-              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id ==10551 || org_id ==10558 || org_id ==10346 || org_id ==10598 || org_id == 10694 || org_id == 10697) &&
1513
+              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id ==10551 || org_id ==10558 || org_id ==10346 || org_id ==10598 || org_id == 10694 || org_id == 10697 || org_id ==10567) &&
1478 1514
               org_id != 9779 &&
1479 1515
               template_id != 11 &&
1480 1516
               template_id != 20 &&
@@ -1506,7 +1542,7 @@
1506 1542
                 org_id != 9919 &&
1507 1543
                 org_id != 10191 &&
1508 1544
                 org_id != 10551 &&
1509
-                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598 && org_id!=10414 && org_id !=10694 && org_id != 10697) ||
1545
+                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598 && org_id!=10414 && org_id !=10694 && org_id != 10697&& org_id != 10567) ||
1510 1546
                 org_id == 9779 ||
1511 1547
                 template_id == 11 ||
1512 1548
                 template_id == 20 ||
@@ -1739,6 +1775,12 @@
1739 1775
             </el-form-item>
1740 1776
           </el-col>
1741 1777
 
1778
+          <el-col :span="8" v-if="isShow('剩余肝素')">
1779
+            <el-form-item label="剩余肝素(ml):" :prop="isName('剩余肝素')"
1780
+              :rules="isCheckmust('剩余肝素')">
1781
+              <el-input  v-model="form.heparin_one" ></el-input>
1782
+            </el-form-item>
1783
+          </el-col>
1742 1784
 
1743 1785
 
1744 1786
           <!-- </el-row>
@@ -1759,6 +1801,9 @@
1759 1801
           </el-col>
1760 1802
 
1761 1803
 
1804
+          
1805
+
1806
+
1762 1807
 
1763 1808
           <!-- </el-row>
1764 1809
 
@@ -1996,6 +2041,8 @@ export default {
1996 2041
         replacement_speed:"",
1997 2042
         dicarbonate:"",
1998 2043
         is_pressure:"",
2044
+        ultrafiltration_rate_one:"",
2045
+        heparin_one:""
1999 2046
       },
2000 2047
 
2001 2048
       table_current_row: null,
@@ -2724,6 +2771,10 @@ export default {
2724 2771
        this.form.dicarbonate =parseFloat(this.form.dicarbonate) == NaN ? 0: parseFloat(this.form.dicarbonate);
2725 2772
        this.form.is_pressure = this.form.is_pressure
2726 2773
 
2774
+      this.form.ultrafiltration_rate_one = this.form.ultrafiltration_rate_one
2775
+
2776
+      this.form.heparin_one = this.form.heparin_one
2777
+
2727 2778
       let mode = "1";
2728 2779
       if (this.form.id > 0) {
2729 2780
         mode = "2";
@@ -2882,6 +2933,9 @@ export default {
2882 2933
               parseFloat(this.form.heparin_amount) == NaN
2883 2934
                 ? 0
2884 2935
                 : parseFloat(this.form.heparin_amount);
2936
+              this.form.ultrafiltration_rate_one = this.form.ultrafiltration_rate_one
2937
+              this.form.heparin_one = this.form.heparin_one
2938
+
2885 2939
             this.$message.error(resp.msg);
2886 2940
             if(resp.code == 600000008){
2887 2941
               this.infoDialogVisible = true

+ 6 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue 查看文件

@@ -19,13 +19,14 @@
19 19
           <th v-if=" isShow('超滤量') && (template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && template_id != 65 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  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!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 && this.$store.getters.xt_user.template_info.org_id!=10485  && this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10599  && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10612 && this.$store.getters.xt_user.template_info.org_id!=10617 && this.$store.getters.xt_user.template_info.org_id!=10580 && this.$store.getters.xt_user.template_info.org_id!=10629 && this.$store.getters.xt_user.template_info.org_id!=10679 && this.$store.getters.xt_user.template_info.org_id!=10667) || this.$store.getters.xt_user.template_info.org_id == 10387"  width="76px"> 超滤量(L) </th>
20 20
           <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 65 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56  || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599  || this.$store.getters.xt_user.template_info.org_id == 10612 || this.$store.getters.xt_user.template_info.org_id == 10617 || this.$store.getters.xt_user.template_info.org_id == 10580 || this.$store.getters.xt_user.template_info.org_id == 10629 || this.$store.getters.xt_user.template_info.org_id == 10677 || this.$store.getters.xt_user.template_info.org_id == 10667 || this.$store.getters.xt_user.template_info.org_id == 10693) && this.$store.getters.xt_user.template_info.org_id!=10387" width="50px"> 超滤率 <br />(ml/h) </th>
21 21
           <th v-if="isShow('超滤率') && (template_id !=6 && template_id !=65 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 &&this.$store.getters.xt_user.template_info.org_id!=10485 &&this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10599 && this.$store.getters.xt_user.template_info.org_id!=10612 && this.$store.getters.xt_user.template_info.org_id!=10617 && this.$store.getters.xt_user.template_info.org_id!=10580 && this.$store.getters.xt_user.template_info.org_id!=10629 && this.$store.getters.xt_user.template_info.org_id!=10679 && this.$store.getters.xt_user.template_info.org_id!=10667 && this.$store.getters.xt_user.template_info.org_id!=10693 ) || this.$store.getters.xt_user.template_info.org_id==10387" width="50px"> 超滤率 <br />(L/h) </th>
22
+          <th v-if="isShow('超滤率2')" width="92px">超滤率(ml/h)</th>
22 23
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
23 24
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
24 25
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445 || org_id == 10410 || org_id ==10617 || org_id==10677) && org_id!=10558 && org_id!=10598 && org_id!=10414" width="92px" > 置换率(ml/min) </th>
25 26
           <th v-if=" isShow('置换率') && (template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432 && org_id!=10445 && org_id!=10410 && org_id!=10617  && org_id!=10677) || org_id == 10558 || org_id ==10598 || org_id ==10414" width="92px" > 置换率(L/h)  </th>
26 27
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
27
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || 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 == 10445 ) && org_id!=10558 && org_id!=10598  && org_id!=10414 && org_id!=10694 && org_id!=10697" width="92px"  > 置换量(ml)  </th>
28
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id ==10346 || org_id ==10517) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && 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 != 10445) || org_id == 10558 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697" width="92px" > 置换量(L) </th>
28
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || 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 == 10445 ) && org_id!=10558 && org_id!=10598  && org_id!=10414 && org_id!=10694 && org_id!=10697 && org_id!=10567" width="92px"  > 置换量(ml)  </th>
29
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id ==10346 || org_id ==10517) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && 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 != 10445) || org_id == 10558 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id == 10567" width="92px" > 置换量(L) </th>
29 30
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
30 31
           <th v-if=" isShow('SpO₂') && org_id == 9829" width="92px" > SpO₂(%) </th>
31 32
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
@@ -33,6 +34,7 @@
33 34
           <th v-if="isShow('置换液流量') && (template_id == 27 ||  template_id == 60)" width="92px">置换液流量(ml/min)</th>
34 35
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
35 36
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
37
+          <th v-if="isShow('剩余肝素')" width="92px">剩余肝素(ml)</th>
36 38
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
37 39
           <th v-if="isShow('累计血容量') && org_id!=10340 && org_id!=0" width="92px">累计血容量 
38 40
             <span v-if="template_id !=41 && org_id!=9671 && org_id!=9538 && org_id!=10340">(ml)</span>
@@ -69,6 +71,7 @@
69 71
             <span v-if="org_id ==9671 || org_id==10440">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}  </span> 
70 72
           </td>
71 73
           <td v-if="isShow('超滤率')" >{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
74
+          <td v-if="isShow('超滤率2')" >{{monitor.ultrafiltration_rate_one?monitor.ultrafiltration_rate_one:''}}</td>
72 75
           <td v-if="isShow('钠浓度')"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>
73 76
           <td v-if="isShow('透析液温度')"> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>
74 77
           <td v-if="isShow('置换率')"> {{ monitor.replacement_rate ? monitor.replacement_rate : "" }} </td>
@@ -79,6 +82,7 @@
79 82
           <td v-if="isShow('置换液流量')"> {{ monitor.displacement_flow_quantity  ? monitor.displacement_flow_quantity : "" }} </td>
80 83
           <td v-if="isShow('透析液流量')"> {{ monitor.dialysate_flow  ? monitor.dialysate_flow : "" }} </td>
81 84
           <td v-if="isShow('肝素用量余量')"> {{ monitor.heparin ? monitor.heparin : "" }} </td>
85
+          <th v-if="isShow('剩余肝素')">{{ monitor.heparin_one?monitor.heparin_one:"" }}</th>
82 86
           <td v-if="isShow('抗凝剂')">
83 87
             <span v-if="monitor.monitor_anticoagulant == 1">无肝素</span>
84 88
             <span v-if="monitor.monitor_anticoagulant == 2">普通肝素</span>

+ 2 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventy.vue 查看文件

@@ -2310,7 +2310,8 @@
2310 2310
                         </span>
2311 2311
                         <img
2312 2312
                           :style="{'height':org_id==10597 ? '25px':'35px'}"
2313
-                          :src="setAdminUserES(check == null ? 0 : check.modifier)
2313
+                          :src="
2314
+                            setAdminUserES(check == null ? 0 : check.modifier)
2314 2315
                           "
2315 2316
                           alt=""
2316 2317
                           srcset=""

+ 13 - 10
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue 查看文件

@@ -844,18 +844,21 @@ export default {
844 844
              }
845 845
           }
846 846
           console.log("医嘱天天吞吞吐吐",this.tableAdvice)
847
-          if (tableAdvice.length <= 8) {
848
-            const length = 8 - tableAdvice.length
849
-            var obj = { advice_name: '', start_time: '' }
850
-            for (i = 0; i < length; i++) {
851
-              console.log(1)
852
-              tableAdvice.push(obj)
853
-            }
847
+          if(this.tableAdvice!=null && this.tableAdvice.length >0){
848
+            if (tableAdvice.length <= 8) {
849
+              const length = 8 - tableAdvice.length
850
+              var obj = { advice_name: '', start_time: '' }
851
+              for (i = 0; i < length; i++) {
852
+                console.log(1)
853
+                tableAdvice.push(obj)
854
+              }
854 855
 
855
-            this.tableAdvice = tableAdvice
856
-          }else{
857
-            this.tableAdvice = tableAdvice
856
+             this.tableAdvice = tableAdvice
857
+            }else{
858
+              this.tableAdvice = tableAdvice
859
+            }
858 860
           }
861
+        
859 862
           console.log("tableAdvice", this.tableAdvice);
860 863
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;
861 864
           console.log("透后评估", this.afterdialysis);

+ 8 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderseventyfive.vue 查看文件

@@ -132,7 +132,7 @@
132 132
                   white-space: normal;
133 133
                 "
134 134
               >
135
-                <span v-if="dialysisOrder !=null" >
135
+                <span v-if="dialysisOrder !=null&&dialysisOrder.dialysis_dialyszers!=''" >
136 136
                   {{dialysisOrder.dialysis_dialyszers ? dialysisOrder.dialysis_dialyszers : "/" }}
137 137
                 </span>
138 138
                 <span v-if="dialysisOrder !=null && dialysisOrder.dialysis_strainer!=''" >
@@ -562,7 +562,7 @@
562 562
                 <td width="50">{{monitor.blood_flow_volume ? monitor.blood_flow_volume: "/"}}</td>
563 563
                 <td width="50">{{ monitor.conductivity ? monitor.conductivity : "/" }}</td>
564 564
                 <td width="50">
565
-                  <span v-if="monindex == 0">
565
+                  <!-- <span v-if="monindex == 0">
566 566
                     {{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: "0" }}
567 567
                   </span>
568 568
                   <span v-else-if="monindex == ( monitors.length-1)">
@@ -570,8 +570,8 @@
570 570
                   </span>
571 571
                   <span v-else>
572 572
                     {{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/' }}
573
-                  </span>
574
-                  
573
+                  </span> -->
574
+                  {{ monitor.ultrafiltration_rate_one ? monitor.ultrafiltration_rate_one:"" }}
575 575
                 </td>
576 576
                 <td width="50">
577 577
                   <span v-if="monindex == 0">
@@ -586,7 +586,7 @@
586 586
                 </td>
587 587
                 <!-- 剩余肝素 -->
588 588
                 <td width="65">
589
-                  <span v-if="monindex == 0">
589
+                  <!-- <span v-if="monindex == 0">
590 590
                     {{ monitor.heparin ? monitor.heparin :'0' }}
591 591
                   </span>
592 592
                   <span v-else-if="monindex == ( monitors.length-1)">
@@ -594,8 +594,10 @@
594 594
                   </span>
595 595
                   <span v-else>
596 596
                     {{ monitor.heparin ? monitor.heparin: "/" }}
597
-                  </span> 
597
+                  </span>  -->
598 598
                   <!-- {{ monitor.heparin != '' ? monitor.heparin :'/' }}-->
599
+                    <!-- {{ monitor.heparin?monitor.heparin:"" }} -->
600
+                      {{ monitor.heparin_one?monitor.heparin_one:"" }}
599 601
                 </td>
600 602
                 <td width="200">
601 603
                   <template v-if=" (dialysisOrder && monitor.operate_time == dialysisOrder.start_time)">

+ 20 - 0
src/xt_pages/stock/drugs/drugStockOutOrder.vue 查看文件

@@ -322,6 +322,15 @@
322 322
                </tr>
323 323
             </template>
324 324
           </el-table-column>
325
+          <el-table-column label="出库班次" align="center" v-if="is_sys == 0">
326
+            <template slot-scope="scope">
327
+                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
328
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
329
+                    {{ getClassType(scope.row.drug_id)}}
330
+                  </td>
331
+               </tr>
332
+            </template>
333
+          </el-table-column>
325 334
           <el-table-column label="出库对象" align="center" v-if="is_sys == 0">
326 335
             <template slot-scope="scope">
327 336
                 <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
@@ -867,6 +876,8 @@ export default {
867 876
             this.houseList.push(response.data.data.houseList[i]);
868 877
           }
869 878
           var objOne = {id:0,name:"系统"}
879
+          var objTwo = {id:-1,name:"血透室"}
880
+          this.patients.push(objTwo)
870 881
           this.patients.push(objOne)
871 882
           for(let i=0;i<response.data.data.patients.length;i++){
872 883
              this.patients.push(response.data.data.patients[i])
@@ -2547,6 +2558,15 @@ export default {
2547 2558
          }
2548 2559
       }
2549 2560
       return str
2561
+    },
2562
+    getClassType(drug_id){
2563
+      var str = ""
2564
+      for(let i=0;i<this.outList.length;i++){
2565
+         if(drug_id == this.outList[i].drug_id){
2566
+            str = this.outList[i].class_type
2567
+         }
2568
+      }
2569
+      return str
2550 2570
     }
2551 2571
   },
2552 2572
 };

+ 20 - 2
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue 查看文件

@@ -250,6 +250,21 @@
250 250
           </el-table-column>
251 251
 
252 252
 
253
+          <el-table-column label="使用班次"  width="100" align="center">
254
+            <template slot-scope="scope">
255
+               <el-select size="small" v-model="scope.row.class_type" filterable placeholder="请选择出库班次">
256
+                <el-option
257
+                  v-for="(option, index) in classType"
258
+                  :key="index"
259
+                  :label="option.name"
260
+                  :value="option.name">
261
+                </el-option>
262
+               </el-select>
263
+            </template>
264
+          </el-table-column>
265
+
266
+
267
+
253 268
           <el-table-column label="使用患者"  width="150" align="center">
254 269
             <template slot-scope="scope">
255 270
                <el-select size="small" v-model="scope.row.patient_id" filterable placeholder="请选择出库对象">
@@ -517,6 +532,7 @@ export default {
517 532
       showReturnCheck:false,
518 533
       warehouse_out_id:0,
519 534
       patients:[],
535
+      classType:[{id:1,name:"上午"},{id:2,name:"下午"},{id:3,name:"晚上"}],
520 536
     };
521 537
   },
522 538
   methods: {
@@ -560,15 +576,15 @@ export default {
560 576
           this.list = response.data.data.list;
561 577
           this.doctorList = response.data.data.doctorList;
562 578
           var obj ={id:0,name:"系统"}
579
+          var objOne = {id:-1,name:"血透室"}
563 580
           this.patients =[]
581
+          this.patients.push(objOne)
564 582
           this.patients.push(obj)
565 583
           if(response.data.data.patients!=null){
566 584
             for(let i=0;i<response.data.data.patients.length;i++){
567 585
               this.patients.push(response.data.data.patients[i])
568 586
             }
569 587
           }
570
-          // this.doctorList.push({index:999,user_name:"护士站", admin_user_id:999})
571
-        
572 588
         }
573 589
         loading.close();
574 590
       });
@@ -619,6 +635,7 @@ export default {
619 635
       tempObj["patient_id"] =0
620 636
       tempObj["expiry_date"] = ""
621 637
       tempObj["product_date"] = ""
638
+      tempObj["class_type"]= ""
622 639
       this.recordInfo.recordData.push(tempObj);
623 640
     },
624 641
     handleDelete: function (index, row) {
@@ -1236,6 +1253,7 @@ export default {
1236 1253
     tempObj["patient_id"] = 0
1237 1254
     tempObj["product_date"] = ""
1238 1255
     tempObj["expiry_date"]=""
1256
+    tempObj["class_type"] = ""
1239 1257
     this.recordInfo.recordData.push(tempObj);
1240 1258
     this.GetConfigInfo();
1241 1259
     this.propForm.goodUnit = this.$store.getters.good_unit;

+ 20 - 1
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue 查看文件

@@ -276,6 +276,19 @@
276 276
             </template>
277 277
           </el-table-column>
278 278
 
279
+          <el-table-column label="使用班次"  width="100" align="center">
280
+            <template slot-scope="scope">
281
+               <el-select size="small" v-model="scope.row.class_type" filterable placeholder="请选择出库班次">
282
+                <el-option
283
+                  v-for="(option, index) in classType"
284
+                  :key="index"
285
+                  :label="option.name"
286
+                  :value="option.name">
287
+                </el-option>
288
+               </el-select>
289
+            </template>
290
+          </el-table-column>
291
+
279 292
           <el-table-column label="使用患者" width="140" align="center">
280 293
             <template slot-scope="scope">
281 294
               <el-select
@@ -549,7 +562,8 @@ export default {
549 562
       storehouse_id: "",
550 563
       is_check:0,
551 564
       order_id:0,
552
-      patients:[]
565
+      patients:[],
566
+      classType:[{id:1,name:"上午"},{id:2,name:"下午"},{id:3,name:"晚上"}],
553 567
     };
554 568
   },
555 569
   methods: {
@@ -685,6 +699,7 @@ export default {
685 699
       tempObj["max_unit_fisrt"] = 0;
686 700
       tempObj["min_unit_fisrt"] = 0;
687 701
       tempObj["patient_id"] =0
702
+      tempObj["class_type"] = ""
688 703
       this.recordInfo.recordData.push(tempObj);
689 704
     },
690 705
     handleDelete: function (index, row) {
@@ -1004,6 +1019,8 @@ export default {
1004 1019
             response.data.data.list[i].stock_count = response.data.data.list[i].stock_count;
1005 1020
             response.data.data.list[i].last_price = response.data.data.list[i].last_price;
1006 1021
             response.data.data.list[i].patient_id = response.data.data.list[i].patient_id
1022
+            console.log("response.data.data.list[i].class_type",response.data.data.list[i])
1023
+            response.data.data.list[i].class_type =  response.data.data.list[i].class_type
1007 1024
             this.recordInfo.recordData.push(response.data.data.list[i]);
1008 1025
           }
1009 1026
 
@@ -1035,8 +1052,10 @@ export default {
1035 1052
           this.houstList = response.data.data.houstList;
1036 1053
           this.doctorList = response.data.data.doctorList;
1037 1054
           var obj ={id:0,name:"系统"}
1055
+          var objOne ={id:-1,name:"血透室"}
1038 1056
           this.patients =[]
1039 1057
           this.patients.push(obj)
1058
+          this.patients.push(objOne)
1040 1059
           if(response.data.data.patients!=null){
1041 1060
             for(let i=0;i<response.data.data.patients.length;i++){
1042 1061
               this.patients.push(response.data.data.patients[i])

文件差異過大導致無法顯示
+ 1107 - 0
src/xt_pages/stock/selfPreparedMedicine/addWarehouseInfo.vue


文件差異過大導致無法顯示
+ 1208 - 0
src/xt_pages/stock/selfPreparedMedicine/addWarehouseOut.vue


文件差異過大導致無法顯示
+ 1101 - 0
src/xt_pages/stock/selfPreparedMedicine/editWarehouseInfo.vue


+ 0 - 0
src/xt_pages/stock/selfPreparedMedicine/editWarehouseOut.vue 查看文件


+ 934 - 0
src/xt_pages/stock/selfPreparedMedicine/warehouseInfo.vue 查看文件

@@ -0,0 +1,934 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-button
6
+        size="small"
7
+        @click="handleWarehouse"
8
+        class="filter-item"
9
+        style="float: right"
10
+        type="primary"
11
+        icon="el-icon-circle-plus-outline"
12
+        >新增</el-button
13
+      >
14
+    </div>
15
+
16
+    <div class="app-container">
17
+      <div class="cell clearfix">
18
+        <label class="title"><span class="name">患者</span> :</label>
19
+        <el-select
20
+          size="small"
21
+          v-model="patient_id"
22
+          filterable
23
+          placeholder="请选择患者"
24
+          style="width: 200px"
25
+          @change="changeStoreHouse"
26
+        >
27
+          <el-option
28
+            v-for="(option, index) in patientList"
29
+            :key="index"
30
+            :label="option.name"
31
+            :value="option.id"
32
+          >
33
+          </el-option>
34
+        </el-select>
35
+        <el-input
36
+          size="small"
37
+          style="width: 200px"
38
+          v-model.trim="searchKey"
39
+          class="filter-item"
40
+          placeholder="单据编码/制单人/药品名称"
41
+        />
42
+        <el-button
43
+          size="small"
44
+          class="filter-item"
45
+          type="primary"
46
+          icon="el-icon-search"
47
+          @click="search"
48
+          >搜索</el-button
49
+        >
50
+        <div style="margin-left: 10px">
51
+          <label class="title"><span class="name">入库时间</span> : </label>
52
+          <el-date-picker
53
+            size="small"
54
+            v-model="start_time"
55
+            prefix-icon="el-icon-date"
56
+            :editable="false"
57
+            style="width: 196px"
58
+            type="date"
59
+            placeholder="选择日期时间"
60
+            align="right"
61
+            format="yyyy-MM-dd"
62
+            value-format="yyyy-MM-dd"
63
+            @change="startTimeChange"
64
+          ></el-date-picker>
65
+          <span class="cellLine"> - </span>
66
+          <el-date-picker
67
+            size="small"
68
+            v-model="end_time"
69
+            prefix-icon="el-icon-date"
70
+            :editable="false"
71
+            style="width: 196px"
72
+            type="date"
73
+            placeholder="选择日期时间"
74
+            align="right"
75
+            format="yyyy-MM-dd"
76
+            value-format="yyyy-MM-dd"
77
+            @change="endTimeChange"
78
+          ></el-date-picker>
79
+        </div>
80
+        <!-- <div style="margin-left: 10px">
81
+          <span>审核状态:</span>
82
+          <el-select
83
+            v-model="check_id"
84
+            style="width: 140px; margin-right: 10px"
85
+            placeholder="请选择"
86
+            @change="changeTypeName"
87
+          >
88
+            <el-option
89
+              v-for="item in checkList"
90
+              :key="item.id"
91
+              :label="item.name"
92
+              :value="item.id"
93
+            >
94
+            </el-option>
95
+          </el-select>
96
+        </div> -->
97
+      </div>
98
+
99
+      <div class="cell clearfix">
100
+        <el-checkbox
101
+          style="width: 70px"
102
+          v-model="checked"
103
+          @change="changeAllSelected"
104
+          >全选</el-checkbox
105
+        >
106
+        <el-button size="small" icon="el-icon-delete" @click="batchDelete"
107
+          >删除</el-button
108
+        >
109
+        <el-button size="small" type="primary" @click="drugPrint()"
110
+          >打印</el-button
111
+        >
112
+        <el-button size="small" type="primary" @click="toExport()" :disabled="exportLoding">导出</el-button>
113
+        <div>
114
+          <span>&nbsp;&nbsp;</span>
115
+          <label class="title"><span class="name">审核状态</span> :</label>
116
+          <el-select
117
+            size="small"
118
+            v-model="check_type"
119
+            filterable
120
+            placeholder="请选择仓库"
121
+            style="width: 200px"
122
+            @change="changeCheckType"
123
+          >
124
+            <el-option
125
+              v-for="(option, index) in checkList"
126
+              :key="index"
127
+              :label="option.name"
128
+              :value="option.id"
129
+            >
130
+            </el-option>
131
+          </el-select>
132
+        </div>
133
+      </div>
134
+
135
+      <el-table
136
+        :data="tableList"
137
+        :class="signAndWeighBoxPatients"
138
+        style="width: 100%"
139
+        border
140
+        highlight-current-row
141
+        v-loading="Warehouse.loading"
142
+        ref="multipleTable"
143
+        @selection-change="select"
144
+        :row-style="{ color: '#303133' }"
145
+        :header-cell-style="{
146
+          backgroundColor: 'rgb(245, 247, 250)',
147
+          color: '#606266',
148
+        }"
149
+        @current-change="handleCurrentChangeOne"
150
+      >
151
+        <el-table-column align="center" type="selection" width="55">
152
+        </el-table-column>
153
+
154
+        <el-table-column label="药品名称" align="center">
155
+          <template slot-scope="scope">
156
+             {{ scope.row.drug.drug_name }}
157
+          </template>
158
+        </el-table-column>
159
+
160
+        <el-table-column label="药品类型" align="center">
161
+          <template slot-scope="scope">
162
+             {{ GetDrugTypeName(scope.row.drug.drug_type) }}
163
+          </template>
164
+        </el-table-column>
165
+
166
+        <el-table-column label="规格" align="center">
167
+          <template slot-scope="scope">
168
+            {{ scope.row.drug.dose }} {{  scope.row.drug.dose_unit }} * {{ scope.row.drug.min_number}} {{ scope.row.drug.min_unit}} / {{ scope.row.max_unit }}
169
+          </template>
170
+        </el-table-column>
171
+
172
+        <el-table-column label="批号" align="center">
173
+          <template slot-scope="scope">
174
+             {{ scope.row.batch_number }}
175
+          </template>
176
+        </el-table-column>
177
+
178
+        <el-table-column label="入库数量" align="center">
179
+          <template slot-scope="scope">
180
+             {{ scope.row.warehousing_count }} {{ scope.row.max_unit }}
181
+          </template>
182
+        </el-table-column>
183
+
184
+      
185
+
186
+        <el-table-column label="生产厂家" align="center">
187
+          <template slot-scope="scope">
188
+            {{ getManufacturer(scope.row.manufacturer) }}
189
+          </template>
190
+        </el-table-column>
191
+
192
+        <el-table-column label="生产日期" align="center">
193
+          <template slot-scope="scope">
194
+             {{ getTime(scope.row.product_date) }}
195
+          </template>
196
+        </el-table-column>
197
+
198
+        <el-table-column label="有效日期" align="center">
199
+          <template slot-scope="scope">
200
+            {{ getTime(scope.row.expiry_date) }}
201
+          </template>
202
+        </el-table-column>
203
+
204
+        <el-table-column label="备注" align="center">
205
+          <template slot-scope="scope">
206
+             {{ scope.row.remark }}
207
+          </template>
208
+        </el-table-column>
209
+
210
+        <el-table-column label="操作" align="center" width="240">
211
+          <template slot-scope="scope">
212
+            <el-tooltip
213
+              class="item"
214
+              effect="dark"
215
+              content="编辑"
216
+              placement="top"
217
+            >
218
+              <el-button
219
+                size="small"
220
+                type="primary"
221
+                icon="el-icon-edit-outline"
222
+                @click="handleEdit(scope.$index, scope.row)"
223
+              >
224
+              </el-button>
225
+            </el-tooltip>
226
+            <el-tooltip
227
+              class="item"
228
+              effect="dark"
229
+              content="删除"
230
+              placement="top"
231
+            >
232
+              <el-button
233
+                size="small"
234
+                type="danger"
235
+                icon="el-icon-delete"
236
+                @click="handleDelete(scope.$index, scope.row)"
237
+              >
238
+              </el-button>
239
+            </el-tooltip>
240
+          </template>
241
+        </el-table-column>
242
+      </el-table>
243
+
244
+      <el-pagination
245
+        @size-change="handleSizeChange"
246
+        @current-change="handleCurrentChange"
247
+        :page-sizes="[5, 10, 50, 100]"
248
+        :page-size="5"
249
+        background
250
+        style="margin-top: 20px; text-align: right"
251
+        layout="total, sizes, prev, pager, next, jumper"
252
+        :total="total"
253
+      >
254
+      </el-pagination>
255
+    
256
+    </div>
257
+
258
+ 
259
+  </div>
260
+</template>
261
+
262
+<script>
263
+import { uParseTime } from "@/utils/tools";
264
+import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
265
+import {
266
+  deleteDrugWarehouseInfo,
267
+  getDrugWarehouseInfoList,
268
+  exportDrugList,
269
+
270
+} from "@/api/drug/drug_stock";
271
+import { getAllDrugList } from "@/api/data";
272
+import { getDictionaryDataConfig } from "@/utils/data";
273
+import BreadCrumb from "../../components/bread-crumb";
274
+  import { getallPatientList,getAllSelfDrugWarehouseInfoList,deleteSelfWarehouseInfo} from "@/api/drug/drug"
275
+export default {
276
+  name: "drugStockInOrder",
277
+  components: { BreadCrumb },
278
+  created() {
279
+    this.org_id = this.$store.getters.xt_user.org.id
280
+    if (this.$route.path == "/Pharmacy/drugs/stock/in") {
281
+      this.crumbs = [
282
+        { path: false, name: "药品管理" },
283
+        { path: "/stock/drugs/stock/query", name: "入库单·" },
284
+      ];
285
+    }
286
+    this.drugTypeList = getDictionaryDataConfig("system", "drug_type");
287
+    var nowDate = new Date();
288
+    var nowYear = nowDate.getFullYear();
289
+    var nowMonth = nowDate.getMonth() + 1;
290
+    var nowDay = nowDate.getDate();
291
+    this.end_time =
292
+      nowYear +
293
+      "-" +
294
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
295
+      "-" +
296
+      (nowDay < 10 ? "0" + nowDay : nowDay);
297
+    nowDate.setMonth(nowDate.getMonth() - 1);
298
+    nowYear = nowDate.getFullYear();
299
+    nowMonth = nowDate.getMonth() + 1;
300
+    nowDay = nowDate.getDate();
301
+    this.start_time =
302
+      nowYear +
303
+      "-" +
304
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
305
+      "-" +
306
+      (nowDay < 10 ? "0" + nowDay : nowDay);
307
+
308
+    this.getallPatientList() 
309
+
310
+    this.getAllSelfDrugWarehouseInfoList()
311
+  },
312
+  data() {
313
+    return {
314
+      crumbs: [
315
+        { path: false, name: "库存管理" },
316
+        { path: false, name: "入库单" },
317
+      ],
318
+      searchKey: "",
319
+      type: 1,
320
+      page: 1,
321
+      limit: 5,
322
+      checked: false,
323
+      total: 0,
324
+      pageTotal: 0,
325
+      pageSelect: 0,
326
+      adminUserOptions: [],
327
+      multipleSelection: [],
328
+      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
329
+      start_time: "",
330
+      end_time: "",
331
+      selectedTableData: [],
332
+      Warehouse: {
333
+        loading: false,
334
+        warehouseDate: [],
335
+        tableCurrentIndex: "",
336
+      },
337
+
338
+      WarehouseInfo: {
339
+        loading: false,
340
+        warehouseInfoDate: [],
341
+      },
342
+      check_id: 0,
343
+
344
+      startTime: "",
345
+      dialogVisible: false,
346
+      showOne: false,
347
+      drugTypeList: [],
348
+      manufacturerList: [],
349
+      order_id: "",
350
+      dealerList: [],
351
+      exportList: [],
352
+      houseList: [],
353
+      storehouse_id: 0,
354
+      check_type: 0,
355
+      checkList: [
356
+        { id: 0, name: "全部" },
357
+        { id: 1, name: "已审核" },
358
+        { id: 2, name: "未审核" },
359
+      ],
360
+      exportLoding:false,
361
+      org_id:0,
362
+      patient_id:0,
363
+      patientList:[],
364
+      tableList:[],
365
+      manufacturerList:[],
366
+      dealerList:[],
367
+      drugTypeList:[],
368
+    };
369
+  },
370
+
371
+  methods: {
372
+    
373
+    getAllSelfDrugWarehouseInfoList(){
374
+        var params = {
375
+          keyword:this.searchKey,
376
+          patient_id:this.patient_id,
377
+        }
378
+        getAllSelfDrugWarehouseInfoList(params).then(response=>{
379
+          if(response.data.state ==1){
380
+            var infoList  =  response.data.data.infoList
381
+            console.log("infolist22222222222222",infoList)
382
+            this.tableList = infoList
383
+            this.manufacturerList = response.data.data.manufacturerList
384
+            this.dealerList = response.data.data.dealerList
385
+            this.drugTypeList = response.data.data.drugTypeList
386
+
387
+          }
388
+      })
389
+    },
390
+    tableRowClassName({ row, rowIndex }) {
391
+      // 把每一行的索引放进row
392
+      row.index = rowIndex;
393
+    },
394
+    onRowClick(row, event, column) {
395
+      this.WarehouseInfo.warehouseInfoDate = [];
396
+      this.Warehouse.tableCurrentIndex = row.index;
397
+      const params = {
398
+        id: row.id,
399
+      };
400
+      this.WarehouseInfo.loading = true;
401
+      getDrugWarehouseInfoList(params).then((response) => {
402
+        if (response.data.state == 0) {
403
+          this.WarehouseInfo.loading = false;
404
+          this.$message.error(response.data.msg);
405
+          return false;
406
+        } else {
407
+          this.WarehouseInfo.loading = false;
408
+          for (let i = 0; i < response.data.data.info.length; i++) {
409
+            this.WarehouseInfo.warehouseInfoDate.push(
410
+              response.data.data.info[i]
411
+            );
412
+          }
413
+        }
414
+      });
415
+    },
416
+    getXuserName(id) {
417
+      if (id <= 0) {
418
+        return "";
419
+      }
420
+      var name = "";
421
+      if (
422
+        this.adminUserOptions == null ||
423
+        typeof this.adminUserOptions.length === "undefined"
424
+      ) {
425
+        return name;
426
+      }
427
+      var leng = this.adminUserOptions.length;
428
+      if (leng == 0) {
429
+        return name;
430
+      }
431
+      for (let index = 0; index < leng; index++) {
432
+        if (this.adminUserOptions[index].id == id) {
433
+          name = this.adminUserOptions[index].name;
434
+          break;
435
+        }
436
+      }
437
+      return name;
438
+    },
439
+    fetchAllDoctorAndNurse() {
440
+      fetchAllDoctorAndNurse().then((response) => {
441
+        if (response.data.state == 1) {
442
+          this.doctorOptions = response.data.data.doctors;
443
+        }
444
+      });
445
+    },
446
+    fetchAllAdminUsers() {
447
+      fetchAllAdminUsers().then((response) => {
448
+        if (response.data.state == 1) {
449
+          this.adminUserOptions = response.data.data.users;
450
+
451
+          var alen = this.adminUserOptions.length;
452
+          for (let index = 0; index < alen; index++) {
453
+            if (this.adminUserOptions[index].user_type == 2) {
454
+              // this.doctorOptions.push(this.adminUserOptions[index]);
455
+            }
456
+          }
457
+        }
458
+      });
459
+    },
460
+    clicks: function () {},
461
+     handleWarehouse: function () {
462
+      this.$router.push({path:"/stock/selfwarehouse/info/add"})
463
+    },
464
+    handleSelectionChange: function (val) {
465
+      this.multipleSelection = val;
466
+    },
467
+    handleSizeChange(val) {
468
+      this.limit = val;
469
+      this.GetWarehouse();
470
+    },
471
+    handleCurrentChange(val) {
472
+      this.page = val;
473
+      this.GetWarehouse();
474
+    },
475
+    startTimeChange(val) {
476
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
477
+      if (time > 0) {
478
+        this.$message.error("结束时间不能小于开始时间");
479
+        this.start_time = "";
480
+      } else {
481
+        this.startTime = this.getTimestamp(val);
482
+        this.start_time = val;
483
+        this.GetWarehouse();
484
+      }
485
+    },
486
+    endTimeChange(val) {
487
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
488
+      if (time < 0) {
489
+        this.$message.error("结束时间不能小于开始时间");
490
+        this.end_time = "";
491
+      } else {
492
+        this.end_time = val;
493
+        this.GetWarehouse();
494
+      }
495
+    },
496
+    getTimestamp(time) {
497
+      // 把时间日期转成时间戳
498
+      return new Date(time).getTime() / 1000;
499
+    },
500
+    calculate: function (val) {
501
+      return Math.round(parseFloat(val) * 100) / 100;
502
+    },
503
+
504
+    handleEdit: function (index, row) {
505
+
506
+      this.$router.push({path:"/stock/selfwarehouse/info/edit?id="+row.id+"&is_sys="+row.is_sys+"&is_check="+row.is_check})
507
+      
508
+    },
509
+    search(){
510
+
511
+    },
512
+    handleSearch(id) {
513
+      this.WarehouseInfo.warehouseInfoDate = [];
514
+      this.GetOrderDetail(id);
515
+      this.dialogVisible = true;
516
+    },
517
+    GetOrderDetail(order_id) {
518
+      const params = {
519
+        id: order_id,
520
+      };
521
+
522
+      this.WarehouseInfo.warehouseInfoDate = [];
523
+      getDrugWarehouseInfoList(params).then((response) => {
524
+        if (response.data.state == 0) {
525
+          this.$message.error(response.data.msg);
526
+          return false;
527
+        } else {
528
+          var obj = {total_count:0,is_total:1}
529
+          for (let i = 0; i < response.data.data.info.length; i++) {
530
+            response.data.data.info[i].is_total = 0
531
+            this.showOne = true;
532
+            this.WarehouseInfo.warehouseInfoDate.push(
533
+              response.data.data.info[i]
534
+            );
535
+            obj.total_count += (response.data.data.info[i].warehousing_count *response.data.data.info[i].price)
536
+          }
537
+          this.WarehouseInfo.warehouseInfoDate.push(obj)
538
+        
539
+          this.WarehouseInfo.warehouse = response.data.data.warehousing;
540
+          this.getAllDrugList();
541
+        }
542
+      });
543
+    },
544
+    handleDelete: function (index, row) {
545
+
546
+        this.$confirm('确定删除' + row.name + row.sub_name + '方案吗?', '提示', {
547
+          confirmButtonText: '确定',
548
+          cancelButtonText: '取消',
549
+          type: 'warning'
550
+        }).then(() => {
551
+          deleteSelfWarehouseInfo(row.id).then(response => {
552
+            if (response.data.state == 0) {
553
+              this.$message.error(response.data.msg)
554
+              return false
555
+            } else {
556
+              this.$notify({
557
+                title: '成功',
558
+                message: '删除成功',
559
+                type: 'success',
560
+                duration: 2000
561
+              })
562
+              this.tableData.splice(index, 1)
563
+
564
+            }
565
+          })
566
+        })
567
+     },
568
+    changeAllSelected: function (val) {
569
+      if (val) {
570
+        this.$refs.multipleTable.toggleAllSelection();
571
+      } else {
572
+        this.$refs.multipleTable.clearSelection();
573
+      }
574
+    },
575
+    select(selection) {
576
+      var ids = [];
577
+      for (let i = 0; i < selection.length; i++) {
578
+        ids.push(selection[i].id);
579
+      }
580
+      this.order_id = ids.join(",");
581
+      this.selectedTableData = selection;
582
+      this.exportDrugList();
583
+    },
584
+    batchDelete() {
585
+      if (this.selectedTableData.length <= 0) {
586
+        this.$message.error("请选择要删除的记录");
587
+        return;
588
+      }
589
+      const ids = [];
590
+      const idOne = [];
591
+      for (let i = 0; i < this.selectedTableData.length; i++) {
592
+        if (this.selectedTableData[i].is_check == 1) {
593
+          this.$message.error("已审核单据不能删除!");
594
+          return false;
595
+        }
596
+        if (this.selectedTableData[i].is_sys == 13) {
597
+          this.$message.error("调拨入库数据不能删除!");
598
+          return false;
599
+        }
600
+        ids.push(this.selectedTableData[i].id);
601
+        if (this.selectedTableData[i].supply_warehouse_id > 0) {
602
+          idOne.push(this.selectedTableData[i].supply_warehouse_id);
603
+        }
604
+      }
605
+
606
+      for (let i = 0; i < idOne.length; i++) {
607
+        if (idOne[i] > 0) {
608
+          this.$message.error("自动入库数据不能删除!");
609
+          return false;
610
+        }
611
+      }
612
+      const idStr = ids.join(",");
613
+      const params = {
614
+        ids: idStr,
615
+      };
616
+      this.$confirm("确认删除入库单记录?", "删除入库单记录", {
617
+        confirmButtonText: "确定",
618
+        cancelButtonText: "取消",
619
+        type: "warning",
620
+      })
621
+        .then(() => {
622
+          deleteDrugWarehouseInfo(params).then((response) => {
623
+            if (response.data.state == 0) {
624
+              this.$message.error(response.data.msg);
625
+              return false;
626
+            } else {
627
+              this.$notify({
628
+                title: "成功",
629
+                message: "删除成功",
630
+                type: "success",
631
+                duration: 2000,
632
+              });
633
+
634
+              for (let i = 0; i < ids.length; i++) {
635
+                for (let y = 0; y < this.Warehouse.warehouseDate.length; y++) {
636
+                  if (ids[i] == this.Warehouse.warehouseDate[y].id) {
637
+                    this.Warehouse.warehouseDate.splice(y, 1);
638
+                  }
639
+                }
640
+              }
641
+            }
642
+          });
643
+        })
644
+        .catch(() => {});
645
+    },
646
+    handleCurrentChangeOne(val) {
647
+      this.GetOrderDetail(val.id);
648
+    },
649
+    getTime(val) {
650
+      if (val < 0) {
651
+        return "";
652
+      }
653
+      if (val == "") {
654
+        return "";
655
+      } else {
656
+        return uParseTime(val, "{y}-{m}-{d}");
657
+      }
658
+    },
659
+    getDrugType(id) {
660
+      var name = "";
661
+      for (let i = 0; i < this.drugTypeList.length; i++) {
662
+        if (id == this.drugTypeList[i].id) {
663
+          name = this.drugTypeList[i].name;
664
+        }
665
+      }
666
+      return name;
667
+    },
668
+    getAllDrugList() {
669
+      getAllDrugList().then((response) => {
670
+        if (response.data.state == 1) {
671
+          var manufacturerList = response.data.data.manufacturerList;
672
+          this.manufacturerList = manufacturerList;
673
+          this.dealerList = response.data.data.dealerList;
674
+        }
675
+      });
676
+    },
677
+    getManufacturer(id) {
678
+      var name = "";
679
+      for (let i = 0; i < this.manufacturerList.length; i++) {
680
+        if (id == this.manufacturerList[i].id) {
681
+          name = this.manufacturerList[i].manufacturer_name;
682
+        }
683
+      }
684
+      return name;
685
+    },
686
+    getDealer(id) {
687
+      var name = "";
688
+      for (let i = 0; i < this.dealerList.length; i++) {
689
+        if (id == this.dealerList[i].id) {
690
+          name = this.dealerList[i].dealer_name;
691
+        }
692
+      }
693
+      return name;
694
+    },
695
+    getDictionaryDataConfig(module, filed_name) {
696
+      return getDictionaryDataConfig(module, filed_name);
697
+    },
698
+    drugPrint() {
699
+      if (this.order_id == "") {
700
+        this.$message.error("请选择入库单");
701
+      } else {
702
+        this.$router.push({
703
+          path: "/stock/drugStockInOrderDetailPrint?id=" + this.order_id,
704
+        });
705
+      }
706
+    },
707
+    exportDrugList() {
708
+      var params = {
709
+        order_id: this.order_id,
710
+      };
711
+      this.exportLoding = true
712
+      exportDrugList(params).then((response) => {
713
+        if (response.data.state == 1) {
714
+          var list = response.data.data.list;
715
+
716
+          for (let i = 0; i < list.length; i++) {
717
+            list[i].product_date = this.getTime(list[i].product_date);
718
+            list[i].expiry_date = this.getTime(list[i].expiry_date);
719
+          }
720
+          this.exportList = list;
721
+          this.exportLoding = false
722
+          var manufacturerList = response.data.data.manufacturerList;
723
+          this.manufacturerList = manufacturerList;
724
+          var dealerList = response.data.data.dealerList;
725
+
726
+          this.dealerList = dealerList;
727
+        }
728
+      });
729
+    },
730
+
731
+    lili(){
732
+      console.log("exportList",this.exportList)
733
+    },
734
+    toExport() {
735
+      if (this.order_id == "") {
736
+        this.$message.error("请勾选入库单");
737
+      }
738
+      for (let i = 0; i < this.exportList.length; i++) {
739
+        this.exportList[i].index = i + 1;
740
+        this.exportList[i].warehousing_time = this.getTime(this.exportList[i].warehousing_time)
741
+        this.exportList[i].unit =
742
+          this.exportList[i].dose +
743
+          this.exportList[i].dose_unit +
744
+          "*" +
745
+          this.exportList[i].min_number +
746
+          this.exportList[i].min_unit +
747
+          "/" +
748
+          this.exportList[i].max_unit;
749
+
750
+        this.exportList[i].total_price = (
751
+          this.exportList[i].warehousing_count * this.exportList[i].price
752
+        ).toFixed(2);
753
+        for (let j = 0; j < this.manufacturerList.length; j++) {
754
+          if (this.exportList[i].manufacturer == this.manufacturerList[j].id) {
755
+            this.exportList[i].manufacturer =
756
+              this.manufacturerList[j].manufacturer_name;
757
+          }
758
+          if (this.exportList[i].manufacturer == 0) {
759
+            this.exportList[i].manufacturer = "";
760
+          }
761
+        }
762
+
763
+        for (let z = 0; z < this.dealerList.length; z++) {
764
+          if (this.exportList[i].dealer == this.dealerList[z].id) {
765
+            this.exportList[i].dealer = this.dealerList[z].dealer_name;
766
+          }
767
+          if (this.exportList[i].dealer == 0) {
768
+            this.exportList[i].dealer = "";
769
+          }
770
+
771
+        }
772
+      }
773
+
774
+      import("@/vendor/Export2Excel").then((excel) => {
775
+        for (let i = 0; i < this.exportList.length; i++) {
776
+          for (let j = 0; j < this.drugTypeList.length; j++) {
777
+            if (this.exportList[i].drug_type == this.drugTypeList[j].id) {
778
+              this.exportList[i].drug_type = this.drugTypeList[j].name;
779
+            }
780
+          }
781
+        }
782
+
783
+        const tHeader = [
784
+          "序号",
785
+          "单据日期",
786
+          "药品名称",
787
+          "药品类型",
788
+          "规格&单位",
789
+          "批号",
790
+          "入库数量",
791
+          "进货价",
792
+          "总价",
793
+          "生产厂家",
794
+          "生产日期",
795
+          "有效日期",
796
+          "经销商",
797
+          "批注文号",
798
+          "备注",
799
+        ];
800
+        const filterVal = [
801
+          "index",
802
+          "warehousing_time",
803
+          "drug_name",
804
+          "drug_type",
805
+          "unit",
806
+          "batch_number",
807
+          "warehousing_count",
808
+          "price",
809
+          "total_price",
810
+          "manufacturer",
811
+          "product_date",
812
+          "expiry_date",
813
+          "dealer",
814
+          "number",
815
+          "remark",
816
+        ];
817
+
818
+        const data = this.formatJson(filterVal, this.exportList);
819
+        excel.export_json_to_excel({
820
+          header: tHeader,
821
+          data,
822
+          filename: "药品入库单详情",
823
+        });
824
+        this.downloadLoading = false;
825
+      });
826
+    },
827
+    formatJson(filterVal, jsonData) {
828
+      return jsonData.map((v) => filterVal.map((j) => v[j]));
829
+    },
830
+    getHouseName(id) {
831
+      var storehouse_name = "";
832
+      for (let i = 0; i < this.houseList.length; i++) {
833
+        if (id == this.houseList[i].id) {
834
+          storehouse_name = this.houseList[i].storehouse_name;
835
+        }
836
+      }
837
+      return storehouse_name;
838
+    },
839
+    changeStoreHouse() {
840
+      this.GetWarehouse();
841
+    },
842
+    changeCheckType() {
843
+      this.GetWarehouse();
844
+    },
845
+
846
+    getallPatientList(){
847
+        getallPatientList().then(response=>{
848
+          if(response.data.state ==1){
849
+            var patient = response.data.data.patient
850
+            console.log("patient====",patient)
851
+            this.patientList = []
852
+            var obj = {id:0,name:"全部"}
853
+            this.patientList.push(obj)
854
+            for(let i=0;i<patient.length;i++){
855
+              this.patientList.push(patient[i])
856
+            }
857
+          }
858
+        })    
859
+      },
860
+      GetDrugTypeName(drug_type){
861
+        var name = ""
862
+        for(let i=0;i<this.drugTypeList.length;i++){
863
+          if(drug_type == this.drugTypeList[i].value){
864
+             name = this.drugTypeList[i].name
865
+          }
866
+        }
867
+        return name
868
+      },
869
+      getManufacturer(id){
870
+         var manufacturer_name = ""
871
+         for(let i=0;i<this.manufacturerList.length;i++){
872
+           if(id == this.manufacturerList[i].id){
873
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
874
+           }
875
+         }
876
+         return
877
+      },
878
+      getDealerName(id){
879
+        var dealer_name = ""
880
+        for(let i=0;i<this.dealerList.length;i++){
881
+          if(id == this.dealerList[i].dealer_name){
882
+              dealer_name = this.dealerList[i].dealer_name
883
+          }
884
+        }
885
+        return dealer_name
886
+      }
887
+    
888
+   
889
+  },
890
+};
891
+</script>
892
+
893
+<style rel="stylesheet/css" lang="scss" scoped>
894
+.information {
895
+  border: 1px #dcdfe6 solid;
896
+  padding: 30px 20px 30px 20px;
897
+
898
+  .border {
899
+    border-bottom: 1px #dcdfe6 solid;
900
+    margin: 0px 0 20px 0;
901
+  }
902
+}
903
+
904
+.edit_separater {
905
+  border-top: 1px solid rgb(233, 233, 233);
906
+  margin-top: 15px;
907
+  margin-bottom: 15px;
908
+}
909
+</style>
910
+
911
+<style>
912
+.sign-and-weigh-box .sign-and-weigh-box-patients .cell {
913
+  font-size: 12px;
914
+}
915
+
916
+.sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
917
+  background: #6fb5fa;
918
+}
919
+
920
+.count {
921
+  color: #bd2c00;
922
+}
923
+.el-table td,
924
+.el-table th.is-leaf,
925
+.el-table--border,
926
+.el-table--group {
927
+  border-color: #d0d3da;
928
+}
929
+.el-table--border::after,
930
+.el-table--group::after,
931
+.el-table::before {
932
+  background-color: #d0d3da;
933
+}
934
+</style>

文件差異過大導致無法顯示
+ 2655 - 0
src/xt_pages/stock/selfPreparedMedicine/warehouseOut.vue


+ 13 - 0
src/xt_pages/stock/stockOutOrder.vue 查看文件

@@ -323,6 +323,17 @@
323 323
             </template>
324 324
           </el-table-column>
325 325
 
326
+          <el-table-column label="出库班次" align="center" v-if="is_sys == 0">
327
+            <template slot-scope="scope">
328
+            
329
+              <tr style="background: none" v-for="(item,index) in scope.row.childOne" :key="index">
330
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
331
+                    {{ scope.row.class_type }}
332
+                  </td>
333
+               </tr>
334
+            </template>
335
+          </el-table-column>
336
+
326 337
           <el-table-column label="使用患者" align="center" v-if="is_sys == 0">
327 338
             <template slot-scope="scope">
328 339
             
@@ -1224,6 +1235,8 @@ export default {
1224 1235
             this.houselist.push(response.data.data.houselist[i]);
1225 1236
           }
1226 1237
           var objOne = {id:0,name:"系统"}
1238
+          var objTwo = {id:-1,name:"血透室"}
1239
+          this.patients.push(objTwo)
1227 1240
           this.patients.push(objOne)
1228 1241
           for(let i=0;i<response.data.data.patients.length;i++){
1229 1242
              this.patients.push(response.data.data.patients[i])

+ 23 - 17
src/xt_pages/stock/stockOutOrderAdd.vue 查看文件

@@ -104,21 +104,6 @@
104 104
                     <div class="name">{{item.good_name +"  " +item.specification_name + "  "+  item.manufacturer}}</div>
105 105
                   </template>
106 106
                 </el-autocomplete>
107
-
108
-                 <!-- <el-autocomplete
109
-                    v-model="scope.row.good_name"
110
-                    :fetch-suggestions="querySearchAsync"
111
-                    :trigger-on-focus="true"
112
-                    placeholder="请输入耗材名称"
113
-                    @select="handleSelect"
114
-                    :popper-append-to-body="true"
115
-                  >
116
-                  
117
-                  <i class="el-icon-search el-input__icon" slot="suffix"></i>
118
-                  <template slot-scope="{ item }">
119
-                    <div class="name">{{item.good_name +"  " +item.specification_name + "  "+  item.manufacturer}}</div>
120
-                  </template>
121
-                 </el-autocomplete> -->
122 107
               </el-form-item>
123 108
             </template>
124 109
           </el-table-column>
@@ -203,6 +188,20 @@
203 188
           </el-table-column>
204 189
 
205 190
 
191
+          <el-table-column label="使用班次"  width="100" align="center">
192
+            <template slot-scope="scope">
193
+               <el-select size="small" v-model="scope.row.class_type" filterable placeholder="请选择出库班次">
194
+                <el-option
195
+                  v-for="(option, index) in classType"
196
+                  :key="index"
197
+                  :label="option.name"
198
+                  :value="option.name">
199
+                </el-option>
200
+               </el-select>
201
+            </template>
202
+          </el-table-column>
203
+
204
+
206 205
           <el-table-column label="使用患者"  width="150" align="center">
207 206
             <template slot-scope="scope">
208 207
                <el-select size="small" v-model="scope.row.patient_id" filterable placeholder="请选择出库对象">
@@ -449,7 +448,9 @@ export default {
449 448
       warehouseOut_id:0,
450 449
       is_check:0,
451 450
       loading:false,
452
-      patients:[]
451
+      patients:[],
452
+      classType:[{id:1,name:"上午"},{id:2,name:"下午"},{id:3,name:"晚上"}],
453
+
453 454
     };
454 455
   },
455 456
   methods: {
@@ -516,8 +517,10 @@ export default {
516 517
           this.storehouse_id = response.data.data.configlist.storehouse_out_info
517 518
           this.doctorList =  response.data.data.doctorList
518 519
           var obj ={id:0,name:"系统"}
520
+          var objOne ={id:-1,name:"血透室"}
519 521
           this.patients =[]
520 522
           this.patients.push(obj)
523
+          this.patients.push(objOne)
521 524
           if(response.data.data.patients!=null){
522 525
             for(let i=0;i<response.data.data.patients.length;i++){
523 526
               this.patients.push(response.data.data.patients[i])
@@ -574,6 +577,7 @@ export default {
574 577
       tempObj["id"] = 0
575 578
       tempObj['register_number'] = ''
576 579
       tempObj['patient_id'] =0
580
+      tempObj["class_type"] = ""
577 581
       this.recordInfo.recordData.push(tempObj);
578 582
     },
579 583
     handleDelete: function(index, row) {
@@ -790,7 +794,7 @@ export default {
790 794
                var str = storehose_name + " " + good_name +"*" + specification_name +"无库存,请入库"
791 795
                var warehouseOut =  response.data.data.warehouseOut
792 796
                this.warehouseOut = warehouseOut
793
-              this.warehouseOut_id = warehouseOut.id
797
+               this.warehouseOut_id = warehouseOut.id
794 798
 
795 799
                if(msg == 1){
796 800
                   this.$message.error(str)
@@ -1085,6 +1089,8 @@ export default {
1085 1089
     tempObj["id"] = 0
1086 1090
     tempObj['register_number'] = ''
1087 1091
     tempObj['patient_id'] = 0
1092
+    tempObj["class_type"] = ""
1093
+   
1088 1094
     this.recordInfo.recordData.push(tempObj);
1089 1095
     this.GetConfigInfo();
1090 1096
     this.propForm.goodUnit = this.$store.getters.good_unit;

+ 18 - 1
src/xt_pages/stock/stockOutOrderEdit.vue 查看文件

@@ -206,7 +206,19 @@
206 206
                </el-select>
207 207
             </template>
208 208
           </el-table-column>
209
-
209
+ 
210
+          <el-table-column label="使用班次"  width="100" align="center">
211
+            <template slot-scope="scope">
212
+               <el-select size="small" v-model="scope.row.class_type" filterable placeholder="请选择出库班次">
213
+                <el-option
214
+                  v-for="(option, index) in classType"
215
+                  :key="index"
216
+                  :label="option.name"
217
+                  :value="option.name">
218
+                </el-option>
219
+               </el-select>
220
+            </template>
221
+          </el-table-column>
210 222
           
211 223
           <el-table-column label="使用患者"  width="150" align="center">
212 224
             <template slot-scope="scope">
@@ -534,6 +546,7 @@ import patient from '../../router/modules/patient'
534 546
         tempObj["stock_count"] = ""
535 547
         tempObj['register_number'] = ''
536 548
         tempObj['patient_id'] =0
549
+        tempObj["class_type"] = ""
537 550
         this.recordInfo.recordData.push(tempObj)
538 551
       },
539 552
       handleDelete: function(index, row) {
@@ -897,7 +910,9 @@ import patient from '../../router/modules/patient'
897 910
         if(response.data.state == 1){
898 911
           this.patients =[]
899 912
           var obj ={id:0,name:"系统"}
913
+          var objOne ={id:-1,name:"血透室"}
900 914
           this.patients.push(obj)
915
+          this.patients.push(objOne)
901 916
           if(response.data.data.patients!=null){
902 917
             for(let i=0;i<response.data.data.patients.length;i++){
903 918
               this.patients.push(response.data.data.patients[i])
@@ -923,6 +938,8 @@ import patient from '../../router/modules/patient'
923 938
             response.data.data.list[i].remark = response.data.data.list[i].remark
924 939
             response.data.data.list[i].buy_price = response.data.data.list[i].buy_price.toString()
925 940
             response.data.data.list[i].stock_count = response.data.data.list[i].stock_count.toString()
941
+
942
+            response.data.data.list[i].class_type = response.data.data.list[i].class_type
926 943
           
927 944
             // response.data.data.list[i].patient_id = this.getPatientName(response.data.data.list[i].patient_id)
928 945