浏览代码

新分支

28169 8 个月前
父节点
当前提交
67e33b87e8

+ 34 - 37
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

10
                 class="newDialog"
10
                 class="newDialog"
11
         >
11
         >
12
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
12
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
13
-           
13
+
14
             <span style="position: absolute;left: 20%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
14
             <span style="position: absolute;left: 20%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
15
               透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
15
               透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
16
             </span>
16
             </span>
19
               透前体重:{{predialysis&&(predialysis.weight_before-predialysis.additional_weight).toFixed(2)?(predialysis.weight_before-predialysis.additional_weight).toFixed(2):"" }} kg
19
               透前体重:{{predialysis&&(predialysis.weight_before-predialysis.additional_weight).toFixed(2)?(predialysis.weight_before-predialysis.additional_weight).toFixed(2):"" }} kg
20
             </span>
20
             </span>
21
 
21
 
22
-          
23
-           
22
+
23
+
24
             <span style="position: absolute;left: 30%;top: 3%">
24
             <span style="position: absolute;left: 30%;top: 3%">
25
               干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
25
               干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
26
             </span>
26
             </span>
29
             </span> -->
29
             </span> -->
30
             <span style="position: absolute;left:38%;top: 3%">
30
             <span style="position: absolute;left:38%;top: 3%">
31
               上次透后体重:
31
               上次透后体重:
32
-               <span v-if="this.$store.getters.xt_user.template_info.org_id!=0 && this.$store.getters.xt_user.template_info.org_id!=10702">{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg</span> 
33
-               <span v-if="this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id==10702">{{last_record&&(last_record.weight_after-last_record.additional_weight).toFixed(2)?(last_record.weight_after-last_record.additional_weight).toFixed(2):""}}kg</span> 
32
+               <span v-if="this.$store.getters.xt_user.template_info.org_id!=0 && this.$store.getters.xt_user.template_info.org_id!=10702">{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg</span>
33
+               <span v-if="this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id==10702">{{last_record&&(last_record.weight_after-last_record.additional_weight).toFixed(2)?(last_record.weight_after-last_record.additional_weight).toFixed(2):""}}kg</span>
34
             </span>
34
             </span>
35
 
35
 
36
             <span style="position: absolute;left:51%;top: 3%">
36
             <span style="position: absolute;left:51%;top: 3%">
51
               <span v-if="predialysis!=null && last_record!=null">
51
               <span v-if="predialysis!=null && last_record!=null">
52
                 {{predialysis&&last_record&&((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2)?((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2):"" }} kg
52
                 {{predialysis&&last_record&&((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2)?((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2):"" }} kg
53
               </span>
53
               </span>
54
-            
55
-            
54
+
55
+
56
             </span>
56
             </span>
57
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
57
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
58
             <el-form
58
             <el-form
560
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
560
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
561
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
561
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
562
                             </el-form-item>
562
                             </el-form-item>
563
-                            <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '" 
563
+                            <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
564
                             v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 11 && dialysisPrescription.anticoagulant != 13"
564
                             v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 11 && dialysisPrescription.anticoagulant != 13"
565
                             prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
565
                             prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
566
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
566
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
966
                     <el-col :span="8"
966
                     <el-col :span="8"
967
                             v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id !=24 && this.$store.getters.xt_user.template_info.template_id !=53) || this.$store.getters.xt_user.template_info.org_id  == 10249 || this.$store.getters.xt_user.template_info.org_id == 10441 "
967
                             v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id !=24 && this.$store.getters.xt_user.template_info.template_id !=53) || this.$store.getters.xt_user.template_info.org_id  == 10249 || this.$store.getters.xt_user.template_info.org_id == 10441 "
968
                             v-show="totalShow">
968
                             v-show="totalShow">
969
-                        <el-form-item label="置换液总量(L)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')"  v-if="dialysisPrescription.mode_id!=26">
969
+                        <el-form-item label="置换液总量(L)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')"  v-if="dialysisPrescription.mode_id!=26 && this.$store.getters.xt_user.template_info.org_id !=10206">
970
                             <el-input  v-model="dialysisPrescription.displace_liqui_value"></el-input>
970
                             <el-input  v-model="dialysisPrescription.displace_liqui_value"></el-input>
971
                         </el-form-item>
971
                         </el-form-item>
972
-                        <el-form-item label="置换液总量(L/h)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')"  v-if="dialysisPrescription.mode_id ==26">
972
+                        <el-form-item label="置换液总量(L/h)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')"  v-if="dialysisPrescription.mode_id ==26 || this.$store.getters.xt_user.template_info.org_id == 10206">
973
                             <el-input  v-model="dialysisPrescription.displace_liqui_value"></el-input>
973
                             <el-input  v-model="dialysisPrescription.displace_liqui_value"></el-input>
974
                         </el-form-item>
974
                         </el-form-item>
975
                     </el-col>
975
                     </el-col>
1389
                 <span>上次透后称重(kg)</span>
1389
                 <span>上次透后称重(kg)</span>
1390
                 <span>{{ getLastAfterWeight(last_record) }}</span>
1390
                 <span>{{ getLastAfterWeight(last_record) }}</span>
1391
             </div>
1391
             </div>
1392
-          
1392
+
1393
           <div  class="newLine"><span>近五次数据展示:</span></div>
1393
           <div  class="newLine"><span>近五次数据展示:</span></div>
1394
            <div>
1394
            <div>
1395
             <el-table
1395
             <el-table
2282
            }else{
2282
            }else{
2283
                this.dialysisPrescription.dialysis_remark=""
2283
                this.dialysisPrescription.dialysis_remark=""
2284
            }
2284
            }
2285
-          
2285
+
2286
           } else {
2286
           } else {
2287
             this.zhiShow = false
2287
             this.zhiShow = false
2288
             this.huShow = false
2288
             this.huShow = false
2634
         }
2634
         }
