Sfoglia il codice sorgente

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

csx 3 anni fa
parent
commit
d156d95215

+ 8 - 0
src/api/config.js Vedi File

202
     params: params
202
     params: params
203
   })
203
   })
204
 }
204
 }
205
+
206
+export function changeDrugOpenConfig(params) {
207
+  return request({
208
+    url: '/api/changedrugopenconfig',
209
+    method: 'get',
210
+    params: params
211
+  })
212
+}

+ 30 - 1
src/xt_pages/data/basicConfig.vue Vedi File

39
             <p style="margin-top:20px;">耗材先出库再执行:
39
             <p style="margin-top:20px;">耗材先出库再执行:
40
                 <el-switch v-model="is_open_is_type" @change="changeFuncType"></el-switch>
40
                 <el-switch v-model="is_open_is_type" @change="changeFuncType"></el-switch>
41
             </p>
41
             </p>
42
+            <!-- <p style="margin-top:20px;">药品在保存处方时出库:
43
+                <el-switch v-model="drug_out_open" @change="changeDrugOpen"></el-switch>
44
+            </p> -->
42
         </div>
45
         </div>
43
 
46
 
44
 
47
 
94
 
97
 
95
 <script>
98
 <script>
96
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
99
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
97
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig} from '@/api/config'
100
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig} from '@/api/config'
98
 
101
 
99
 export default {
102
 export default {
100
   name: "printTemplate",
103
   name: "printTemplate",
115
       is_open_is_type:false,
118
       is_open_is_type:false,
116
       is_open_advice_xt_his:false,
119
       is_open_advice_xt_his:false,
117
       is_open_prescription_xt_his:false,
120
       is_open_prescription_xt_his:false,
121
+      drug_out_open:false,
118
     };
122
     };
119
   },
123
   },
120
   methods: {
124
   methods: {
154
               this.is_open_prescription_xt_his = false
158
               this.is_open_prescription_xt_his = false
155
             }
159
             }
156
 
160
 
161
+            if(response.data.data.is_open == 1){
162
+              this.drug_out_open = true
163
+            }else{
164
+              this.drug_out_open = false
165
+            }
166
+
157
           } else {
167
           } else {
158
             this.$message.error(response.data.msg)
168
             this.$message.error(response.data.msg)
159
           }
169
           }
376
             this.$message.success("保存成功!")
386
             this.$message.success("保存成功!")
377
           }
387
           }
378
       })
388
       })
389
+    },
390
+    changeDrugOpen(){
391
+      var drug_out_open = 0
392
+      if(this.drug_out_open == false){
393
+        drug_out_open = 2
394
+      }
395
+      if(this.drug_out_open == false){
396
+        drug_out_open = 2
397
+      }
398
+      var params = {
399
+        drug_out_open:drug_out_open,
400
+      }
401
+      changeDrugOpenConfig(params).then(response=>{
402
+        if(response.data.state == 1){
403
+           var msg =  response.data.data.msg
404
+           this.$message.success("保存成功!")
405
+        }
406
+      })
407
+
379
     }
408
     }
380
 
409
 
381
   },
410
   },

+ 2 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue Vedi File

1385
       const style11 =
1385
       const style11 =
1386
         '@media print {.dialysis-print-order{width:960px;margin:100px 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:30px;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:15px}.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;}';
1386
         '@media print {.dialysis-print-order{width:960px;margin:100px 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:30px;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:15px}.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;}';
1387
       // 漳浦天福样式
1387
       // 漳浦天福样式
1388
-      const style12 ='@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:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .print-table-3{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .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;line-height:35px} .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;}@page {margin-left:30px;margin-right:40px;}';
1388
+      const style12 ='@page {margin-top:5px;}@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:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .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;line-height:35px} .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;}@page {margin-left:30px;margin-right:40px;}';
1389
 
1389
 
