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

Merge branch '2022-10-17_vue_schedule_branch' of http://git.shengws.com/csx/Vue_New into 20220812

XMLWAN пре 1 година
родитељ
комит
f20287226e

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

@@ -217,6 +217,7 @@ export default {
217 217
       this.showEditDeviceNumber = true;
218 218
     },
219 219
     modifyDeviceNumberAt(row) {
220
+      console.log("row23233232",row)
220 221
       this.number_form.id = row.id;
221 222
       this.number_form.number = row.number;
222 223
       this.number_form.zone = row.zone_id;

+ 14 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo.vue Прегледај датотеку

@@ -63,6 +63,7 @@
63 63
                          {{ record.patient.diagnose ? record.patient.diagnose : '' }}
64 64
                         </div>
65 65
                     </td>
66
+
66 67
                     <td width="80">透析频率:</td>
67 68
                         <td width="70">
68 69
                             <div class="under-line">&nbsp;{{ record.assessment_before_dislysis.dialysis_count ? record.assessment_before_dislysis.dialysis_count : "" }}</div>
@@ -85,9 +86,21 @@
85 86
                         <td></td>
86 87
                         <td></td>
87 88
                     </tr>
89
+                 
88 90
                     </tbody>
89 91
                 </table>
90
-                
92
+                 <table class="table-box" style="margin-top: 10px;">
93
+                    <tbody>
94
+                       <tr>
95
+                        <td width="40">透析备注:</td>
96
+                        <td width="500">
97
+                            <div class="under-line">
98
+                            {{ record.prescription.dialysis_remark ? record.prescription.dialysis_remark : '' }}
99
+                            </div>
100
+                        </td>
101
+                        </tr>
102
+                   </tbody>
103
+                </table>
91 104
                 <table class="print-table" border="1">
92 105
                     <tbody>
93 106
                     <tr>

+ 6 - 5
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Прегледај датотеку

@@ -943,7 +943,7 @@
943 943
                 </el-row>
944 944
                
945 945
                 <el-row :gutter="20">
946
-                  <el-col :span="24" v-if="isShows('透析备注')">
946
+                  <el-col :span="24" v-if="isShows('透析备注') && (dialysisPrescription.mode_id == 2 || dialysisPrescription.mode_id == 3 || dialysisPrescription.mode_id == 4)">
947 947
                     <el-form-item label="透析备注:">
948 948
                       <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
949 949
                         <el-option
@@ -957,7 +957,7 @@
957 957
                   </el-col>
958 958
                 </el-row>
959 959
                 <el-row :gutter="20">
960
-                  <el-col v-if="isShows('透析备注')">
960
+                  <el-col v-if="isShows('透析备注') && (dialysisPrescription.mode_id == 2 || dialysisPrescription.mode_id == 3 || dialysisPrescription.mode_id == 4)">
961 961
                     <el-form-item>
962 962
                       <el-input
963 963
                         type="textarea"
@@ -1731,9 +1731,10 @@
1731 1731
         // console.log('arrthree', arrthree)
1732 1732
         const arrFour = []
1733 1733
         Object.keys(anticoagulantsConfitOne).map((item, index) => {
1734
-          if (index != 2) {
1735
-            arrFour.push(anticoagulantsConfitOne[item])
1736
-          }
1734
+          arrFour.push(anticoagulantsConfitOne[item])
1735
+          // if (index != 2) {
1736
+          //   arrFour.push(anticoagulantsConfitOne[item])
1737
+          // }
1737 1738
         })
1738 1739
 
1739 1740
         this.anticoagulantsConfit = arrFour

+ 384 - 0
src/xt_pages/dialysis/doctorAdviceStaticPrint.vue Прегледај датотеку

@@ -0,0 +1,384 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-row style="float:right;">
6
+        <el-col :span="24">
7
+          <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+        </el-col>
9
+      </el-row>
10
+    </div>
11
+    <div class="app-container" style="background-color: white;">
12
+
13
+      <div id="print_content">
14
+        <div class="print_main_content">
15
+          <div class="order_title_panl">
16
+            <span class="main_title"> &nbsp;
17
+              透析药品
18
+            </span>
19
+            <span  style="float:right;">打印日期: &nbsp;
20
+               {{$route.query.schedule_date}}
21
+            </span>
22
+          </div>
23
+          <div class="table_panel">
24
+
25
+            <table class="table">
26
+              <thead>
27
+              <tr>
28
+                <td width="50">序号</td>
29
+                <td width="100">药品名称</td>
30
+                <td width="100">规格</td>
31
+                <td width="100">数量</td>
32
+                
33
+              </tr>
34
+              </thead>
35
+              <tbody>
36
+               <tr v-for="(item,i) in tableList" :key="i">
37
+                <td>{{i+1}}</td>
38
+                <td>{{item.advice_name}}</td>
39
+                 <td>{{item.specification_name}}</td>
40
+                <td>
41
+                  <span v-if="config.is_open == 1">{{getHisCount(item.child,item.max_unit,item.min_unit,item.min_number)}}</span>
42
+                  <span v-if="config.is_open != 1">{{getCount(item.child)}}</span>
43
+                </td>
44
+               </tr>
45
+              </tbody>
46
+            </table>
47
+          </div>
48
+        </div>
49
+      </div>
50
+    </div>
51
+  </div>
52
+</template>
53
+
54
+<script>
55
+  import { getDialysisAdviceToday } from '@/api/dialysis'
56
+  import { parseTime } from '@/utils'
57
+  import { uParseTime } from '@/utils/tools'
58
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
59
+  import print from 'print-js'
60
+  import { getDataConfig } from '@/utils/data'
61
+  export default {
62
+    name: 'SchedulePrint',
63
+    data() {
64
+      return {
65
+        crumbs: [
66
+          { path: false, name: '排班管理' },
67
+          { path: false, name: '排班打印' }
68
+        ],
69
+        td_1_width: '8%',
70
+        td_2_width: '8%',
71
+        td_3_width: '64%',
72
+        td_4_width: '20%',
73
+        month: 1,
74
+        begin_day: 1,
75
+        total:[],
76
+        list:[],
77
+        schedule_date:"",
78
+        schedule_type:0,
79
+        partition_type:0,
80
+        keywords:"",
81
+        loading:false,
82
+        tableData:[],
83
+        numberList:[],
84
+        partitionArr:[],
85
+        his_config:{},
86
+        typeList:[],
87
+        rowList:[],
88
+        dialysate_formulation:[],
89
+        body_fluid_option:[],
90
+        displace_liqui_part_option:[],
91
+        blood_access_option:[],
92
+        hemodialysisPipelinesOptions:[],
93
+        tableList:[],
94
+        druglist:[],
95
+        config:{}
96
+      }
97
+    },
98
+    components: {
99
+      BreadCrumb
100
+    },
101
+    created() {
102
+      this.getDialysisAdviceSchedudeList()
103
+    },
104
+    methods: {
105
+      getDialysisAdviceSchedudeList() {
106
+          var params = {
107
+            schedule_type:this.$route.query.schedule_type,
108
+            partion_type:this.$route.query.partion_type,
109
+            selected_date:this.$route.query.schedule_date,
110
+          }
111
+        console.log("params2332232wo",params)
112
+       getDialysisAdviceToday(params).then(response=>{
113
+          if(response.data.state == 1){
114
+             var doctorList = []
115
+             var druglist = response.data.data.drug
116
+             this.druglist = druglist
117
+             this.startdialogVisible = true
118
+             var list = response.data.data.list
119
+          
120
+             var config = response.data.data.config
121
+            
122
+             this.config = config
123
+             if(list!=null && list.length > 0){
124
+               for(let i=0;i<list.length;i++){
125
+                for(let j=0;j<list[i].xt_doctor_advice.length;j++){
126
+                  doctorList.push(list[i].xt_doctor_advice[j])
127
+                }
128
+               }
129
+             }
130
+
131
+             if(config.is_open!=1){
132
+               if(doctorList!=null && doctorList.length > 0){
133
+                let dataInfo = {}
134
+                  doctorList.forEach((item, index) => {
135
+                  let { advice_name } = item
136
+                  if (!dataInfo[advice_name]) {
137
+                    dataInfo[advice_name] = {
138
+                      advice_name:item.advice_name,
139
+                      child: [],
140
+                      count:0,
141
+                      drug_id:item.drug_id,
142
+                      specification_name:item.advice_desc +item.drug_spec_unit,
143
+                      patient_id:item.patient_id,
144
+                    }
145
+                  }
146
+                })
147
+                let arr = Object.values(dataInfo)
148
+                // console.log("arr23332323232",arr)
149
+
150
+
151
+                if(arr.length > 0){
152
+                  for(let i=0;i<doctorList.length;i++){
153
+                    for(let j=0;j<arr.length;j++){
154
+                      if(doctorList[i].advice_name == arr[j].advice_name){
155
+                          arr[j].child.push(doctorList[i])
156
+                      }
157
+                    }
158
+                  }
159
+                }
160
+               
161
+                this.tableList = []
162
+                for(let i=0;i<list.length;i++){
163
+                  for(let j=0;j<arr.length;j++){
164
+                    if(list[i].patient_id == arr[j].patient_id){
165
+                      this.tableList.push(arr[j])
166
+                    }
167
+                  }
168
+                }
169
+               
170
+              }
171
+             }
172
+                       
173
+           var his_doctor_advice = []
174
+
175
+           for(let i=0;i<list.length;i++){
176
+             for(let j=0;j<list[i].his_doctor_advice.length;j++){
177
+                his_doctor_advice.push(list[i].his_doctor_advice[j])
178
+             }
179
+           }
180
+           console.log("his_doctor_advice",his_doctor_advice)
181
+          
182
+            var newHisArr = []
183
+            for(let i=0;i<his_doctor_advice.length;i++){    
184
+               his_doctor_advice[i].count_one = 0
185
+               if(his_doctor_advice[i].prescribing_number_unit == his_doctor_advice[i].drug.max_unit){
186
+                  his_doctor_advice[i].prescribing_number = parseInt(his_doctor_advice[i].prescribing_number) * his_doctor_advice[i].drug.min_number
187
+                  his_doctor_advice[i].count_one =  parseInt(his_doctor_advice[i].prescribing_number) * his_doctor_advice[i].drug.min_number
188
+               }
189
+            }
190
+
191
+            for(let i=0;i<his_doctor_advice.length;i++){
192
+              for(let j=0;j<druglist.length;j++){
193
+                if(his_doctor_advice[i].drug_id == druglist[j].id){
194
+                   newHisArr.push(his_doctor_advice[i])
195
+                }
196
+              }
197
+            }
198
+            console.log("下盘子3223323223",newHisArr)
199
+            
200
+             if(config.is_open == 1){
201
+               if(newHisArr!=null && newHisArr.length > 0){
202
+                  let dataInfoOne = {}
203
+                  newHisArr.forEach((item, index) => {
204
+                  let { advice_name } = item
205
+                  if (!dataInfoOne[advice_name]) {
206
+                    dataInfoOne[advice_name] = {
207
+                      advice_name:item.advice_name,
208
+                      child: [],
209
+                      count:0,
210
+                      specification_name:this.getSpecification(item.drug_id),
211
+                      drug_id:item.drug_id,
212
+                      patient_id:item.patient_id,
213
+                      min_number:item.drug.min_number,
214
+                      max_unit:item.drug.max_unit,
215
+                      min_unit:item.drug.min_unit
216
+                    }
217
+                  }
218
+                })
219
+                let hisarr = Object.values(dataInfoOne)
220
+                console.log("hisarr233232233232",hisarr)
221
+                if(hisarr.length > 0){
222
+                  for(let i=0;i<newHisArr.length;i++){
223
+                    for(let j=0;j<hisarr.length;j++){
224
+                      if(newHisArr[i].drug_id == hisarr[j].drug_id){
225
+                          hisarr[j].child.push(newHisArr[i])
226
+                      }
227
+                    }
228
+                  }
229
+                }
230
+                console.log("hisarr",hisarr)
231
+                this.tableList = []
232
+                this.tableList = hisarr
233
+              }
234
+
235
+              console.log("中国人民解放军",this.tableList)
236
+             }
237
+          }
238
+        })
239
+      },
240
+     getTimeOne(val) {
241
+        if(val == ""){
242
+        return ""
243
+        }else {
244
+        return uParseTime(val, '{y}-{m}-{d}')
245
+        }
246
+     },
247
+     getCount(val){
248
+       var count = 0
249
+       if(val!=null && val.length > 0){
250
+        for(let i=0;i<val.length;i++){
251
+          count += parseInt(val[i].prescribing_number)
252
+        }
253
+       }
254
+       if(count > 0){
255
+        return count
256
+       }else{
257
+        return 0
258
+       }
259
+     },
260
+    printAction: function() {
261
+    const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
262
+
263
+    printJS({
264
+        printable: 'print_content',
265
+        type: 'html',
266
+        documentTitle: '  ',
267
+        style: style,
268
+        scanStyles: false
269
+     })
270
+    },
271
+    getSpecification(id){
272
+        var specification_name = ""
273
+        for(let i=0;i<this.druglist.length;i++){
274
+          if(id == this.druglist[i].id){
275
+            specification_name = this.druglist[i].dose+this.druglist[i].dose_unit +"*"+this.druglist[i].min_number+this.druglist[i].min_unit +"/"+this.druglist[i].max_unit
276
+          }
277
+        }
278
+        return specification_name
279
+      },
280
+     getHisCount(val,max_unit,min_unit,min_number){
281
+        var total = 0
282
+        var max_str = "";
283
+        var min_str = "";
284
+        for(let i=0;i<val.length;i++){
285
+          total+=parseInt(val[i].prescribing_number)
286
+        }
287
+        if (total < min_number) {
288
+        min_str = total + min_unit;
289
+      }
290
+      if (total == 0) {
291
+        min_str = "";
292
+        max_str = "";
293
+      }
294
+      if (total >= min_number) {
295
+        if (parseInt(total / min_number) != 0) {
296
+          max_str = parseInt(total / min_number) + max_unit;
297
+        }
298
+        if (total % min_number != 0) {
299
+          min_str = (total % min_number) + min_unit;
300
+        }
301
+      }
302
+      return max_str + min_str;
303
+        
304
+      },
305
+   }
306
+  }
307
+</script>
308
+
309
+<style rel="stylesheet/scss" lang="scss" scoped>
310
+  .print_main_content {
311
+    background-color: white;
312
+    width: 960px;
313
+    margin: 0 auto;
314
+    padding: 0 0 20px 0;
315
+
316
+  .order_title_panl {
317
+    text-align: center;
318
+
319
+  .main_title {
320
+    font-size: 18px;
321
+    line-height: 40px;
322
+    font-weight: 500;
323
+  }
324
+
325
+  }
326
+  .table_panel {
327
+
328
+  .table {
329
+    width: 100%;
330
+    border: 1px solid;
331
+    border-collapse: collapse;
332
+    padding: 2px;
333
+
334
+  thead {
335
+
336
+  tr {
337
+
338
+  td {
339
+    border: 1px solid;
340
+    text-align: center;
341
+    font-size: 20px;
342
+    padding: 15px 5px;
343
+  }
344
+
345
+  }
346
+  }
347
+  tbody {
348
+
349
+  tr {
350
+
351
+  td {
352
+    border: 1px solid;
353
+    text-align: center;
354
+    font-size: 18px;
355
+    padding: 10px 5px;
356
+
357
+  .proj {
358
+    padding: 5px 0;
359
+    text-align: left;
360
+
361
+  .proj_title {
362
+    font-size: 16px;
363
+    font-weight: 500;
364
+    line-height: 25px;
365
+  }
366
+
367
+  .proj_item {
368
+    font-size: 15px;
369
+    line-height: 20px;
370
+
371
+  .zone_name {
372
+    font-weight: 500;
373
+  }
374
+
375
+  }
376
+  }
377
+  }
378
+  }
379
+  }
380
+  }
381
+  }
382
+  }
383
+</style>
384
+

+ 35 - 71
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Прегледај датотеку

@@ -1219,25 +1219,13 @@
1219 1219
                               : "mmHg"
1220 1220
                           }})
