Browse Source

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

csx 2 years ago
parent
commit
68ae41d1e3

+ 8 - 0
src/api/his/advice.js View File

15
     params: params
15
     params: params
16
   })
16
   })
17
 }
17
 }
18
+
19
+export function updatePharmacyBaseDrug(params) {
20
+  return request({
21
+    url: '/api/advice/updatepharmacybasedrug',
22
+    method: 'Get',
23
+    params: params
24
+  })
25
+}

+ 37 - 4
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

108
           org_template_info.template_id == 6 ||
108
           org_template_info.template_id == 6 ||
109
           org_template_info.template_id == 10 ||
109
           org_template_info.template_id == 10 ||
110
           org_template_info.template_id == 11 ||
110
           org_template_info.template_id == 11 ||
111
-          org_template_info.template_id == 50
111
+          org_template_info.template_id == 50 || 
112
+          org_template_info.template_id == 52
112
         "
113
         "
113
       >
114
       >
114
         <el-button
115
         <el-button
675
           >打印</el-button
676
           >打印</el-button
676
         >
677
         >
677
       </template>
678
       </template>
679
+      <template v-if="org_template_info.template_id == 53">
680
+        <el-button
681
+          :loading="loading"
682
+          size="small"
683
+          icon="el-icon-printer"
684
+          @click="printThisPage"
685
+          type="primary"
686
+          >打印</el-button
687
+        >
688
+      </template>
678
     </div>
689
     </div>
679
     <div class="app-container" style="min-height: 0">
690
     <div class="app-container" style="min-height: 0">
680
       <!--<div class="order-print-btn"-->
691
       <!--<div class="order-print-btn"-->
1058
             v-if="org_template_info.template_id == 51"
1069
             v-if="org_template_info.template_id == 51"
1059
           >
1070
           >
1060
           </DialysisPrintOrderFiftyOne>
1071
           </DialysisPrintOrderFiftyOne>
1072
+          <DialysisPrintOrderFiftyTwo
1073
+            v-bind:childResponse="childResponse"
1074
+            v-if="org_template_info.template_id == 52"
1075
+          >
1076
+          </DialysisPrintOrderFiftyTwo>
1077
+          <DialysisPrintOrderFiftyThree
1078
+            v-bind:childResponse="childResponse"
1079
+            v-if="org_template_info.template_id == 53"
1080
+          >
1081
+          </DialysisPrintOrderFiftyThree>
1061
         </div>
1082
         </div>
1062
       </el-container>
1083
       </el-container>
1063
     </div>
1084
     </div>
1127
 import DialysisPrintOrderFortyNine from "./template/DialysisPrintOrderFortyNine";
1148
 import DialysisPrintOrderFortyNine from "./template/DialysisPrintOrderFortyNine";
1128
 import DialysisPrintOrderFifty from "./template/DialysisPrintOrderFifty";
1149
 import DialysisPrintOrderFifty from "./template/DialysisPrintOrderFifty";
1129
 import DialysisPrintOrderFiftyOne from "./template/DialysisPrintOrderFiftyOne";
1150
 import DialysisPrintOrderFiftyOne from "./template/DialysisPrintOrderFiftyOne";
