Browse Source

长沙南雅打印单问题修改

28169 1 year ago
parent
commit
d471ce216e

+ 4 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue View File

328
                         <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
328
                         <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
329
                         <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
329
                         <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
330
                         <td width="60" style="height:20px;line-height:20px">跨膜压<br />mmHg</td>
330
                         <td width="60" style="height:20px;line-height:20px">跨膜压<br />mmHg</td>
331
-                        <td width="60" style="height:20px;line-height:20px">温度<br />°C</td>
331
+                        <!-- <td width="60" style="height:20px;line-height:20px">温度<br />°C</td> -->
332
                         <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
332
                         <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
333
                         <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
333
                         <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
334
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
334
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
352
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.arterial_pressure ? monitor.arterial_pressure : "/" }}</span></td>
352
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.arterial_pressure ? monitor.arterial_pressure : "/" }}</span></td>
353
 
353
 
354
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "/" }}</span></td>
354
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "/" }}</span></td>
355
-                        <td>&nbsp;<span v-if="monitor.operate_time">{{monitor.dialysate_temperature ? monitor.dialysate_temperature : '/'}}</span></td>
355
+                        <!-- <td>&nbsp;<span v-if="monitor.operate_time">{{monitor.dialysate_temperature ? monitor.dialysate_temperature : '/'}}</span></td> -->
356
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/'}}</span></td>
356
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/'}}</span></td>
357
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
357
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
358
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->
358
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->
716
       .then(rs => {
716
       .then(rs => {
717
         var resp = rs.data
717
         var resp = rs.data
718
         if (resp.state == 1) {
718
         if (resp.state == 1) {
719
+          this.loading = false
719
           this.org_template_info = resp.data.templateInfo
720
           this.org_template_info = resp.data.templateInfo
720
 
721
 
721
           this.records = this.records.concat(resp.data.schedules)
722
           this.records = this.records.concat(resp.data.schedules)
887
           this.adminSign = name
888
           this.adminSign = name
888
           console.log('name是', name)
889
           console.log('name是', name)
889
           console.log('记录', this.records)
890
           console.log('记录', this.records)
890
-          this.loading = false
891
+          
891
         } else {
892
         } else {
892
           this.loading = false
893
           this.loading = false
893
           this.$message.error(resp.msg)
894
           this.$message.error(resp.msg)

+ 2 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue View File

1873
 
1873
 
1874
 
1874
 
1875
               this.SchedualPatientsTableData.push(SchedualPatientsTable);
1875
               this.SchedualPatientsTableData.push(SchedualPatientsTable);
1876
-              console.log("wode数据",(-100).toString())
1877
-              console.log("数据哦哦😯噢232o",this.SchedualPatientsTableData)
1876
+              // console.log("wode数据",(-100).toString())
1877
+              // console.log("数据哦哦😯噢232o",this.SchedualPatientsTableData)
1878
 
1878
 
1879
             }
1879
             }
1880
           }
1880
           }

+ 10 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

2327
               this.dialysisPrescription.bicarbonate = 31.1
2327
               this.dialysisPrescription.bicarbonate = 31.1
2328
               this.dialysisPrescription.dialysate_flow = 500
2328
               this.dialysisPrescription.dialysate_flow = 500
2329
             }
2329
             }
2330
+            if(this.$store.getters.xt_user.org.id == 10447){
2331
+              this.dialysisPrescription.dialysate_flow = 500
2332
+            }
2330
         }
2333
         }
2331
         if (this.predialysis == null || this.predialysis.id == 0) {
2334
         if (this.predialysis == null || this.predialysis.id == 0) {
2332
           
2335
           
3546
           this.dialysisPrescription.displace_liqui_value = ""
3549
           this.dialysisPrescription.displace_liqui_value = ""
3547
           this.dialysisPrescription.displace_liqui_part = ""
3550
           this.dialysisPrescription.displace_liqui_part = ""
3548
         }
3551
         }
3552
+        
3549
         const ParamsQuery = {}
3553
         const ParamsQuery = {}
3550
         ParamsQuery['patient_id'] = this.$route.query.patient_id
3554
         ParamsQuery['patient_id'] = this.$route.query.patient_id
3551
         ParamsQuery['mode_id'] = id
3555
         ParamsQuery['mode_id'] = id
3680
           this.zhiShow = true
3684
           this.zhiShow = true
3681
           this.huShow = true
3685
           this.huShow = true
3682
           this.totalShow = true
3686
           this.totalShow = true