1221 1221
                         </td>
1222
-                        <td width="60" v-if="org_id != 9836">透析液温度(°C)</td>
1222
+                        
1223 1223
                         <td width="60" v-if="org_id == 9836">体温(°C)</td>
1224
-
1225
-                        <td
1226
-                          width="50"
1227
-                          v-if="
1228
-                            org_id != 10121
1229
-                          "
1230
-                        >
1231
-                          电导度<br />(ms/cm)
1232
-                        </td>
1233
-                        <td
1234
-                          width="50"
1235
-                          v-if="
1236
-                            org_id == 10121
1237
-                          "
1238
-                        >
1239
-                          SpO₂<br />(%)
1240
-                        </td>
1224
+                        <td width="60" v-if="org_id == 9919">血温(°C)</td>
1225
+                        <td width="60" v-if="org_id == 9671">血温(°C)</td>
1226
+                        <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671">透析液温度(°C)</td>
1227
+                        <td width="50" v-if="org_id != 10121">电导度<br />(ms/cm)</td>
1228
+                        <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1241 1229
                         <td width="50">超滤量<br />(ml)</td>
1242 1230
                         <td
1243 1231
                           v-if="
@@ -1249,21 +1237,11 @@
1249 1237
                         >
1250 1238
                           置换量<br />(ml)
