浏览代码

9月19日杨青

杨青 1年前
父节点
当前提交
252743d771
共有 2 个文件被更改,包括 40 次插入36 次删除
  1. 3 3
      src/xt_pages/outpatientCharges/invoicePrint.vue
  2. 37 33
      src/xt_pages/workforce/components/editTableData.vue

+ 3 - 3
src/xt_pages/outpatientCharges/invoicePrint.vue 查看文件

10
         type="primary"
10
         type="primary"
11
       >打印</el-button>
11
       >打印</el-button>
12
     </template>
12
     </template>
13
-    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375"><!---->
13
+    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375 "><!---->
14
         <div class='dialysisPage'>
14
         <div class='dialysisPage'>
15
           <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 10387&& org_id != 10210 && org_id != 10387" >
15
           <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 10387&& org_id != 10210 && org_id != 10387" >
16
             <printOne v-if="org_id != 10088 &&  org_id != 0 " :paramsObj="invoiceParams"></printOne>
16
             <printOne v-if="org_id != 10088 &&  org_id != 0 " :paramsObj="invoiceParams"></printOne>
17
-            <printThree v-if="org_id == 10088 || org_id == 0" :paramsObj="invoiceParams"></printThree>
17
+            <printThree v-if="org_id == 10088 " :paramsObj="invoiceParams"></printThree>
18
           </div>
18
           </div>
19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
33
       </div>
33
       </div>
34
     </div>
34
     </div>
35
 
35
 
36
-    <div class="app-container" style="" v-if="org_id == 10217 ">
36
+    <div class="app-container" style="" v-if="org_id == 10217 || org_id == 0">
37
       <div class='dialysisPage'>
37
       <div class='dialysisPage'>
38
         <printSix :paramsObj="invoiceParams"></printSix>
38
         <printSix :paramsObj="invoiceParams"></printSix>
39
       </div>
39
       </div>

+ 37 - 33
src/xt_pages/workforce/components/editTableData.vue 查看文件

160
               min-width="60"
160
               min-width="60"
161
               align="center"
161
               align="center"
162
               fixed
162
               fixed
163
-              
163
+
164
           ></el-table-column>
164
           ></el-table-column>
165
           <el-table-column
165
           <el-table-column
166
               prop="cut"
166
               prop="cut"
168
               min-width="50"
168
               min-width="50"
169
               align="center"
169
               align="center"
170
               fixed
170
               fixed
171
-              
171
+
172
           ></el-table-column>
172
           ></el-table-column>
173
           <el-table-column
173
           <el-table-column
174
               :label="'周一 (' + weekTitle[0] + ')'"
174
               :label="'周一 (' + weekTitle[0] + ')'"
1345
           </el-option>
1345
           </el-option>
1346
         </el-select>
1346
         </el-select>
1347
 
1347
 
1348
-       
1348
+
1349
       </div>
1349
       </div>
1350
       <span slot="footer" class="dialog-footer" style="text-align: center">
1350
       <span slot="footer" class="dialog-footer" style="text-align: center">
1351
         <el-button
1351
         <el-button
1385
           <el-form-item label="" prop="mode_id">
1385
           <el-form-item label="" prop="mode_id">
1386
             <span>透析模式:</span>
1386
             <span>透析模式:</span>
1387
             <el-select
1387
             <el-select
1388
-               filterable 
1388
+               filterable
1389
                 v-model="changeSchedule.mode_id"
1389
                 v-model="changeSchedule.mode_id"
1390
                 placeholder="请选择"
1390
                 placeholder="请选择"
1391
                 style="width: 100%"
1391
                 style="width: 100%"
1400
               </el-option>
1400
               </el-option>
1401
             </el-select>
1401
             </el-select>
1402
           </el-form-item>
1402
           </el-form-item>
1403
-          
1403
+
1404
           <!-- <el-form-item>
1404
           <!-- <el-form-item>
1405
             <span>透析班次:</span>
1405
             <span>透析班次:</span>
1406
             <el-select
1406
             <el-select
1407
-                filterable 
1407
+                filterable
1408
                 v-model="changeSchedule.schedule_type"
1408
                 v-model="changeSchedule.schedule_type"
1409
                 placeholder="请选择"
1409
                 placeholder="请选择"
1410
                 style="width: 100%"
1410
                 style="width: 100%"
1419
               </el-option>
1419
               </el-option>
1420
             </el-select>
1420
             </el-select>
1421
           </el-form-item>
1421
           </el-form-item>
1422
-        
1422
+
1423
           <el-form-item>
