Parcourir la source

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

test_user il y a 2 ans
Parent
révision
35710e654b

Fichier diff supprimé car celui-ci est trop grand
+ 1084 - 0
src/xt_pages/device/objectTableDisinfectTwo.vue


+ 86 - 69
src/xt_pages/workforce/components/tableData.vue Voir le fichier

@@ -74,77 +74,79 @@
74 74
       </div>
75 75
     </div>
76 76
 
77
-    <el-dialog :visible.sync="searchTableVisible" width="80%">
78
-      <el-table
79
-        :data="schedulePatients"
80
-        :header-cell-style="{
81
-          backgroundColor: 'rgb(245, 247, 250)',
82
-          color: '#606266'
83
-        }"
84
-        :row-style="{ color: '#303133' }"
85
-        style="width: 100%"
86
-        border
87
-      >
88
-        <el-table-column label="姓名" width="120">
89
-          <template slot-scope="scope">
90
-            {{ scope.row.patient }}
91
-          </template>
92
-        </el-table-column>
93
-        <el-table-column label="透析日期" width="200">
94
-          <template slot-scope="scope">
95
-            {{ getDialysisDate(scope.row) }}
96
-          </template>
97
-        </el-table-column>
98
-        <el-table-column label="分区">
99
-          <template slot-scope="scope">
100
-            {{ scope.row.zone.name }}
101
-          </template>
102
-        </el-table-column>
103
-        <el-table-column label="班次" width="80">
104
-          <template slot-scope="scope">
105
-            {{ getSchedulesType(scope.row.schedule_type,scope.row) }}
106
-          </template>
107
-        </el-table-column>
108
-        <el-table-column label="机号" width="80">
109
-          <template slot-scope="scope">
110
-            {{ scope.row.number.number }}
111
-          </template>
112
-        </el-table-column>
113
-        <el-table-column label="透析模式" width="100">
114
-          <template slot-scope="scope">
115
-            {{ scope.row.mode.name }}
116
-          </template>
117
-        </el-table-column>
118
-        <el-table-column label="操作" align="center" width="300">
119
-          <template slot-scope="scope">
120
-            <span v-if="now_time <=scope.row.schedule_date">
77
+    <el-dialog :visible.sync="searchTableVisible" width="80%" class="eldialog">
78
+      <div style="position: relative;">
79
+        <el-table
80
+          :data="schedulePatients"
81
+          :header-cell-style="{
82
+            backgroundColor: 'rgb(245, 247, 250)',
83
+            color: '#606266'
84
+          }"
85
+          :row-style="{ color: '#303133' }"
86
+          style="width: 100%"
87
+          border
88
+        >
89
+          <el-table-column label="姓名" width="120">
90
+            <template slot-scope="scope">
91
+              {{ scope.row.patient }}
92
+            </template>
93
+          </el-table-column>
94
+          <el-table-column label="透析日期" width="200">
95
+            <template slot-scope="scope">
96
+              {{ getDialysisDate(scope.row) }}
97
+            </template>
98
+          </el-table-column>
99
+          <el-table-column label="分区">
100
+            <template slot-scope="scope">
101
+              {{ scope.row.zone.name }}
102
+            </template>
103
+          </el-table-column>
104
+          <el-table-column label="班次" width="80">
105
+            <template slot-scope="scope">
106
+              {{ getSchedulesType(scope.row.schedule_type,scope.row) }}
107
+            </template>
108
+          </el-table-column>
109
+          <el-table-column label="机号" width="80">
110
+            <template slot-scope="scope">
111
+              {{ scope.row.number.number }}
112
+            </template>
113
+          </el-table-column>
114
+          <el-table-column label="透析模式" width="100">
115
+            <template slot-scope="scope">
116
+              {{ scope.row.mode.name }}
117
+            </template>
118
+          </el-table-column>
119
+          <el-table-column label="操作" align="center" width="300">
120
+            <template slot-scope="scope">
121
+              <span v-if="now_time <=scope.row.schedule_date">
122
+                <el-button
123
+                size="mini"
124
+                type="primary"
125
+                @click="CancelSchedule(scope.row.id)"
126
+              >
127
+                取消排班
128
+              </el-button>
121 129
               <el-button
122
-              size="mini"
123
-              type="primary"
124
-              @click="CancelSchedule(scope.row.id)"
125
-            >
126
-              取消排班
127
-            </el-button>
128
-            <el-button
129
-              size="mini"
130
-              type="primary"
131
-              @click="changeMachineNumber(scope.$index, scope.row)"
132
-            >
133
-              调整机号
134
-            </el-button>
135
-            <el-button
136
-              size="mini"
137
-              type="primary"
138
-              @click="changeMode(scope.$index, scope.row)"
139
-            >
140
-              调整模式
141
-            </el-button>
142
-            </span>
143
-
144
-          </template>
145
-        </el-table-column>
146
-      </el-table>
130
+                size="mini"
131
+                type="primary"
132
+                @click="changeMachineNumber(scope.$index, scope.row)"
133
+              >
134
+                调整机号
135
+              </el-button>
136
+              <el-button
137
+                size="mini"
138
+                type="primary"
139
+                @click="changeMode(scope.$index, scope.row)"
140
+              >
141
+                调整模式
142
+              </el-button>
143
+              </span>
144
+            </template>
145
+          </el-table-column>
146
+        </el-table>
147
+      </div>
147 148
     </el-dialog>