1390
       if (this.org_template_info.template_id == 1) {
1390
       if (this.org_template_info.template_id == 1) {
1391
         printJS({
1391
         printJS({
1670
         printJS({
1670
         printJS({
1671
           printable: "dialysis-print-box",
1671
           printable: "dialysis-print-box",
1672
           type: "html",
1672
           type: "html",
1673
-          style: style,
1673
+          style: style2,
1674
           scanStyles: false,
1674
           scanStyles: false,
1675
         });
1675
         });
1676
       } else if (this.org_template_info.template_id == 43) {
1676
       } else if (this.org_template_info.template_id == 43) {

+ 317 - 128
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue Vedi File

3
     <div class="dialysis-print-order">
3
     <div class="dialysis-print-order">
4
       <div class="order-yy-name">{{ orgname }}</div>
4
       <div class="order-yy-name">{{ orgname }}</div>
5
       <div class="order-title">血液透析(滤过)记录表单</div>
5
       <div class="order-title">血液透析(滤过)记录表单</div>
6
-
7
-      <!-- <table class="table-box" style="margin-top: 10px;">
8
-            <tbody>
9
-            <tr>
10
-
11
-              <td width="40">诊 断:</td>
12
-              <td width="">
13
-                <div class="under-line">&nbsp;{{patientInfo.diagnose}}</div>
14
-              </td>
15
-
16
-            </tr>
17
-            </tbody>
18
-          </table> -->
19
       <table class="print-table" border="1">
6
       <table class="print-table" border="1">
20
         <tbody>
7
         <tbody>
21
           <tr>
8
           <tr>
24
             </td>
11
             </td>
25
           </tr>
12
           </tr>
26
           <tr>
13
           <tr>
27
-            <td colspan="11">
14
+            <td colspan="11" style="padding-left: 10px">
28
               <div class="list_table">
15
               <div class="list_table">
29
                 <div>姓 名:&nbsp;{{ patientInfo.name }}</div>
16
                 <div>姓 名:&nbsp;{{ patientInfo.name }}</div>
30
                 <div>
17
                 <div>
35
             </td>
22
             </td>
36
           </tr>
23
           </tr>
37
           <tr class="list_table_1">
24
           <tr class="list_table_1">
38
-            <td colspan="11">
25
+            <td colspan="11" style="padding-left: 10px">
39
               <div style="display: flex">
26
               <div style="display: flex">
40
                 <div style="width: 400px">
27
                 <div style="width: 400px">
41
-                  病情评估:&nbsp;<span>{{ sick_condition ? sick_condition : "" }}</span>
28
+                  病情评估:&nbsp;<span>{{
29
+                    sick_condition ? sick_condition : ""
30
+                  }}</span>
42
                 </div>
31
                 </div>
43
                 <div style="width: 400px">
32
                 <div style="width: 400px">
44
                   入科方式:&nbsp;<span
33
                   入科方式:&nbsp;<span
54
             </td>
43
             </td>
55
           </tr>
44
           </tr>
56
           <tr class="list_table_1">
45
           <tr class="list_table_1">
57
-            <td width="250" style="border-right: none" colspan="2">
46
+            <td
47
+              width="250"
48
+              style="border-right: none; padding-left: 10px"
49
+              colspan="2"
50
+            >
58
               治疗方式:
51
               治疗方式:
59
               <label-box
52
               <label-box
60
                 :isChecked="prescription.mode_id == 1 ? true : false"
53
                 :isChecked="prescription.mode_id == 1 ? true : false"
99
               </span>
92
               </span>
100
             </td>
93
             </td>
101
             <!-- <td width="20" style="border: none"></td> -->
94
             <!-- <td width="20" style="border: none"></td> -->
102
-            <td width="200">
95
+            <td width="200" style="padding-left: 10px">
103
               治疗时间:&nbsp;{{
96
               治疗时间:&nbsp;{{
104
                 afterdialysis.actual_treatment_hour
97
                 afterdialysis.actual_treatment_hour
105
                   ? afterdialysis.actual_treatment_hour
98
                   ? afterdialysis.actual_treatment_hour
111
               }}&nbsp;分
104
               }}&nbsp;分
112
             </td>
105
             </td>
113
           </tr>
106
           </tr>
107
+          <tr v-if="org_id == 10249 || org_id == 0">
108
+            <td colspan="12" style="padding-left: 10px">
109
+
110
+              <div style="display: flex">
111
+                活动性出血:
112
+                <label-box :isChecked="predialysis.is_hemorrhage == 2 ? true : false" showValue="无"></label-box>
113
+                <label-box :isChecked="predialysis.is_hemorrhage == 1 ? true : false" showValue="有"></label-box>
114
+                (&nbsp;<label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('穿刺点渗血') > -1 ? true : false" showValue="穿刺点渗血"></label-box>
115
+                <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('牙龈出血') > -1 ? true : false" showValue="牙龈出血"></label-box>
116
+                <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('消化道出血') > -1 ? true : false" showValue="消化道出血"></label-box>
117
+                <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('女性经期') > -1 ? true : false" showValue="女性经期"></label-box>
118
+                <div style="display: flex;padding-left:20px;">其他<div style="min-width:200px;border-bottom:1px solid #999;height: 35px;text-align: center;"><span v-if="predialysis.is_hemorrhage == 1">{{
119
+                            predialysis.hemorrhage_other
120
+                          }}</span></div></div>
121
+                &nbsp;)
122
+
123
+              </div>
124
+            </td>
125
+          </tr>
114
           <tr class="list_table_1">
126
           <tr class="list_table_1">
115
-            <td colspan="12">
127
+            <td colspan="12" style="padding-left: 10px">
116
               治疗抗凝:
128
               治疗抗凝:
117
               <label-box
129
               <label-box
130
+                v-if="prescription.anticoagulant == 3"
118
                 :isChecked="prescription.anticoagulant == 3 ? true : false"
131
                 :isChecked="prescription.anticoagulant == 3 ? true : false"
119
                 showValue="低分子肝素:"
132
                 showValue="低分子肝素:"
120
               ></label-box>
133
               ></label-box>
121
-              &nbsp;&nbsp;{{prescription.anticoagulant_zongliang && prescription.anticoagulant == "3" ? prescription.anticoagulant_zongliang : ""}}U;&nbsp;&nbsp;
134
+              <label-box
135
+                v-if="prescription.anticoagulant == 6"
136
+                :isChecked="prescription.anticoagulant == 6 ? true : false"
137
+                showValue="低分子肝素钙:"
138
+              ></label-box>
139
+              <label-box
140
+                v-if="prescription.anticoagulant == 7"
141
+                :isChecked="prescription.anticoagulant == 7 ? true : false"
142
+                showValue="低分子肝素钠:"
143
+              ></label-box>
144
+
145
+              &nbsp;&nbsp;{{
146
+                prescription.anticoagulant_zongliang &&
147
+                (prescription.anticoagulant == 3 ||
148
+                  prescription.anticoagulant == 6 ||
149
+                  prescription.anticoagulant == 7)
150
+                  ? prescription.anticoagulant_zongliang
151
+                  : ""
152
+              }}U;&nbsp;&nbsp;
122
               <label-box
153
               <label-box
123
                 :isChecked="prescription.anticoagulant == 2 ? true : false"
154
                 :isChecked="prescription.anticoagulant == 2 ? true : false"
124
                 showValue="普通肝素:"
155
                 showValue="普通肝素:"
125
               ></label-box
156
               ></label-box
126
-              >首剂 &nbsp;&nbsp;<span><span style="width:35px;display: inline-block;">
127
-                {{ prescription.anticoagulant_shouji && (prescription.anticoagulant != 3 ) && prescription.anticoagulant == 2 ? prescription.anticoagulant_shouji : "" }}
128
-              </span></span> mg&nbsp;&nbsp;&nbsp;
129
-              追加&nbsp;&nbsp;<span>{{ prescription.anticoagulant_weichi && prescription.anticoagulant == 2 ? prescription.anticoagulant_weichi : "" }}</span>&nbsp;&nbsp;mg/h&nbsp;
130
-              总量&nbsp;&nbsp;<span>{{ prescription.anticoagulant_zongliang && prescription.anticoagulant == 2 ? prescription.anticoagulant_zongliang : "" }}</span>&nbsp;&nbsp;mg;
157
+              >首剂 &nbsp;&nbsp;<span
158
+                ><span style="width: 35px; display: inline-block">
159
+                  {{
160
+                    prescription.anticoagulant_shouji &&
161
+                    prescription.anticoagulant != 3 &&
162
+                    prescription.anticoagulant == 2
163
+                      ? prescription.anticoagulant_shouji
164
+                      : ""
165
+                  }}
166
+                </span></span
167
+              >
168
+              mg&nbsp;&nbsp;&nbsp; 追加&nbsp;&nbsp;<span>{{
169
+                prescription.anticoagulant_weichi &&
170
+                prescription.anticoagulant == 2
171
+                  ? prescription.anticoagulant_weichi
172
+                  : ""
173
+              }}</span
174
+              >&nbsp;&nbsp;mg/h&nbsp; 总量&nbsp;&nbsp;<span>{{
175
+                prescription.anticoagulant_zongliang &&
176
+                prescription.anticoagulant == 2
177
+                  ? prescription.anticoagulant_zongliang
178
+                  : ""
179
+              }}</span
180
+              >&nbsp;&nbsp;mg;
131
               <label-box
181
               <label-box
132
                 :isChecked="prescription.anticoagulant == 1 ? true : false"
182
                 :isChecked="prescription.anticoagulant == 1 ? true : false"
133
                 showValue="无肝素"
183
                 showValue="无肝素"
134
               ></label-box>
184
               ></label-box>
135
-              <label-box :isChecked="prescription.anticoagulant == 5 ? true : false" showValue="枸橼酸"></label-box>
185
+              <label-box
186
+                :isChecked="prescription.anticoagulant == 5 ? true : false"
187
+                showValue="枸橼酸"
188
+              ></label-box>
136
             </td>
189
             </td>
137
           </tr>
190
           </tr>
138
-          <tr class="list_table_1" style="line-height: 30px">
139
-            <td width="100" style="border-right: none" colspan="2">
191
+          <tr class="list_table_1" style="line-height: 40px">
192
+            <td
193
+              width="100"
194
+              style="border-right: none; padding-left: 10px"
195
+              colspan="2"
196
+            >
140
               处方脱水量:
197
               处方脱水量:
141
-              <p style="display: inline-block; width: 40px">{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }}</p>
198
+              <p style="display: inline-block; width: 40px">
199
+                {{
200
+                  prescription.target_ultrafiltration
201
+                    ? prescription.target_ultrafiltration
202
+                    : ""
203
+                }}
204
+              </p>
142
               ml; 透析液流量:
205
               ml; 透析液流量:
143
-              <p style="display: inline-block; width: 40px">{{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }}</p>
206
+              <p style="display: inline-block; width: 40px">
207
+                {{
208
+                  prescription.dialysate_flow ? prescription.dialysate_flow : ""
209
+                }}
210
+              </p>
144
               ml/h;
211
               ml/h;
145
             </td>
212
             </td>
146
             <!-- <td style="border: none"></td> -->
213
             <!-- <td style="border: none"></td> -->
147
-            <td width="20">
214
+            <td width="20" style="padding-left: 10px">
148
               医师签名:
215
               医师签名:
149
               <span v-if="setAdminUserES(prescription.creater) == ''">
216
               <span v-if="setAdminUserES(prescription.creater) == ''">
150
                 {{ getAdminUser(prescription.creater) }}
217
                 {{ getAdminUser(prescription.creater) }}
160
             </td>
227
             </td>
161
           </tr>
228
           </tr>
162
           <tr colspan="13" class="list_table_1">
229
           <tr colspan="13" class="list_table_1">
163
-            <!-- <td >透析机:{{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}</td>
164
-            <td style="width: 175px;">透析(滤)器:{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}</td>
165
-            <td width="150">透析液:钾:
166
-              <span style="width:30px;display: inline-block;">
167
-                {{ prescription.kalium ? prescription.kalium : "" }}
168
-              </span>mmol/L&nbsp; 钙:
169
-              <span style="width:30px;display: inline-block;">
170
-                {{ prescription.calcium ? prescription.calcium : "" }}
171
-              </span>mmol/L&nbsp; 碳酸氢根:
172
-              <span style="width:30px;display: inline-block;">
173
-                {{ prescription.bicarbonate ? prescription.bicarbonate : "" }}
174
-              </span>mmol/L</td> -->
175
-              <td colspan="13">
176
-                <div style="display:flex;">
177
-                  <div style="width: 230px;border-right: 1px solid;" >透析机:{{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}</div>
178
-                  <div style="width: 213px;border-right: 1px solid;">透析(滤)器:{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}</div>
179
-                  <div>透析液:钾:
180
-              <span style="width:30px;display: inline-block;">
181
-                {{ prescription.kalium ? prescription.kalium : "" }}
182
-              </span>mmol/L&nbsp; 钙:
183
-              <span style="width:30px;display: inline-block;">
184
-                {{ prescription.calcium ? prescription.calcium : "" }}
185
-              </span>mmol/L&nbsp; 碳酸氢根:
186
-              <span style="width:30px;display: inline-block;">
187
-                {{ prescription.bicarbonate ? prescription.bicarbonate : "" }}
188
-              </span>mmol/L</div>
230
+            <td colspan="13" style="padding-left: 10px">
231
+              <div class="td_div1" style="display: flex">
232
+                <div
233
+                  style="
234
+                    display: flex;
235
+                    min-width: 150px;
236
+                    border-right: 1px solid;
237
+                  "
238
+                >
239
+                  透析机:{{
240
+                    dialysisOrder &&
241
+                    dialysisOrder.DeviceNumber &&
242
+                    dialysisOrder.DeviceNumber.number.length > 0
243
+                      ? dialysisOrder.DeviceNumber.number
244
+                      : patientInfo.DialysisSchedule.device_number.number
245
+                  }}
246
+                </div>
247
+                <div
248
+                  style="
249
+                    display: flex;
250
+                    border-right: 1px solid;
251
+                    padding: 0 10px;
252
+                  "
253
+                >
254
+                  透析(滤)器:{{
255
+                    prescription.dialyzer_perfusion_apparatus
256
+                      ? prescription.dialyzer_perfusion_apparatus
257
+                      : ""
258
+                  }}
259
+                </div>
260
+                <div style="padding-left: 10px">
261
+                  透析液:钾:
262
+                  <span style="width: 30px; display: inline-block">
263
+                    {{ prescription.kalium ? prescription.kalium : "" }} </span
264
+                  >mmol/L&nbsp; 钙:
265
+                  <span style="width: 30px; display: inline-block">
266
+                    {{
267
+                      prescription.calcium ? prescription.calcium : ""
268
+                    }} </span
269
+                  >mmol/L&nbsp; 碳酸氢根:
270
+                  <span style="width: 30px; display: inline-block">
271
+                    {{
272
+                      prescription.bicarbonate ? prescription.bicarbonate : ""
273
+                    }} </span
274
+                  >mmol/L
189
                 </div>
275
                 </div>
190
-              </td>
276
+              </div>
277
+            </td>
191
           </tr>
278
           </tr>
192
           <tr class="list_table_1">
279
           <tr class="list_table_1">
193
-            <td colspan="11">
280
+            <td colspan="11" style="padding-left: 10px">
194
               <div style="display: flex; justify-content: flex-start">
281
               <div style="display: flex; justify-content: flex-start">
195
                 <div style="width: 75%">
282
                 <div style="width: 75%">
196
                   血管通路: &nbsp;
283
                   血管通路: &nbsp;
260
                   ></label-box>
347
                   ></label-box>
261
                   &nbsp;
348
                   &nbsp;
262
                 </div>
349
                 </div>
263
-                <div style="width: 25%">穿刺者:
264
-                <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) == ''">
265
-                  {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) }}
266
-                </span>
267
-                <img class="es-img" style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse)" alt srcset v-else /></div>
350
+                <div style="width: 25%">
351
+                  穿刺者:
352
+                  <span
353
+                    v-if="
354
+                      setAdminUserES(
355
+                        dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse
356
+                      ) == ''
357
+                    "
358
+                  >
359
+                    {{
360
+                      getAdminUser(
361
+                        dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse
362
+                      )
363
+                    }}
364
+                  </span>
365
+                  <img
366
+                    class="es-img"
367
+                    style="height: 30px"
368
+                    :src="
369
+                      setAdminUserES(
370
+                        dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse
371
+                      )
372
+                    "
373
+                    alt
374
+                    srcset
375
+                    v-else
376
+                  />
377
+                </div>
268
               </div>
378
               </div>
269
             </td>
379
             </td>
270
           </tr>
380
           </tr>
372
                   }}
482
                   }}
