Преглед изворни кода

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

csx пре 2 година
родитељ
комит
d156d95215

+ 8 - 0
src/api/config.js Прегледај датотеку

@@ -202,3 +202,11 @@ export function changePrescriptionConfig(params) {
202 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 Прегледај датотеку

@@ -39,6 +39,9 @@
39 39
             <p style="margin-top:20px;">耗材先出库再执行:
40 40
                 <el-switch v-model="is_open_is_type" @change="changeFuncType"></el-switch>
41 41
             </p>
42
+            <!-- <p style="margin-top:20px;">药品在保存处方时出库:
43
+                <el-switch v-model="drug_out_open" @change="changeDrugOpen"></el-switch>
44
+            </p> -->
42 45
         </div>
43 46
 
44 47
 
@@ -94,7 +97,7 @@
94 97
 
95 98
 <script>
96 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 102
 export default {
100 103
   name: "printTemplate",
@@ -115,6 +118,7 @@ export default {
115 118
       is_open_is_type:false,
116 119
       is_open_advice_xt_his:false,
117 120
       is_open_prescription_xt_his:false,
121
+      drug_out_open:false,
118 122
     };
119 123
   },
120 124
   methods: {
@@ -154,6 +158,12 @@ export default {
154 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 167
           } else {
158 168
             this.$message.error(response.data.msg)
159 169
           }
@@ -376,6 +386,25 @@ export default {
376 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 Прегледај датотеку

@@ -1385,7 +1385,7 @@ export default {
1385 1385
       const style11 =
1386 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 1390
       if (this.org_template_info.template_id == 1) {
1391 1391
         printJS({
@@ -1670,7 +1670,7 @@ export default {
1670 1670
         printJS({
1671 1671
           printable: "dialysis-print-box",
1672 1672
           type: "html",
1673
-          style: style,
1673
+          style: style2,
1674 1674
           scanStyles: false,
1675 1675
         });
1676 1676
       } else if (this.org_template_info.template_id == 43) {

+ 317 - 128
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue Прегледај датотеку

@@ -3,19 +3,6 @@
3 3
     <div class="dialysis-print-order">
4 4
       <div class="order-yy-name">{{ orgname }}</div>
5 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 6
       <table class="print-table" border="1">
20 7
         <tbody>
21 8
           <tr>
@@ -24,7 +11,7 @@
24 11
             </td>
25 12
           </tr>
26 13
           <tr>
27
-            <td colspan="11">
14
+            <td colspan="11" style="padding-left: 10px">
28 15
               <div class="list_table">
29 16
                 <div>姓 名:&nbsp;{{ patientInfo.name }}</div>
30 17
                 <div>
@@ -35,10 +22,12 @@
35 22
             </td>
36 23
           </tr>
37 24
           <tr class="list_table_1">
38
-            <td colspan="11">
25
+            <td colspan="11" style="padding-left: 10px">
39 26
               <div style="display: flex">
40 27
                 <div style="width: 400px">
41
-                  病情评估:&nbsp;<span>{{ sick_condition ? sick_condition : "" }}</span>
28
+                  病情评估:&nbsp;<span>{{
29
+                    sick_condition ? sick_condition : ""
30
+                  }}</span>
42 31
                 </div>
43 32
                 <div style="width: 400px">
44 33
                   入科方式:&nbsp;<span
@@ -54,7 +43,11 @@
54 43
             </td>
55 44
           </tr>
56 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 52
               <label-box
60 53
                 :isChecked="prescription.mode_id == 1 ? true : false"
@@ -99,7 +92,7 @@
99 92
               </span>
100 93
             </td>
101 94
             <!-- <td width="20" style="border: none"></td> -->
102
-            <td width="200">
95
+            <td width="200" style="padding-left: 10px">
103 96
               治疗时间:&nbsp;{{
104 97
                 afterdialysis.actual_treatment_hour
105 98
                   ? afterdialysis.actual_treatment_hour
@@ -111,40 +104,114 @@
111 104
               }}&nbsp;分
112 105
             </td>
113 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 126
           <tr class="list_table_1">
115
-            <td colspan="12">
127
+            <td colspan="12" style="padding-left: 10px">
116 128
               治疗抗凝:
117 129
               <label-box
130
+                v-if="prescription.anticoagulant == 3"
118 131
                 :isChecked="prescription.anticoagulant == 3 ? true : false"
119 132
                 showValue="低分子肝素:"
120 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 153
               <label-box
123 154
                 :isChecked="prescription.anticoagulant == 2 ? true : false"
124 155
                 showValue="普通肝素:"
125 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 181
               <label-box
132 182
                 :isChecked="prescription.anticoagulant == 1 ? true : false"
133 183
                 showValue="无肝素"
134 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 189
             </td>
137 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 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 211
               ml/h;
145 212
             </td>
146 213
             <!-- <td style="border: none"></td> -->
147
-            <td width="20">
214
+            <td width="20" style="padding-left: 10px">
148 215
               医师签名:
149 216
               <span v-if="setAdminUserES(prescription.creater) == ''">
150 217
                 {{ getAdminUser(prescription.creater) }}
@@ -160,37 +227,57 @@
160 227
             </td>
161 228
           </tr>
162 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 275
                 </div>
190
-              </td>
276
+              </div>
277
+            </td>
191 278
           </tr>
192 279
           <tr class="list_table_1">
193
-            <td colspan="11">
280
+            <td colspan="11" style="padding-left: 10px">
194 281
               <div style="display: flex; justify-content: flex-start">
195 282
                 <div style="width: 75%">
196 283
                   血管通路: &nbsp;
@@ -260,11 +347,34 @@
260 347
                   ></label-box>
261 348
                   &nbsp;
262 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 378
               </div>
269 379
             </td>
270 380
           </tr>
@@ -372,7 +482,11 @@
372 482
                   }}
373 483
                 </td>
374 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 490
                 </td>
377 491
               </table>
378 492
             </td>
@@ -385,11 +499,7 @@
385 499
                 frame="void"
386 500
               >
387 501
                 <td style="width: 20%">
388
-                  &nbsp;{{
389
-                    monitor.monitor_temperature
390
-                      ? monitor.monitor_temperature
391
-                      : ""
392
-                  }}
502
+                  &nbsp;{{ monitor.temperature ? monitor.temperature : "" }}
393 503
                 </td>
394 504
                 <td style="width: 20%">
395 505
                   &nbsp;{{
@@ -403,24 +513,31 @@
403 513
                 </td>
404 514
                 <td style="width: 20%">
405 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 524
                 </td>
409 525
                 <td style="width: 20%">
410 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 531
                 </td>
414 532
               </table>
415 533
             </td>
416 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 540
             </td>
423
-
424 541
           </tr>
425 542
         </tbody>
426 543
       </table>
@@ -443,7 +560,9 @@
443 560
             <td style="width: 60px; height: 40px">
444 561
               <p style="height: 20px; line-height: 20px">上次透后体重</p>
445 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 566
           </tr>
448 567
 
449 568
           <tr v-for="(advice, advice_index) in advices">
@@ -494,7 +613,6 @@
494 613
               />
495 614
             </td>
496 615
 
497
-            
498 616
             <td v-if="advice_index === 0">透前体重:</td>
499 617
             <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
500 618
             <td v-if="advice_index === 1">体重增加量:</td>
@@ -502,7 +620,7 @@
502 620
               {{
503 621
                 (
504 622
                   predialysis.weight_before - assessmentafter.weight_after
505
-                ).toFixed(1)
623
+                ).toFixed(2)
506 624
               }}kg
507 625
             </td>
508 626
             <td v-if="advice_index === 2">干体重(DW):</td>
@@ -510,51 +628,116 @@
510 628
             <td v-if="advice_index === 3">较干体重增加量:</td>
511 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 634
               }}kg
518 635
             </td>
519 636
             <td v-if="advice_index === 4">净脱水量:</td>
520 637
             <td v-if="advice_index === 4">
521
-              {{ afterdialysis.actual_ultrafiltration }}L
638
+              {{ afterdialysis.actual_ultrafiltration }}ml
522 639
             </td>
523 640
             <td v-if="advice_index === 5">透后体重:</td>
524 641
             <td v-if="advice_index === 5">
525
-              {{ assessmentafter.weight_after }}kg
642
+              {{ afterdialysis.weight_after }}kg
526 643
             </td>
527
-             <td v-if="advice_index === 6">本次透析体重下降量:</td>
644
+            <td v-if="advice_index === 6">本次透析体重下降量:</td>
528 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 651
             </td>
652
+            <td v-if="advice_index > 6"></td>
653
+            <td v-if="advice_index > 6"></td>
531 654
           </tr>
532 655
         </tbody>
533 656
       </table>
534 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 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 742
       <table class="table-box" style="margin-top: 10px">
560 743
         <tbody>
@@ -567,7 +750,7 @@
567 750
         </tbody>
568 751
       </table>
569 752
     </div>
570
-    <div style="position: absolute; top: 1380px; left: 50%">1</div>
753
+    <div style="position: absolute; top: 1380px; left: 50%"></div>
571 754
   </div>
572 755
 </template>
573 756
 
@@ -669,13 +852,14 @@ export default {
669 852
       advices: [],
670 853
       users: [],
671 854
       monitors: [],
672
-      sick_condition:"",
855
+      sick_condition: "",
673 856
       summary: {},
674 857
       receiverTreatmentAccess: {},
675 858
       org_template_info: {},
676 859
 
677 860
       doctor_advices: [],
678 861
       advice_groups: [],
862
+      org_id: 0,
679 863
 
680 864
       AlPanel: {
681 865
         id: 0,
@@ -822,7 +1006,10 @@ export default {
822 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 1013
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;
827 1014
           this.operators = response.data.data.operators;
828 1015
           this.dialysisOrder =
@@ -889,13 +1076,13 @@ export default {
889 1076
           this.receiverTreatmentAccess =
890 1077
             response.data.data.receiverTreatmentAccess;
891 1078
           this.assessmentafter = response.data.data.assessmentAfterDislysis;
892
-          this.sick_condition_arr.forEach(o => {
1079
+          this.sick_condition_arr.forEach((o) => {
893 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 1087
           console.log("上次透后体重", this.assessmentafter);
901 1088
 
@@ -982,9 +1169,9 @@ export default {
982 1169
             advices.push(item);
983 1170
           }
984 1171
 
985
-           var tableAdvice =  this.advices;
1172
+          var tableAdvice = this.advices;
986 1173
           console.log("医生", tableAdvice);
987
-           if (tableAdvice.length === 0) {
1174
+          if (tableAdvice.length === 0) {
988 1175
             var obj = { advice_name: "", start_time: "" };
989 1176
             var obj1 = { advice_name: "", start_time: "" };
990 1177
             var obj2 = { advice_name: "", start_time: "" };
@@ -1012,7 +1199,7 @@ export default {
1012 1199
             tableAdvice.push(obj4);
1013 1200
             this.advices = tableAdvice;
1014 1201
           }
1015
-           if (tableAdvice.length === 2) {
1202
+          if (tableAdvice.length === 2) {
1016 1203
             var obj = { advice_name: "", start_time: "" };
1017 1204
             var obj1 = { advice_name: "", start_time: "" };
1018 1205
             var obj2 = { advice_name: "", start_time: "" };
@@ -1062,9 +1249,8 @@ export default {
1062 1249
             tableAdvice.push(obj1);
1063 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 1255
           this.loading = false;
1070 1256
 
@@ -1166,9 +1352,8 @@ export default {
1166 1352
       });
1167 1353
     },
1168 1354
     bloodAccessParOperaName(id) {
1169
-      console.log(this.bloodAccessParOpera)
1355
+      console.log(this.bloodAccessParOpera);
1170 1356
       if (id in this.bloodAccessParOpera) {
1171
-        
1172 1357
         return this.bloodAccessParOpera[id].name;
1173 1358
       }
1174 1359
       return "";
@@ -1228,6 +1413,7 @@ export default {
1228 1413
     },
1229 1414
   },
1230 1415
   created() {
1416
+    this.org_id = this.$store.getters.xt_user.org_id;
1231 1417
     this.way_arr = getDataConfig("hemodialysis", "way");
1232 1418
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
1233 1419
     this.appetite_arr = getDataConfig("hemodialysis", "appetite");
@@ -1236,7 +1422,7 @@ export default {
1236 1422
     this.precaution_arr = getDataConfig("hemodialysis", "precaution");
1237 1423
     this.intake_arr = getDataConfig("hemodialysis", "intake");
1238 1424
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1239
-        var bloodAccessParOpera = getDataConfig(
1425
+    var bloodAccessParOpera = getDataConfig(
1240 1426
       "hemodialysis",
1241 1427
       "vascular_access_desc"
1242 1428
     );
@@ -1290,7 +1476,7 @@ export default {
1290 1476
 
1291 1477
 <style>
1292 1478
 .dialysis-print-order {
1293
-  width: 890px;
1479
+  width: 960px;
1294 1480
   margin: 0 auto;
1295 1481
 }
1296 1482
 
@@ -1488,4 +1674,7 @@ export default {
1488 1674
   padding: 0;
1489 1675
   border: 1px solid #dcdfe6;
1490 1676
 }
1677
+.list_table_1 {
1678
+  text-align: left;
1679
+}
1491 1680
 </style>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordPrint.vue Прегледај датотеку

@@ -13,7 +13,7 @@
13 13
 
14 14
     <div class="dialysisPage" style="padding-top: 40px">
15 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 17
         ref="printOne"
18 18
         v-bind:childResponse="childResponse"
19 19
         :patient="patient"

+ 11 - 0
src/xt_pages/outpatientTool/components/gatherStatistics.vue Прегледај датотеку

@@ -1246,6 +1246,17 @@ export default {
1246 1246
     },
1247 1247
   },
1248 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 1260
     this.start_time = this.chargeDate[0];
1250 1261
     this.end_time = this.chargeDate[1];
1251 1262
     this.tableList = [];

+ 21 - 25
src/xt_pages/stock/drugs/components/drugOutDetail.vue Прегледај датотеку

@@ -159,26 +159,17 @@
159 159
         </el-table-column>
160 160
         <el-table-column label="总价" align="center">
161 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 173
           </template>
183 174
         </el-table-column>
184 175
       </el-table>
@@ -437,10 +428,11 @@ export default {
437 428
                order[i].total_price = order[i].count * order[i].last_price
438 429
                total_price += order[i].count * order[i].last_price
439 430
              }else{
431
+               console.log("555555555555",order[i])
440 432
                if(order[i].price > 0){
433
+                console.log("近来33232323322323")
441 434
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
442 435
                    order[i].total_price = order[i].count * order[i].price
443
-                  total_price += order[i].total_price
444 436
                  }
445 437
                  if(order[i].count_unit == order[i].max_unit){
446 438
                    if(order[i].is_sys == 0){
@@ -449,12 +441,15 @@ export default {
449 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 449
                if(order[i].price ==0 ){
455 450
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
456 451
                     order[i].total_price = order[i].count * this.getPrice(order[i].drug_id)
457
-                   total_price +=order[i].total_price
452
+                  
458 453
                     order[i].price = this.getPrice(order[i].drug_id)
459 454
                  }
460 455
                 
@@ -466,13 +461,13 @@ export default {
466 461
                    }
467 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 471
            order.push({
477 472
             warehouse_out_order_number: "合计",
478 473
             is_total: 1,
@@ -487,6 +482,7 @@ export default {
487 482
        
488 483
           console.log("233223322323322332232323",order)
489 484
           this.tableData = order
485
+
490 486
            let objInfo = {}
491 487
           order.forEach((item,index)=>{
492 488
              let { drug_id } = item
@@ -579,7 +575,7 @@ export default {
579 575
           this.tablePrint[i].index = i+1
580 576
         }
581 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 580
              this.tablePrint[i].count = this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child)
585 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 Прегледај датотеку

@@ -7,6 +7,7 @@
7 7
     </div>
8 8
     <div class="app-container ">
9 9
       <div id="dialysis-print-box">
10
+        <div v-if="org_id!=9671 && org_id!=10210">
10 11
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11 12
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
12 13
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
@@ -58,8 +59,77 @@
58 59
              </tr>
59 60
             </tbody>
60 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 133
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
64 134
             <div style="width:50px;">审批:</div><div style="width:100px;"></div>
65 135
             <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
@@ -77,6 +147,7 @@
77 147
           </div>
78 148
         </div>
79 149
 
150
+       </div>
80 151
       </div>
81 152
 
82 153
     </div>
@@ -133,7 +204,8 @@
133 204
         manufactureList:[],
134 205
         tableList:[],
135 206
         loading:false,
136
-        warehouseList:[]
207
+        warehouseList:[],
208
+        tableData:[],
137 209
       }
138 210
     },
139 211
     methods: {
@@ -175,25 +247,25 @@
175 247
             const params = {
176 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 269
         getList() {
198 270
         let params = {
199 271
           page: this.page,
@@ -213,7 +285,7 @@
213 285
             for (let i = 0; i < response.data.data.list.length; i++) {
214 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,7 +337,6 @@
265 337
         getDrugWarehouseOrderInfo().then(response=>{
266 338
            if(response.data.state == 1){
267 339
              var list =  response.data.data.list
268
-             console.log("入库单详情",list)
269 340
              this.drugOrderList = list
270 341
            }
271 342
         })
@@ -315,9 +386,7 @@
315 386
         getDrugOutOrderDetailPrint(params).then(response=>{
316 387
           if(response.data.state ==1){
317 388
              var info = response.data.data.info
318
-             console.log("info",info)
319 389
             var warehousing = response.data.data.warehousing
320
-            console.log("ware2232",warehousing)
321 390
             this.warehouseList = warehousing
322 391
           
323 392
             for(let i=0;i<info.length;i++){
@@ -330,10 +399,11 @@
330 399
             }
331 400
             
332 401
             var manufacturerList = response.data.data.manufacturerList
333
-            console.log("manufacturelist",manufacturerList)
402
+           
334 403
             this.manufactureList = manufacturerList
335
-            console.log("列表",info)
404
+
336 405
             this.tableList = info
406
+            this.tableData = response.data.data.drug_warhouse_out
337 407
             this.loading = false
338 408
           }
339 409
         })
@@ -346,7 +416,14 @@
346 416
           }
347 417
         }
348 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 428
     created() {
352 429
       this.orgName = this.$store.getters.xt_user.org.org_name;