1423
           <el-form-item>
1424
             <span>透析分区:</span>
1424
             <span>透析分区:</span>
1425
             <el-select
1425
             <el-select
1426
-            filterable 
1426
+            filterable
1427
               v-model="changeSchedule.partition_id"
1427
               v-model="changeSchedule.partition_id"
1428
               placeholder="请选择"
1428
               placeholder="请选择"
1429
               style="width: 100%"
1429
               style="width: 100%"
1442
           <el-form-item>
1442
           <el-form-item>
1443
             <span>透析床位:</span>
1443
             <span>透析床位:</span>
1444
             <el-select
1444
             <el-select
1445
-               filterable 
1445
+               filterable
1446
                 v-model="changeSchedule.bed_id"
1446
                 v-model="changeSchedule.bed_id"
1447
                 placeholder="请选择"
1447
                 placeholder="请选择"
1448
                 style="width: 100%"
1448
                 style="width: 100%"
1753
         <el-button @click="tipDialogVisibleThree = false">取 消</el-button>
1753
         <el-button @click="tipDialogVisibleThree = false">取 消</el-button>
1754
       </span>
1754
       </span>
1755
     </el-dialog>
1755
     </el-dialog>
1756
-    
1756
+
1757
   </div>
1757
   </div>
1758
 </template>
1758
 </template>
1759
 
1759
 
3141
       }else{
3141
       }else{
3142
         this.cur_info.contagions = []
3142
         this.cur_info.contagions = []
3143
       }
3143
       }
3144
-     
3144
+
3145
       this.patient_id_hover = row.id
3145
       this.patient_id_hover = row.id
3146
     },
3146
     },
3147
     // 选择透析模式
3147
     // 选择透析模式
3238
               id : row[key].schedule_id,
3238
               id : row[key].schedule_id,
3239
               contagions: row[key].patient_contagions,
3239
               contagions: row[key].patient_contagions,
3240
             }
3240
             }
3241
+            console.log('4444444',row[key].schedule_id);
3241
           }else{
3242
           }else{
3242
             this.cur_drag_obj = 3
3243
             this.cur_drag_obj = 3
3243
             this.cur_drag_info={
3244
             this.cur_drag_info={
3331
           this.$message.error(response.data.msg);
3332
           this.$message.error(response.data.msg);
3332
           this.tipDialogVisibleTwo = false
3333
           this.tipDialogVisibleTwo = false
3333
         } else {
3334
         } else {
3335
+          console.log('11111111111',response.data);
3334
           this.$message.success("替换成功");
3336
           this.$message.success("替换成功");
3335
           this.tipDialogVisible = false
3337
           this.tipDialogVisible = false
3336
           this.tipDialogVisibleTwo = false
3338
           this.tipDialogVisibleTwo = false
3337
           this.getSchedules();
3339
           this.getSchedules();
3338
         }
3340
         }
3339
       });
3341
       });
3342
+
3340
     },
3343
     },
3341
     // 交换位置
3344
     // 交换位置
3342
     changeSchTwo(){
3345
     changeSchTwo(){
3352
             this.$message.error(response.data.msg);
3355
             this.$message.error(response.data.msg);
3353
             this.tipDialogVisibleThree = false
3356
             this.tipDialogVisibleThree = false
3354
           } else {
3357
           } else {
3358
+            console.log('22222222',response.data);
3355
             this.$message.success("交换成功");
3359
             this.$message.success("交换成功");
3356
             this.tipDialogVisible = false
3360
             this.tipDialogVisible = false
3357
             this.tipDialogVisibleThree = false
3361
             this.tipDialogVisibleThree = false
3382
             id : row[key].schedule_id,
3386
             id : row[key].schedule_id,
3383
             partition_type : row.zone_type,
3387
             partition_type : row.zone_type,
3384
           }
3388
           }
3389
+          console.log('ffffffffffff',this.currentData);
3385
           // let nowDate = new Date();
3390
           // let nowDate = new Date();
3386
           // let date = {
3391
           // let date = {
3387
           //       year: nowDate.getFullYear(),
3392
           //       year: nowDate.getFullYear(),
3391
           //   let Month=date.month<10 ? '0'+ date.month :  date.month
3396
           //   let Month=date.month<10 ? '0'+ date.month :  date.month
3392
           //   let Dateday= date.date<10 ? '0'+date.date : date.date
3397
           //   let Dateday= date.date<10 ? '0'+date.date : date.date
3393
           //   this.systemDate = date.year + '-'+ Month + '-'+ Dateday;