1151
+import DialysisPrintOrderFiftyTwo from "./template/DialysisPrintOrderFiftyTwo"
1152
+import DialysisPrintOrderFiftyThree from "./template/DialysisPrintOrderFiftyThree"
1130
 export default {
1153
 export default {
1131
   name: "dialysisPrintOrder",
1154
   name: "dialysisPrintOrder",
1132
   components: {
1155
   components: {
1156
+    DialysisPrintOrderFiftyThree,
1157
+    DialysisPrintOrderFiftyTwo,
1133
     DialysisPrintOrderFiftyOne,
1158
     DialysisPrintOrderFiftyOne,
1134
     DialysisPrintOrderFifty,
1159
     DialysisPrintOrderFifty,
1135
     DialysisPrintOrderFortyNine,
1160
     DialysisPrintOrderFortyNine,
1341
         '@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;}';
1366
         '@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;}';
1342
       const style2 =
1367
       const style2 =
1343
       // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1368
       // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1344
-        '@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; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .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;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}';
1369
+        '@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; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;}.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;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}';
1345
       const style3 =
1370
       const style3 =
1346
         '@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:16px;border-color: #000;}.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 #000;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;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
1371
         '@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:16px;border-color: #000;}.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 #000;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;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
1347
       // const style3 =
1372
       // const style3 =
1409
         this.org_template_info.template_id == 11 ||
1434
         this.org_template_info.template_id == 11 ||
1410
         this.org_template_info.template_id == 49 ||
1435
         this.org_template_info.template_id == 49 ||
1411
         this.org_template_info.template_id == 50 ||
1436
         this.org_template_info.template_id == 50 ||
1412
-        this.org_template_info.template_id == 51
1437
+        this.org_template_info.template_id == 51 ||
1438
+        this.org_template_info.template_id == 52
1413
       ) {
1439
       ) {
1414
         printJS({
1440
         printJS({
1415
           printable: "dialysis-print-box-1",
1441
           printable: "dialysis-print-box-1",
1693
           style: style11,
1719
           style: style11,
1694
           scanStyles: false,
1720
           scanStyles: false,
1695
         });
1721
         });
1696
-      } 
1722
+      } else if (this.org_template_info.template_id == 53) {
1723
+        printJS({
1724
+          printable: "dialysis-print-box",
1725
+          type: "html",
1726
+          style: style,
1727
+          scanStyles: false,
1728
+        });
1729
+      }
1697
     },
1730
     },
