See999 4 年前
父节点
当前提交
7fbd235e52

+ 45 - 9
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

@@ -96,7 +96,8 @@
96 96
       <template
97 97
         v-if="
98 98
           org_template_info.template_id == 6 ||
99
-            org_template_info.template_id == 10 ||  org_template_info.template_id == 11
99
+            org_template_info.template_id == 10 ||
100
+            org_template_info.template_id == 11
100 101
         "
101 102
       >
102 103
         <el-button
@@ -139,6 +140,16 @@
139 140
           >打印</el-button
140 141
         >
141 142
       </template>
143
+      <template v-if="org_template_info.template_id == 12">
144
+        <el-button
145
+          :loading="loading"
146
+          size="small"
147
+          icon="el-icon-printer"
148
+          @click="printThisPage"
149
+          type="primary"
150
+          >打印</el-button
151
+        >
152
+      </template>
142 153
     </div>
143 154
     <div class="app-container ">
144 155
       <!--<div class="order-print-btn"-->
@@ -207,15 +218,19 @@
207 218
         v-if="org_template_info.template_id == 10"
208 219
       ></DialysisPrintOrderTen>
209 220
 
210
-    <DialysisPrintOrderNine
221
+      <DialysisPrintOrderNine
211 222
         v-bind:childResponse="childResponse"
212 223
         v-if="org_template_info.template_id == 9"
213 224
       ></DialysisPrintOrderNine>
214 225
 
215
-    <DialysisPrintOrderEleven
216
-      v-bind:childResponse="childResponse"
217
-      v-if="org_template_info.template_id == 11"
218
-    ></DialysisPrintOrderEleven>
226
+      <DialysisPrintOrderEleven
227
+        v-bind:childResponse="childResponse"
228
+        v-if="org_template_info.template_id == 11"
229
+      ></DialysisPrintOrderEleven>
230
+      <DialysisPrintOrderTwelve
231
+        v-bind:childResponse="childResponse"
232
+        v-if="org_template_info.template_id == 12"
233
+      ></DialysisPrintOrderTwelve>
219 234
     </div>
220 235
   </div>
221 236
 </template>
@@ -237,11 +252,13 @@ import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
237 252
 import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
238 253
 import print from "print-js";
239 254
 import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
240
-import DialysisPrintOrderEleven from './template/DialysisPrintOrderEleven'
255
+import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
256
+import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
241 257
 
