Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 1 week ago
parent
commit
92a5699dea

+ 14 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_eightythree.vue View File

@@ -35,7 +35,7 @@
35 35
                           性 别:{{ record.patient.gender == 1 ? "男" : "女" }}
36 36
                         </div>
37 37
                         <div style="flex: 1;">
38
-                          年龄:{{ record.patient.age }} 岁
38
+                          年龄:{{ getNewAge(record.patient.id_card_no) }} 岁
39 39
                         </div>
40 40
                         <div style="flex: 1;">
41 41
                           透析机号:
@@ -1187,6 +1187,19 @@ export default {
1187 1187
         return val.age
1188 1188
       }
1189 1189
     },
1190
+    getNewAge(UUserCard) {
1191
+      if (UUserCard != null && UUserCard != '') {
1192
+        // 获取年龄
1193
+        var myDate = new Date()
1194
+        var month = myDate.getMonth() + 1
1195
+        var day = myDate.getDate()
1196
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
1197
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
1198
+          age++
1199
+        }
1200
+        return age
1201
+      }
1202
+    },
1190 1203
     checkIdCardNo(val) {
1191 1204
       var thisLen = val.length;
1192 1205
       var birth = "";

File diff suppressed because it is too large
+ 2099 - 2739
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue


File diff suppressed because it is too large
+ 360 - 381
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue


File diff suppressed because it is too large
+ 1164 - 1302
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue


+ 14 - 1
src/xt_pages/dialysis/template/DialysisPrintOrdereightythree.vue View File

@@ -25,7 +25,7 @@
25 25
                     性别:{{ patientInfo.gender ? patientInfo.gender : "/" }}
26 26
                   </div>
27 27
                   <div style="flex: 1;">
28
-                    年龄:{{ patientInfo.age }} 岁
28
+                    年龄:{{ getNewAge(patientInfo.id_card_no) }} 岁
29 29
                   </div>
30 30
                   <div style="flex: 1;">
31 31
                     透析机号:
@@ -1605,6 +1605,19 @@ export default {
1605 1605
         return this.getoldAge();
1606 1606
       }
1607 1607
     },
1608
+    getNewAge(UUserCard) {
1609
+      if (UUserCard != null && UUserCard != '') {
1610
+        // 获取年龄
1611
+        var myDate = new Date()
1612
+        var month = myDate.getMonth() + 1
1613
+        var day = myDate.getDate()
1614
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
1615
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
1616
+          age++
1617
+        }
1618
+        return age
1619
+      }
1620
+    },
1608 1621
     checkIdCardNo(val) {
1609 1622
       var thisLen = val.length;
1610 1623
       var birth = "";

+ 23 - 11
src/xt_pages/workforce/appointment.vue View File

@@ -392,7 +392,9 @@ export default {
392 392
       mode:[{id:1,name:'HD'},{id:2,name:'HDF'},{id:3,name:'HD+HP'},{id:4,name:'HP'},{id:5,name:'HF'},{id:6,name:'SCUF'},{id:7,name:'IUF'}
393 393
       ,{id:8,name:'HFHD'},{id:9,name:'HFHD+HP'},{id:10,name:'PHF'},{id:11,name:'HFR'},{id:12,name:'HDF+HP'},{id:13,name:'CRRT'},{id:14,name:'腹水回输'},{id:19,name:'IUF+HD'},{id:20,name:'UF'},{id:21,name:'HD+'}
394 394
       ,{id:22,name:'血浆胆红素吸附+HDF'},{id:23,name:'血浆胆红素吸附'},{id:24,name:'I-HDF'},{id:25,name:'HD高通'},{id:26,name:'CVVH'},{id:27,name:'CVVHD'},{id:28,name:'CVVHDF'}
395
-      ,{id:29,name:'PE'},{id:30,name:"血浆胆红素吸附+HP"},{id:31,name:"HPD"},{id:32,name:"HDP"},{id:33,name:"HFD"},{id:34,name:'HDF100'},{id:35,name:'HDF600'},{id:36,name:'HDF800'},{id:37,name:'HDF1000'}]
395
+      ,{id:29,name:'PE'},{id:30,name:"血浆胆红素吸附+HP"},{id:31,name:"HPD"},{id:32,name:"HDP"},{id:33,name:"HFD"},{id:34,name:'HDF100'},{id:35,name:'HDF600'},{id:36,name:'HDF800'},{id:37,name:'HDF1000'}],
396
+      statr_date:'',
397
+      end_date:'',
396 398
     }