1251 1239
                         </td>
1252
-                        <td width="50" v-if="org_id == 9919 || org_id == 9538">KT/V</td>
1253
-                        <td width="50" v-if="org_id == 9538">血容量<br />(L)</td>
1240
+                        <td width="50" v-if="org_id == 9538">KT/V</td>
1241
+                        <td width="50" v-if="org_id == 9919">在线尿素监测</td>  
1242
+                        <td width="50" v-if="org_id == 9671">在线尿素监测</td>  
1243
+                        <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1254 1244
                         <td width="200">病情变化及处理</td>
1255
-
1256
-                        <!-- <td width="100">时间</td>
1257
-                    <td width="30">T<br>C°</td>
1258
-                    <td width="30">P<br/>次/分</td>
1259
-                    <td width="30">R<br/>次/分</td>
1260
-                    <td width="100">BP<br/>mmHg</td>
1261
-                    <td width="60">静脉压/动脉压<br/>mmHg</td>
1262
-                    <td width="80">血流量<br/>ml/min</td>
1263
-                    <td width="90">超滤量累计L</td>
1264
-                    <td width="80">钠浓度<br/>mmol/L</td>
1265
-                    <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
1266
-                    <td  width="100">护士签名</td> -->
1267 1245
                       </tr>
1268 1246
 
