see999 3 years ago
parent
commit
cc07db8888

+ 2 - 0
src/xt_pages/dialysis/components/dialysisParametersDialog.vue View File

33
                 <template slot-scope="scope">
33
                 <template slot-scope="scope">
34
                    <span v-if="scope.row.anticoagulant==1">无肝素</span>
34
                    <span v-if="scope.row.anticoagulant==1">无肝素</span>
35
                    <span v-if="scope.row.anticoagulant==2">普通肝素</span>
35
                    <span v-if="scope.row.anticoagulant==2">普通肝素</span>
36
+                   <span v-if="scope.row.anticoagulant==3">低分子肝素</span>
36
                    <span v-if="scope.row.anticoagulant==4">阿加曲班</span>
37
                    <span v-if="scope.row.anticoagulant==4">阿加曲班</span>
37
                    <span v-if="scope.row.anticoagulant==5">枸橼酸钠</span>
38
                    <span v-if="scope.row.anticoagulant==5">枸橼酸钠</span>
38
                    <span v-if="scope.row.anticoagulant==6">低分子肝素钙</span>
39
                    <span v-if="scope.row.anticoagulant==6">低分子肝素钙</span>
40
                    <span v-if="scope.row.anticoagulant==8">依诺肝素</span>
41
                    <span v-if="scope.row.anticoagulant==8">依诺肝素</span>
41
                    <span v-if="scope.row.anticoagulant==9">达肝素</span>
42
                    <span v-if="scope.row.anticoagulant==9">达肝素</span>
42
                    <span v-if="scope.row.anticoagulant==10">体外抗凝</span>
43
                    <span v-if="scope.row.anticoagulant==10">体外抗凝</span>
44
+                   <span v-if="scope.row.anticoagulant==11">那曲肝素</span>
43
                 </template>
45
                 </template>
44
             </el-table-column>
46
             </el-table-column>
45
             <el-table-column align="center" prop="name"label="数量">
47
             <el-table-column align="center" prop="name"label="数量">

+ 9 - 1
src/xt_pages/dialysis/details/BasicInfor.vue View File

29
       </li>
29
       </li>
30
       <li>
30
       <li>
31
         <label>年龄:</label>
31
         <label>年龄:</label>
32
-        <span>{{ getAge(patient) }}</span>
32
+        <span>{{ tranAge(patient)}}</span>
33
       </li>
33
       </li>
34
       <li>
34
       <li>
35
         <label>透析号 : </label>
35
         <label>透析号 : </label>
112
   },
112
   },
113
   methods: {
113
   methods: {
114
     getAge: function(val) {
114
     getAge: function(val) {
115
+      console.log("val323232323223322332323",val)
115
       if (val.id_card_no) {
116
       if (val.id_card_no) {
116
         var thisLen = val.id_card_no.length
117
         var thisLen = val.id_card_no.length
117
 
118
 
132
         return age
133
         return age
133
       }
134
       }
134
     },
135
     },
136
+   tranAge(val) {
137
+        if(val.birthday){
138
+          var birth = uParseTime(val.birthday, '{y}-{m}-{d}');
139
+          return jsGetAge(birth, '-');
140
+        }
141
+    },
135
 
142
 
136
     stepState: function() {
143
     stepState: function() {
137
       return parseInt(Math.random() * 1000 + '') % 2 == 1
144
       return parseInt(Math.random() * 1000 + '') % 2 == 1
138
     }
145
     }
139
   },
146
   },
140
   created() {
147
   created() {
148
+    // console.log("hh23323233232332233223",this.$store.getters.xt_user.org.id)
141
     this.dialysis_time = this.$route.query.date ? parseTime(this.$route.query.date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
149
     this.dialysis_time = this.$route.query.date ? parseTime(this.$route.query.date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
142
   }
150
   }
143
 }
151
 }

+ 2 - 0
src/xt_pages/dialysis/dialysisDrugs_print.vue View File

33
                                     <td>
33
                                     <td>
34
                                       <span v-if="item.anticoagulant==1">无肝素</span>
34
                                       <span v-if="item.anticoagulant==1">无肝素</span>
35
                                       <span v-if="item.anticoagulant==2">普通肝素</span>