373
                 </td>
483
                 </td>
374
                 <td width="25%">
484
                 <td width="25%">
375
-                  &nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
485
+                  &nbsp;{{
486
+                    monitor.ultrafiltration_volume
487
+                      ? monitor.ultrafiltration_volume
488
+                      : ""
489
+                  }}
376
                 </td>
490
                 </td>
377
               </table>
491
               </table>
378
             </td>
492
             </td>
385
                 frame="void"
499
                 frame="void"
386
               >
500
               >
387
                 <td style="width: 20%">
501
                 <td style="width: 20%">
388
-                  &nbsp;{{
389
-                    monitor.monitor_temperature
390
-                      ? monitor.monitor_temperature
391
-                      : ""
392
-                  }}
502
+                  &nbsp;{{ monitor.temperature ? monitor.temperature : "" }}
393
                 </td>
503
                 </td>
394
                 <td style="width: 20%">
504
                 <td style="width: 20%">
395
                   &nbsp;{{
505
                   &nbsp;{{
403
                 </td>
513
                 </td>
404
                 <td style="width: 20%">
514
                 <td style="width: 20%">
405
                   &nbsp;{{
515
                   &nbsp;{{
406
-                    monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : ""
516
+                    monitor.systolic_blood_pressure
517
+                      ? monitor.systolic_blood_pressure
518
+                      : ""
519
+                  }}/{{
520
+                    monitor.diastolic_blood_pressure
521
+                      ? monitor.diastolic_blood_pressure
522
+                      : ""
407
                   }}
523
                   }}
408
                 </td>
524
                 </td>
409
                 <td style="width: 20%">
525
                 <td style="width: 20%">
410
                   &nbsp;{{
526
                   &nbsp;{{
411
-                    monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : ""
527
+                    monitor.blood_oxygen_saturation
528
+                      ? monitor.blood_oxygen_saturation
529
+                      : ""
412
                   }}
530
                   }}
413
                 </td>
531
                 </td>
414
               </table>
532
               </table>
415
             </td>
533
             </td>
416
             <td>
534
             <td>
417
-              <span style="line-height:18px;display:block;">
418
-              {{ monitor.symptom }}&nbsp;{{ monitor.dispose }}&nbsp;{{
419
-              monitor.result
420
-              }}
421
-            </span>
535
+              <span style="line-height: 18px; display: block">
536
+                {{ monitor.symptom }}&nbsp;{{ monitor.dispose }}&nbsp;{{
537
+                  monitor.result
538
+                }}
539
+              </span>
422
             </td>
540
             </td>
423
-
424
           </tr>
541
           </tr>
425
         </tbody>
542
         </tbody>
426
       </table>
543
       </table>
443
             <td style="width: 60px; height: 40px">
560
             <td style="width: 60px; height: 40px">
444
               <p style="height: 20px; line-height: 20px">上次透后体重</p>
561
               <p style="height: 20px; line-height: 20px">上次透后体重</p>
445
             </td>
562
             </td>
446
-            <td style="width: 45px; height: 40px">{{assessmentafter.weight_after}}kg</td>
563
+            <td style="width: 45px; height: 40px">
564
+              {{ assessmentafter.weight_after }}kg
565
+            </td>
447
           </tr>
566
           </tr>
448
 
567
 
449
           <tr v-for="(advice, advice_index) in advices">
568
           <tr v-for="(advice, advice_index) in advices">
494
               />
613
               />
495
             </td>
614
             </td>
496
 
615
 
497
-            
498
             <td v-if="advice_index === 0">透前体重:</td>
616
             <td v-if="advice_index === 0">透前体重:</td>
499
             <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
617
             <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
500
             <td v-if="advice_index === 1">体重增加量:</td>
618
             <td v-if="advice_index === 1">体重增加量:</td>
502
               {{
620
               {{
503
                 (
621
                 (
504
                   predialysis.weight_before - assessmentafter.weight_after
622
                   predialysis.weight_before - assessmentafter.weight_after
505
-                ).toFixed(1)
623
+                ).toFixed(2)
506
               }}kg
624
               }}kg
507
             </td>
625
             </td>
508
             <td v-if="advice_index === 2">干体重(DW):</td>
626
             <td v-if="advice_index === 2">干体重(DW):</td>
510
             <td v-if="advice_index === 3">较干体重增加量:</td>
628
             <td v-if="advice_index === 3">较干体重增加量:</td>
511
             <td v-if="advice_index === 3">
629
             <td v-if="advice_index === 3">
512
               {{
630
               {{
513
-                (
514
-                  assessmentafter.weight_after -
515
-                  predialysis.dry_weight
516
-                ).toFixed(2)
631
+                (afterdialysis.weight_after - predialysis.dry_weight).toFixed(
632
+                  2
633
+                )
517
               }}kg
634
               }}kg
518
             </td>
635
             </td>
519
             <td v-if="advice_index === 4">净脱水量:</td>
636
             <td v-if="advice_index === 4">净脱水量:</td>
520
             <td v-if="advice_index === 4">
637
             <td v-if="advice_index === 4">
521
-              {{ afterdialysis.actual_ultrafiltration }}L
638
+              {{ afterdialysis.actual_ultrafiltration }}ml
522
             </td>
639
             </td>
523
             <td v-if="advice_index === 5">透后体重:</td>
640
             <td v-if="advice_index === 5">透后体重:</td>
524
             <td v-if="advice_index === 5">
641
             <td v-if="advice_index === 5">
525
-              {{ assessmentafter.weight_after }}kg
642
+              {{ afterdialysis.weight_after }}kg
526
             </td>
643
             </td>
527
-             <td v-if="advice_index === 6">本次透析体重下降量:</td>
644
+            <td v-if="advice_index === 6">本次透析体重下降量:</td>
528
             <td v-if="advice_index === 6">
645
             <td v-if="advice_index === 6">
529
-              {{ afterdialysis.weight_after }}kg
646
+              {{
647
+                (
648
+                  predialysis.weight_before - afterdialysis.weight_after
649
+                ).toFixed(2)
650
+              }}kg
530
             </td>
651
             </td>
652
+            <td v-if="advice_index > 6"></td>
653
+            <td v-if="advice_index > 6"></td>
531
           </tr>
654
           </tr>
532
         </tbody>
655
         </tbody>
533
       </table>
656
       </table>
534
       <table class="print-table" border="1">
657
       <table class="print-table" border="1">
535
-         <tr style="height:60px;text-align:left;border:none;">
536
-            <td style="padding-left:5px;border:none">
537
-              治疗小结:{{ summary.dialysis_summary ? summary.dialysis_summary : "" }}
538
-            </td>
539
-          </tr>
540
-          <tr style="height:40px">
541
-            <td rowspan="11" style="border:none;text-align:right;height:40px">
542
-              医生签名
543
-              <span style="display: inline-block;width:100px;text-align: left;">
544
-                &nbsp;
545
-                  <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
546
-                  <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
547
-              </span>
548
-              护士签名
549
-              <span style="display: inline-block;width:100px;text-align: left;">
550
-                &nbsp;
551
-                <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
552
-                <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
658
+        <tr style="height: 60px; text-align: left; border: none">
659
+          <td style="padding-left: 5px; border: none">
660
+            治疗小结:{{
661
+              summary.dialysis_summary ? summary.dialysis_summary : ""
662
+            }}
663
+          </td>
664
+        </tr>
665
+        <tr style="height: 40px">
666
+          <td
667
+            rowspan="11"
668
+            style="border: none; text-align: right; height: 40px"
669
+          >
670
+            医生签名
671
+            <span style="display: inline-block; width: 100px; text-align: left">
672
+              &nbsp;
673
+              <span
674
+                v-if="
675
+                  setAdminUserES(
676
+                    prescription == null
677
+                      ? 0
678
+                      : prescription.prescription_doctor
679
+                      ? prescription.prescription_doctor
680
+                      : ''
681
+                  ) == ''
682
+                "
683
+              >
684
+                {{
685
+                  getAdminUser(
686
+                    prescription == null
687
+                      ? 0
688
+                      : prescription.prescription_doctor
689
+                      ? prescription.prescription_doctor
690
+                      : ""
691
+                  )
692
+                }}
553
               </span>
693
               </span>
554
-       
555
-            </td>
556
-          </tr>
557
-      </table >
694
+              <img
695
+                style="height: 30px"
696
+                :src="
697
+                  setAdminUserES(
698
+                    prescription == null
699
+                      ? 0
700
+                      : prescription.prescription_doctor
701
+                      ? prescription.prescription_doctor
702
+                      : ''
703
+                  )
704
+                "
705
+                alt=""
706
+                srcset=""
707
+                v-else
708
+              />
709
+            </span>
710
+            护士签名
711
+            <span style="display: inline-block; width: 100px; text-align: left">
712
+              &nbsp;
713
+              <span
714
+                v-if="
715
+                  setAdminUserES(
716
+                    dialysisOrder == null ? 0 : dialysisOrder.start_nurse
717
+                  ) == ''
718
+                "
719
+                >{{
720
+                  getAdminUser(
721
+                    dialysisOrder == null ? 0 : dialysisOrder.start_nurse
722
+                  )
723
+                }}</span
724
+              >
725
+              <img
726
+                class="es-img"
727
+                style="height: 30px"
728
+                :src="
729
+                  setAdminUserES(
730
+                    dialysisOrder == null ? 0 : dialysisOrder.start_nurse
731
+                  )
732
+                "
733
+                alt=""
734
+                srcset=""
735
+                v-else
736
+              />
737
+            </span>
738
+          </td>
739
+        </tr>
740
+      </table>
558
 
741
 
559
       <table class="table-box" style="margin-top: 10px">
742
       <table class="table-box" style="margin-top: 10px">
560
         <tbody>
743
         <tbody>
567
         </tbody>
750
         </tbody>
568
       </table>
751
       </table>
569
     </div>
752
     </div>
570
-    <div style="position: absolute; top: 1380px; left: 50%">1</div>
753
+    <div style="position: absolute; top: 1380px; left: 50%"></div>
571
   </div>
754
   </div>
572
 </template>
755
 </template>
573
 
756
 
669
       advices: [],
852
       advices: [],
670
       users: [],
853
       users: [],
671
       monitors: [],
854
       monitors: [],
672
-      sick_condition:"",
855
+      sick_condition: "",
673
       summary: {},
856
       summary: {},
674
       receiverTreatmentAccess: {},
857
       receiverTreatmentAccess: {},
675
       org_template_info: {},
858
       org_template_info: {},
676
 
859
 
677
       doctor_advices: [],
860
       doctor_advices: [],
678
       advice_groups: [],
861
       advice_groups: [],
862
+      org_id: 0,
679
 
863
 
680
       AlPanel: {
864
       AlPanel: {
681
         id: 0,
865
         id: 0,
822
               this.predialysis.blood_access_part_opera_id
1006
               this.predialysis.blood_access_part_opera_id
823
             );
1007
             );
824
 
1008
 
825
-            console.log(this.predialysis.blood_access_part_opera_name,'this.predialysis.blood_access_part_opera_name')
1009
+          console.log(
1010
+            this.predialysis.blood_access_part_opera_name,
1011
+            "this.predialysis.blood_access_part_opera_name"
1012
+          );
826
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;
1013
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;
827
           this.operators = response.data.data.operators;
1014
           this.operators = response.data.data.operators;
828
           this.dialysisOrder =
1015
           this.dialysisOrder =
889
           this.receiverTreatmentAccess =
1076
           this.receiverTreatmentAccess =
890
             response.data.data.receiverTreatmentAccess;
1077
             response.data.data.receiverTreatmentAccess;
891
           this.assessmentafter = response.data.data.assessmentAfterDislysis;
1078
           this.assessmentafter = response.data.data.assessmentAfterDislysis;
892
-          this.sick_condition_arr.forEach(o => {
1079
+          this.sick_condition_arr.forEach((o) => {
893
             // console.log(o,'hh')
1080
             // console.log(o,'hh')
894
-            if(this.receiverTreatmentAccess.sick_condition == o.id){
895
-              this.sick_condition = o.name
1081
+            if (this.receiverTreatmentAccess.sick_condition == o.id) {
1082
+              this.sick_condition = o.name;
896
             }
1083
             }
897
-          })
898
-          console.log(this.sick_condition,'hh')
1084
+          });
1085
+          console.log(this.sick_condition, "hh");
899
 
1086
 
900
           console.log("上次透后体重", this.assessmentafter);
1087
           console.log("上次透后体重", this.assessmentafter);
901
 
1088
 
982
             advices.push(item);
1169
             advices.push(item);
983
           }
1170
           }
984
 
1171
 
985
-           var tableAdvice =  this.advices;
1172
+          var tableAdvice = this.advices;
986
           console.log("医生", tableAdvice);
1173
           console.log("医生", tableAdvice);
987
-           if (tableAdvice.length === 0) {
1174
+          if (tableAdvice.length === 0) {
988
             var obj = { advice_name: "", start_time: "" };
1175
             var obj = { advice_name: "", start_time: "" };
989
             var obj1 = { advice_name: "", start_time: "" };
1176
             var obj1 = { advice_name: "", start_time: "" };
990
             var obj2 = { advice_name: "", start_time: "" };
1177
             var obj2 = { advice_name: "", start_time: "" };
1012
             tableAdvice.push(obj4);
1199
             tableAdvice.push(obj4);
1013
             this.advices = tableAdvice;
1200
             this.advices = tableAdvice;
1014
           }
1201
           }
1015
-           if (tableAdvice.length === 2) {
1202
+          if (tableAdvice.length === 2) {
1016
             var obj = { advice_name: "", start_time: "" };
1203
             var obj = { advice_name: "", start_time: "" };
1017
             var obj1 = { advice_name: "", start_time: "" };
1204
             var obj1 = { advice_name: "", start_time: "" };
1018
             var obj2 = { advice_name: "", start_time: "" };
1205
             var obj2 = { advice_name: "", start_time: "" };
1062
             tableAdvice.push(obj1);
1249
             tableAdvice.push(obj1);
1063
             this.advices = tableAdvice;
1250
             this.advices = tableAdvice;
1064
           }
1251
           }
1065
-     
1066
 
1252
 
1067
-          console.log(this.advices,'this.advices')
1253
+          console.log(this.advices, "this.advices");
1068
 
1254
 
1069
           this.loading = false;
1255
           this.loading = false;
1070
 
1256
 
1166
       });
