Browse Source

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

28169 10 months ago
parent
commit
ea20451ceb

+ 2 - 2
src/vendor/Export2Excel.js View File

405
   filename = filename || 'excel-list'
405
   filename = filename || 'excel-list'
406
   data = [...data]
406
   data = [...data]
407
   data.unshift(header);
407
   data.unshift(header);
408
-  console.log('wwwww',data);
408
+  // console.log('wwwww',data);
409
   for (let i = multiHeader.length - 1; i > -1; i--) {
409
   for (let i = multiHeader.length - 1; i > -1; i--) {
410
     data.unshift(multiHeader[i])
410
     data.unshift(multiHeader[i])
411
   }
411
   }
412
-  console.log('qqqqq',data);
412
+  // console.log('qqqqq',data);
413
   var ws_name = "SheetJS";
413
   var ws_name = "SheetJS";
414
   var wb = new Workbook(),
414
   var wb = new Workbook(),
415
     ws = sheet_from_array_of_arrays(data);
415
     ws = sheet_from_array_of_arrays(data);

+ 41 - 30
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

757
                 that.$message.error(response.data.msg)
757
                 that.$message.error(response.data.msg)
758
                 return false
758
                 return false
759
               } else {
759
               } else {
760
-                var patient = response.data.data.patient
761
-
762
-                if (that.form.id_card_type == 1) {
763
-                  that.form.id = patient.id
764
-                  that.form.name = patient.name
765
-                  that.form.gender = patient.gender
766
-                  that.form.age = patient.age
767
-                  that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
768
-                  that.form.phone = patient.phone
769
-                  that.form.id_card = patient.id_card_no
770
-                  that.form.medical_insurance_card = response.data.data.number
771
-                  that.form.social_type = parseInt(response.data.data.insutype)
760
+                if (response.data.data.failed_code == -10) {
761
+                  // that.$message.error(response.data.data.msg)
762
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
763
+                    confirmButtonText: '确 定',
764
+                    type: 'warning'
765
+                  }).then(() => {
772
 
766
 
767
+                  }).catch(() => {
768
+                  })
773
 
769
 
774
-                } else if (that.form.id_card_type == 2) {
775
-                  that.form.id = patient.id
776
-                  that.form.name = patient.name
777
-                  that.form.gender = patient.gender
778
-                  that.form.age = patient.age
779
-                  that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
780
-                  that.form.phone = patient.phone
781
-                  that.form.id_card = patient.id_card_no
782
-                } else {
783
-                  that.form.id = patient.id
784
-                  that.form.name = patient.name
785
-                  that.form.gender = patient.gender
786
-                  that.form.age = patient.age
787
-                  that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
788
-                  that.form.phone = patient.phone
789
-                  that.form.id_card = patient.id_card_no
790
-                  that.form.social_type = parseInt(response.data.data.insutype)
770
+                }else {
771
+                  var patient = response.data.data.patient
772
+
773
+                  if (that.form.id_card_type == 1) {
774
+                    that.form.id = patient.id
775
+                    that.form.name = patient.name
776
+                    that.form.gender = patient.gender
777
+                    that.form.age = patient.age
778
+                    that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
779
+                    that.form.phone = patient.phone
780
+                    that.form.id_card = patient.id_card_no
781
+                    that.form.medical_insurance_card = response.data.data.number
782
+                    that.form.social_type = parseInt(response.data.data.insutype)
783
+
784
+                  } else if (that.form.id_card_type == 2) {
785
+                    that.form.id = patient.id
786
+                    that.form.name = patient.name
787
+                    that.form.gender = patient.gender
788
+                    that.form.age = patient.age
789
+                    that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
790
+                    that.form.phone = patient.phone
791
+                    that.form.id_card = patient.id_card_no
792
+                  } else {
793
+                    that.form.id = patient.id
794
+                    that.form.name = patient.name
795
+                    that.form.gender = patient.gender
796
+                    that.form.age = patient.age
797
+                    that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
798
+                    that.form.phone = patient.phone
799
+                    that.form.id_card = patient.id_card_no
800
+                    that.form.social_type = parseInt(response.data.data.insutype)
791
 
801
 
802
+                  }
803
+                  that.$message({ message: '读卡成功', type: 'success' })
792
                 }
804
                 }
793
-                that.$message({ message: '读卡成功', type: 'success' })
794
               }
805
               }
795
             })
806
             })