3398
           //   this.systemDate = date.year + '-'+ Month + '-'+ Dateday;
3394
-          // console.log('this.currentData的数据',this.currentData);
3395
-          // console.log('this.cur_drag_info的数据',this.cur_drag_info);
3399
+          console.log('this.currentData的数据',row[key].patient_id);
3400
+          console.log('this.cur_drag_info的数据',key);
3396
           // console.log('123453545',this.systemDate);
3401
           // console.log('123453545',this.systemDate);
3397
           // 当表格有数据
3402
           // 当表格有数据
3398
           if ( row[key].mode_id > 0 || row[key].patient_id > 0) {
3403
           if ( row[key].mode_id > 0 || row[key].patient_id > 0) {
3421
                       that.currentData.patient_id = that.cur_drag_info.patient_id
3426
                       that.currentData.patient_id = that.cur_drag_info.patient_id
3422
                       that.currentData.patient = that.cur_drag_info.patient_name
3427
                       that.currentData.patient = that.cur_drag_info.patient_name
3423
                        that.currentData.contagions = that.cur_drag_info.contagions
3428
                        that.currentData.contagions = that.cur_drag_info.contagions
3424
-                        console.log("中国hshshshshhs",that.cur_drag_info.contagions)
3429
+                        console.log("中国hshshshshhs",that.cur_drag_info.id)
3430
+
3425
 
3431
 
3426
-                      
3427
                         that.setScheduleTwo(this.cur_drag_info.id);
3432
                         that.setScheduleTwo(this.cur_drag_info.id);
3428
                 }
3433
                 }
3429
               }else{ // 非同一天
3434
               }else{ // 非同一天
3450
         }
3455
         }
3451
       }
3456
       }
3452
     },
3457
     },
3453
-    
3458
+
3454
     // 左边栏选中名字和模式拖动结束后
3459
     // 左边栏选中名字和模式拖动结束后
3455
     taskDraggerEnd(e) {},
3460
     taskDraggerEnd(e) {},
3456
     //move回调方法
3461
     //move回调方法
3765
         //
3770
         //
3766
         return "table-row-new-class schedule-table-row Infectious_disease";
3771
         return "table-row-new-class schedule-table-row Infectious_disease";
3767
       }
3772
       }
3768
-      // if(columnIndex==1 ){  
3769
-      //   return 'border_bott ' 
3773
+      // if(columnIndex==1 ){
3774
+      //   return 'border_bott '
3770
       // }
3775
       // }
3771
       // if(columnIndex==0){
3776
       // if(columnIndex==0){
3772
       //   return 'border_left'
3777
       //   return 'border_left'
3795
                 row[column.property].patient_id == this.patient_id_hover
3800
                 row[column.property].patient_id == this.patient_id_hover
3796
             ) {
3801
             ) {
3797
               return "hover-td schedule-table-cell-disable";
3802
               return "hover-td schedule-table-cell-disable";
3798
-            } 
3803
+            }
3799
             // if(column.label == '晚'){
3804
             // if(column.label == '晚'){
3800
             //   return 'evening_border schedule-table-cell-disable'
3805
             //   return 'evening_border schedule-table-cell-disable'
3801
             // }
3806
             // }
3839
     //       // console.log('33333333333');
3844
     //       // console.log('33333333333');
3840
     //       return 'border-top: 1px solid aqua;'
3845
     //       return 'border-top: 1px solid aqua;'
3841
     //     }
3846
     //     }
3842
-    //   } 
3847
+    //   }
3843
     // },
3848
     // },
3844
     // 单元格的患者名称的回调方法
3849
     // 单元格的患者名称的回调方法
3845
     patientClass({row,column, rowIndex,columnIndex}){
3850
     patientClass({row,column, rowIndex,columnIndex}){
4573
         this.currentData.contagions = row.contagions;
4578
         this.currentData.contagions = row.contagions;
4574
       }
4579
       }
4575
     },
4580
     },