149
+    
148 150
     <div class="center-tab">
149 151
       <el-table
150 152
         :row-style="{ color: '#303133' }"
@@ -3328,6 +3330,21 @@ textarea{
3328 3330
 .backPurple{
3329 3331
   color: #f32424 !important;
3330 3332
 }
3333
+.eldialog{
3334
+  .el-dialog__headerbtn {
3335
+    // position: absolute;
3336
+    // top: 20px;
3337
+    // right: 20px;
3338
+    // padding: 0;
3339
+    // background: 0 0;
3340
+    // border: none;
3341
+    // outline: 0;
3342
+    // cursor: pointer;
3343
+    // font-size: 16px;
3344
+    z-index: 3 !important;
3345
+}
3346
+}
3347
+
3331 3348
 // .el-table td .cell{
3332 3349
 //   padding: 0px 0px !important;
3333 3350
 // }

+ 17 - 16
src/xt_pages/workforce/remind_print_setting_one.vue Voir le fichier

@@ -20,20 +20,21 @@
20 20
           <div class="table_panel" v-loding="loading"  element-loading-text="拼命加载中">
21 21
             <div v-for="(main_collection,index) in scheduleData" :key="index" :class="(org_id == 9671 || org_id == 10340) && parseInt((index+1)%8) == 0  ? 'page-break-after':''"
22 22
             style="display: inline-block; width: 42%; margin: 0px 35px 20px; 
23
+            box-sizing: border-box;
23 24
             border: 1px solid black;
24
-            box-sizing: border-box;">
25
+            ">
25 26
               <!-- <div style="display: flex;justify-content: space-between;flex-wrap: wrap;">
26 27
                 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 20px rgba(0, 0, 0, 0.06) inset; -->
27
-                <div class="signPrint" style="font-size:16px;  ">
28
+                <div class="signPrint" style="font-size:16px;width: 100%;padding:5px; word-wrap:break-word;">
28 29
                   <div style="font-size:24px;font-weight: 400;">姓名:
29 30
                     <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
30 31
                     <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
31
-                    <span v-if="type ==1 && printObj.name == 1">({{ main_collection.patient.dialysis_no }},
32
-                    <span> {{getGender(main_collection.patient.gender)}}</span> 
33
-                      {{getNewAge(main_collection.patient.id_card_no) }}岁</span> 
34
-                    <span v-if="type ==2 && printObj.name == 1">({{ main_collection.dialysis_no }},
35
-                    <span>{{getGender(main_collection.gender) }}</span>  
36
-                      {{getNewAge(main_collection.id_card_no) }}岁</span> 
32
+                    <span v-if="type ==1 && printObj.name == 1">({{ main_collection.patient.dialysis_no }},
33
+                    <span> {{getGender(main_collection.patient.gender)}},</span> 
34
+                      {{getNewAge(main_collection.patient.id_card_no) }}岁)</span> 
35
+                    <span v-if="type ==2 && printObj.name == 1">({{ main_collection.dialysis_no }},
36
+                    <span>{{getGender(main_collection.gender) }},</span>  
37
+                      {{getNewAge(main_collection.id_card_no) }}岁)</span> 
37 38
                     
38 39
                   </div>
39 40
                <div class="printCell">
@@ -381,7 +382,7 @@
381 382
       printAction: function() {
382 383
         const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
383 384
         const style1 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
384
-        const style2 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .page-break-after{page-break-after:always;}.signPrint{width:40%;float: left;margin-left: 5%; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; margin-bottom: 20px;padding: 20px 10px;} .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
385
+        const style2 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .page-break-after{page-break-after:always;} .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
385 386
         if (this.org_id == 9671 || this.org_id == 10340) {
386 387
           printJS({
387 388
             printable: 'print_content',
@@ -812,13 +813,13 @@
812 813
     }
813 814
   }
814 815
 }
815
-.signPrint{
816
-  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
817
-  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
818
-  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
819
-  // margin-bottom: 20px;
820
-  padding: 20px 5px;
821
-}
816
+// .signPrint{
817
+//   // -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
818
+//   // -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
819
+//   // box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
820
+//   // margin-bottom: 20px;
821
+//   // padding: 20px 5px;
822
+// }
822 823
 .printCell{
823 824
   span{
824 825
     display: inline-block;