2635
       },
2635
       },
2636
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2636
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2637
-      
2637
+
2638
         if(this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635){
2638
         if(this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635){
2639
           if(this.predialysis!=undefined){
2639
           if(this.predialysis!=undefined){
2640
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2640
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2641
               this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
2641
               this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
2642
             }
2642
             }
2643
-          
2643
+
2644
             if(this.dialysisPrescription.prescription_water==0 || this.dialysisPrescription.prescription_water==""){
2644
             if(this.dialysisPrescription.prescription_water==0 || this.dialysisPrescription.prescription_water==""){
2645
               if((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)>0){
2645
               if((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)>0){
2646
                 this.dialysisPrescription.prescription_water = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
2646
                 this.dialysisPrescription.prescription_water = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
2647
               }
2647
               }
2648
-            
2648
+
2649
             }
2649
             }
2650
          }
2650
          }
2651
         }
2651
         }
3200
         if(moment().weekday() == 0){
3200
         if(moment().weekday() == 0){
3201
            total_day ="周日"
3201
            total_day ="周日"
3202
         }
3202
         }
3203
-         
3204
-        console.log("hhhhhhhhhhhhhhhhhhhhhhhhhhh",this.targetAdvices)
3203
+
3205
         if(this.targetAdvices!=null && this.targetAdvices.length >0){
3204
         if(this.targetAdvices!=null && this.targetAdvices.length >0){
3206
             for (let i = 0; i < this.targetAdvices.length; i++) {
3205
             for (let i = 0; i < this.targetAdvices.length; i++) {
3207
-              console.log("WOOWOWOWOWOWOW",this.targetAdvices[i].week_day.indexOf(total_day))
3208
               if(this.targetAdvices[i].week_day.indexOf(total_day)!=-1){
3206
               if(this.targetAdvices[i].week_day.indexOf(total_day)!=-1){
3209
-                console.log("尽力啊=--------------------")
3210
                 this.targetAdvices[i].isCheck = 1
3207
                 this.targetAdvices[i].isCheck = 1
3211
               }
3208
               }
3212
               if(this.targetAdvices[i].frequency_type == 1){
3209
               if(this.targetAdvices[i].frequency_type == 1){
3284
              return false
3281
              return false
3285
          }
3282
          }
3286
         }
3283
         }
3287
-         
3284
+
3288
         this.$refs[formName].validate((valid)=>{
3285
         this.$refs[formName].validate((valid)=>{
3289
           if(valid){
3286
           if(valid){
3290
             if(!this.isLoading){
3287
             if(!this.isLoading){
4601
       }else{
4598
       }else{
4602
         this.dialysisPrescription.dialysis_remark = ""
4599
         this.dialysisPrescription.dialysis_remark = ""
4603
       }
4600
       }
4604
-       
4605
-      
4601
+
4602
+
4606
 
4603
 
4607
       const ParamsQuery = {}
4604
       const ParamsQuery = {}
4608
       ParamsQuery['patient_id'] = this.$route.query.patient_id
4605
       ParamsQuery['patient_id'] = this.$route.query.patient_id
4759
 
4756
 
4760
     },
4757
     },
4761
     handlePatientInfo(id) {
4758
     handlePatientInfo(id) {
4762
-      
4759
+
4763
       getPatientRecordList(id).then(response=>{
4760
       getPatientRecordList(id).then(response=>{
4764
         if(response.data.state ==1){
4761
         if(response.data.state ==1){
4765
           this.isVisibility = false
4762
           this.isVisibility = false
4766
           this.msgtip_visibility = true
4763
           this.msgtip_visibility = true
4767
 
4764
 
4768
-          
4765
+
4769
           var beforList = response.data.data.beforList
4766
           var beforList = response.data.data.beforList
4770
-       
4767
+
4771
           this.tableData = beforList
4768
           this.tableData = beforList
4772
 
4769
 
4773
           var afterList =  response.data.data.afterList
4770
           var afterList =  response.data.data.afterList
4774
-       
4771
+
4775
           this.afterList = afterList
4772
           this.afterList = afterList
4776
 
4773
 
4777
           this.monitorList = response.data.data.monitorList
4774
           this.monitorList = response.data.data.monitorList
4778
         }
4775
         }
4779
       })
4776
       })
4780
-     
4777
+
4781
     },
4778
     },
4782
     GetLast(date){
4779
     GetLast(date){
4783
       var weight_after = ""
4780
       var weight_after = ""
4798
       return cruor
4795
       return cruor
4799
     },
4796
     },
4800
     GetMonitorList(monitor_date){
4797
     GetMonitorList(monitor_date){
4801
-     
4798
+
4802
         var str = ""
4799
         var str = ""
4803
         var newArr = []
4800
         var newArr = []
4804
         for(let i=0;i<this.monitorList.length;i++){
4801
         for(let i=0;i<this.monitorList.length;i++){
4805
           for(let j=0;j<this.monitorList[i].child.length;j++){
4802
           for(let j=0;j<this.monitorList[i].child.length;j++){
4806
             if(monitor_date == this.monitorList[i].monitoring_date){
4803
             if(monitor_date == this.monitorList[i].monitoring_date){
4807
-              newArr.push(this.monitorList[i].child[j]) 
4804
+              newArr.push(this.monitorList[i].child[j])
4808
             }
4805
             }
4809
           }
4806
           }
4810
         }
4807
         }
4811
-       
4808
+
4812
         if(newArr!=null && newArr.length>0){
4809
         if(newArr!=null && newArr.length>0){
4813
         for(let i=0;i<newArr.length;i++){
4810
         for(let i=0;i<newArr.length;i++){
4814
             str += newArr[i].systolic_blood_pressure +"/"+newArr[i].diastolic_blood_pressure+","
4811
             str += newArr[i].systolic_blood_pressure +"/"+newArr[i].diastolic_blood_pressure+","
4815
         }
4812
         }
4816
         }
4813
         }
4817
-      
4814
+
4818
         return str
4815
         return str
4819
     },
4816
     },
4820
     handlePatientInfoOne(){
4817
     handlePatientInfoOne(){
5480
       },
5477
       },
5481
       'dialysisPrescription.prescription_water':function(){
5478
       'dialysisPrescription.prescription_water':function(){
5482
         if(this.$store.getters.xt_user.template_info.org_id==10598){
5479
         if(this.$store.getters.xt_user.template_info.org_id==10598){
5483
-           
5480
+
5484
           if(this.dialysisPrescription.mode_id == 2 || this.dialysisPrescription.mode_id == 3){
5481
           if(this.dialysisPrescription.mode_id == 2 || this.dialysisPrescription.mode_id == 3){
5485
              this.dialysisPrescription.target_ultrafiltration = parseFloat(this.dialysisPrescription.prescription_water)  + 0.3
5482
              this.dialysisPrescription.target_ultrafiltration = parseFloat(this.dialysisPrescription.prescription_water)  + 0.3
5486
           }else{
5483
           }else{
5487
             if(this.dialysisPrescription.prescription_water > this.dialysisPrescription.target_ultrafiltration){
5484
             if(this.dialysisPrescription.prescription_water > this.dialysisPrescription.target_ultrafiltration){
5488
-              this.dialysisPrescription.target_ultrafiltration =  this.dialysisPrescription.prescription_water 
5485
+              this.dialysisPrescription.target_ultrafiltration =  this.dialysisPrescription.prescription_water
5489
             }
5486
             }
5490
           }
5487
           }
5491
-          
5492
-           
5488
+
5489
+
5493
         }
5490
         }
5494
-        
5491
+
5495
       },
5492
       },
5496
       stockType: function() {
5493
       stockType: function() {
5497
         console.log('stockType', this.stockType)
5494
         console.log('stockType', this.stockType)
5544
         }
5541
         }
5545
         console.log(" 人员",this.adminRoles)
5542
         console.log(" 人员",this.adminRoles)
5546
       },
5543
       },
5547
-     
5544
+
5548
     },
5545
     },
5549
     created() {
5546
     created() {
5550
 
5547
 

+ 5 - 1
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

318
     changeType: function(val) {
318
     changeType: function(val) {
319
       this.order_type = val;
319
       this.order_type = val;
320
       this.getlist()
320
       this.getlist()
321
+      this.getDrugOutOrderPrint()
321
     },
322
     },
322
     changeManufacturer: function(val) {
323
     changeManufacturer: function(val) {
323
       this.manufacturer_id = val;
324
       this.manufacturer_id = val;
324
       this.getlist()
325
       this.getlist()
326
+      this.getDrugOutOrderPrint()
325
     },
327
     },
326
     getTypeName: function(row) {
328
     getTypeName: function(row) {
327
       let name = "";
329
       let name = "";
443
     PrintAction: function() {
445
     PrintAction: function() {
444
       //  window.sessionStorage.setItem('start_out_time',this.start_time)
446
       //  window.sessionStorage.setItem('start_out_time',this.start_time)
445
       //  window.sessionStorage.setItem('end_out_time',this.end_time)
447
       //  window.sessionStorage.setItem('end_out_time',this.end_time)
446
-       this.$router.push("/stock/drugoutorderprint?start_time="+this.start_time+"&end_time="+this.end_time+"&order_type="+2+"&manufacturer_id="+this.manufacturer_id+"&keyword="+this.keyword+"&limit="+this.limit+"&page="+this.page)
448
+       this.$router.push("/stock/drugoutorderprint?start_time="+this.start_time+"&end_time="+this.end_time+"&order_type="+2+"&manufacturer_id="+this.manufacturer_id+"&keyword="+this.keyword+"&limit="+this.limit+"&page="+this.page+"&storehouse_id="+this.storehouse_id)
447
     },
449
     },
448
     getlist(){
450
     getlist(){
449
       var params = {
451
       var params = {
970
          start_time:this.start_time,
972
          start_time:this.start_time,
971
          end_time:this.end_time,
973
          end_time:this.end_time,
972
          order_type:2,
974
          order_type:2,
975
+         storehouse_id:this.storehouse_id,
973
       }
976
       }
974
      getDrugOutOrderPrint(params).then(response=>{
977
      getDrugOutOrderPrint(params).then(response=>{
975
         if(response.data.state == 1){
978
         if(response.data.state == 1){
1166
      changeHouseList(){
1169
      changeHouseList(){
1167
        this.houseList = []
1170
        this.houseList = []
1168
        this.getlist()
1171
        this.getlist()
1172
+       this.getDrugOutOrderPrint()
1169
      }
1173
      }
1170
   }
1174
   }
1171
 };
1175
 };

+ 2 - 0
src/xt_pages/stock/drugs/drugOutOrderPrint.vue 查看文件

139
         keyword:this.$route.query.keyword,
139
         keyword:this.$route.query.keyword,
140
         limit:this.$route.query.limit,
140
         limit:this.$route.query.limit,
141
         page:this.$route.query.page,
141
         page:this.$route.query.page,
142
+        storehouse_id:this.$route.query.storehouse_id,
142
         cancelStockDate:[],
143
         cancelStockDate:[],
143
         drugList:[],
144
         drugList:[],
144
         org_id:0,
145
         org_id:0,
230
           start_time:this.start_time,
231
           start_time:this.start_time,
231
           end_time:this.end_time,
232
           end_time:this.end_time,
232
           order_type:parseInt(this.order_type),
233
           order_type:parseInt(this.order_type),
234
+          storehouse_id:parseInt(this.storehouse_id),
233
         }
235
         }
234
       
236
       
235
         getDrugOutOrderPrint(params).then(response=>{
237
         getDrugOutOrderPrint(params).then(response=>{

+ 2 - 3
src/xt_pages/workforce/appointment.vue 查看文件

91
       </div>
91
       </div>
92
     </div>
92
     </div>
93
     <div>
93
     <div>
94
-      
94
+
95
       <div class="app-container" style="padding: 0 20px 20px 20px;">
95
       <div class="app-container" style="padding: 0 20px 20px 20px;">
96
         <div>
96
         <div>
97
           <div style="position: relative;height: 57px">
97
           <div style="position: relative;height: 57px">
1216
 
1216
 
1217
           })
1217
           })
1218
           console.log("tablesit",this.tableList)
1218
           console.log("tablesit",this.tableList)
1219
-      
1219
+
1220
           const filename = '排班模版'
1220
           const filename = '排班模版'
1221
 
1221
 
1222
           if (this.$store.getters.xt_user.org.id == 10234) {
1222
           if (this.$store.getters.xt_user.org.id == 10234) {
5075
           mode_name = this.mode[i].name
5075
           mode_name = this.mode[i].name
5076
         }
5076
         }
5077
       }
5077
       }
5078
-      console.log("mode_name--",mode_name)
5079
       return mode_name
5078
       return mode_name
5080
     }
5079
     }
5081
   },
5080
   },