4576
-    // 取消关闭弹窗
4577
-    // closePatientPanel() {
4578
-    //   this.dialogTableVisible = false;
4579
-    //   this.currentData.patient_id = 0;
4580
-    // },
4581
+
4581
     getSchedules() {
4582
     getSchedules() {
4582
       var partionStr = this.partition_id;
4583
       var partionStr = this.partition_id;
4584
+      console.log('66665555',partionStr);
4583
       var arr = this.zoneIdList.join(",");
4585
       var arr = this.zoneIdList.join(",");
4586
+      console.log('ccccccc',this.zoneIdList);
4584
       var str = "";
4587
       var str = "";
4585
       if (partionStr == 0) {
4588
       if (partionStr == 0) {
4586
         str = arr;
4589
         str = arr;
4588
       if (partionStr != 0) {
4591
       if (partionStr != 0) {
4589
         str = partionStr.join(",");
4592
         str = partionStr.join(",");
4590
       }
4593
       }
4594
+      console.log('qqqqqqq',str);
4591
       const params = {
4595
       const params = {
4592
         weekTime: this.theType,
4596
         weekTime: this.theType,
4593
         patitionid: str,
4597
         patitionid: str,
4597
       getSchedulesOne(params).then((response) => {
4601
       getSchedulesOne(params).then((response) => {
4598
         if (response.data.state == 1) {
4602
         if (response.data.state == 1) {
4599
           this.weekTitle = response.data.data.weekTitle;
4603
           this.weekTitle = response.data.data.weekTitle;
4600
-
4604
+          console.log('999990000',response.data.data);
4601
           this.weekDays = response.data.data.days;
4605
           this.weekDays = response.data.data.days;
4602
           this.toDay = response.data.data.today;
4606
           this.toDay = response.data.data.today;
4603
           var theSchedules = response.data.data.schdules;
4607
           var theSchedules = response.data.data.schdules;
5138
               });
5142
               });
5139
               // this.msDialogVisible = false;
5143
               // this.msDialogVisible = false;
5140
               // this.getAllZones()
5144
               // this.getAllZones()
5141
-             
5145
+
5142
             }
5146
             }
5143
             this.changing_mode = false;
5147
             this.changing_mode = false;
5144
           }).catch((err) => {
5148
           }).catch((err) => {
5402
         default:
5406
         default:
5403
           break;
5407
           break;
5404
       }
5408
       }
5405
-    },    
5409
+    },
5406
     setScheduleTwo(id_two) {
5410
     setScheduleTwo(id_two) {
5407
       console.log("1112222222",this.currentData.contagions.length)
5411
       console.log("1112222222",this.currentData.contagions.length)
5408
       var that = this;
5412
       var that = this;
5509
             cflag = true;
5513
             cflag = true;
5510
           }
5514
           }
5511
         });
5515
         });
5512
-      
5516
+
5513
         if (!cflag) {
5517
         if (!cflag) {
5514
           this.$confirm(
5518
           this.$confirm(
5515
               "此患者有传染病,与此透析机不匹配,确定在此排班吗?",
5519
               "此患者有传染病,与此透析机不匹配,确定在此排班吗?",
5533
         } else {
5537
         } else {
5534
           this.CreateSchedule(this.currentData.patient_id, this.currentData);
5538
           this.CreateSchedule(this.currentData.patient_id, this.currentData);
5535
         }
5539
         }
5536
-        
5540
+
5537
       } else if (that.currentData.partition_type > 1) {
5541
       } else if (that.currentData.partition_type > 1) {
5538
         this.$confirm(
5542
         this.$confirm(
5539
             "此患者没有传染病,与此透析机不匹配,确定在此排班吗?",
5543
             "此患者没有传染病,与此透析机不匹配,确定在此排班吗?",
5546
         )
5550
         )
5547
             .then(() => {
5551
             .then(() => {
5548
               this.CreateSchedule(this.currentData.patient_id, this.currentData);
5552
               this.CreateSchedule(this.currentData.patient_id, this.currentData);
5549
-              
5553
+
5550
             })
5554
             })
5551
             .catch(() => {
5555
             .catch(() => {
5552
               this.dialogTableVisible=false
5556
               this.dialogTableVisible=false
5897
     this.partitions = this.partitionsProp;
5901
     this.partitions = this.partitionsProp;
5898
 
5902
 
5899
     var contagions = this.$store.getters.contagions;
5903
     var contagions = this.$store.getters.contagions;
5900
- 
5904
+
5901
     if (contagions.length > 0) {
5905
     if (contagions.length > 0) {
5902
       var that = this;
5906
       var that = this;
5903
       contagions.forEach(function (citem) {
5907
       contagions.forEach(function (citem) {
6070
 .border_left{
6074
 .border_left{
6071
   border-left: 1px solid aqua !important;
6075
   border-left: 1px solid aqua !important;
6072
 }
6076
 }
6073
- 
6077
+
6074
 .evening_border{
6078
 .evening_border{
6075
   border-right: 1px solid aqua !important;
6079
   border-right: 1px solid aqua !important;
6076
 }
6080
 }