35
                                       <span v-if="item.anticoagulant==2">普通肝素</span>
36
+                                      <span v-if="item.anticoagulant==3">低分子肝素</span>
36
                                       <span v-if="item.anticoagulant==4">阿加曲班</span>
37
                                       <span v-if="item.anticoagulant==4">阿加曲班</span>
37
                                       <span v-if="item.anticoagulant==5">枸橼酸钠</span>
38
                                       <span v-if="item.anticoagulant==5">枸橼酸钠</span>
38
                                       <span v-if="item.anticoagulant==6">低分子肝素钙</span>
39
                                       <span v-if="item.anticoagulant==6">低分子肝素钙</span>
40
                                       <span v-if="item.anticoagulant==8">依诺肝素</span>
41
                                       <span v-if="item.anticoagulant==8">依诺肝素</span>
41
                                       <span v-if="item.anticoagulant==9">达肝素</span>
42
                                       <span v-if="item.anticoagulant==9">达肝素</span>
42
                                       <span v-if="item.anticoagulant==10">体外抗凝</span> 
43
                                       <span v-if="item.anticoagulant==10">体外抗凝</span> 
44
+                                      <span v-if="item.anticoagulant==11">那曲肝素</span> 
43
                                     </td>
45
                                     </td>
44
                                     <td>
46
                                     <td>
45
                                       {{item.count}}
47
                                       {{item.count}}

+ 85 - 32
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

287
                     </el-table-column>
287
                     </el-table-column>
288
                     <el-table-column label="库存" width="60">
288
                     <el-table-column label="库存" width="60">
289
                       <template slot-scope="scope">
289
                       <template slot-scope="scope">
290
-                        {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}
291
-                        <!--/ {{-->
292
-                        <!--scope.row.total * (scope.row.dose / scope.row.min_number)}}-->
293
-                        <!--{{(scope.row.total * (scope.row.dose /-->
294
-                        <!--scope.row.min_number))?scope.row.max_unit:''}}-->
290
+                         <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919">
291
+                             <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
292
+                             <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
293
+                          </span>
294
+                         <span v-else> {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}</span>
295
                       </template>
295
                       </template>
296
                     </el-table-column>
296
                     </el-table-column>
297
                     <el-table-column label="单价" width="40">
297
                     <el-table-column label="单价" width="40">
382
                       <template slot-scope="scope">{{ scope.row.single_dose }}</template>
382
                       <template slot-scope="scope">{{ scope.row.single_dose }}</template>
383
                     </el-table-column>
383
                     </el-table-column>
384
                     <el-table-column label="库存" width="40">
384
                     <el-table-column label="库存" width="40">
385
-                      <template slot-scope="scope">{{ scope.row.total }}</template>
385
+                      <template slot-scope="scope">
386
+                         <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919">
387
+                            {{scope.row.stock_count}}
388
+                        </span>
389
+                       <span v-else> {{ scope.row.total }}</span>
390
+                      </template>
386
                     </el-table-column>
391
                     </el-table-column>
387
                     <el-table-column label="单价" width="40">
392
                     <el-table-column label="单价" width="40">
388
                       <template slot-scope="scope">{{ scope.row.price }}</template>
393
                       <template slot-scope="scope">{{ scope.row.price }}</template>
503
       month_prescriptions: Array,
508
       month_prescriptions: Array,
504
       isloading: false,
509
       isloading: false,
505
       loading: false,
510
       loading: false,