1269 1247
                       <tr v-for="(monitor, monindex) in monitors" :key="monindex">
@@ -1311,54 +1289,39 @@
1311 1289
                             }}
1312 1290
                           </span>
1313 1291
                         </td>
1314
-                        <td v-if="org_id != 9836">
1315
-                          {{
1316
-                            monitor.dialysate_temperature
1317
-                              ? monitor.dialysate_temperature
1318
-                              : ""
1319
-                          }}
1292
+                        <td v-if="org_id == 9919">
1293
+                          {{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}
1294
+                        </td>
1295
+                        <td v-if="org_id == 9671">
1296
+                          {{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}
1320 1297
                         </td>
1298
+
1321 1299
                         <td v-if="org_id == 9836">
1322 1300
                           {{ monitor.temperature ? monitor.temperature : "" }}
1323 1301
                         </td>
1324 1302
 
1325
-                        <td
1326
-                          v-if="
1327
-                            org_id == 10121
1328
-                          "
1329
-                        >
1330
-                          {{
1331
-                            monitor.blood_oxygen_saturation
1332
-                              ? monitor.blood_oxygen_saturation
1333
-                              : ""
1334
-                          }}
1303
+                         <td v-if="org_id!=9919 && org_id!=9671 && org_id!=9836">
1304
+                          {{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}
1335 1305
                         </td>
1336 1306
 
1337 1307
 
1338
-                        <td
1339
-                          v-if="
1340
-                            org_id != 9538 &&
1341
-                            org_id != 10121
1342
-                          "
1343
-                        >
1344
-                          {{ monitor.conductivity ? monitor.conductivity : "" }}
1308
+                        <td v-if="org_id == 10121">
1309
+                          {{monitor.blood_oxygen_saturation? monitor.blood_oxygen_saturation: ""}}
1345 1310
                         </td>
1346 1311
 
1347
-                        <td v-if="org_id == 9538">
1348
-                          {{
1349
-                            monitor.sodium_concentration
1350
-                              ? monitor.sodium_concentration
1351
-                              : ""
1352
-                          }}
1312
+                       <td v-if="org_id == 9538">
1313
+                          {{monitor.sodium_concentration? monitor.sodium_concentration: ""}}
1353 1314
                         </td>
1354 1315
 
1355
-                        <td
1356
-                        >
1357
-                          {{
1358
-                            monitor.ultrafiltration_volume
1359
-                              ? monitor.ultrafiltration_volume
1360
-                              : ""
1361
-                          }}
1316
+
1317
+                        <td v-if="org_id != 9538 &&org_id != 10121">
1318
+                          {{ monitor.conductivity ? monitor.conductivity : "" }}
1319
+                        </td>
1320
+
1321
+                      
1322
+
1323
+                        <td>
1324
+                          {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}
1362 1325
                         </td>
1363 1326
                         <!-- <td style="width:50px">
1364 1327
                           <span v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time))">
@@ -1384,10 +1347,10 @@
1384 1347
                             }}