242 258
 export default {
243 259
   name: "dialysisPrintOrder",
244 260
   components: {
261
+    DialysisPrintOrderTwelve,
245 262
     DialysisPrintOrderEleven,
246 263
     DialysisPrintOrderTen,
247 264
     DialysisPrintOrderOne,
@@ -381,7 +398,7 @@ export default {
381 398
       const style =
382 399
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
383 400
       const style2 =
384
-        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
401
+        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
385 402
 
386 403
       // const style3 =
387 404
       //   '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 5px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
@@ -430,7 +447,8 @@ export default {
430 447
         });
431 448
       } else if (
432 449
         this.org_template_info.template_id == 6 ||
433
-        this.org_template_info.template_id == 10 ||  this.org_template_info.template_id == 11
450
+        this.org_template_info.template_id == 10 ||
451
+        this.org_template_info.template_id == 11
434 452
       ) {
435 453
         printJS({
436 454
           printable: "dialysis-print-box-1",
@@ -459,6 +477,13 @@ export default {
459 477
           style: style5,
460 478
           scanStyles: false
461 479
         });
480
+      } else if (this.org_template_info.template_id == 12) {
481
+        printJS({
482
+          printable: "dialysis-print-box",
483
+          type: "html",
484
+          style: style,
485
+          scanStyles: false
486
+        });
462 487
       }
463 488
     },
464 489
     printThisOnePage() {
@@ -1079,4 +1104,15 @@ export default {
1079 1104
 .print-template-two tr {
1080 1105
   line-height: 30px;
1081 1106
 }
1107
+
1108
+.table-box1 {
1109
+  border: 1px solid #000;
1110
+  width: 100%;
1111
+  line-height: 30px;
1112
+  font-size: 14px;
1113
+  border-collapse: collapse;
1114
+}
1115
+.table-box1 tr {
1116
+  border-bottom: 1px solid #000;
1117
+}
1082 1118
 </style>

+ 26 - 28
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue 查看文件

@@ -1383,7 +1383,7 @@
1383 1383
                   </tr> -->
1384 1384
                   <tr>
1385 1385
                     <td width="70">拔针压迫:</td>
1386
-                    <td width="350">
1386
+                    <td width="300">
1387 1387
                       <div style="display:flex;justify-content:space-between;">
1388 1388
                         <label-box
1389 1389
                           showValue="自己压迫"
@@ -1405,12 +1405,6 @@
1405 1405
                             afterdialysis.hemostasis_opera == 1 ? true : false
1406 1406
                           "
1407 1407
                         ></label-box>
1408
-                        <label-box
1409
-                          showValue="内瘘止血带"
1410
-                          :isChecked="
1411
-                            afterdialysis.hemostasis_opera == 4 ? true : false
1412
-                          "
1413
-                        ></label-box>
1414 1408
                       </div>
1415 1409
                     </td>
1416 1410
                     <td width="50"></td>
@@ -1669,24 +1663,24 @@
1669 1663
                         ></label-box>
1670 1664
                       </div>
1671 1665
                     </td>
1672
-                    <!--<td width="80"></td>-->
1673
-                    <!--<td width="60">管路:</td>-->
1674
-                    <!--<td width="220">-->
1675
-                      <!--<div style="display:flex;justify-content:space-between;">-->
1676
-                        <!--<label-box showValue="无" :isChecked="-->
1677
-                            <!--afterdialysis.channel == 1 ? true : false-->
1678
-                          <!--"></label-box>-->
1679
-                        <!--<label-box showValue="+" :isChecked="-->
1680
-                            <!--afterdialysis.channel == 2 ? true : false-->
1681
-                          <!--"></label-box>-->
1682
-                        <!--<label-box showValue="+ +" :isChecked="-->
1683
-                            <!--afterdialysis.channel == 3  ? true : false-->
1684
-                          <!--"></label-box>-->
1685
-                        <!--<label-box showValue="+ + +" :isChecked="-->
1686
-                            <!--afterdialysis.channel == 4 ? true : false-->
1687
-                          <!--"></label-box>-->
1688
-                      <!--</div>-->
1689
-                    <!--</td>-->
1666
+                    <td width="80"></td>
1667
+                    <td width="60">管路:</td>
1668
+                    <td width="220">
1669
+                      <div style="display:flex;justify-content:space-between;">
1670
+                        <label-box showValue="无" :isChecked="
1671
+                            afterdialysis.channel == 1 ? true : false
1672
+                          "></label-box>
1673
+                        <label-box showValue="+" :isChecked="
1674
+                            afterdialysis.channel == 2 ? true : false
1675
+                          "></label-box>
1676
+                        <label-box showValue="+ +" :isChecked="
1677
+                            afterdialysis.channel == 3  ? true : false
1678
+                          "></label-box>
1679
+                        <label-box showValue="+ + +" :isChecked="
1680
+                            afterdialysis.channel == 4 ? true : false
1681
+                          "></label-box>
1682
+                      </div>
1683
+                    </td>
1690 1684
                     <td></td>
1691 1685
                   </tr>
1692 1686
                 </tbody>
@@ -1977,9 +1971,13 @@
1977 1971
             <td width="30">医生</td>
1978 1972
             <td width="80">
1979 1973
               <div class="under-line">
1980
-                &nbsp
1981
-                <span v-if=" setAdminUserES(prescription.creater) == '' " >{{ getAdminUser(prescription.creater)}}</span >
1982
-                <img style="height:20px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else  />
1974
+                &nbsp;
1975
+                <span v-if="doctorForm.url === ''">{{
1976
+                  doctorForm.doctor
1977
+                }}</span>
1978
+                <span v-if="doctorForm.url !== ''">
1979
+                  <img style="height:20px" :src="doctorForm.url" />
1980
+                </span>
1983 1981
               </div>
1984 1982
             </td>
1985 1983
             <td width="50">治疗护士</td>

文件差异内容过多而无法显示
+ 2332 - 0
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue


+ 11 - 5
src/xt_pages/management/components/UserForm.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div id="user-form">
3 3
     <el-row class="c">
4
-      <el-col :span="11">
4
+      <el-col :span="12">
5 5
         <span class="machineClass">日期查询:</span>
6 6
         <el-date-picker
7 7
           v-model="form.start_time"
@@ -10,7 +10,7 @@
10 10
           placeholder="请选择"
11 11
           format="yyyy-MM-dd"
12 12
           value-format="yyyy-MM-dd"
13
-          style="width:145px"
13
+          style="width:130px"
14 14
         ></el-date-picker
15 15
         >-
16 16
         <el-date-picker
@@ -20,7 +20,7 @@
20 20
           placeholder="请选择"
21 21
           format="yyyy-MM-dd"
22 22
           value-format="yyyy-MM-dd"
23
-          style="width:145px"
23
+          style="width:130px"
24 24
         ></el-date-picker>
25 25
       </el-col>
26 26
       <el-col :span="5">
@@ -34,9 +34,9 @@
34 34
           ></el-option>
35 35
         </el-select>
36 36
       </el-col>
37
-      <el-col :span="6">
37
+      <el-col :span="5">
38 38
         <span class="machineClass">机位号:</span>
39
-        <el-select style="width:145px" v-model="form.bed">
39
+        <el-select style="width:110px" v-model="form.bed">
40 40
           <el-option
41 41
             v-for="item in this.bedNumberTwo"
42 42
             :key="item.id"
@@ -2398,5 +2398,11 @@ export default {
2398 2398
   .el-dialog__footer {
2399 2399
     text-align: right;
2400 2400
   }
2401
+  .el-input--prefix .el-input__inner {
2402
+    padding-left: 15px;
2403
+  }
2404
+  .el-input--prefix .el-input__inner {
2405
+    padding-right: 15px;
2406
+  }
2401 2407
 }
2402 2408
 </style>

+ 3 - 16
src/xt_pages/role/components/EditRole.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <el-dialog
3 3
     title="新增员工"
4
-    width="750px"
4
+    width="660px"
5 5
     :visible.sync="visible"
6 6
     :before-close="_close"
7 7
   >
@@ -78,18 +78,6 @@
78 78
 
79 79
           <el-input  v-model="ruleForm.phone"  maxlength="11"></el-input>
80 80
         </el-form-item>
81
-        <el-form-item label="角色" prop="role" label-width="70px">
82
-
83
-           <el-checkbox-group v-model="ruleForm.role">
84
-            <el-checkbox label="子管理员" name="type"></el-checkbox>
85
-            <el-checkbox label="医生" name="type"></el-checkbox>
86
-            <el-checkbox label="护士" name="type"></el-checkbox>
87
-            <el-checkbox label="技师" name="type"></el-checkbox>
88
-            <el-checkbox label="运营" name="type"></el-checkbox>
89
-            <el-checkbox label="库存" name="type"></el-checkbox>
90
-            <el-checkbox label="院长" name="type"></el-checkbox>
91
-          </el-checkbox-group>
92
-        </el-form-item>
93 81
 
94 82
         <el-form-item label="职称 : " label-width="50px">
95 83
           <el-select v-model="ruleForm.user_type" placeholder="用户类型">
@@ -172,7 +160,7 @@
172 160
         rules: {
173 161
           phone: [{ required: true, validator: checkMobile, trigger: 'blur' }],
174 162
           name: [{ required: true, validator: checkName, trigger: 'blur' }],
175
-          intro: [{ required: true, message: '请输入角色说明', trigger: 'blur' }],
163
+          intro: [{ required: true, message: '请输入角色说明', trigger: 'blur' }]
176 164
         },
177 165
         admin_user: [],
178 166
         is_check_admin_user: [],
@@ -214,8 +202,7 @@
214 202
           name: [
215 203
             { required: true, message: '请输入用户名字', trigger: 'blur' },
216 204
             { max: 10, message: '10个字以内', trigger: 'blur' }
217
-          ],
218
-          role: [{ required: true, message: '请选择角色', trigger: 'blur' }]
205
+          ]
219 206
         }
220 207
       }
221 208
     },