511
+      org_id:Number,
506
       other_sick: {
512
       other_sick: {
507
         type: Array,
513
         type: Array,
508
         default: function() {
514
         default: function() {
2649
         this.$refs.additionalCharges.show()
2655
         this.$refs.additionalCharges.show()
2650
       },
2656
       },
2651
       selectDrugs(selection, row) {
2657
       selectDrugs(selection, row) {
2652
-        console.log('selection', selection)
2653
-        console.log('row', row)
2654
-        if (row.total <= 0) {
2655
-          if (selection) {
2656
-            selection.forEach(row => {
2657
-              if (row.total <= 0) {
2658
-                this.$refs.multipleTable.toggleRowSelection(row)
2658
+      if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919){
2659
+            if (row.count <= 0) {
2660
+              if (selection) {
2661
+                selection.forEach(row => {
2662
+                  if (row.count <= 0) {
2663
+                    this.$refs.multipleTable.toggleRowSelection(row)
2664
+                  }
2665
+                })
2666
+              } else {
2667
+                this.$refs.multipleTable.clearSelection()
2659
               }
2668
               }
2660
-            })
2661
-          } else {
2662
-            this.$refs.multipleTable.clearSelection()
2663
-          }
2664
-          this.$message.error(row.drug_name + '库存不足')
2665
-          return
2669
+              this.$message.error(row.drug_name + '库存不足')
2670
+              return
2671
+            }
2672
+        }else{
2673
+           if (row.total <= 0) {
2674
+              if (selection) {
2675
+                selection.forEach(row => {
2676
+                  if (row.total <= 0) {
2677
+                    this.$refs.multipleTable.toggleRowSelection(row)
2678
+                  }
2679
+                })
2680
+              } else {
2681
+                this.$refs.multipleTable.clearSelection()
2682
+              }
2683
+              this.$message.error(row.drug_name + '库存不足')
2684
+              return
2685
+            }
2666
         }
2686
         }
2667
         this.curDrugs = selection
2687
         this.curDrugs = selection
2668
       },
2688
       },
2909
       },
2929
       },
2910
       selectChange(selection, row) {
2930
       selectChange(selection, row) {
2911
         console.log('row', row)
2931
         console.log('row', row)
2912
-        if (row.total <= 0) {
2913
-          if (row.type == 3) {
2914
-            if (selection) {
2915
-              selection.forEach(row => {
2916
-                if (row.total <= 0) {
2917
-                  this.$refs.tables.toggleRowSelection(row)
2918
-                }
2919
-              })
2920
-            } else {
2921
-              this.$refs.tables.clearSelection()
2932
+          if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id ==10245 || this.org_id == 9919 ){
2933
+           if (row.stock_count <= 0) {
2934
+            if (row.type == 3) {
2935
+              if (selection) {
2936
+                selection.forEach(row => {
2937
+                  if (row.stock_count <= 0) {
2938
+                    this.$refs.tables.toggleRowSelection(row)
2939
+                  }
2940
+                })
2941
+              } else {
2942
+                this.$refs.tables.clearSelection()
2943
+              }
2944
+              this.$message.error(row.project_name + '库存不足')
2945
+              return
2922
             }
2946
             }
2923
-            this.$message.error(row.project_name + '库存不足')
2924
-            return
2925
           }
2947
           }
2948
+        }else{
2949
+           if (row.total <= 0) {
2950
+            if (row.type == 3) {
2951
+              if (selection) {
2952
+                selection.forEach(row => {
2953
+                  if (row.total <= 0) {
2954
+                    this.$refs.tables.toggleRowSelection(row)
2955
+                  }
2956
+                })
2957
+              } else {
2958
+                this.$refs.tables.clearSelection()
2959
+              }
2960
+              this.$message.error(row.project_name + '库存不足')
2961
+              return
2962
+            }
2963
+          }
2964
+
2926
         }
2965
         }
2927
         this.teamList.push(row)
2966
         this.teamList.push(row)
2928
       },
2967
       },
2948
                 total: project[i].total,
2987
                 total: project[i].total,
2949
                 is_special_diseases: project[i].disease_directory,
2988
                 is_special_diseases: project[i].disease_directory,
2950
                 project: project[i],
2989
                 project: project[i],
2990
+                stock_count:0,
2951
               }
2991
               }
2952
 
2992
 
2953
               this.tabProject.push(obj)
2993
               this.tabProject.push(obj)
2956
             var good_info = response.data.data.good_info
2996
             var good_info = response.data.data.good_info
2957
 
2997
 