1385 1348
                           </span>
1386 1349
                         </td>
1387
-                        <td width="50" v-if="org_id == 9919 || org_id == 9538">
1350
+                        <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671">
1388 1351
                           {{ monitor.ktv }}
1389 1352
                         </td>
1390
-                        <td width="50" v-if="org_id == 9538">
1353
+                        <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
1391 1354
                           {{ monitor.accumulated_blood_volume }}
1392 1355
                         </td>
1393 1356
                         <td style="line-height: 16px; padding: 0px">
@@ -1441,6 +1404,7 @@
1441 1404
                         <td></td>
1442 1405
                         <td></td>
1443 1406
                         <td></td>
1407
+                        <td v-if="org_id == 9671 || org_id == 9919"></td>
1444 1408
                         <td
1445 1409
                           v-if="
1446 1410
                             prescription.mode_id == 2 ||
@@ -1449,7 +1413,7 @@
1449 1413
                           "
1450 1414
                           width="50"
1451 1415
                         ></td>
1452
-                        <td v-if="org_id == 9919||org_id == 9538"></td>
1416
+                        <td v-if="org_id == 9919||org_id == 9538 || org_id == 9671"></td>
1453 1417
                         <td v-if="org_id == 9538"></td>
1454 1418
                         <td style="line-height: 16px; padding: 0px">
1455 1419
                           <div

+ 4 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue Прегледај датотеку

@@ -35,9 +35,8 @@
35 35
             <td style="text-align: center" colspan="2">
36 36
               透析次数:
37 37
               <span style="display: inline-block; margin-left: 10px">
38
-                {{
39
-                  patientInfo.total_dialysis + patientInfo.user_sys_before_count
40
-                }}
38
+               <span v-if="dialysisOrder && dialysisOrder.dialysis_date<=1672416000">{{patientInfo.total_dialysis + patientInfo.user_sys_before_count}}</span>  
39
+               <span v-if="dialysisOrder && dialysisOrder.dialysis_date>=1672502400">{{patientInfo.total_dialysis}}</span>  
41 40
               </span>
42 41
             </td>
43 42
             <!-- <td style="text-align:center;" colspan="1">
@@ -1142,10 +1141,8 @@
1142 1141
             <td style="text-align: center" colspan="2">
1143 1142
               透析次数:
1144 1143
               <span style="display: inline-block; margin-left: 10px">
1145
-                {{
1146
-                  patientInfo.total_dialysis + patientInfo.user_sys_before_count
1147
-                }}
1148
-              </span>
1144
+                <span v-if=""></span> {{patientInfo.total_dialysis + patientInfo.user_sys_before_count}}
1145
+              </span> 
1149 1146
             </td>
1150 1147
             <!-- <td style="text-align:center;">
1151 1148
               <template v-if="receiverTreatmentAccess.condition == 1">

+ 12 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue Прегледај датотеку

@@ -72,8 +72,20 @@
72 72
               <td></td>
73 73
               <td></td>
74 74
           </tr>
75
+         
75 76
           </tbody>
76 77
         </table>
78
+        <table class="table-box" style="margin-top: 10px;">
79
+         <tr>
80
+             <td width="40">透析备注:</td>
81
+             <td width="500">
82
+               <div class="under-line">
83
+                {{prescription.dialysis_remark?prescription.dialysis_remark:"" }}
84
+              </div>
85
+             </td>
86
+           
87
+          </tr>
88
+        </table>  
77 89
         <!-- <table class="table-box" style="margin-top: 10px;">
78 90
           <tbody>
79 91
             <tr>

+ 58 - 0
src/xt_pages/hospitalStation/components/deskPrescription.vue Прегледај датотеку

@@ -2554,6 +2554,64 @@ export default {
2554 2554
                       console.log("newArr",newArr )
2555 2555
                     }