1352
       });
1167
     },
1353
     },
1168
     bloodAccessParOperaName(id) {
1354
     bloodAccessParOperaName(id) {
1169
-      console.log(this.bloodAccessParOpera)
1355
+      console.log(this.bloodAccessParOpera);
1170
       if (id in this.bloodAccessParOpera) {
1356
       if (id in this.bloodAccessParOpera) {
1171
-        
1172
         return this.bloodAccessParOpera[id].name;
1357
         return this.bloodAccessParOpera[id].name;
1173
       }
1358
       }
1174
       return "";
1359
       return "";
1228
     },
1413
     },
1229
   },
1414
   },
1230
   created() {
1415
   created() {
1416
+    this.org_id = this.$store.getters.xt_user.org_id;
1231
     this.way_arr = getDataConfig("hemodialysis", "way");
1417
     this.way_arr = getDataConfig("hemodialysis", "way");
1232
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
1418
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
1233
     this.appetite_arr = getDataConfig("hemodialysis", "appetite");
1419
     this.appetite_arr = getDataConfig("hemodialysis", "appetite");
1236
     this.precaution_arr = getDataConfig("hemodialysis", "precaution");
1422
     this.precaution_arr = getDataConfig("hemodialysis", "precaution");
1237
     this.intake_arr = getDataConfig("hemodialysis", "intake");
1423
     this.intake_arr = getDataConfig("hemodialysis", "intake");
1238
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1424
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1239
-        var bloodAccessParOpera = getDataConfig(
1425
+    var bloodAccessParOpera = getDataConfig(
1240
       "hemodialysis",
1426
       "hemodialysis",
1241
       "vascular_access_desc"
1427
       "vascular_access_desc"
1242
     );
1428
     );
1290
 
1476
 
1291
 <style>
1477
 <style>
1292
 .dialysis-print-order {
1478
 .dialysis-print-order {
1293
-  width: 890px;
1479
+  width: 960px;
1294
   margin: 0 auto;
1480
   margin: 0 auto;
1295
 }
1481
 }
1296
 
1482
 
1488
   padding: 0;
1674
   padding: 0;
1489
   border: 1px solid #dcdfe6;
1675
   border: 1px solid #dcdfe6;
1490
 }
1676
 }