3687
+
3688
+          //针对新化博翔
3689
+          if(this.$store.getters.xt_user.template_info.org_id ==10447){
3690
+             this.dialysisPrescription.displace_liqui_part = 1
3691
+             this.dialysisPrescription.displace_liqui_value = 35
3692
+          }
3683
         }
3693
         }
3684
 
3694
 
3685
       },
3695
       },

+ 26 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

892
                         class="under_line"
892
                         class="under_line"
893
                         style="width: 100px; text-align: center"
893
                         style="width: 100px; text-align: center"
894
                       >
894
                       >
895
-                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956">{{
895
+                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 ">{{
896
                           lastafterdialysis.weight_after
896
                           lastafterdialysis.weight_after
897
                         }}</span>
897
                         }}</span>
898
                         <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956">{{
898
                         <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956">{{
910
                         class="under_line"
910
                         class="under_line"
911
                         style="width: 70px; text-align: center"
911
                         style="width: 70px; text-align: center"
912
                       >
912
                       >
913
-                        {{
913
+                      <span v-if="org_id !=10447 && org_id != 9675">{{
914
                           predialysis.weight_before
914
                           predialysis.weight_before
915
                             ? parseFloat(
915
                             ? parseFloat(
916
                                 predialysis.weight_before -
916
                                 predialysis.weight_before -
918
                               ).toFixed(1)
918
                               ).toFixed(1)
919
                             : "/"
919
                             : "/"
920
                         }}
920
                         }}
921
+                      </span>
922
+                       <span v-if="org_id==10447 || org_id == 9675">
923
+                        {{
924
+                          predialysis.weight_before
925
+                            ? parseFloat(
926
+                                predialysis.weight_before -
927
+                                  predialysis.additional_weight
928
+                              ).toFixed(1)
929
+                            : "未称重"
930
+                        }}
931
+                       </span>
921
                       </div>
932
                       </div>
922
                       kg
933
                       kg
923
                     </div>
934
                     </div>
2160
                         class="under_line"
2171
                         class="under_line"
2161
                         style="width: 70px; text-align: center"
2172
                         style="width: 70px; text-align: center"
2162
                       >
2173
                       >
2174
+                      <span v-if="org_id!=9675&&org_id!=10447">
2163
                         {{
2175
                         {{
2164
                           afterdialysis.weight_after
2176
                           afterdialysis.weight_after
2165
                             ? parseFloat(
2177
                             ? parseFloat(
2168
                               ).toFixed(1)
2180
                               ).toFixed(1)
2169
                             : "/"
2181
                             : "/"
2170
                         }}
2182
                         }}
2183
+                      </span>
2184
+                      <span v-if="org_id ==9675 || org_id==10447">
2185
+                        {{
2186
+                          afterdialysis.weight_after
2187
+                            ? parseFloat(
2188
+                                afterdialysis.weight_after -
2189
+                                  afterdialysis.additional_weight
2190
+                              ).toFixed(1)
2191
+                            : "未称重"
2192
+                        }}
2193
+                      </span>
2194
+                       
2171
                       </div>
2195
                       </div>
2172
                       kg
2196
                       kg
2173
                     </div>
2197
                     </div>

+ 5 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

508
       additions: Array,
508
       additions: Array,
509
       patientInfo: Object,
509
       patientInfo: Object,
510
       hisPatientInfo: Object,
510
       hisPatientInfo: Object,
511
+      goodOutOpen:Object,
511
       prescriptions: Array,
512
       prescriptions: Array,
512
       record_date: String,
513
       record_date: String,
513
       search_keyword: '',
514
       search_keyword: '',
2547
                           }
2548
                           }
2548
                         }
2549
                         }
2549
                       }
2550
                       }
2550
-                      console.log("new233223322323",newArr)
2551
+                     // console.log("new233223322323",newArr)
2551
                       if(newArr.length > 0){
2552
                       if(newArr.length > 0){
2552
                         for(let i=0;i<newArr.length;i++){
2553
                         for(let i=0;i<newArr.length;i++){
2553
                           if(newArr[i].is_user!=1){
2554
                           if(newArr[i].is_user!=1){
2565
                     }
2566
                     }
2566
                   }
2567
                   }
2567
                 }
2568
                 }