397 399
   },
398 400
   components: {
@@ -2807,7 +2809,7 @@ export default {
2807 2809
         partition_id: this.partition_id,
2808 2810
         schedule_type: this.schedule_type
2809 2811
       }
2810
-      // console.log("params32323232323223", params)
2812
+      console.log("params32323232323223", params)
2811 2813
       getThreeWeekList(params).then(response => {
2812 2814
         if (response.data.state == 1) {
2813 2815
           var partitions = response.data.data.partitions
@@ -3924,8 +3926,10 @@ export default {
3924 3926
     //筛选导出排班数据源
3925 3927
     getThreeWeekList2() {
3926 3928
       var params = {
3927
-        start_time: this.start_time,
3928
-        end_time: this.end_time,
3929
+        // start_time: this.start_time,
3930
+        // end_time: this.end_time,
3931
+        start_time: this.statr_date,
3932
+        end_time: this.end_date,
3929 3933
         partition_id: this.partition_id,
3930 3934
         schedule_type: this.schedule_type
3931 3935
       }
@@ -3933,7 +3937,7 @@ export default {
3933 3937
       getThreeWeekList(params).then(response => {
3934 3938
         if (response.data.state == 1) {
3935 3939
           var partitions = response.data.data.partitions
3936
-          console.log('yyyyyyy',response.data.data);
3940
+          console.log('yyyyyyy222',response.data.data);
3937 3941
           // const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
3938 3942
           const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1']
3939 3943
           var list = []
@@ -4234,17 +4238,16 @@ export default {
4234 4238
           var laststart = this.getTimestamp(last_start) - 28800
4235 4239
 
4236 4240
           var lastend = this.getTimestamp(last_end) - 28800
4237
-
4241
+          console.log("week",this.export_type)
4238 4242
           if (this.export_type == 0) {
4239 4243
             for (let i = 0; i < scheduleList.length; i++) {
4240 4244
               if(this.activeName=='thisWeek'){
4241
-                // console.log("week1")
4242 4245
                 if (scheduleList[i].schedule_date >= start && scheduleList[i].schedule_date <= end) {
4243 4246
                  var weekday= this.changeWeekType(scheduleList[i].schedule_week)
4244 4247
                  if(this.schedule_type!=0 || this.partition_id != 0 || this.week_date !=''){
4245 4248
                     if(this.schedule_type==scheduleList[i].schedule_type &&
4246 4249
                       this.partition_id==scheduleList[i].partition_id &&weekday==this.week_date){
4247
-
4250
+                       
4248 4251
                       week.push(scheduleList[i])
4249 4252
                     }
4250 4253
 
@@ -4842,15 +4845,24 @@ export default {
4842 4845
     },
4843 4846
 
4844 4847
     changeWeekDay(val){
4845
-      console.log("Val2332322323wo",val)
4848
+      console.log("Val2332322323wo",this.days,this.end_time)
4846 4849
       var str = val.join(",")
4847
-      console.log("stor233233223",str)
4850
+      
4848 4851
       this.week_date = str
4852
+      const week_arr=this.days.slice(0,7)
4853
+      console.log("stor233233223",week_arr)
4854
+      for(let i in this.weekType){
4855
+        if(str==this.weekType[i].name){
4856
+          this.statr_date= week_arr[i]
4857
+          this.end_date= week_arr[i]
4858
+        }
4859
+      }
4860
+      // this.statr_date=
4861
+      // this.end_date=
4849 4862
       if(str==''){
4850 4863
         // console.log('llllll');
4851 4864
           this.getThreeWeekList()
4852 4865
       }else{
4853
-        // console.log('oooooo');
4854 4866
         this.getThreeWeekList2()
4855 4867
       }
4856 4868
       // this.getThreeWeekList()