1677
+.list_table_1 {
1678
+  text-align: left;
1679
+}
1491
 </style>
1680
 </style>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordPrint.vue Vedi File

13
 
13
 
14
     <div class="dialysisPage" style="padding-top: 40px">
14
     <div class="dialysisPage" style="padding-top: 40px">
15
       <printOne
15
       <printOne
16
-        v-if="org_id != 10217 && org_id != 9675 && org_id != 9671 && org_id != 0 &&org_id != 10164"
16
+        v-if="org_id != 10217 && org_id != 9675 && org_id != 9671 && org_id != 0 &&org_id != 10164 && org_id == 10188"
17
         ref="printOne"
17
         ref="printOne"
18
         v-bind:childResponse="childResponse"
18
         v-bind:childResponse="childResponse"
19
         :patient="patient"
19
         :patient="patient"

+ 11 - 0
src/xt_pages/outpatientTool/components/gatherStatistics.vue Vedi File

1246
     },
1246
     },
1247
   },
1247
   },
1248
   created() {
1248
   created() {
1249
+    let list_1 = this.$store.getters.pagedata.list;
1250
+          if (list_1.start_time == "") {
1251
+            this.chargeDate[0] = "";
1252
+          } else {
1253
+            this.chargeDate[0] = list_1.start_time;
1254
+          }
1255
+           if (list_1.end_time == "") {
1256
+            this.chargeDate[1] = "";
1257
+          } else {
1258
+            this.chargeDate[1] = list_1.end_time;
1259
+    }
1249
     this.start_time = this.chargeDate[0];
1260
     this.start_time = this.chargeDate[0];
1250
     this.end_time = this.chargeDate[1];
1261
     this.end_time = this.chargeDate[1];
1251
     this.tableList = [];
1262
     this.tableList = [];

+ 21 - 25
src/xt_pages/stock/drugs/components/drugOutDetail.vue Vedi File

159
         </el-table-column>
159
         </el-table-column>
160
         <el-table-column label="总价" align="center">
160
         <el-table-column label="总价" align="center">
161
           <template slot-scope="scope">
161
           <template slot-scope="scope">
162
-           <span v-if="org_id == 9919">{{(scope.row.last_price * scope.row.count).toFixed(2)}} </span> 
163
-           <span v-if="org_id == 10210 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
164
-           <span v-if="org_id == 9671 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
165
-           <span v-if ="org_id!=9919 && org_id!=10210 && org_id!=9671">
166
-             <!-- <span v-if="scope.row.price >0">
167
-                <span v-if="scope.row.count_unit == scope.row.min_unit">
168
-                  {{(scope.row.price * scope.row.count).toFixed(2)}}
169
-                </span>  
170
-                <span v-if="scope.row.count_unit == scope.row.max_unit">{{(scope.row.price * scope.row.count * scope.row.min_number).toFixed(2)}}</span>
171
-              </span>
172
-             <span v-if="scope.row.price  == 0">
173
-               <span v-if="scope.row.count_unit  == scope.row.min_unit">
174
-                 {{((getPrice(scope.row.drug_id)* scope.row.count)).toFixed(2)}}
175
-               </span> 
176
-               <span v-if="scope.row.count_unit == scope.row.max_unit">
177
-                 {{(getPrice(scope.row.drug_id)* scope.row.count * scope.row.min_number).toFixed(2)}}
178
-              </span>
179
-             </span> -->
180
-             {{scope.row.total_price}}
181
-           </span>
162
+            <span v-if="scope.row.is_total !=1">
163
+              <span v-if="org_id == 9919">{{(scope.row.last_price * scope.row.count).toFixed(2)}} </span> 
164
+              <span v-if="org_id == 10210 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
165
+              <span v-if="org_id == 9671 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
166
+              <span v-if ="org_id!=9919 && org_id!=10210 && org_id!=9671">
167
+                 {{scope.row.total_price}}
168
+               </span>
169
+            </span>
170
+            <span v-if="scope.row.is_total == 1">
171
+              {{scope.row.total_price}}
172
+            </span>
182
           </template>
173
           </template>
183
         </el-table-column>
174
         </el-table-column>
184
       </el-table>
175
       </el-table>
437
                order[i].total_price = order[i].count * order[i].last_price
428
                order[i].total_price = order[i].count * order[i].last_price
438
                total_price += order[i].count * order[i].last_price
429
                total_price += order[i].count * order[i].last_price
439
              }else{
430
              }else{
431
+               console.log("555555555555",order[i])
440
                if(order[i].price > 0){
432
                if(order[i].price > 0){
433
+                console.log("近来33232323322323")
441
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
434
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
442
                    order[i].total_price = order[i].count * order[i].price
435
                    order[i].total_price = order[i].count * order[i].price
443
-                  total_price += order[i].total_price
444
                  }
436
                  }
445
                  if(order[i].count_unit == order[i].max_unit){
437
                  if(order[i].count_unit == order[i].max_unit){
446
                    if(order[i].is_sys == 0){
438
                    if(order[i].is_sys == 0){
449
                      order[i].total_price += order[i].count * order[i].price * order[i].min_number
441
                      order[i].total_price += order[i].count * order[i].price * order[i].min_number
450
                    }
442
                    }
451
                  }
443
                  }
444
+
445
+                total_price += order[i].total_price
452
                 
446
                 
453
                }
447
                }