2958
             for (let i = 0; i < good_info.length; i++) {
2998
             for (let i = 0; i < good_info.length; i++) {
2999
+               good_info[i].stock_count = 0
3000
+              if(good_info[i].good_stock_in.length >0 ){
3001
+                for(let j=0;j<good_info[i].good_stock_in.length;j++){
3002
+                   good_info[i].stock_count += good_info[i].good_stock_in[j].stock_count
3003
+                }
3004
+              }
2959
               let obj = {
3005
               let obj = {
2960
                 id: good_info[i].id,
3006
                 id: good_info[i].id,
2961
                 project_name: good_info[i].good_name,
3007
                 project_name: good_info[i].good_name,
2972
                 total: good_info[i].total,
3018
                 total: good_info[i].total,
2973
                 is_special_diseases: good_info[i].is_special_diseases,
3019
                 is_special_diseases: good_info[i].is_special_diseases,
2974
                 good_info: good_info[i],
3020
                 good_info: good_info[i],
3021
+                stock_count:good_info[i].stock_count,
2975
               }
3022
               }
2976
               this.tabProject.push(obj)
3023
               this.tabProject.push(obj)
2977
             }
3024
             }
3154
       clearSelection() {
3201
       clearSelection() {
3155
         this.$refs.tabProjectTeam.clearSelection()
3202
         this.$refs.tabProjectTeam.clearSelection()
3156
       }
3203
       }
3157
-    }, mounted() {
3204
+    }, 
3205
+    mounted() {
3206
+     
3158
       this.request_record_date = this.record_date
3207
       this.request_record_date = this.record_date
3159
       // this.getInitData()
3208
       // this.getInitData()
3160
       //获取所有项目
3209
       //获取所有项目
3183
           }, 400)
3232
           }, 400)
3184
         }
3233
         }
3185
       }
3234
       }
3235
+    },
3236
+    created(){
3237
+      console.log("中华任命工商过多水分我333323232",this.org_id)
3238
+      console.log("jjjjjjjjjjjjjjjjjjjjjjjjjjjj",this.drugs)
3186
     }
3239
     }
3187
 
3240
 
3188
   }
3241
   }

+ 13 - 2
src/xt_pages/hospitalStation/doctorDesk.vue View File

121
                                    :month_prescriptions="month_prescriptions"
121
                                    :month_prescriptions="month_prescriptions"
122
                                    ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
122
                                    ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
123
                                    :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)"
123
                                    :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)"
124
+                                   :org_id="org_id"
124
                                    v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
125
                                    v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
125
 
126
 
126
 
127
 
941
             this.$message.error(response.data.msg)
942
             this.$message.error(response.data.msg)
942
             return false
943
             return false
943
           } else {
944
           } else {
944
-            this.drugs = response.data.data.drugs
945
+            var drugs = response.data.data.drugs
946
+            for(let i=0;i<drugs.length;i++){
947
+                drugs[i].count = 0
948
+              if(drugs[i].stock_in.length > 0){
949
+                 for(let j=0;j<drugs[i].stock_in.length;j++){
950
+                    drugs[i].count += (drugs[i].stock_in[j].stock_max_number * drugs[i].min_number + drugs[i].stock_in[j].stock_min_number)
951
+                 }
952
+              }
953
+            }
954
+            this.drugs = drugs
945
             console.log("所有药品信息",this.drugs)
955
             console.log("所有药品信息",this.drugs)
946
             this.allDrugs = response.data.data.drugs
956
             this.allDrugs = response.data.data.drugs
947
             this.advices_template = response.data.data.advices_template
957
             this.advices_template = response.data.data.advices_template
4189
       // this.other_sick = this.getDictionaryDataConfig('system', 'other_sick_history')
4199
       // this.other_sick = this.getDictionaryDataConfig('system', 'other_sick_history')
4190
       let tableHeight = document.body.clientHeight - 323
4200
       let tableHeight = document.body.clientHeight - 323
4191
       this.tableHeight = tableHeight
4201
       this.tableHeight = tableHeight
4192
-
4202
+      this.org_id = this.$store.getters.xt_user.template_info.org_id
4203
+     
4193
     },
4204
     },
4194
 
4205
 
4195
     mounted() {
4206
     mounted() {

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue View File

688
             stockIn: this.recordInfo.recordData
688
             stockIn: this.recordInfo.recordData
689
           };
689
           };
690
           console.log("params22222222222",params)
690
           console.log("params22222222222",params)