2556 2556
                   }
2557
+
2558
+
2559
+              // var project_arr = []
2560
+              // //耗材
2561
+              // for(let i=0;i<this.prescriptions.length;i++){
2562
+              //   if(this.prescriptions[i].id == 0){
2563
+              //     for(let j=0;j<this.prescriptions[i].project.length;j++){
2564
+              //        if(this.prescriptions[i].project[j].type == 3){
2565
+              //          project_arr.push(this.prescriptions[i].project[j])
2566
+              //        }
2567
+                    
2568
+              //     }
2569
+              //   }
2570
+              // }
2571
+
2572
+              // if(project_arr.length > 0){
2573
+              //     let objInfo = {};
2574
+              //     project_arr.forEach((item, index) => {
2575
+              //     let { project_id } = item.project_id;
2576
+              //     if (!objInfo[project_id]) {
2577
+              //         objInfo[project_id] = {
2578
+              //           project_id:item.project_id,
2579
+              //           child: [],
2580
+              //           sum_count:item.good_info.sum_count,
2581
+              //           out_count:0,
2582
+              //           str:item.good_info.good_name +" "+ item.good_info.specification_name,
2583
+              //           is_user:item.good_info.is_user,
2584
+              //         };
2585
+              //       }
2586
+              //     });
2587
+              //     let newProjectArr = Object.values(objInfo);
2588
+
2589
+
2590
+              //     for(let i=0;i<project_arr.length;i++){
2591
+              //       for(let j=0;j<newProjectArr.length;j++){
2592
+              //         if(project_arr[i].project_id == newProjectArr[j].project_id){
2593
+              //           newProjectArr[j].child.push(project_arr[i])
2594
+              //         }
2595
+              //       }
2596
+              //     }
2597
+                 
2598
+                  
2599
+              //     for(let i=0;i<newProjectArr.length;i++){
2600
+              //       for(let j=0;j<newProjectArr[i].child.length;j++){
2601
+              //          newProjectArr[i].out_count += parseInt(newProjectArr[i].child[j].total)
2602
+              //       }
2603
+              //     }
2604
+              //     console.log("河滨232332newArr",newProjectArr)
2605
+              //     for(let i=0;i<newProjectArr.length;i++){
2606
+              //        if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2607
+              //             this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2608
+              //             isLoading = false
2609
+              //             this.$emit('editKeepLoad', false)
2610
+              //             return 
2611
+              //        } 
2612
+              //     }
2613
+
2614
+              //    }  
2557 2615
                 }