2568
-
2569
-               if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 9679){
2569
+               
2570
+              //  console.log("good_isopen--------------------",this.goodOutOpen)
2571
+               if(this.goodOutOpen.is_open == 1){
2570
                   var project_arr = []
2572
                   var project_arr = []
2571
                   //耗材
2573
                   //耗材
2572
                   for(let i=0;i<this.prescriptions.length;i++){
2574
                   for(let i=0;i<this.prescriptions.length;i++){

+ 6 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

165
                            :org_id="org_id"
165
                            :org_id="org_id"
166
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
166
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
167
                            v-on:getSunziValue = "getSunziValue"
167
                            v-on:getSunziValue = "getSunziValue"
168
-                           :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)" @editKeepLoad="editKeepLoad"
168
+                           :hisPatientInfo="hisPatientInfo" :goodOutOpen="goodOutOpen" @event1="changetwo($event)" @editKeepLoad="editKeepLoad"
169
                            v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
169
                            v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
170
 
170
 
171
 
171
 
607
       printList:[],
607
       printList:[],
608
       printDate:'',
608
       printDate:'',
609
       anticoagulants_confit:null,
609
       anticoagulants_confit:null,
610
+      goodOutOpen:{}
610
     }
611
     }
611
   },
612
   },
612
 
613
 
1433
           this.sick = response.data.data.sick
1434
           this.sick = response.data.data.sick
1434
           this.diagnoses = response.data.data.diagnose
1435
           this.diagnoses = response.data.data.diagnose
1435
           this.additions = response.data.data.additions
1436
           this.additions = response.data.data.additions
1437
+          
1438
+          var goodOutOpen = response.data.data.goodOutOpen
1439
+          console.log("goodOutOpen----------------------",goodOutOpen)
1440
+          this.goodOutOpen = goodOutOpen
1436
 
1441
 
1437
         }
1442
         }
1438
       })
1443
       })

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

460
     handleSizeChange(val) {
460
     handleSizeChange(val) {
461
       this.limit = val;
461
       this.limit = val;
462
       this.GetCancelStock();
462
       this.GetCancelStock();
463
+      this.getGoodDetailPrintList()
463
     },
464
     },
464
     handleCurrentChange(val) {
465
     handleCurrentChange(val) {
465
       this.page = val;
466
       this.page = val;
466
       this.GetCancelStock();
467
       this.GetCancelStock();
468
+      this.getGoodDetailPrintList()
467
     },
469
     },
468
     startTimeChange(val) {
470
     startTimeChange(val) {
469
 
471
 
474
       } else {
476
       } else {
475
 
477
 
476
         this.GetCancelStock();
478
         this.GetCancelStock();
479
+        this.getPrintStockGood()
477
 
480
 
478
       }
481
       }
479
     },
482
     },
485
       } else {
488
       } else {
486
 
489
 
487
         this.GetCancelStock();
490
         this.GetCancelStock();
491
+        this.getPrintStockGood()
488
       }
492
       }
489
     },
493
     },
490
     getTimestamp(time) {
494
     getTimestamp(time) {

+ 8 - 4
src/xt_pages/stock/detail/stockOutDetail.vue View File

791
       },
791
       },
792
 
792
 
793
     exportList(){
793
     exportList(){
794
-      console.log("shij232333",this.tableOut)
795
-     
794
+      
795
+       console.log("到处数据------------------------",this.tableOut)
796
        for(let i=0;i<this.tableOut.length;i++){
796
        for(let i=0;i<this.tableOut.length;i++){
797
         this.tableOut[i].index = i+1
797
         this.tableOut[i].index = i+1
798
         this.tableOut[i].good_name = this.tableOut[i].good_name
798
         this.tableOut[i].good_name = this.tableOut[i].good_name
820
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
820
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
821
         }else if(this.orgId == 10188){
821
         }else if(this.orgId == 10188){
822
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
822
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
823
+        }else if(this.orgId == 10402){
824
+          this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
823
         }else{
825
         }else{
824
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
826
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
825
         }
827
         }
828
 
830
 
829
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
831
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
830
         }
832
         }
831
-        if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191){
833
+        //手动自动出库
834
+        if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191 || this.orgId == 10402){
832
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
835
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
833
           console.log("out_count232233232332",this.tableOut[i].out_count)
836
           console.log("out_count232233232332",this.tableOut[i].out_count)
834
         }
837
         }
835
-        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919){
838
+        //自动出库
839
+        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919  && this.orgId!=10402){
836
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
840
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
837
         }
841
         }
838
        }
842
        }

+ 1 - 5
src/xt_pages/stock/stockFlow.vue View File

132
            </template>
132
            </template>
133
         </el-table-column>
133
         </el-table-column>
134
 
134
 
135
-        <el-table-column prop="drug_name" label="剩余库存" align="center">
136
-           <template slot-scope="scope">
137
-             <span > {{scope.row.over_count}}</span>
138
-           </template>
139
-        </el-table-column>
135
+     
140
        </el-table>
136
        </el-table>
141
        
137
        
142
       <el-pagination
138
       <el-pagination

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28
   // 线上注释
28
   // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))