1698
     printThisOnePage() {
1731
     printThisOnePage() {
1699
       var ptime = Math.round(new Date().getTime() / 1000);
1732
       var ptime = Math.round(new Date().getTime() / 1000);

File diff suppressed because it is too large
+ 2665 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue


File diff suppressed because it is too large
+ 2274 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyTwo.vue


+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

120
           </div>
120
           </div>
121
         </div>
121
         </div>
122
 
122
 
123
-        <div class="row" :style="this.totollength >= 13 ? 'margin-bottom:70px;' : ''">
123
+        <div class="row" :style="this.totollength > 13 ? 'margin-bottom:400px;' : ''">
124
           <table class="proj_table">
124
           <table class="proj_table">
125
             <tbody>
125
             <tbody>
126
               <tr>
126
               <tr>
722
             </tbody>
722
             </tbody>
723
           </table>
723
           </table>
724
         </div>
724
         </div>
725
-        <template v-if="this.totollength >= 13">
725
+        <template v-if="this.totollength > 13">
726
           <div style="display:inline-block;width:100%;text-align:center;">
726
           <div style="display:inline-block;width:100%;text-align:center;">
727
             <div class="order-yy-name" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">
727
             <div class="order-yy-name" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">
728
               {{ orgname }}
728
               {{ orgname }}

+ 7 - 2
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue View File

362
                       <td width="100">BP<br />mmHg</td>
362
                       <td width="100">BP<br />mmHg</td>
363
                       <td width="60">静脉压/动脉压<br />mmHg</td>
363
                       <td width="60">静脉压/动脉压<br />mmHg</td>
364
                       <td width="80">血流量<br />ml/min</td>
364
                       <td width="80">血流量<br />ml/min</td>
365
-                      <td width="90">超滤量累计L</td>
365
+                      <td width="90" v-if="org_id!=10210">超滤量累计L</td>
366
+                      <td width="90" v-else>超滤量累计ml</td>
366
                       <td width="90">置换液流量ml/h</td>
367
                       <td width="90">置换液流量ml/h</td>
367
                       <td width="80">钠浓度<br />mmol/L</td>
368
                       <td width="80">钠浓度<br />mmol/L</td>
368
                       <td width="240">
369
                       <td width="240">
505
                       <td width="100">BP<br />mmHg</td>
506
                       <td width="100">BP<br />mmHg</td>
506
                       <td width="60">静脉压/动脉压<br />mmHg</td>
507
                       <td width="60">静脉压/动脉压<br />mmHg</td>
507
                       <td width="80">血流量<br />ml/min</td>
508
                       <td width="80">血流量<br />ml/min</td>
508
-                      <td width="90">超滤量累计L</td>
509
+                      <td width="90" v-if="org_id!=10210">超滤量累计L</td>
510
+                      <td width="90" v-else>超滤量累计ml</td>
511
+                 
509
                       <td width="90">置换液流量ml/h</td>
512
                       <td width="90">置换液流量ml/h</td>
510
                       <td width="80">钠浓度<br />mmol/L</td>
513
                       <td width="80">钠浓度<br />mmol/L</td>
511
                       <td width="240">
514
                       <td width="240">
1354
       advice_groups: [],
1357
       advice_groups: [],
1355
       advice_groups_2: [],
1358
       advice_groups_2: [],
1356
       print_length: 0,
1359
       print_length: 0,
1360
+      org_id:0,
1357
 
1361
 
1358
       AlPanel: {
1362
       AlPanel: {
1359
         id: 0,
1363
         id: 0,
1987
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1991
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1988
 
1992
 
1989
     var xtuser = this.$store.getters.xt_user;
1993
     var xtuser = this.$store.getters.xt_user;
1994
+    this.org_id = xtuser.org_id
1990
     this.orgname = xtuser.org.org_name;
1995
     this.orgname = xtuser.org.org_name;
1991
     // this.orgname = "遂溪方济医院";
1996
     // this.orgname = "遂溪方济医院";
1992
     this.modeOptions = this.$store.getters.treatment_mode;
1997
     this.modeOptions = this.$store.getters.treatment_mode;

+ 83 - 11
src/xt_pages/stock/test.vue View File

72
       </div>
72
       </div>
73
       <div class="mainRight">
73
       <div class="mainRight">
74
         <el-tabs v-model="titleType">
74
         <el-tabs v-model="titleType">
75
+           <el-button type="primary" @click="toSend">发药</el-button>
75
           <el-tab-pane label="明细" name="明细">
76
           <el-tab-pane label="明细" name="明细">
76
-           
77
+            
77
            <el-table
78
            <el-table
78
             :data="tableData"
79
             :data="tableData"
79
             border
80
             border
80
             style="width: 100%">
81
             style="width: 100%">
81
-            <el-table-column prop="date" label="序号" width="180">
82
+            <el-table-column prop="date" label="序号" width="180" align="center">
82
               <template slot-scope="scope">
83
               <template slot-scope="scope">
83
-
84
+                 {{scope.$index + 1}}
84
               </template>
85
               </template>
85
             </el-table-column>
86
             </el-table-column>
86
-            <el-table-column  prop="name" label="单据编码" width="180">
87
+           
88
+            <el-table-column prop="address" label="患者姓名" align="center">
89
+               <template slot-scope="scope">
90
+                 {{getPatientName(scope.row.patient_id)}}
91
+              </template>
87
             </el-table-column>
92
             </el-table-column>
88
-            <el-table-column prop="address" label="患者姓名">
93
+            <el-table-column prop="address" label="单次用量" align="center">
94
+              <template  slot-scope="scope">
95
+                 {{scope.row.single_dose}}
96
+               </template>
89
             </el-table-column>
97
             </el-table-column>
90
-            <el-table-column prop="address" label="单次用量">
98
+             <el-table-column prop="address" label="用法" align="center">
99
+               <template  slot-scope="scope">
100
+                 {{scope.row.delivery_way}}
101
+               </template>
91
             </el-table-column>
102
             </el-table-column>
92
-             <el-table-column prop="address" label="用法">
103
+             <el-table-column prop="address" label="频率" align="center">
104
+               <template  slot-scope="scope">
105
+                 {{scope.row.execution_frequency}}
106
+               </template>
93
             </el-table-column>
107
             </el-table-column>
94
-             <el-table-column prop="address" label="频率">
108
+             <el-table-column prop="address" label="天数" align="center">
109
+                <template  slot-scope="scope">
110
+                 {{scope.row.day}}
111
+               </template>
95
             </el-table-column>
112
             </el-table-column>
96
-             <el-table-column prop="address" label="天数">
113
+            <el-table-column prop="address" label="总量" align="center">
114
+               <template  slot-scope="scope">
115
+                 {{scope.row.prescribing_number}}
116
+               </template>
97
             </el-table-column>
117
             </el-table-column>
98
-            <el-table-column prop="address" label="总量">
118
+            <el-table-column  prop="name" label="数据来源" width="180" align="center">
119
+                <template  slot-scope="scope">
120
+                 <span v-if="scope.row.type == 1">血透</span>
121
+                 <span v-if="scope.row.type == 2">HIS</span>
122
+               </template>
99
             </el-table-column>
123
             </el-table-column>
100
           </el-table>
124
           </el-table>
101
 
125
 
108
 </template>
132
 </template>
109
 
133
 
110
 <script>
134
 <script>
111
-import { getTodayAdviceList,getPharmacyBaseDrug } from "@/api/his/advice";
135
+import { getTodayAdviceList,getPharmacyBaseDrug,updatePharmacyBaseDrug } from "@/api/his/advice";
112
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
136
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
113
 const moment = require('moment')
137
 const moment = require('moment')
114
 export default {
138
 export default {
129
       keywords: "",
153
       keywords: "",
130
       start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
154
       start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
131
       tableData:[],
155
       tableData:[],
156
+      patientList:[],
132
     };
157
     };
133
   },
158
   },
134
 
159
 
226
         if(response.data.state == 1){
251
         if(response.data.state == 1){
227
            var advicelist = response.data.data.advicelist
252
            var advicelist = response.data.data.advicelist
228
            console.log("advicelist23323232323323",advicelist)
253
            console.log("advicelist23323232323323",advicelist)
254
+           for(let i=0;i<advicelist.length;i++){
255
+             advicelist[i].type = 1
256
+             advicelist[i].day = " "
257
+             this.tableData.push(advicelist[i])
258
+           }
229
            var hisAdviceList = response.data.data.hisAdviceList
259
            var hisAdviceList = response.data.data.hisAdviceList
230
            console.log("hisadvicelist23233232233",hisAdviceList)
260
            console.log("hisadvicelist23233232233",hisAdviceList)
261
+           for(let i=0;i<hisAdviceList.length;i++){
262
+             hisAdviceList[i].type = 2
263
+             this.tableData.push(hisAdviceList[i])
264
+           }
231
            var patient = response.data.data.patient
265
            var patient = response.data.data.patient
232
            console.log("patient23322323232332",patient)
266
            console.log("patient23322323232332",patient)
267
+           console.log("tabedaadddddddd",this.tableData)
268
+           this.patientList = patient
269
+        }
270
+      })
271
+    },
272
+    getPatientName(id){
273
+       var name = ""
274
+       for(let i=0;i<this.patientList.length;i++){
275
+          if(id == this.patientList[i].id){
276
+             name = this.patientList[i].name
277
+          }
278
+       }
279
+       return name
280
+    },
281
+    toSend(){
282
+      var blood_ids = []
283
+      var his_ids = []
284
+      var bloodStr = ""
285
+      var hisStr = ""
286
+      console.log("table3223233232322323",this.tableData)
287
+      for(let i=0;i<this.tableData.length;i++){
288
+        if(this.tableData[i].type == 1){
289
+          blood_ids.push(this.tableData[i].id)
290
+        }
291
+        if(this.tableData[i].type == 2){
292
+          his_ids.push(this.tableData[i].id)
233
         }
293
         }
294
+      }
295
+
296
+      console.log("blood_ids223我",blood_ids)
297
+      console.log("his_ids22222我",his_ids)
298
+      bloodStr = blood_ids.join(",")
299
+      hisStr =  his_ids.join(",")
300
+       var params = {
301
+         bloodStr:bloodStr,
302
+         hisStr:hisStr,
303
+       }
304
+      updatePharmacyBaseDrug(params).then(response=>{
305
+
234
       })
306
       })
235
     }
307
     }
236
   },
308
   },