448
+
454
                if(order[i].price ==0 ){
449
                if(order[i].price ==0 ){
455
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
450
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
456
                     order[i].total_price = order[i].count * this.getPrice(order[i].drug_id)
451
                     order[i].total_price = order[i].count * this.getPrice(order[i].drug_id)
457
-                   total_price +=order[i].total_price
452
+                  
458
                     order[i].price = this.getPrice(order[i].drug_id)
453
                     order[i].price = this.getPrice(order[i].drug_id)
459
                  }
454
                  }
460
                 
455
                 
466
                    }
461
                    }
467
                    order[i].price = this.getPrice(order[i].drug_id)
462
                    order[i].price = this.getPrice(order[i].drug_id)
468
                 }
463
                 }
469
-                 
464
+                total_price +=order[i].total_price
470
                } 
465
                } 
471
                
466
                
472
              }
467
              }
473
             
468
             
474
           }
469
           }
475
-         
470
+           console.log("toal_p3232332332233232",total_price)
476
            order.push({
471
            order.push({
477
             warehouse_out_order_number: "合计",
472
             warehouse_out_order_number: "合计",
478
             is_total: 1,
473
             is_total: 1,
487
        
482
        
488
           console.log("233223322323322332232323",order)
483
           console.log("233223322323322332232323",order)
489
           this.tableData = order
484
           this.tableData = order
485
+
490
            let objInfo = {}
486
            let objInfo = {}
491
           order.forEach((item,index)=>{
487
           order.forEach((item,index)=>{
492
              let { drug_id } = item
488
              let { drug_id } = item
579
           this.tablePrint[i].index = i+1
575
           this.tablePrint[i].index = i+1
580
         }
576
         }
581
         for(let i=0;i<this.tablePrint.length;i++){
577
         for(let i=0;i<this.tablePrint.length;i++){
582
-           if(this.org_id == 9919 ){
578
+           if(this.org_id == 9919){
583
            
579
            
584
              this.tablePrint[i].count = this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child)
580
              this.tablePrint[i].count = this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child)
585
              this.tablePrint[i].total_price = this.getCountSenven(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
581
              this.tablePrint[i].total_price = this.getCountSenven(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)

+ 102 - 25
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue Vedi File

7
     </div>
7
     </div>
8
     <div class="app-container ">
8
     <div class="app-container ">
9
       <div id="dialysis-print-box">
9
       <div id="dialysis-print-box">
10
+        <div v-if="org_id!=9671 && org_id!=10210">
10
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
12
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
12
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
13
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
58
              </tr>
59
              </tr>
59
             </tbody>
60
             </tbody>
60
           </table>
61
           </table>
62
+          <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
63
+            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
64
+            <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
65
+            <div style="width:50px;">会计:</div><div style="width:100px;"></div>
66
+            <div style="width:50px;">审核:</div><div style="width:100px;"></div>
67
+            <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
68
+          </div>
69
+          <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
70
+            <div style="width:50px;">科室:</div><div style="width:60px;"></div>
71
+            <div style="width:70px;">领料人:</div><div style="width:60px;"></div>
72
+            <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
73
+            <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
74
+            <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
75
+            <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
76
+          </div>
77
+        </div>
78
+      </div> 
79
+
61
 
80
 
81
+      <div v-if="org_id == 9671 || org_id == 10210">
82
+       <div class="dialysis-print-order" v-for="(it,index) in tableData" :key="index" >
83
+         <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
84
+          <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
62
 
85
 
86
+          <div style="float: left;margin-bottom: 1px;">单据编号:{{it.warehouse_out_order_number}}</div>
87
+          <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
88
+
89
+          <table class="print-table" border="1">
90
+            <tbody>
91
+            <tr>
92
+              <td style="line-height: 50px" width="230">药品名称</td>
93
+              <td style="line-height: 50px" width="230">规格型号</td>
94
+              <td style="line-height: 50px" width="80">出货数量</td>
95
+              <td style="line-height: 50px" width="50">单位</td>
96
+              <td style="line-height:50px" width="80">出库价格</td>
97
+              <td style="line-height: 50px" width="80">总价</td>
98
+              <td style="line-height: 50px" width="80">批号</td>
99
+              <td style="line-height: 50px" width="80">生产日期</td>
100
+              <td style="line-height: 50px" width="80">有效日期</td>
101
+            </tr>
102
+
103
+            <tr v-for="(item,i) in it.xt_drug_warehouse_out_info" :key="i">
104
+              <td style="line-height: 50px">
105
+                <span>{{item.drug.drug_name}}</span>
106
+              </td>
107
+              <td style="line-height: 50px">
108
+                  <span>{{item.drug.dose}}{{item.dose_unit}}*{{item.drug.min_number}}{{item.drug.min_unit}}/{{item.drug.max_unit}}</span>
109
+              </td>
110
+              <td style="line-height: 50px">
111
+                  {{item.count}}
112
+              </td>
113
+              <td style="line-height: 50px">
114
+                <span>{{item.count_unit}}</span>
115
+              </td>
116
+              <td style="line-height:50px">
117
+                  {{item.price}}
118
+              </td>
119
+             <td  style="line-height:50px">
120
+                {{(item.count * item.price).toFixed(2)}}
121
+             </td>
122
+             <td>{{item.batch_number}}</td>
123
+             <td>{{(getTime(item.product_date))}}</td>
124
+             <td>{{(getTime(item.expire_date))}}</td>
125
+            </tr>
126
+             <tr>
127
+               <td style="line-height:50px">合计</td>
128
+               <td colspan="7"></td>
129
+               <td>{{getTotalPrince(it.xt_drug_warehouse_out_info).toFixed(2)}}</td>
130
+             </tr>
131
+            </tbody>
132
+          </table>
63
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
133
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
64
             <div style="width:50px;">审批:</div><div style="width:100px;"></div>
134
             <div style="width:50px;">审批:</div><div style="width:100px;"></div>
65
             <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
135
             <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
77
           </div>
147
           </div>
78
         </div>
148
         </div>
79
 
149
 
150
+       </div>
80
       </div>
151
       </div>
81
 
152
 
82
     </div>
153
     </div>
133
         manufactureList:[],
204
         manufactureList:[],
134
         tableList:[],
205
         tableList:[],
135
         loading:false,
206
         loading:false,
136
-        warehouseList:[]
207
+        warehouseList:[],
208
+        tableData:[],
137
       }
209
       }
138
     },
210
     },
139
     methods: {
211
     methods: {
175
             const params = {
247
             const params = {
176
             'id': order_id
248
             'id': order_id
177
             };
249
             };
178
-            getDrugWarehouseOutInfo(params).then(response => {
179
-            if (response.data.state == 0) {
250
+     getDrugWarehouseOutInfo(params).then(response => {
251
+        if (response.data.state == 0) {
180
 
252
 
181
-                this.$message.error(response.data.msg);
182
-                return false
183
-            } else {
184
-              for (let i = 0; i < response.data.data.list.length; i++) {
185
-                this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
186
-               }
187
-               var total_price = 0;
188
-               for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
189
-                 total_price += this.warehousingOutInfo.warehousingOutData[i].count * this.warehousingOutInfo.warehousingOutData[i].price
190
-               }
191
-               this.allPrice = total_price;
192
-               this.warehousingOutInfo.info = response.data.data.info;
193
-               this.handleSpanTempArr()
253
+            this.$message.error(response.data.msg);
254
+            return false
255
+        } else {
256
+          for (let i = 0; i < response.data.data.list.length; i++) {
257
+            this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
194
             }
258
             }
195
-            })
196
-        },
259
+            var total_price = 0;
260
+            for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
261
+              total_price += this.warehousingOutInfo.warehousingOutData[i].count * this.warehousingOutInfo.warehousingOutData[i].price
262
+            }
263
+            this.allPrice = total_price;
264
+            this.warehousingOutInfo.info = response.data.data.info;
265
+            this.handleSpanTempArr()
266
+        }
267
+      })
268
+     },
197
         getList() {
269
         getList() {
198
         let params = {
270
         let params = {
199
           page: this.page,
271
           page: this.page,
213
             for (let i = 0; i < response.data.data.list.length; i++) {
285
             for (let i = 0; i < response.data.data.list.length; i++) {
214
               this.list.push(response.data.data.list[i])
286
               this.list.push(response.data.data.list[i])
215
             }
287
             }
216
-            console.log("list222222",this.list)
288
+           
217
           }
289
           }
218
         })
290
         })
219
       },