691
-         
691
+        
692
           EditDrugWarehouse(
692
           EditDrugWarehouse(
693
             params,
693
             params,
694
             this.warehousing_time,
694
             this.warehousing_time,

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

42
                                       <span v-if="getWareInfo(item.xt_warehouse_info)>0">{{getWareInfo(item.xt_warehouse_info)}}{{item.packing_unit}}</span>
42
                                       <span v-if="getWareInfo(item.xt_warehouse_info)>0">{{getWareInfo(item.xt_warehouse_info)}}{{item.packing_unit}}</span>
43
                                    </td>
43
                                    </td>
44
                                    <td>
44
                                    <td>
45
-                                      <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245">
45
+                                      <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779">
46
                                         <span>
46
                                         <span>
47
                                           {{getWareInfo(item.xt_warehouse_info) - getOverFlushInfo(item.xt_warehouse_info) + getCancelSotckInfo(item.cancel_stock_info) }}
47
                                           {{getWareInfo(item.xt_warehouse_info) - getOverFlushInfo(item.xt_warehouse_info) + getCancelSotckInfo(item.cancel_stock_info) }}
48
                                           </span>
48
                                           </span>
51
                                    </td>
51
                                    </td>
52
                                   
52
                                   
53
                                    <td>
53
                                    <td>
54
-                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245">{{getOverFlushInfo(item.xt_warehouse_info)}}</span>
54
+                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779">{{getOverFlushInfo(item.xt_warehouse_info)}}</span>
55
                                      <span v-else>{{getWareInfo(item.xt_warehouse_info) - getAutoCount(item.id) - getOutCount(item.id) + getCancelCount(item.id) }}</span>
55
                                      <span v-else>{{getWareInfo(item.xt_warehouse_info) - getAutoCount(item.id) - getOutCount(item.id) + getCancelCount(item.id) }}</span>
56
                                     
56
                                     
57
                                    </td>
57
                                    </td>

+ 40 - 12
src/xt_pages/stock/stockQuery.vue View File

106
            <span v-if="getWareInfo(scope.row.xt_warehouse_info)>0">{{getWareInfo(scope.row.xt_warehouse_info)}}{{scope.row.packing_unit}}</span>
106
            <span v-if="getWareInfo(scope.row.xt_warehouse_info)>0">{{getWareInfo(scope.row.xt_warehouse_info)}}{{scope.row.packing_unit}}</span>
107
          </template>
107
          </template>
108
        </el-table-column>
108
        </el-table-column>
109
-       <el-table-column label="出库数量" align="center">
109
+       <el-table-column label="出库数量" align="center" v-if="showOne">
110
          <template slot-scope="scope">
110
          <template slot-scope="scope">
111
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245">
111
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779">
112
             <span>
112
             <span>
113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
114
             </span>
114
             </span>
117
          </template>
117
          </template>
118
        </el-table-column>
118
        </el-table-column>
119
 
119
 
120
-       <el-table-column label="剩余库存量" align="center">
120
+       <el-table-column label="出库数量" align="center" v-if="showTwo">
121
          <template slot-scope="scope">
121
          <template slot-scope="scope">
122
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
122
+          <span>{{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}} </span>
123
+         </template>
124
+       </el-table-column>
125
+
126
+       <el-table-column label="剩余库存量" align="center" v-if="showThree">
127
+         <template slot-scope="scope">
128
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
123
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
129
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
124
          </template>
130
          </template>
125
        </el-table-column>
131
        </el-table-column>
132
+
133
+      <el-table-column label="剩余库存量" align="center" v-if="showFour">
134
+         <template slot-scope="scope">
135
+          <span>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
136
+         </template>
137
+       </el-table-column>
126
        <el-table-column label="操作" align="center" width="260px">
138
        <el-table-column label="操作" align="center" width="260px">
127
           <template slot-scope="scope">
139
           <template slot-scope="scope">
128
               <el-button
140
               <el-button
218
       autoCountList:[],
230
       autoCountList:[],
219
       cancelCountList:[],
231
       cancelCountList:[],
220
       org_id:0,
232
       org_id:0,
233
+      showOne:true,
234
+      showTwo:false,
235
+      showThree:true,
236
+      showFour:false
221
     };
237
     };
222
   },
238
   },