796
             .catch(function(error) {
807
             .catch(function(error) {

+ 1 - 0
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

3618
       } else if(index == 40){
3618
       } else if(index == 40){
3619
         var that = this
3619
         var that = this
3620
         let params = {
3620
         let params = {
3621
+          'admin_user_id': this.$store.getters.xt_user.user.id
3621
         }
3622
         }
3622
         axios.get('http://127.0.0.1:9532/9001', {
3623
         axios.get('http://127.0.0.1:9532/9001', {
3623
           params: params
3624
           params: params

+ 74 - 65
src/xt_pages/workforce/components/tableData.vue View File

244
     </el-dialog>
244
     </el-dialog>
245
 
245
 
246
     <div class="center-tab">
246
     <div class="center-tab">
247
+      <!-- <h2>div move</h2>
248
+      <div ref="main" class="main" style="width: 300px;height: 300px;overflow: auto;">
249
+        <div style="width: 400px;height: 400px;padding-top: 100px;background-color: rgb(13, 255, 0);cursor: pointer;">
250
+          <div>1111111111111111111111</div>
251
+        </div>
252
+      </div>   "calc(100% - 50px)"-->
253
+
247
       <el-table
254
       <el-table
248
         :row-style="{ color: '#303133' }"
255
         :row-style="{ color: '#303133' }"
249
         :header-cell-style="{
256
         :header-cell-style="{
250
           backgroundColor: 'rgb(245, 247, 250)',
257
           backgroundColor: 'rgb(245, 247, 250)',
251
           color: '#606266',
258
           color: '#606266',
252
-          // border: '1px solid aqua',
253
         }"
259
         }"
254
         :fit="true"
260
         :fit="true"
255
         :data="scheduleZone"
261
         :data="scheduleZone"
256
         :span-method="objectSpanMethod"
262
         :span-method="objectSpanMethod"
257
         @cell-click="clickThis"
263
         @cell-click="clickThis"
258
         @cell-mouse-enter="hoverMouse"
264
         @cell-mouse-enter="hoverMouse"
265
+        :cell-style ='cellstyle'
259
         :summary-method="getSummaries"
266
         :summary-method="getSummaries"
260
         show-summary
267
         show-summary
261
         :cell-class-name="cellClass"
268
         :cell-class-name="cellClass"
262
-
263
         sum-text="总数"
269
         sum-text="总数"
264
-        :height="tableContainHeight"
270
+        height="600"
265
         ref="table"
271
         ref="table"
266
         style="table-layout: fixed;"
272
         style="table-layout: fixed;"
267
       >
273
       >
268
-<!-- :cell-style ='cellstyle' -->
274
+      <!-- :height="tableContainHeight" -->
269
         <el-table-column
275
         <el-table-column
270
           prop="area"
276
           prop="area"
271
           label="分区"
277
           label="分区"
286
           :label="' 周一(' + weekTitle[0] + ')'"
292
           :label="' 周一(' + weekTitle[0] + ')'"
287
           v-if="isShowOne"
293
           v-if="isShowOne"
288
           align="center"
294
           align="center"
289
-
290
         >
295
         >
291
-        <!-- :width="flexColumnWidth('Mon_M',scheduleZone)" -->
292
           <el-table-column  prop="Mon_M" label="上" min-width="40" align="center"  v-if="isShowShangWu" >
296
           <el-table-column  prop="Mon_M" label="上" min-width="40" align="center"  v-if="isShowShangWu" >
293
             <schedule-item
297
             <schedule-item
294
               slot-scope="scope"
298
               slot-scope="scope"
521
               :schedulFlag="value1"
525
               :schedulFlag="value1"
522
               :schedulMode="modename_value"
526
               :schedulMode="modename_value"
523
             >
527
             >
524
-            <!--  -->
528
+
525
           </schedule-item>
529
           </schedule-item>
526
           </el-table-column>
530
           </el-table-column>
527
         </el-table-column>
531
         </el-table-column>
733
 </template>
737
 </template>
734
 
738
 
735
 <script>
739
 <script>
740
+import Drag from '@/utils/move.js';
736
 import { uParseTime } from "@/utils/tools";
741
 import { uParseTime } from "@/utils/tools";
737
 import print from 'print-js'
742
 import print from 'print-js'
738
 const moment = require('moment')
743
 const moment = require('moment')
788
   },
793
   },
789
   data() {
794
   data() {
790
     return {
795
     return {
791
-      tableContainHeight:null,
796
+      // tableContainHeight:"calc(100% - 50px)",
792
       value1:false,
797
       value1:false,
793
       modename_value:true,
798
       modename_value:true,
794
       weeks:weekOptions,
799
       weeks:weekOptions,
926
   },
931
   },
927
 
932
 
928
   watch: {
933
   watch: {
929
-    schedule_type:function (){
930
-      this.isShowShangWu = false
931
-      this.isShowXiaWu = false
932
-      this.isShowWanShang = false
933
-      if(this.schedule_type.length > 0) {
934
-        for (let i = 0; i < this.schedule_type.length; i++) {
935
-          if (this.schedule_type[i] == 1) {
936
-            this.isShowShangWu = true
937
-          } else if (this.schedule_type[i] == 2) {
938
-            this.isShowXiaWu = true
939
-          } else if (this.schedule_type[i] == 3) {
940
-            this.isShowWanShang = true
941
-          }
942
-        }
943
-      }else{
944
-        this.isShowShangWu = true
945
-        this.isShowXiaWu = true
946
-        this.isShowWanShang = true
947
-      }
934
+    // schedule_type:function (){
935
+    //   this.isShowShangWu = false
936
+    //   this.isShowXiaWu = false
937
+    //   this.isShowWanShang = false
938
+    //   if(this.schedule_type.length > 0) {
939
+    //     for (let i = 0; i < this.schedule_type.length; i++) {
940
+    //       if (this.schedule_type[i] == 1) {
941
+    //         this.isShowShangWu = true
942
+    //       } else if (this.schedule_type[i] == 2) {
943
+    //         this.isShowXiaWu = true
944
+    //       } else if (this.schedule_type[i] == 3) {
945
+    //         this.isShowWanShang = true
946
+    //       }
947
+    //     }
948
+    //   }else{
949
+    //     this.isShowShangWu = true
950
+    //     this.isShowXiaWu = true
951
+    //     this.isShowWanShang = true
952
+    //   }
948
 
953
 
949
-    },
954
+    // },
950
      week_type:function () {
955
      week_type:function () {
951
       // console.log(this.week_type)
956
       // console.log(this.week_type)
952
       // console.log(this.schedule_type)
957
       // console.log(this.schedule_type)
1068
     // 班次选择
1073
     // 班次选择
1069
     scheduleType_change(val){
1074
     scheduleType_change(val){
1070
       console.log('vvvvvv',val);
1075
       console.log('vvvvvv',val);
1076
+      this.$emit('event2', val)
1071
       if(val==1){
1077
       if(val==1){
1072
         this.isShowShangWu = true
1078
         this.isShowShangWu = true
1073
         this.isShowXiaWu = false
1079
         this.isShowXiaWu = false
1095
       }else{
1101
       }else{
1096
          sessionStorage.setItem('value1',this.value1)
1102
          sessionStorage.setItem('value1',this.value1)
1097
       }
1103
       }
1104
+      this.$emit('guanliu_show',this.value1)
1098
         console.log('this.value1',this.value1);
1105
         console.log('this.value1',this.value1);
1099
         console.log('flag',flag);
1106
         console.log('flag',flag);
1100
     },
1107
     },
1409
         return "";
1416
         return "";
1410
       } else {
1417
       } else {
1411
         if (this.weekTime == "lastWeek") {
1418
         if (this.weekTime == "lastWeek") {
1412
-          // if(column.label == '晚' ){
1413
-          //   return 'evening_border schedule-table-cell-disable'
1414
-          // }
1419
+           if(column.label == '晚' ){
1420
+             return 'evening_border schedule-table-cell-disable'
1421
+           }
1415
           if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1422
           if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1416
             return 'hover-td schedule-table-cell-disable'
1423
             return 'hover-td schedule-table-cell-disable'
1417
           }else {
1424
           }else {
1426
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1433
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1427
               return 'hover-td schedule-table-cell-disable'
1434
               return 'hover-td schedule-table-cell-disable'
1428
             }
1435
             }
1429
-            // if(column.label == '晚'){
1430
-            //   return 'evening_border schedule-table-cell-disable'
1431
-            // }
1436
+             if(column.label == '晚'){
1437
+               return 'evening_border schedule-table-cell-disable'
1438
+             }
1432
             return "schedule-table-cell-disable";
1439
             return "schedule-table-cell-disable";
1433
           }else{
1440
           }else{
1434
             // 分日期
1441
             // 分日期
1435
-            // if(column.label == '晚' ){
1436
-            //     return 'evening_border'
1437
-            // }
1442
+            if(column.label == '晚' ){
1443
+                return 'evening_border'
1444
+            }
1438
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1445
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1439
               return 'hover-td '
1446
               return 'hover-td '
1440
             }else {
1447
             }else {
1449
       }
1456
       }
1450
       return "";
1457
       return "";
1451
     },
1458
     },
1452
-    // cellstyle({ row, column, rowIndex, columnIndex }){
1453
-    //   // 分区蓝线
1454
-    //   for(let i=0;i<this.subzone.length;i++){
1455
-    //     const subslice=this.subzone[i].jihaos.slice(-1)
1456
-    //     console.log('这是row',subslice);
1457
-    //     if(row.zone_id==subslice[0].zone_id && row.jihao_id == subslice[0].id ){
1458
-    //       // console.log('33333333333');
1459
-    //       return 'border-top: 1px solid aqua;'
1460
-    //     }
1461
-    //   }
1462
-    // },
1459
+    cellstyle({ row, column, rowIndex, columnIndex }){
1460
+      // 分区蓝线
1461
+      // for(let i=0;i<this.subzone.length;i++){
1462
+      //   const subslice=this.subzone[i].jihaos.slice(-1)
1463
+      //   // console.log('这是row',subslice);
1464
+      //   if(row.zone_id==subslice[0].zone_id && row.jihao_id == subslice[0].id ){
1465
+      //     // console.log('33333333333',subslice);
1466
+      //     return 'border-top: 1px solid red;'
1467
+      //   }
1468
+      // }
1469
+    },
1463
 
1470
 
1464
     changeSearchContagion(id) {
1471
     changeSearchContagion(id) {
1465
       this.patientQuery.contagion = id;
1472
       this.patientQuery.contagion = id;
3363
     },
3370
     },
3364
     changeSchedule_type(val) {
3371
     changeSchedule_type(val) {
3365
       this.$emit('event2', val)
3372
       this.$emit('event2', val)
3373
+      console.log('yyyyy',val);
3366
       this.schedule_type = val
3374
       this.schedule_type = val
3367
       this.getSchedules()
3375
       this.getSchedules()
3368
     },
3376
     },
3374
     ScheduleItem
3382
     ScheduleItem
3375
   },
3383
   },
3376
   mounted() {
3384
   mounted() {
3377
-
3385
+    new Drag(this.$refs.main);
3378
     this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 120;
3386
     this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 120;
3379
 
3387
 
3380
     // var theType = this.weekType(this.weekTime);
3388
     // var theType = this.weekType(this.weekTime);
3499
     background-color: #409eff !important;
3507
     background-color: #409eff !important;
3500
     color: #fff;
3508
     color: #fff;
3501
   }
3509
   }
3502
-  .Infectious_disease{
3503
-    background-color: red !important;
3504
-    color: white;
3505
-    border-left: 1px solid aqua;
3506
-    border-right: 1px solid aqua;
3507
-  }
3508
-  .border_bott{
3509
-    border-left: 1px solid aqua;
3510
-    border-right: 1px solid aqua;
3511
-  }
3512
-  .border_left{
3513
-    border-left: 1px solid aqua;
3514
-  }
3515
-  .evening_border{
3516
-    border-right: 1px solid aqua;
3517
-  }
3510
+  // .Infectious_disease{
3511
+  //   background-color: red !important;
3512
+  //   color: white;
3513
+  //   border-left: 1px solid aqua;
3514
+  //   border-right: 1px solid aqua;
3515
+  // }
3516
+  // .border_bott{
3517
+  //   border-left: 1px solid aqua;
3518
+  //   border-right: 1px solid aqua;
3519
+  // }
3520
+  // .border_left{
3521
+  //   // border-left: 1px solid aqua;
3522
+  // }
3523
+  // .evening_border{
3524
+  //   border-right: 1px solid rgb(236, 41, 41);
3525
+  // }
3518
 
3526
 
3519
 }
3527
 }
3520
 .backPurple{
3528
 .backPurple{
3539
 //   padding: 0px 0px !important;
3547
 //   padding: 0px 0px !important;
3540
 // }
3548
 // }
3541
 </style>
3549
 </style>
3550
+