291
       },
265
         getDrugWarehouseOrderInfo().then(response=>{
337
         getDrugWarehouseOrderInfo().then(response=>{
266
            if(response.data.state == 1){
338
            if(response.data.state == 1){
267
              var list =  response.data.data.list
339
              var list =  response.data.data.list
268
-             console.log("入库单详情",list)
269
              this.drugOrderList = list
340
              this.drugOrderList = list
270
            }
341
            }
271
         })
342
         })
315
         getDrugOutOrderDetailPrint(params).then(response=>{
386
         getDrugOutOrderDetailPrint(params).then(response=>{
316
           if(response.data.state ==1){
387
           if(response.data.state ==1){
317
              var info = response.data.data.info
388
              var info = response.data.data.info
318
-             console.log("info",info)
319
             var warehousing = response.data.data.warehousing
389
             var warehousing = response.data.data.warehousing
320
-            console.log("ware2232",warehousing)
321
             this.warehouseList = warehousing
390
             this.warehouseList = warehousing
322
           
391
           
323
             for(let i=0;i<info.length;i++){
392
             for(let i=0;i<info.length;i++){
330
             }
399
             }
331
             
400
             
332
             var manufacturerList = response.data.data.manufacturerList
401
             var manufacturerList = response.data.data.manufacturerList
333
-            console.log("manufacturelist",manufacturerList)
402
+           
334
             this.manufactureList = manufacturerList
403
             this.manufactureList = manufacturerList
335
-            console.log("列表",info)
404
+
336
             this.tableList = info
405
             this.tableList = info
406
+            this.tableData = response.data.data.drug_warhouse_out
337
             this.loading = false
407
             this.loading = false
338
           }
408
           }
339
         })
409
         })
346
           }
416
           }
347
         }
417
         }
348
         return count
418
         return count
349
-      }
419
+      },
420
+      getTotalPrice(val){
421
+        var count = 0
422
+        for(let i=0;i<val.length;i++){
423
+           count +=val[i].count * val[i].price
424
+          }
425
+         return count.toFixed(2)
426
+        }
350
     },
427
     },
351
     created() {
428
     created() {
352
       this.orgName = this.$store.getters.xt_user.org.org_name;
429
       this.orgName = this.$store.getters.xt_user.org.org_name;