223
   methods: {
239
   methods: {
343
            this.tableList[i].inCount =  this.getWareInfo(this.tableList[i].xt_warehouse_info)
359
            this.tableList[i].inCount =  this.getWareInfo(this.tableList[i].xt_warehouse_info)
344
 
360
 
345
         
361
         
346
-          if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245){
362
+          if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779){
347
              this.tableList[i].outCount  = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getOverFlushInfo(this.tableList[i].xt_warehouse_info) + this.getCancelSotckInfo(this.tableList[i].cancel_stock_info) 
363
              this.tableList[i].outCount  = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getOverFlushInfo(this.tableList[i].xt_warehouse_info) + this.getCancelSotckInfo(this.tableList[i].cancel_stock_info) 
348
           }else{
364
           }else{
349
             this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
365
             this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
350
           }
366
           }
351
           
367
           
352
-           if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245){
368
+           if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779){
353
               this.tableList[i].overplus = this.getOverFlushInfo(this.tableList[i].xt_warehouse_info)
369
               this.tableList[i].overplus = this.getOverFlushInfo(this.tableList[i].xt_warehouse_info)
354
            }else{
370
            }else{
355
              this.tableList[i].overplus = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getAutoCount(this.tableList[i].id) - this.getOutCount(this.tableList[i].id) + this.getCancelCount(this.tableList[i].id)
371
              this.tableList[i].overplus = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getAutoCount(this.tableList[i].id) - this.getOutCount(this.tableList[i].id) + this.getCancelCount(this.tableList[i].id)
412
       };
428
       };
413
     getAllStockList(params).then(response=>{
429
     getAllStockList(params).then(response=>{
414
          if(response.data.state == 1){
430
          if(response.data.state == 1){
431
+         
432
+          if(this.end_time == ""){
433
+             this.showOne = true
434
+             this.showTwo = false
435
+             this.showThree = true
436
+             this.showFour = false
437
+          }
438
+          if(this.end_time !=""){
439
+            this.showOne = false
440
+            this.showTwo = true
441
+            this.showThree = false
442
+            this.showFour = true
443
+          }
415
           var list = response.data.data.list
444
           var list = response.data.data.list
416
-          // console.log("总库存数量",list)
445
+
417
           this.tableList = list
446
           this.tableList = list
418
           var total = response.data.data.total
447
           var total = response.data.data.total
419
           this.total = total
448
           this.total = total
468
       getStockDrugCount(params).then(response=>{
497
       getStockDrugCount(params).then(response=>{
469
          if(response.data.state == 1){
498
          if(response.data.state == 1){
470
            var outlist = response.data.data.outList
499
            var outlist = response.data.data.outList
471
-          //  console.log("出库数量",outlist)
500
+        
472
            this.outCountList = outlist
501
            this.outCountList = outlist
473
            var autoCount = response.data.data.autoCount
502
            var autoCount = response.data.data.autoCount
474
-          //  console.log("autoCount",autoCount)
503
+        
475
            this.autoCountList = autoCount
504
            this.autoCountList = autoCount
476
            var totalCount = response.data.data.totalCount
505
            var totalCount = response.data.data.totalCount
477
-          //  console.log("totalcount",totalCount)
506
+         
478
            this.cancelCountList = totalCount
507
            this.cancelCountList = totalCount
479
          }
508
          }
480
       })
509
       })
567
      return total
596
      return total
568
    },
597
    },
569
    getCancelSotckInfo(arr){
598
    getCancelSotckInfo(arr){
570
-     console.log("2332323232322332",arr)
599
+    
571
      var cancle_toal = 0
600
      var cancle_toal = 0
572
      if(arr.length >0){
601
      if(arr.length >0){
573
       for(let z=0;z<arr.length;z++){
602
       for(let z=0;z<arr.length;z++){
574
         cancle_toal += arr[z].count
603
         cancle_toal += arr[z].count
575
       }
604
       }
576
      }
605
      }
577
-     console.log("total",cancle_toal)
578
      return cancle_toal
606
      return cancle_toal
579
    }
607
    }
580
   }
608
   }

+ 14 - 21
src/xt_pages/workforce/remind_print_setting.vue View File

33
                 <div v-if="printObj.anticoagulant == 1">抗凝剂:
33
                 <div v-if="printObj.anticoagulant == 1">抗凝剂:
34
                   <span v-if="org_id == 10138 ">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
34
                   <span v-if="org_id == 10138 ">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
35
                   <span v-else >
35
                   <span v-else >
36
-                   <span>{{getAnticoagulant(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)}}</span>
36
+                   <span>{{getAnticoagulant(main_collection.dialysissolution.mode_id)}}</span>
37
                   </span>
37
                   </span>
38
                 </div>
38
                 </div>
39
                <div v-if="org_id == 10188">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
39
                <div v-if="org_id == 10188">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
41
                 <div v-if="printObj.anticoagulant_zongliang == 1">
41
                 <div v-if="printObj.anticoagulant_zongliang == 1">
42
                   用量:
42
                   用量:
43
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
43
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
44
-                  {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'mg'}}
44
+                   {{main_collection.dialysissolution.anticoagulant_zongliang}}mg
45
                   </span>
45
                   </span>
46
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
46
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
47
-                    {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'mg'}}
47
+                    {{main_collection.dialysissolution.anticoagulant_zongliang}}mg
48
                   </span>