2558 2616
                 createHisPrescription(data, params).then(response => {
2559 2617
                   if (response.data.state == 1) {

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

@@ -2423,7 +2423,10 @@
2423 2423
               if (num == 0) {
2424 2424
                 var arr = []//新增处方
2425 2425
                 var arr_one = []
2426
+               
2426 2427
                 console.log("ooo233323233232323232",this.prescriptions)
2428
+                
2429
+               //药品
2427 2430
                 for(let i=0;i<this.prescriptions.length;i++){
2428 2431
                   if(this.prescriptions[i].id == 0){
2429 2432
                     for(let j=0;j<this.prescriptions[i].advices.length;j++){
@@ -2554,11 +2557,67 @@
2554 2557
 
2555 2558
                         }
2556 2559
                       }
2557
-                      console.log("newArr",newArr )
2560
+                     
2558 2561
                     }
2559 2562
                   }
2560 2563
                 }
2561 2564
 
2565
+              // var project_arr = []
2566
+              // //耗材
2567
+              // for(let i=0;i<this.prescriptions.length;i++){
2568
+              //   if(this.prescriptions[i].id == 0){
2569
+              //     for(let j=0;j<this.prescriptions[i].project.length;j++){
2570
+              //        if(this.prescriptions[i].project[j].type ==3){
2571
+              //          project_arr.push(this.prescriptions[i].project[j])
2572
+              //        }
2573
+                     
2574
+              //     }
2575
+              //   }
2576
+              // }
2577
+
2578
+              // if(project_arr.length > 0){
2579
+              //     let objInfo = {};
2580
+              //     project_arr.forEach((item, index) => {
2581
+              //     let { project_id } = item.project_id;
2582
+              //     if (!objInfo[project_id]) {
2583
+              //         objInfo[project_id] = {
2584
+              //           project_id:item.project_id,
2585
+              //           child: [],
2586
+              //           sum_count:item.good_info.sum_count,
2587
+              //           out_count:0,
2588
+              //           str:item.good_info.good_name +" "+ item.good_info.specification_name,
2589
+              //           is_user:item.good_info.is_user,
2590
+              //         };
2591
+              //       }
2592
+              //     });
2593
+              //     let newProjectArr = Object.values(objInfo);
2594
+
2595
+
2596
+              //     for(let i=0;i<project_arr.length;i++){
2597
+              //       for(let j=0;j<newProjectArr.length;j++){
2598
+              //         if(project_arr[i].project_id == newProjectArr[j].project_id){
2599
+              //           newProjectArr[j].child.push(project_arr[i])
2600
+              //         }
2601
+              //       }
2602
+              //     }
2603
+                 
2604
+                  
2605
+              //     for(let i=0;i<newProjectArr.length;i++){
2606
+              //       for(let j=0;j<newProjectArr[i].child.length;j++){
2607
+              //          newProjectArr[i].out_count += parseInt(newProjectArr[i].child[j].total)
2608
+              //       }
2609
+              //     }
2610
+              //     console.log("河滨232332newArr",newProjectArr)
2611
+              //     for(let i=0;i<newProjectArr.length;i++){
2612
+              //        if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2613
+              //             this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2614
+              //             isLoading = false
2615
+              //             this.$emit('editKeepLoad', false)
2616
+              //             return 
2617
+              //        } 
2618
+              //     }
2619
+                  
2620
+              //   }
2562 2621
                 createHisPrescription(data, params).then(response => {
2563 2622
                   if (response.data.state == 1) {
2564 2623
                     this.$emit('change', this.patientInfo.id)

+ 4 - 4
src/xt_pages/stock/detail/print.vue Прегледај датотеку

@@ -53,8 +53,8 @@
53 53
                 <span v-if="type == 2">
54 54
                   <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583">{{getStockCount(item.good_id) }}</span>
55 55
                    <span  v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
56
-                   <span v-if="org_id == 10210 || org_id == 9671 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{getWarehouseOut(item.good_id)}}</span>
57
-                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191">{{getStockCount(item.good_id) }}</span>
56
+                   <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{getWarehouseOut(item.good_id)}}</span>
57
+                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 &&org_id!=9679 &&org_id!=9675 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191">{{getStockCount(item.good_id) }}</span>
58 58
                 </span>
59 59
 
60 60
                 <span v-if="type == 4"> {{ item.count }}</span>
@@ -79,8 +79,8 @@
79 79
                      {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}}
80 80
                   </span>
81 81
                   <span v-if="org_id == 10265 || org_id == 10215  ">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
82
-                   <span v-if="org_id == 10210 || org_id == 9671 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{(getWarehouseOut(item.good_id)*item.packing_price).toFixed(2)}}</span>
83
-                  <span v-if="org_id!=3907&&org_id!=10265&&org_id!=9919&&org_id!=10215&&org_id!=9671 && org_id!=10188 && org_id!=10217 && org_id!= 9956 && org_id!=10191">{{(getStockCount(item.good_id) * item.packing_price).toFixed(2)}}</span>
82
+                   <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{(getWarehouseOut(item.good_id)*item.packing_price).toFixed(2)}}</span>
83
+                  <span v-if="org_id!=3907&&org_id!=10265&&org_id!=9919&&org_id!=10215&&org_id!=9671 && org_id!=9675 && org_id!=9679 && org_id!=10188 && org_id!=10217 && org_id!= 9956 && org_id!=10191">{{(getStockCount(item.good_id) * item.packing_price).toFixed(2)}}</span>
84 84
                 </span>
85 85
                 <span v-if="type == 4">{{(item.count * item.price).toFixed(2)}}</span>
86 86
               </td>

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

@@ -810,7 +810,7 @@ export default {
810 810
 
811 811
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
812 812
         }
813
-        if(this.orgId == 10210 || this.orgId == 9675 || this.orgId == 9679 || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191){
813
+        if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191){
814 814
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
815 815
           console.log("out_count232233232332",this.tableOut[i].out_count)
816 816
         }

+ 57 - 11
src/xt_pages/stock/drugs/drugStockOutOrder.vue Прегледај датотеку

@@ -282,10 +282,20 @@
282 282
               {{ scope.row.medical_insurance_number }}
283 283
             </template>
284 284
           </el-table-column>
285
-          <el-table-column label="仓库名称" align="center">
285
+          <!-- <el-table-column label="仓库名称" align="center">
286 286
             <template slot-scope="scope">
287 287
               {{ getHouseName(scope.row.storehouse_id) }}
288 288
             </template>
289
+          </el-table-column> -->
290
+          <el-table-column label="仓库名称" align="center">
291
+            <template slot-scope="scope">
292
+
293
+               <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
294
+                  <td style="border-right: none; border-inline-end:none;text-align: center">
295
+                    {{ getHouseName(item.storehouse_id) }}
296
+                  </td>
297
+               </tr>
298
+            </template>
289 299
           </el-table-column>
290 300
           <el-table-column label="出库数量" align="center">
291 301
             <template slot-scope="scope">
@@ -293,7 +303,7 @@
293 303
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
294 304
                   <td style="border-right: none; border-inline-end:none;text-align: center">
295 305
                     <span v-if="is_sys==1 || is_sys == 5">{{getOutCountSix(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
296
-                    <span v-if="is_sys == 12">{{getOutCountSeven(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
306
+                    <span v-if="is_sys == 12">{{getOutCountTen(item.count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
297 307
                     <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
298 308
                   </td>
299 309
                </tr>
@@ -667,7 +677,7 @@ export default {
667 677
       ],
668 678
       tabList:[],
669 679
       tabListOne:[],
670
-      outList:[],
680
+      drugOutInfo:[],
671 681
       warehouseOutList:[],
672 682
       exportLoding:false,
673 683
       outInfoList:[],
@@ -1206,6 +1216,7 @@ export default {
1206 1216
           this.tableShow = true;
1207 1217
           this.tableList = [];
1208 1218
           var list = response.data.data.list;
1219
+          console.log("listwowowowoow",list)
1209 1220
           this.warehouseOutList = list
1210 1221
           this.manufacturerList = response.data.data.manufacturerList;
1211 1222
           this.dealerList = response.data.data.dealerList;
@@ -1214,10 +1225,12 @@ export default {
1214 1225
         
1215 1226
           this.tabList = drugList
1216 1227
           var drugListOne = response.data.data.drugListFlow
1228
+          //按批号分组
1217 1229
           var drugListTwo=  response.data.data.drugListOne
1218
-
1230
+          console.log("drugListTwo9922wo",drugListTwo)
1219 1231
           var drugoutlist = response.data.data.drugoutlist
1220 1232
           this.outList = drugoutlist
1233
+          this.drugOutInfo = drugoutlist
1221 1234
           if (is_sys == 1) {
1222 1235
             if (drugFlowList.length > 0) {
1223 1236
               for (let i = 0; i < drugFlowList.length; i++) {
@@ -1284,8 +1297,6 @@ export default {
1284 1297
           }
1285 1298
 
1286 1299
      
1287
-         
1288
-        console.log("is_sys2332232323wo",is_sys)
1289 1300
         if(is_sys == 1 || is_sys == 5){
1290 1301
           for(let i=0;i<list.length;i++){
1291 1302
             for(let j=0;j<list[i].childOne.length;j++){
@@ -1302,14 +1313,14 @@ export default {
1302 1313
           }
1303 1314
           this.tableList = list;
1304 1315
         }
1305
-
1306 1316
         if(is_sys == 12){
1317
+          
1307 1318
           for(let i=0;i<list.length;i++){
1308 1319
             for(let j=0;j<list[i].childOne.length;j++){
1309 1320
                list[i].childOne[j].over_count_total = this.getOutCountSeven(list[i].childOne[j].warehousing_detail_id,list[i].max_unit,list[i].min_unit,list[i].min_number,list[i].drug_id)
1310 1321
             }
1311 1322
           }
1312
-
1323
+       
1313 1324
          for(let i=0;i<list.length;i++){
1314 1325
             for(let j=0;j<list[i].childOne.length;j++){
1315 1326
                if(list[i].childOne[j].over_count_total !=""){
@@ -1317,6 +1328,18 @@ export default {
1317 1328
                } 
1318 1329
             }
1319 1330
           }
1331
+         
1332
+          // for(let i=0;i<list.length;i++){
1333
+          //  for(let j=0;j<list[i].child.length;j++){
1334
+          //   list[i].child[j].outInfo = []
1335
+          //    for(let z=0;z<this.drugOutInfo.length;z++){
1336
+          //      if(list[i].child[j].warehousing_detail_id == this.drugOutInfo[z].warehouse_info_id&&list[i].child[j].drug_id == this.drugOutInfo[z].drug_id){
1337
+          //        list[i].child[j].outInfo.push(this.drugOutInfo[z])
1338
+          //      }
1339
+          //    }
1340
+          //  }
1341
+          // }
1342
+          // console.log("list23322332233wo",list)
1320 1343
           this.tableList = list;
1321 1344
         }
1322 1345
 
@@ -1690,7 +1713,7 @@ export default {
1690 1713
     },
1691 1714
     // 合并单元格样式
1692 1715
     cellStyle({ row, column, rowIndex, columnIndex }) {
1693
-      let arr = [5,6, 7, 8, 9,10,11,12,13,14];
1716
+      let arr = [4,5,6, 7, 8, 9,10,11,12,13,14];
1694 1717
       if (arr.indexOf(columnIndex) > -1) {
1695 1718
         return "spanClass";
1696 1719
       }
@@ -1747,7 +1770,6 @@ export default {
1747 1770
            total +=arr[i].count
1748 1771
         }
1749 1772
       }
1750
-     
1751 1773
       if (total < min_number) {
1752 1774
         min_str = total + min_unit;
1753 1775
       }
@@ -2173,7 +2195,31 @@ export default {
2173 2195
        }
2174 2196
       }
2175 2197
       return price
2176
-    }
2198
+    },
2199
+
2200
+    getOutCountTen(total,max_unit,min_unit,min_number){
2201
+    
2202
+      var max_str = ""
2203
+      var min_str = ""
2204
+  
2205
+     console.log("total",total)
2206
+      if (total < min_number) {
2207
+        min_str = total + min_unit;
2208
+      }
2209
+      if (total == 0) {
2210
+        min_str = "";
2211
+        max_str = "";
2212
+      }
2213
+      if (total >= min_number) {
2214
+        if (parseInt(total / min_number) != 0) {
2215
+          max_str = parseInt(total / min_number) + max_unit;
2216
+        }
2217
+        if (total % min_number != 0) {
2218
+          min_str = (total % min_number) + min_unit;
2219
+        }
2220
+      }
2221
+      return max_str + min_str;
2222
+    },
2177 2223
   },
2178 2224
 };
2179 2225
 </script>