Przeglądaj źródła

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

28169 10 miesięcy temu
rodzic
commit
ea20451ceb

+ 2 - 2
src/vendor/Export2Excel.js Wyświetl plik

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

+ 41 - 30
src/xt_pages/outpatientCharges/components/registerDialog.vue Wyświetl plik

@@ -757,40 +757,51 @@
757 757
                 that.$message.error(response.data.msg)
758 758
                 return false
759 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 807
             .catch(function(error) {

+ 1 - 0
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Wyświetl plik

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

+ 74 - 65
src/xt_pages/workforce/components/tableData.vue Wyświetl plik

@@ -244,28 +244,34 @@
244 244
     </el-dialog>
245 245
 
246 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 254
       <el-table
248 255
         :row-style="{ color: '#303133' }"
249 256
         :header-cell-style="{
250 257
           backgroundColor: 'rgb(245, 247, 250)',
251 258
           color: '#606266',
252
-          // border: '1px solid aqua',
253 259
         }"
254 260
         :fit="true"
255 261
         :data="scheduleZone"
256 262
         :span-method="objectSpanMethod"
257 263
         @cell-click="clickThis"
258 264
         @cell-mouse-enter="hoverMouse"
265
+        :cell-style ='cellstyle'
259 266
         :summary-method="getSummaries"
260 267
         show-summary
261 268
         :cell-class-name="cellClass"
262
-
263 269
         sum-text="总数"
264
-        :height="tableContainHeight"
270
+        height="600"
265 271
         ref="table"
266 272
         style="table-layout: fixed;"
267 273
       >
268
-<!-- :cell-style ='cellstyle' -->
274
+      <!-- :height="tableContainHeight" -->
269 275
         <el-table-column
270 276
           prop="area"
271 277
           label="分区"
@@ -286,9 +292,7 @@
286 292
           :label="' 周一(' + weekTitle[0] + ')'"
287 293
           v-if="isShowOne"
288 294
           align="center"
289
-
290 295
         >
291
-        <!-- :width="flexColumnWidth('Mon_M',scheduleZone)" -->
292 296
           <el-table-column  prop="Mon_M" label="上" min-width="40" align="center"  v-if="isShowShangWu" >
293 297
             <schedule-item
294 298
               slot-scope="scope"
@@ -521,7 +525,7 @@
521 525
               :schedulFlag="value1"
522 526
               :schedulMode="modename_value"
523 527
             >
524
-            <!--  -->
528
+
525 529
           </schedule-item>
526 530
           </el-table-column>
527 531
         </el-table-column>
@@ -733,6 +737,7 @@
733 737
 </template>
734 738
 
735 739
 <script>
740
+import Drag from '@/utils/move.js';
736 741
 import { uParseTime } from "@/utils/tools";
737 742
 import print from 'print-js'
738 743
 const moment = require('moment')
@@ -788,7 +793,7 @@ export default {
788 793
   },
789 794
   data() {
790 795
     return {
791
-      tableContainHeight:null,
796
+      // tableContainHeight:"calc(100% - 50px)",
792 797
       value1:false,
793 798
       modename_value:true,
794 799
       weeks:weekOptions,
@@ -926,27 +931,27 @@ export default {
926 931
   },
927 932
 
928 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 955
      week_type:function () {
951 956
       // console.log(this.week_type)
952 957
       // console.log(this.schedule_type)
@@ -1068,6 +1073,7 @@ export default {
1068 1073
     // 班次选择
1069 1074
     scheduleType_change(val){
1070 1075
       console.log('vvvvvv',val);
1076
+      this.$emit('event2', val)
1071 1077
       if(val==1){
1072 1078
         this.isShowShangWu = true
1073 1079
         this.isShowXiaWu = false
@@ -1095,6 +1101,7 @@ export default {
1095 1101
       }else{
1096 1102
          sessionStorage.setItem('value1',this.value1)
1097 1103
       }
1104
+      this.$emit('guanliu_show',this.value1)
1098 1105
         console.log('this.value1',this.value1);
1099 1106
         console.log('flag',flag);
1100 1107
     },
@@ -1409,9 +1416,9 @@ export default {
1409 1416
         return "";
1410 1417
       } else {
1411 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 1422
           if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1416 1423
             return 'hover-td schedule-table-cell-disable'
1417 1424
           }else {
@@ -1426,15 +1433,15 @@ export default {
1426 1433
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1427 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 1439
             return "schedule-table-cell-disable";
1433 1440
           }else{
1434 1441
             // 分日期
1435
-            // if(column.label == '晚' ){
1436
-            //     return 'evening_border'
1437
-            // }
1442
+            if(column.label == '晚' ){
1443
+                return 'evening_border'
1444
+            }
1438 1445
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1439 1446
               return 'hover-td '
1440 1447
             }else {
@@ -1449,17 +1456,17 @@ export default {
1449 1456
       }
1450 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 1471
     changeSearchContagion(id) {
1465 1472
       this.patientQuery.contagion = id;
@@ -3363,6 +3370,7 @@ export default {
3363 3370
     },
3364 3371
     changeSchedule_type(val) {
3365 3372
       this.$emit('event2', val)
3373
+      console.log('yyyyy',val);
3366 3374
       this.schedule_type = val
3367 3375
       this.getSchedules()
3368 3376
     },
@@ -3374,7 +3382,7 @@ export default {
3374 3382
     ScheduleItem
3375 3383
   },
3376 3384
   mounted() {
3377
-
3385
+    new Drag(this.$refs.main);
3378 3386
     this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 120;
3379 3387
 
3380 3388
     // var theType = this.weekType(this.weekTime);
@@ -3499,22 +3507,22 @@ textarea{
3499 3507
     background-color: #409eff !important;
3500 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 3528
 .backPurple{
@@ -3539,3 +3547,4 @@ textarea{
3539 3547
 //   padding: 0px 0px !important;
3540 3548
 // }
3541 3549
 </style>
3550
+