48
                   </span>
49
                   <span v-if="main_collection.dialysissolution.anticoagulant == 3">
49
                   <span v-if="main_collection.dialysissolution.anticoagulant == 3">
50
-                    {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
50
+                    {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
51
                   </span>
51
                   </span>
52
                   <span v-if="main_collection.dialysissolution.anticoagulant == 4">
52
                   <span v-if="main_collection.dialysissolution.anticoagulant == 4">
53
-                    {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'mg'}}
53
+                    {{main_collection.dialysissolution.anticoagulant_zongliang}}mg
54
                   </span>
54
                   </span>
55
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">
55
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">
56
-                     {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'mg'}}
56
+                     {{main_collection.dialysissolution.anticoagulant_zongliang}}mg
57
                    </span>
57
                    </span>
58
                   <span v-if="main_collection.dialysissolution.anticoagulant == 6">
58
                   <span v-if="main_collection.dialysissolution.anticoagulant == 6">
59
-                   {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
59
+                   {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
60
                   </span>
60
                   </span>
61
                   <span v-if="main_collection.dialysissolution.anticoagulant == 7">
61
                   <span v-if="main_collection.dialysissolution.anticoagulant == 7">
62
-                    {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
62
+                    {main_collection.dialysissolution.anticoagulant_zongliang}}iu
63
                    </span>
63
                    </span>
64
                   <span v-if="main_collection.dialysissolution.anticoagulant == 8">
64
                   <span v-if="main_collection.dialysissolution.anticoagulant == 8">
65
-                     {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
65
+                     {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
66
                   </span>
66
                   </span>
67
                   <span v-if="main_collection.dialysissolution.anticoagulant == 9">
67
                   <span v-if="main_collection.dialysissolution.anticoagulant == 9">
68
-                     {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
68
+                     {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
69
                   </span>
69
                   </span>
70
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">
70
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">
71
-                     {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
71
+                     {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
72
                     </span>
72
                     </span>
73
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
73
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
74
-                    {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
74
+                    {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
75
                    </span>
75
                    </span>
76
                 </div>
76
                 </div>
77
                 <div v-if="org_id == 10188">干体重:{{main_collection.assessmentbefor.dry_weight}}</div>
77
                 <div v-if="org_id == 10188">干体重:{{main_collection.assessmentbefor.dry_weight}}</div>
457
         }
457
         }
458
       });
458
       });
459
      },
459
      },
460
-      getAnticoagulant(arr,mode_id){
461
-       var name = ""
462
-       if(arr.length > 0){
463
-           for(let i=0;i<arr.length;i++){
464
-          if(mode_id == arr[i].mode_id){
465
-            name = arr[i].anticoagulant
466
-          }
467
-       } 
460
+    getAnticoagulant(name){
461
+     
468
       if(name == 0){
462
       if(name == 0){
469
          name = ""
463
          name = ""
470
        }
464
        }
492
        }
486
        }
493
 
487
 
494
        return name
488
        return name
495
-      }
496
      },
489
      },
497
      getAnticoagulantZonliang(arr,mode_id){
490
      getAnticoagulantZonliang(arr,mode_id){
498
        var name = 0
491
        var name = 0