Bladeren bron

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

csx 4 jaren geleden
bovenliggende
commit
a726709c1f

+ 1 - 0
src/lang/zh.js Bestand weergeven

@@ -204,6 +204,7 @@ export default {
204 204
     scrm: 'SCRM',
205 205
     shop: '分销商城',
206 206
 
207
+    incomeStatistics:'收入统计',
207 208
     outpatientRegistration:'门诊挂号',
208 209
     outpatientRegistrationIndex:'门诊挂号',
209 210
     outpatientRegistrationRegistrationHistory:'挂号历史',

+ 6 - 0
src/router/modules/outpatientCharges.js Bestand weergeven

@@ -42,6 +42,12 @@ export default {
42 42
         name: 'summary',
43 43
         meta: { title: 'summary', noCache: true }
44 44
     },
45
+    {
46
+        path: '/outpatientCharges/incomeStatistics',
47
+        component: () => import('@/xt_pages/outpatientCharges/incomeStatistics'),
48
+        name: 'incomeStatistics',
49
+        meta: { title: 'incomeStatistics', noCache: true }
50
+    },
45 51
     {
46 52
         path: '/outpatientCharges/summaryDetail',
47 53
         component: () => import('@/xt_pages/outpatientCharges/summaryDetail'),

+ 2 - 2
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue Bestand weergeven

@@ -394,7 +394,7 @@
394 394
                 v-model="nameForm.advice_name"
395 395
                 :fetch-suggestions="querySearch"
396 396
                 placeholder="请输入内容"
397
-                @select="handleSelect"
397
+              
398 398
                 @input="changeDrugName"
399 399
               ></el-autocomplete>
400 400
             </el-form-item>
@@ -431,7 +431,7 @@
431 431
                   v-model="nameForm.advice_desc"
432 432
                   :fetch-suggestions="querySearch1"
433 433
                   placeholder="请输入内容"
434
-                  @select="handleSelect1"
434
+                 
435 435
                   @input="changeDrugDesc"
436 436
                 ></el-autocomplete>
437 437
               </el-col>

+ 8 - 10
src/xt_pages/dialysis/details/index.vue Bestand weergeven

@@ -758,13 +758,11 @@ export default {
758 758
       clearInterval(timer)
759 759
     })
760 760
 
761
-    this.timers = setInterval(() => {
762
-      let obj = {
763
-        cmd: "queue/join",
764
-        data: {type:3,page:0,size:0},
765
-      };
766
-      this.websocketSend(obj)
767
-    }, 1000*50);
761
+    let obj = {
762
+      cmd: "queue/join",
763
+      data: {type:3,page:0,size:0},
764
+    };
765
+    this.websocketSend(obj)
768 766
   },
769 767
   computed: {
770 768
     websocket() {
@@ -882,8 +880,6 @@ export default {
882 880
     }
883 881
   },
884 882
   beforeDestroy(){
885
-    clearInterval(this.timers);  // 清除定时器
886
-    this.timers = null
887 883
 
888 884
     let unObj = {
889 885
       cmd: "queue/unjoin",
@@ -969,6 +965,7 @@ export default {
969 965
 
970 966
       this.doctor_advices = []
971 967
       getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
968
+        
972 969
         var resp = rs.data
973 970
         if (resp.state == 1) {
974 971
           var patient = resp.data.patient // 患者信息
@@ -1118,6 +1115,7 @@ export default {
1118 1115
           this.device_numbers = resp.data.device_numbers
1119 1116
 
1120 1117
           var his_doctor_advices = resp.data.his_advices
1118
+          
1121 1119
           this.his_is_open = resp.data.is_open_config.is_open
1122 1120
           console.log(this.his_is_open)
1123 1121
 
@@ -1692,7 +1690,7 @@ export default {
1692 1690
       this.websocket.onmessage = e => {
1693 1691
         let res = JSON.parse(e.data);
1694 1692
         // let res = re.data;
1695
-        console.log('res3333333333',res)
1693
+        // console.log('res3333333333',res)
1696 1694
         if(res.channel == 'queue/join'){
1697 1695
           if(res.data.fisrtQueueInfo != null){
1698 1696
             if(res.data.fisrtQueueInfo.create_time){

+ 189 - 16
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Bestand weergeven

@@ -70,7 +70,8 @@
70 70
         :row-class-name="tableRowClassName"
71 71
         :span-method="objectSpanMethod"
72 72
         :cell-class-name="adviceNameShow"
73
-        :modal-append-to-body="false">
73
+        :modal-append-to-body="false"
74
+        v-show="show">
74 75
         <el-table-column type="selection" width="55" align="center"></el-table-column>
75 76
         <el-table-column prop="date" label="姓名" align="center" min-width="26px">
76 77
           <template slot-scope="scope">
@@ -184,24 +185,127 @@
184 185
             <span v-else></span>
185 186
           </template>
186 187
         </el-table-column>
187
-        
188
+      </el-table>
189
+         <el-table :data="scheduleMap" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" 
190
+        @selection-change="handleSelectionChange"
191
+        :row-class-name="tableRowClassName"
192
+        :span-method="objectSpanMethod"
193
+        :cell-class-name="adviceNameShow"
194
+        :modal-append-to-body="false"
195
+        v-show="showOne">
196
+        <el-table-column type="selection" width="55" align="center"></el-table-column>
197
+        <el-table-column prop="date" label="姓名" align="center" min-width="26px">
198
+          <template slot-scope="scope">
199
+            <span>{{ scope.row.name }}</span>
200
+            <br>
201
+            ({{ scope.row.parent_id == 0 ? scope.row.dialysis_no : ""}})
202
+            <br>
203
+            <span v-if="scope.row.mode_id == 1">(HD)</span>
204
+            <span v-if="scope.row.mode_id == 2">(HDF)</span>
205
+            <span v-if="scope.row.mode_id == 3">(HD+HP)</span>
206
+            <span v-if="scope.row.mode_id == 4">(HP)</span>
207
+            <span v-if="scope.row.mode_id == 5">(HF)</span>
208
+            <span v-if="scope.row.mode_id == 6">(SCUF)</span>
209
+            <span v-if="scope.row.mode_id == 7">(IUF)</span>
210
+            <span v-if="scope.row.mode_id == 8">(HFHD)</span>
211
+            <span v-if="scope.row.mode_id == 9">(HFHD+HP)</span>
212
+            <span v-if="scope.row.mode_id == 10">(PHF)</span>
213
+            <span v-if="scope.row.mode_id == 11">(HFR)</span>
214
+            <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
215
+            <span v-if="scope.row.mode_id == 13">(CRRT)</span>
216
+            <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
217
+          </template>
218
+        </el-table-column>
219
+        <el-table-column prop="date" label="透析器" align="center" min-width="26px">
220
+          <template slot-scope="scope">
221
+            <span>{{ scope.row.dialyzer_perfusion_apparatus }}</span>
222
+          </template>
223
+        </el-table-column>
224
+        <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
225
+          <template slot-scope="scope">
226
+            <span>
227
+              {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
228
+            </span>
229
+          </template>
230
+        </el-table-column>
231
+        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
232
+          <template slot-scope="scope">
233
+            <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
234
+              <span class="el-dropdown-link" v-if="scope.row.parent_id == 0">
235
+                {{ getAdviceContent(scope.row, 1)}}
236
+              </span>
237
+            </el-dropdown>
188 238
 
189
-        
190
-        
191
-        <!-- <el-table-column
192
-          v-if="template_id != 6"
193
-          prop="checker"
194
-          min-width="30px"
239
+            <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
240
+              <span class="el-dropdown-link">
241
+                &emsp;{{ getAdviceContent(scope.row, 2)}}
242
+              </span>
243
+            </el-dropdown>
244
+          </template>
245
+        </el-table-column>
246
+        <el-table-column
247
+          prop="start_time"
195 248
           align="center"
196
-          label="核对人员"
249
+          min-width="30px"
250
+          label="执行时间"
251
+          sortable
197 252
         >
253
+          <template slot-scope="scope">
254
+            <span v-if="scope.row.execution_time != 0">
255
+              {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
256
+            </span>
257
+            <span v-else></span>
258
+          </template>
259
+        </el-table-column>
260
+        <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
261
+          <template slot-scope="scope">
262
+            <span v-if="scope.row.parent_id == 0">
263
+              {{getXuserName(scope.row.execution_staff)}}
264
+            </span>
265
+            <span v-else></span>
266
+          </template>
267
+        </el-table-column>
268
+        <el-table-column prop="checker" align="center" min-width="30px" label="校对护士">
198 269
           <template slot-scope="scope">
199 270
             <span v-if="scope.row.parent_id == 0">
200 271
               {{getXuserName(scope.row.checker)}}
201 272
             </span>
202 273
             <span v-else></span>
203 274
           </template>
204
-        </el-table-column> -->
275
+        </el-table-column>
276
+        <el-table-column
277
+          prop="check_time"
278
+          align="center"
279
+          min-width="30px"
280
+          label="校对时间"
281
+          sortable
282
+        >
283
+          <template slot-scope="scope">
284
+            <span v-if="scope.row.check_time != 0">
285
+              {{scope.row.check_time | parseTime('{m}-{d} {h}:{i}')}}
286
+            </span>
287
+            <span v-else></span>
288
+          </template>
289
+        </el-table-column>
290
+        <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
291
+          <template slot-scope="scope">
292
+            <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
293
+          </template>
294
+        </el-table-column>
295
+        <el-table-column
296
+          prop="created_time"
297
+          align="center"
298
+          min-width="30px"
299
+          label="校对时间"
300
+          sortable
301
+        >
302
+          <template slot-scope="scope">
303
+            <span v-if="scope.row.created_time != 0">
304
+              {{scope.row.created_time | parseTime('{m}-{d} {h}:{i}')}}
305
+            </span>
306
+            <span v-else></span>
307
+          </template>
308
+        </el-table-column>
205 309
       </el-table>
206 310
     </div>
207 311
   </div>
@@ -254,7 +358,9 @@ export default {
254 358
       selecting_schs: [],
255 359
       partitionArr: [],
256 360
 
257
-      scheduleMap:[]
361
+      scheduleMap:[],
362
+      show:true,
363
+      showOne:false,
258 364
     };
259 365
   },
260 366
   created() {
@@ -338,14 +444,20 @@ export default {
338 444
         if (resp.state == 1) {
339 445
             this.admin_users = resp.data.adminUser
340 446
             var schedules = resp.data.scheduals
341
-            // console.log("schedules",schedules)
447
+            console.log("schedules",schedules)
448
+            var config = resp.data.config
449
+           if(config.is_open == 0){
450
+            this.show = true
451
+            this.showOne = false
342 452
             let arr = []
343 453
             let newArr = []
344 454
             let newSchedules = []
345 455
             schedules.map(item => {
346
-                item.doctor_advice.map(it =>{
347
-                    it.name = item.patient.name
348
-                    it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
456
+             item.doctor_advice.map(it =>{
457
+                it.name = item.patient.name
458
+                    if(item.prescription != null){
459
+                       it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
460
+                    }
349 461
                     it.schedule_type = item.schedule_type
350 462
                     it.zoneId = item.device_number.zone.id
351 463
                     it.dialysis_no = item.patient.dialysis_no
@@ -389,7 +501,68 @@ export default {
389 501
                 }
390 502
             })
391 503
             this.indexInfoList = newArr
392
-        }
504
+           }
505
+           if(config.is_open == 1 || config.is_open == 2){
506
+             this.show = false
507
+             this.showOne  = true
508
+            var schedules =  resp.data.hisAdvices
509
+          
510
+            let arr = []
511
+            let newArr = []
512
+            let newSchedules = []
513
+            schedules.map(item => {
514
+             item.doctor_advice.map(it =>{
515
+                it.name = item.patient.name
516
+                    if(item.prescription != null){
517
+                       it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
518
+                    }
519
+                    it.schedule_type = item.schedule_type
520
+                    it.zoneId = item.device_number.zone.id
521
+                    it.dialysis_no = item.patient.dialysis_no
522
+                    it.mode_id = item.mode_id
523
+                    arr.push(it)
524
+                })
525
+            })
526
+            if(this.schedulType == 0){
527
+                newSchedules = arr
528
+            }else{
529
+                arr.map(item => {
530
+                    if (item.schedule_type == this.schedulType) {
531
+                        newSchedules.push(item)
532
+                    }
533
+                })
534
+            }
535
+            
536
+            
537
+            if(this.partitionType == 0){
538
+                this.scheduleMap = newSchedules
539
+            }else {
540
+                let a = []
541
+                arr.map(item => {
542
+                    if(this.partitionType == item.zoneId){
543
+                        a.push(item)
544
+                    }
545
+                })
546
+                this.scheduleMap = a
547
+            }
548
+            this.scheduleMap.map(ele => {
549
+                let firstIndex = this.scheduleMap.findIndex(item => {
550
+                  return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
551
+                })
552
+                if (this.scheduleMap.findIndex(item => { return item.patient_id === firstIndex}) === -1) {
553
+                    newArr.push({
554
+                    length: this.scheduleMap.filter(item => {
555
+                        return item.patient_id === ele.patient_id    //利用数组的filter方法,过滤出相同category的数组的长度。数组长度-即为跨多少行
556
+                    }).length,
557
+                    firstIndex: firstIndex    // firstIndex 返回的是第一个catergory就满足的第一个Index,即为rowIndex开始于第几行。
558
+                    })
559
+                }
560
+            })
561
+            this.indexInfoList = newArr
562
+           }
563
+         
564
+  
565
+         }
393 566
         })
394 567
     },
395 568
     getValue: function(val) {

+ 290 - 18
src/xt_pages/dialysis/doctorAdvicePrint.vue Bestand weergeven

@@ -8,7 +8,118 @@
8 8
             </el-col>
9 9
         </el-row>
10 10
         </div>
11
-        <div class="app-container" style="background-color: white;">
11
+        <div class="app-container" style="background-color: white;" v-show="show">
12
+            <div id="dialysisTable">
13
+                <div class="order_title_panl">
14
+                    <span class="main_title">透析医嘱</span>
15
+                </div>
16
+                <p style="width: 960px;text-align: right;margin: 0 auto 10px;">日期:{{ time }}</p>
17
+                <table class="table dialysisTable" border="1" cellspacing="0" cellpadding="0">
18
+                    <tr>
19
+                    <th width="40px">姓名</th>
20
+                    <th width="40px">透析器</th>
21
+                    <!-- <th width="50px">类型</th> -->
22
+                    <th width="50px">开始时间</th>
23
+                    <th width="100px">医嘱内容</th>
24
+                    <th width="50px">执行时间</th>
25
+                    <th width="50px">执行护士</th>
26
+                    <th width="50px">校对护士</th>
27
+                    <th width="50px">校对时间</th>
28
+                    <th width="50px">开嘱医生</th>
29
+                    <th width="50px">开嘱时间</th>
30
+                    </tr>
31
+                    <template v-for="(schedules, zone_name, index) in scheduleMap">
32
+                    <tr :key="index">
33
+                        <td>{{ zone_name }}</td>
34
+                        <!-- <td></td> -->
35
+                        <td></td>
36
+                        <td></td>
37
+                        <td></td>
38
+                        <td></td>
39
+                        <td></td>
40
+                        <td></td>
41
+                        <td></td>
42
+                        <td></td>
43
+                        <td></td>
44
+                    </tr>
45
+                    <template v-for="schedule in schedules">
46
+                        <template v-for="(group, group_index) in schedule.new_advice">
47
+                        <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
48
+                            <td
49
+                            v-if="advice_index == 0"
50
+                            :rowspan="group.advices.length"
51
+                            >{{ advice.parent_id == 0 ? schedule.patient.name : "" }}
52
+                            <br>
53
+                            ({{ advice.parent_id == 0 ? schedule.dialysis_no : ""}})
54
+                            <br>
55
+                            <span v-if="schedule.mode_id == 1">(HD)</span>
56
+                            <span v-if="schedule.mode_id == 2">(HDF)</span>
57
+                            <span v-if="schedule.mode_id == 3">(HD+HP)</span>
58
+                            <span v-if="schedule.mode_id == 4">(HP)</span>
59
+                            <span v-if="schedule.mode_id == 5">(HF)</span>
60
+                            <span v-if="schedule.mode_id == 6">(SCUF)</span>
61
+                            <span v-if="schedule.mode_id == 7">(IUF)</span>
62
+                            <span v-if="schedule.mode_id == 8">(HFHD)</span>
63
+                            <span v-if="schedule.mode_id == 9">(HFHD+HP)</span>
64
+                            <span v-if="schedule.mode_id == 10">(PHF)</span>
65
+                            <span v-if="schedule.mode_id == 11">(HFR)</span>
66
+                            <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
67
+                            <span v-if="schedule.mode_id == 13">(CRRT)</span>
68
+                            <span v-if="schedule.mode_id == 14">(腹水回输)</span>
69
+                                
70
+                            </td>
71
+                            <td v-if="advice_index == 0" :rowspan="group.advices.length">
72
+                            {{advice.parent_id == 0 && schedule.prescription!=null ?  schedule.prescription.dialyzer_perfusion_apparatus : ""}}
73
+                            </td>
74
+                            <!-- <td
75
+                            v-if="advice_index == 0"
76
+                            :rowspan="group.advices.length"
77
+                            >{{ getAdaviceType(advice.advice_type, advice.parent_id) }}</td>-->
78
+                            <td v-if="advice_index == 0" :rowspan="group.advices.length">
79
+                            {{
80
+                            advice.parent_id == 0
81
+                            ? parseTime(advice.start_time, "{m}-{d} {h}:{i}")
82
+                            : ""
83
+                            }}
84
+                            </td>
85
+                            <td
86
+                            :class="
87
+                                advice.parent_id == 0
88
+                                ? 'advice_content'
89
+                                : 'subadvice_content'
90
+                            "
91
+                            >
92
+                            <span>{{ advice.advice_name }}</span>
93
+                            <span>{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</span>
94
+                            <span v-if="advice.prescribing_number">
95
+                                {{ advice.prescribing_number
96
+                                }}{{ advice.prescribing_number_unit }}
97
+                            </span>
98
+                            <span v-if="advice.single_dose">
99
+                                单次用量 {{ advice.single_dose
100
+                                }}{{ advice.single_dose_unit }}
101
+                            </span>
102
+                            <span>{{ advice.delivery_way }}</span>
103
+                            <span>{{ advice.execution_frequency }}</span>
104
+                            <span
105
+                                v-if="advice.parent_id == 0 && advice.remark.length > 0"
106
+                            >({{ advice.remark }})</span>
107
+                            </td>
108
+                            <td>{{ parseTime(advice.execution_time, "{m}-{d} {h}:{i}") }}</td>
109
+                            <td>{{ getName(advice.execution_staff) }}</td>
110
+                            <td>{{ getName(advice.checker) }}</td>
111
+                            <td>{{ parseTime(advice.check_time, "{m}-{d} {h}:{i}") }}</td>
112
+                            <td>{{ getName(advice.advice_doctor) }}</td>
113
+                            <td>{{ parseTime(advice.created_time, "{m}-{d} {h}:{i}") }}</td>
114
+                        </tr>
115
+                        </template>
116
+                    </template>
117
+                    </template>
118
+                </table>
119
+            </div>
120
+        </div>
121
+
122
+          <div class="app-container" style="background-color: white;" v-show="showOne">
12 123
             <div id="dialysisTable">
13 124
                 <div class="order_title_panl">
14 125
                     <span class="main_title">透析医嘱</span>
@@ -144,7 +255,9 @@ export default {
144 255
 
145 256
             zone_selected: 0,
146 257
             scheduleMap:[],
147
-            time:''
258
+            time:'',
259
+            show:true,
260
+            showOne:false,
148 261
         }
149 262
     },
150 263
     methods:{
@@ -169,21 +282,24 @@ export default {
169 282
                 var resp = rs.data
170 283
                 if (resp.state == 1) {
171 284
                 this.admin_user = resp.data.adminUser
172
-                var schedulesArr = resp.data.scheduals
173
-                let schedules = []
174
-                var ids = this.$store.getters.temp_params.advice_ids
175
-                console.log('ids',ids)
176
-                schedulesArr.map(item => {
285
+                var config = resp.data.config
286
+                if(config.is_open == 0 || config.is_open == 2){
287
+                
288
+                   var schedulesArr = resp.data.scheduals
289
+                   let schedules = []
290
+                   var ids = this.$store.getters.temp_params.advice_ids
291
+                   console.log('ids',ids)
292
+                   schedulesArr.map(item => {
177 293
                     if(ids.indexOf(item.patient_id) > -1){
178 294
                         schedules.push(item)
179 295
                     }
180 296
                     
181 297
                 })
182
-                // console.log("schedules",schedules)
298
+               
183 299
                 for (let i = 0; i < schedules.length; i++) {
184 300
                     schedules[i].dialysis_no = schedules[i].patient.dialysis_no
185 301
                 }
186
-                // console.log('schedules', schedules)
302
+           
187 303
 
188 304
                 var arr = []
189 305
                 for (let j = 0; j < schedules.length; j++) {
@@ -192,7 +308,7 @@ export default {
192 308
                 arr.sort(function (a, b) {
193 309
                     return a - b
194 310
                 })
195
-                // console.log('arr', arr)
311
+               
196 312
 
197 313
                 var arrTwo = []
198 314
                 for (let i = 0; i < arr.length; i++) {
@@ -204,20 +320,17 @@ export default {
204 320
                 }
205 321
 
206 322
                 arrTwo.map((item, index) => {
207
-                    // console.log(item);
208
-                    // item.doctor_advice.map((items, i) => {
209
-                    //   console.log(items);
210
-                    // });
323
+                  
211 324
                     item.doctor_advice.sort(this.compare('start_time'))
212 325
                 })
213
-                // console.log('arrTwo', arrTwo)
326
+                
214 327
 
215 328
                 const res = new Map()
216 329
                 let a = arrTwo.filter(
217 330
                     a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
218 331
                 )
219 332
 
220
-                // console.log('a', a)
333
+               
221 334
 
222 335
                 schedules = a
223 336
                 var zoneMap = {}
@@ -324,11 +437,170 @@ export default {
324 437
                     }
325 438
                     maps.new_advice = advice_groups
326 439
                     }
440
+                 }
441
+                
442
+
443
+                 this.scheduleMap = scheduleMap  
444
+                }
445
+               
446
+                 if(config.is_open == 1){
447
+                   var schedulesArr = resp.data.hisAdvices
448
+                   let schedules = []
449
+                   var ids = this.$store.getters.temp_params.advice_ids
450
+                   console.log('ids',ids)
451
+                   schedulesArr.map(item => {
452
+                    if(ids.indexOf(item.patient_id) > -1){
453
+                        schedules.push(item)
454
+                    }
455
+                    
456
+                })
457
+               
458
+                for (let i = 0; i < schedules.length; i++) {
459
+                    schedules[i].dialysis_no = schedules[i].patient.dialysis_no
460
+                }
461
+           
462
+
463
+                var arr = []
464
+                for (let j = 0; j < schedules.length; j++) {
465
+                    arr.push(schedules[j].dialysis_no)
466
+                }
467
+                arr.sort(function (a, b) {
468
+                    return a - b
469
+                })
470
+               
471
+
472
+                var arrTwo = []
473
+                for (let i = 0; i < arr.length; i++) {
474
+                    for (let j = 0; j < schedules.length; j++) {
475
+                    if (arr[i] == schedules[j].dialysis_no) {
476
+                        arrTwo.push(schedules[j])
477
+                    }
478
+                    }
479
+                }
480
+
481
+                arrTwo.map((item, index) => {
482
+                  
483
+                    item.doctor_advice.sort(this.compare('start_time'))
484
+                })
485
+                
486
+
487
+                const res = new Map()
488
+                let a = arrTwo.filter(
489
+                    a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
490
+                )
491
+
492
+               
493
+
494
+                schedules = a
495
+                var zoneMap = {}
496
+                var scheduleMap = {}
497
+                for (let index = 0; index < schedules.length; index++) {
498
+                    const schedule = schedules[index]
499
+                    if (schedule.doctor_advice.length == 0) {
500
+                    continue
501
+                    }
502
+                    if (scheduleMap[schedule.device_number.zone.name] == null) {
503
+                    scheduleMap[schedule.device_number.zone.name] = []
504
+                    }
505
+                    scheduleMap[schedule.device_number.zone.name].push(schedule)
506
+                    if (zoneMap[schedule.device_number.zone.name] == null) {
507
+                    zoneMap[schedule.device_number.zone.name] =
508
+                        schedule.device_number.zone
509
+                    }
510
+                }
511
+
512
+                var zones = []
513
+                zones.push({ value: 0, text: '全部分区' })
514
+                for (var zoneName in zoneMap) {
515
+                    zones.push({ value: zoneMap[zoneName].id, text: zoneName })
516
+                }
517
+
518
+                zones = zones.sort(function (a, b) {
519
+                    return a.value > b.value
520
+                })
521
+                this.zones = zones
522
+                for (var key in scheduleMap) {
523
+                    let mapArr = scheduleMap[key]
524
+                    for (let i = 0; i < mapArr.length; i++) {
525
+                    mapArr[i]['new_advice'] = []
526
+                    }
327 527
                 }
528
+
529
+                for (var key in scheduleMap) {
530
+                    let mapArr = scheduleMap[key]
531
+                    for (let i = 0; i < mapArr.length; i++) {
532
+                    var maps = mapArr[i]
533
+                    var resp_advices = maps.doctor_advice
534
+                    if (resp_advices.length > 0) {
535
+                        var newGroupObject = function () {
536
+                        return Object.assign(
537
+                            {},
538
+                            {
539
+                            group_no: 0,
540
+                            advices: []
541
+                            }
542
+                        )
543
+                        }
544
+                        var initGroupBlock = function (group, advice) {
545
+                        group.group_no = advice.groupno
546
+                        }
547
+
548
+                        var advice_groups = []
549
+                        var group = newGroupObject()
550
+                        for (let index = 0; index < resp_advices.length; index++) {
551
+                        const advice = resp_advices[index]
552
+                        if (advice.groupno == 0) {
553
+                            // 老版本的医嘱
554
+                            if (advice.parent_id > 0) {
555
+                            if (advice_groups.length > 0) {
556
+                                var parent_group = advice_groups[advice_groups.length - 1]
557
+                                if (parent_group.advices.length > 0) {
558
+                                if (parent_group.advices[0].id == advice.parent_id) {
559
+                                    parent_group.advices.push(advice)
560
+                                }
561
+                                }
562
+                            }
563
+                            continue
564
+                            } else {
565
+                            if (group.group_no > 0) {
566
+                                advice_groups.push(group)
567
+                                group = newGroupObject()
568
+                            }
569
+
570
+                            initGroupBlock(group, advice)
571
+                            group.advices.push(advice)
572
+                            advice_groups.push(group)
573
+                            group = newGroupObject()
574
+                            continue
575
+                            }
576
+                        } else {
577
+                            if (group.group_no > 0 && group.group_no != advice.groupno) {
578
+                            advice_groups.push(group)
579
+                            group = newGroupObject()
580
+                            }
581
+                            if (group.group_no == 0) {
582
+                            initGroupBlock(group, advice)
583
+                            }
584
+                            if (group.group_no == advice.groupno) {
585
+                            group.advices.push(advice)
586
+                            }
587
+                        }
588
+                        }
589
+                        if (group.group_no > 0) {
590
+                        // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
591
+                        advice_groups.push(group)
592
+                        }
593
+                        advice_groups = advice_groups
594
+                    } else {
595
+                        advice_groups = []
596
+                    }
597
+                    maps.new_advice = advice_groups
598
+                    }
599
+                 }
328 600
                 
329 601
 
330
-                this.scheduleMap = scheduleMap
331
-                // console.log(9999999999,this.scheduleMap)
602
+                     this.scheduleMap = scheduleMap  
603
+                 }
332 604
 
333 605
                 
334 606
                 }

+ 1 - 1
src/xt_pages/dialysis/schedualPatient.vue Bestand weergeven

@@ -380,7 +380,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
380 380
         this.websocket.onmessage = e => {
381 381
           let res = JSON.parse(e.data);
382 382
           // let res = re.data;
383
-          console.log('res3333333333',res)
383
+          // console.log('res3333333333',res)
384 384
           if(res.channel == 'queue/join'){
385 385
             if(res.data.fisrtQueueInfo != null){
386 386
               if(res.data.fisrtQueueInfo.create_time){

+ 6 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue Bestand weergeven

@@ -65,7 +65,7 @@
65 65
             <td width="10"></td>
66 66
             <td width="70">有/无特殊:</td>
67 67
             <td width="200">
68
-                <div class="under-line" style="text-align:left">&nbsp;{{ prescription.remark ? prescription.remark : '' }}</div>
68
+                <div class="under-line" style="text-align:left">&nbsp;{{receiverTreatmentAccess.sick_condition_other?receiverTreatmentAccess.sick_condition_other:''}}</div>
69 69
             </td>
70 70
           </tr>
71 71
         </tbody>
@@ -100,7 +100,7 @@
100 100
           <tbody>
101 101
             <tr>
102 102
                 <td width="70">血管通路:</td>
103
-                <td width="300">
103
+                <td width="370">
104 104
                     <div>
105 105
                         <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘') > -1 ? true : false" showValue="内瘘"></label-box>
106 106
                         &nbsp;
@@ -110,12 +110,14 @@
110 110
                         &nbsp;
111 111
                         <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('直穿') > -1 ? true : false" showValue="直穿"></label-box>
112 112
                         &nbsp;
113
+                       <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('人造血管') > -1 ? true : false" showValue="人造血管"></label-box>
114
+                        &nbsp;
113 115
                     </div>
114 116
                 </td>
115
-                <td width='30'></td>
117
+                <td width='20'></td>
116 118
                 <td width="70">封管用药:</td>
117 119
                 <td>
118
-                    <div class="under-line" style="text-align:left;">&nbsp;</div>
120
+                    <div class="under-line" style="text-align:left;">&nbsp;{{prescription.remark?prescription.remark:''}}</div>
119 121
                 </td>
120 122
             </tr>
121 123
           </tbody>

+ 37 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue Bestand weergeven

@@ -289,6 +289,7 @@
289 289
                 </tbody>
290 290
               </table>
291 291
 
292
+
292 293
               <table class="table-box">
293 294
                 <tbody>
294 295
                   <tr>
@@ -418,6 +419,42 @@
418 419
                   </tr>
419 420
                 </tbody>
420 421
               </table>
422
+              <table >
423
+                <tbody>
424
+                  <tr class="table-box">
425
+                      <td width='50'>体温:</td>
426
+                      <td width="50">
427
+                        <div class="under-line">&nbsp;{{ predialysis.temperature ? predialysis.temperature : "/" }}</div>
428
+                      </td>
429
+                      <td width="10">℃</td>
430
+                      <td width="30"></td>
431
+                      <td width='70'>收缩压:</td>
432
+                      <td width="50">
433
+                        <div class="under-line">&nbsp;{{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "/" }}</div>
434
+                      </td>
435
+                      <td width="10">mmHg</td>
436
+                      <td width="10"></td>
437
+                      <td width='70'>舒张压:</td>
438
+                      <td width="50">
439
+                        <div class="under-line">&nbsp;{{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "/" }}</div>
440
+                      </td>
441
+                      <td width="10">mmHg</td>
442
+                      <td width="30"></td>
443
+                      <td width='70'>脉搏:</td>
444
+                      <td width="50">
445
+                        <div class="under-line">&nbsp;{{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "/" }}</div>
446
+                      </td>
447
+                      <td width="60">次/分</td>
448
+                      <td width="30"></td>
449
+                      <td width='70'>呼吸:</td>
450
+                      <td width="50">
451
+                        <div class="under-line">&nbsp;{{ predialysis.breathing_rate ? predialysis.breathing_rate : "/" }}</div>
452
+                      </td>
453
+                      <td width="60">次/分</td>
454
+                      <td></td>
455
+                  </tr>
456
+                </tbody>
457
+              </table>
421 458
             </td>
422 459
           </tr>
423 460
         </tbody>

+ 320 - 0
src/xt_pages/outpatientCharges/incomeStatistics.vue Bestand weergeven

@@ -0,0 +1,320 @@
1
+<template>
2
+  <div class="main-contain incomeStatistics">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+      <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
+        <div>
9
+          <el-input size="small" style="width:150px;"  v-model="keywords"
10
+                    class="filter-item"/>
11
+          <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary" @click="searchAction">
12
+            搜索
13
+          </el-button>
14
+          <el-select size="small" v-model="admin_user_id" placeholder="请选择" style="width:150px;margin-left:10px;" @change="changeDoctor">
15
+            <el-option
16
+              label="全部"
17
+              value="0">
18
+            </el-option>
19
+            <el-option
20
+              v-for="(item,index) in type"
21
+              :key="index"
22
+              :label="item.user_name"
23
+              :value="item.admin_user_id">
24
+            </el-option>
25
+          </el-select>
26
+          <el-date-picker size="small" v-model="start_time" prefix-icon="el-icon-date"
27
+                          @change="handleStartTimeChange" :editable="false" :clearable="false"
28
+                          style="width: 196px;margin-right:10px;" type="date" placeholder="选择开始日期"
29
+                          format="yyyy-MM-dd"
30
+                          value-format="yyyy-MM-dd"
31
+                          align="right"></el-date-picker>
32
+
33
+          <el-date-picker size="small" v-model="end_time" prefix-icon="el-icon-date"
34
+                          @change="handleEndTimeChange" :editable="false" :clearable="false"
35
+                          style="width: 196px;margin-right:10px;" type="date" placeholder="选择结束日期"
36
+                          format="yyyy-MM-dd"
37
+                          value-format="yyyy-MM-dd"
38
+                          align="right"></el-date-picker>
39
+          <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
40
+          <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
41
+        </div>
42
+        <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
43
+      </div>
44
+      <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
45
+                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
46
+        <el-table-column
47
+          prop="date"
48
+          label="序号"
49
+          width="60"
50
+          align="center"
51
+          type="index"
52
+        >
53
+        </el-table-column>
54
+        <el-table-column align="center" prop="name" label="就诊号">
55
+          <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
56
+        </el-table-column>
57
+        <el-table-column align="center" prop="name" label="患者名字">
58
+          <template slot-scope="scope">{{ scope.row.patient.name }}</template>
59
+        </el-table-column>
60
+        <!--<el-table-column align="center" prop="name" label="患者类型">-->
61
+          <!--<template slot-scope="scope"></template>-->
62
+        <!--</el-table-column>-->
63
+        <el-table-column align="center" prop="name" label="应收金额">
64
+          <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
65
+        </el-table-column>
66
+        <el-table-column align="center" prop="name" label="实收金额">
67
+          <template slot-scope="scope">{{scope.row.reality_price}}</template>
68
+        </el-table-column>
69
+        <el-table-column align="center" prop="name" label="科室">
70
+          <template slot-scope="scope">{{scope.row.p_info.department.name}}</template>
71
+        </el-table-column>
72
+        <el-table-column align="center" prop="name" label="收费日期">
73
+          <template slot-scope="scope">  {{getTimes(scope.row.settle_accounts_date)}}</template>
74
+        </el-table-column>
75
+        <el-table-column align="center" prop="name" label="收费员">
76
+          <template slot-scope="scope">{{ scope.row.p_info.doctor }}</template>
77
+        </el-table-column>
78
+        <el-table-column align="center" prop="name" label="状态">
79
+          <template slot-scope="scope">
80
+            <div v-if="scope.row.order_status == 1">待结算</div>
81
+            <div v-if="scope.row.order_status == 2">已结算</div>
82
+            <div v-if="scope.row.order_status == 3">已退费</div>
83
+          </template>
84
+        </el-table-column>
85
+        <el-table-column align="center" prop="name" label="操作">
86
+          <template slot-scope="scope">
87
+            <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
88
+          </template>
89
+        </el-table-column>
90
+      </el-table>
91
+      <el-pagination
92
+        @size-change="handleSizeChange"
93
+        @current-change="handleCurrentChange"
94
+        :page-sizes="[10, 50, 100]"
95
+        :page-size="10"
96
+        background
97
+        style="margin-top:20px;float: right"
98
+        layout="total, sizes, prev, pager, next, jumper"
99
+        :total="total"
100
+
101
+      >
102
+      </el-pagination>
103
+    </div>
104
+
105
+
106
+  </div>
107
+</template>
108
+
109
+
110
+<script>
111
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
112
+  import { getHisOrderList,getDoctorList,getExportConsumeDetailList } from '@/api/his/his'
113
+  import { uParseTime } from '@/utils/tools'
114
+
115
+  export default {
116
+    components: {
117
+      BreadCrumb
118
+    },
119
+    data() {
120
+      return {
121
+        crumbs: [
122
+          { path: false, name: '门诊收费' },
123
+          { path: false, name: '项目消费明细汇总' }
124
+        ],
125
+        tableData: [],
126
+        limit:10,
127
+        page:1,
128
+        keywords:"",
129
+        start_time:"",
130
+        end_time:"",
131
+        total:"",
132
+        doctors:[],
133
+        admin_user_id:"",
134
+
135
+      }
136
+    },
137
+    methods: {
138
+      export_detail(){
139
+        let params= {
140
+          start_time:this.start_time,
141
+          end_time: this.end_time,
142
+        }
143
+        getExportConsumeDetailList(params).then(response => {
144
+          if (response.data.state == 0) {
145
+            this.$message.error(response.data.msg)
146
+            return false
147
+          } else {
148
+
149
+            let list = []
150
+            for (let i =0; i < response.data.data.order.length; i++){
151
+            let order =   response.data.data.order[i]
152
+              let number = ""
153
+              let name = ""
154
+              let department = ""
155
+              let doctor_name = ""
156
+              let balance_accounts = ""
157
+
158
+              let order_status = ""
159
+
160
+
161
+
162
+              if(order.his_patient != null && order.his_patient.number.length > 0){
163
+                number = order.his_patient.number
164
+
165
+              }
166
+
167
+              if(order.his_patient != null ){
168
+                if(order.his_patient.balance_accounts_type == 1){
169
+                  balance_accounts = "自费"
170
+                }
171
+
172
+                if(order.his_patient.balance_accounts_type == 2){
173
+                  balance_accounts = "医保"
174
+                }
175
+              }
176
+
177
+              if(order.patient != null && order.patient.name.length > 0){
178
+                name = order.patient.name
179
+
180
+              }
181
+
182
+              if(order.p_info != null && order.p_info.department != null && order.p_info.department.name.length > 0){
183
+                department = order.p_info.department.name
184
+
185
+              }
186
+
187
+              if(order.p_info != null && order.p_info.doctor.length > 0){
188
+                doctor_name = order.p_info.doctor
189
+              }
190
+
191
+              if(order.order_status == 1){
192
+                order_status = "待结算"
193
+              }
194
+
195
+              if(order.order_status == 2){
196
+                order_status = "已结算"
197
+              }
198
+
199
+              if(order.order_status == 3){
200
+                order_status = "已退费"
201
+              }
202
+
203
+
204
+              let obj = {
205
+                "就诊号":number,
206
+                "患者姓名":name,
207
+                "应收金额":order.medfee_sumamt,
208
+                "实收金额":order.medfee_sumamt,
209
+                "科室":department,
210
+                "医生姓名":doctor_name,
211
+                "收费类别":balance_accounts,
212
+                "收费者姓名":doctor_name,
213
+                "总金额":order.medfee_sumamt,
214
+                "现金支付":"",
215
+                "账户支付":"",
216
+                "支付宝支付":"",
217
+                "微信支付":"",
218
+                "其他支付":"",
219
+                "收费日期":"",
220
+                "收费状态":order_status,
221
+                "退费日期":"",
222
+              }
223
+              list.push(obj)
224
+            }
225
+            import('@/vendor/Export2Excel').then(excel => {
226
+              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室',"医生姓名","收费类别","收费者姓名","总金额","现金支付","账户支付","支付宝支付","微信支付","其他支付","收费日期","收费状态","退费日期"]
227
+              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室',"医生姓名","收费类别","收费者姓名","总金额","现金支付","账户支付","支付宝支付","微信支付","其他支付","收费日期","收费状态","退费日期"]
228
+              const data = this.formatJson(filterVal, list)
229
+              excel.export_json_to_excel({
230
+                header: tHeader,
231
+                data,
232
+                filename: "消费明细"
233
+              })
234
+            })
235
+
236
+          }
237
+        })
238
+
239
+      },  formatJson(filterVal, jsonData) {
240
+        return jsonData.map(v => filterVal.map(j => v[j]))
241
+      },
242
+      changeDoctor(){
243
+        this.page = 1
244
+        this.keywords=""
245
+        this.getHisOrderList()
246
+      },
247
+      handleSizeChange(limit){
248
+        this.limit = limit;
249
+        this.getHisOrderList()
250
+
251
+      },handleCurrentChange(page){
252
+        this.page = page;
253
+        this.getHisOrderList()
254
+
255
+
256
+      },
257
+      handleStartTimeChange(){
258
+        this.page = 1
259
+        this.keywords=""
260
+        this.getHisOrderList()
261
+      },handleEndTimeChange(){
262
+        this.page = 1
263
+        this.keywords=""
264
+        this.getHisOrderList()
265
+      },
266
+      searchAction(){
267
+        this.page = 1
268
+        this.getHisOrderList()
269
+
270
+
271
+      },
272
+      getTimes(time) {
273
+        return uParseTime(time, "{y}-{m}-{d}");
274
+      },
275
+      toDetail(row) {
276
+        this.$router.push('/outpatientCharges/summaryDetail?patient_id='+row.patient.id+"&number="+row.number)
277
+      }, getTime(value, temp) {
278
+        if (value != undefined) {
279
+          return uParseTime(value, temp)
280
+        }
281
+        return ''
282
+      },getHisOrderList(){
283
+        let params= {
284
+          page : this.page,
285
+          limit: this.limit,
286
+          keywords:this.keywords,
287
+          start_time:this.start_time,
288
+          end_time: this.end_time,
289
+          type: this.admin_user_id
290
+        }
291
+        getHisOrderList(params).then(response => {
292
+          if (response.data.state == 0) {
293
+            this.$message.error(response.data.msg)
294
+            return false
295
+          } else {
296
+            this.tableData = response.data.data.order
297
+            this.total = response.data.data.total
298
+          }
299
+        })
300
+
301
+      },getDoctorList(){
302
+        getDoctorList().then(response => {
303
+          if (response.data.state == 0) {
304
+            this.$message.error(response.data.msg)
305
+            return false
306
+          } else {
307
+            this.doctors = response.data.data.doctors
308
+          }
309
+        })
310
+
311
+
312
+      }
313
+    }, created() {
314
+     this.getDoctorList()
315
+     this.getHisOrderList()
316
+
317
+
318
+    }
319
+  }
320
+</script>

+ 25 - 23
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Bestand weergeven

@@ -4,6 +4,7 @@
4 4
     :visible.sync="isLastOrNextVisible"
5 5
     @close="hide"
6 6
     width="1010px"
7
+    class="callPrescription"
7 8
     :modal-append-to-body="false"
8 9
   >
9 10
     <el-date-picker
@@ -36,15 +37,15 @@
36 37
 
37 38
 
38 39
     <div v-for="(item,index) in allPrescription" :key="index">
39
-      <div>引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
40
+      <div class="quote" v-if="item.prescriptions.length > 0">引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
40 41
       <el-checkbox-group v-model="item.check_group">
41 42
         <div v-for="(subItem,index2) in item.prescriptions" :key="index2">
42
-          <el-checkbox :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
43
+          <el-checkbox style="margin:10px 0;" :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
43 44
           <el-table v-if="subItem.type  == 1" :data="subItem.doctor_advice" border style="width: 99%;"
44 45
                     :row-style="{ color: '#303133' }"
45 46
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
46
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
47
-            <el-table-column align="center" prop="drug_name"  width="100" label="名称">
47
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
48
+            <el-table-column align="center" prop="drug_name"  width="160" label="名称">
48 49
               <template slot-scope="scope">
49 50
                 <span>{{ scope.row.advice_name }}</span>
50 51
               </template>
@@ -52,9 +53,7 @@
52 53
 
53 54
             <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
54 55
               <template slot-scope="scope">
55
-                <div style="display:flex;align-items:center;">
56
-                  <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
57
-                </div>
56
+                <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
58 57
               </template>
59 58
             </el-table-column>
60 59
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
@@ -68,7 +67,7 @@
68 67
               </template>
69 68
             </el-table-column>
70 69
 
71
-            <el-table-column align="center" prop="day" width="50" label="天数">
70
+            <el-table-column align="center" prop="day" width="60" label="天数">
72 71
               <template slot-scope="scope">
73 72
                 {{scope.row.day}}
74 73
               </template>
@@ -76,9 +75,7 @@
76 75
 
77 76
             <el-table-column align="center" prop="prescribing_number" width="100" label="总量">
78 77
               <template slot-scope="scope">
79
-                <div style="display:flex;align-items:center;">
80
-                  <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
81
-                </div>
78
+                <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
82 79
               </template>
83 80
             </el-table-column>
84 81
             <el-table-column align="center" prop="retail_price" width="80" label="单价">
@@ -86,7 +83,7 @@
86 83
                 <div>{{scope.row.retail_price}}</div>
87 84
               </template>
88 85
             </el-table-column>
89
-            <el-table-column align="center" prop="remark" width="200" label="备注">
86
+            <el-table-column align="center" prop="remark" label="备注">
90 87
               <template slot-scope="scope">
91 88
                 <div>{{scope.row.remark}}</div>
92 89
               </template>
@@ -95,8 +92,8 @@
95 92
           <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;"
96 93
                     :row-style="{ color: '#303133' }"
97 94
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
98
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
99
-            <el-table-column align="center" prop="project_name" width="100" label="名称">
95
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
96
+            <el-table-column align="center" prop="project_name" width="160" label="名称">
100 97
               <template slot-scope="scope">
101 98
                 <span>{{ scope.row.project.project_name }}</span>
102 99
               </template>
@@ -104,7 +101,7 @@
104 101
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
105 102
               <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
106 103
             </el-table-column>
107
-            <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
104
+            <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
108 105
               <template slot-scope="scope">
109 106
                 <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
110 107
                 <span>{{ scope.row.single_dose }}</span>
@@ -134,20 +131,17 @@
134 131
             </el-table-column>
135 132
             <el-table-column align="center" prop="total" width="70" label="总量">
136 133
               <template slot-scope="scope">
137
-                <div style="display:flex;align-items:center;">
138
-                  <!--<el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>-->
139
-                  <div>{{ scope.row.total }}{{scope.row.unit}}</div>
140
-                </div>
134
+                <div>{{ scope.row.total }}{{scope.row.unit}}</div>
141 135
               </template>
142 136
             </el-table-column>
143
-            <el-table-column align="center" prop="name" width="50" label="单价">
137
+            <el-table-column align="center" prop="name" width="60" label="单价">
144 138
               <template slot-scope="scope">
145 139
                 <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
146 140
                 <span>{{ scope.row.price }}</span>
147 141
 
148 142
               </template>
149 143
             </el-table-column>
150
-            <el-table-column align="center" prop="name" width="100" label="备注">
144
+            <el-table-column align="center" prop="name" label="备注">
151 145
               <template slot-scope="scope">
152 146
                 <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
153 147
                 <span>{{ scope.row.remark }}</span>
@@ -349,6 +343,14 @@
349 343
   }
350 344
 </script>
351 345
 
352
-<style scoped>
353
-
346
+<style lang="scss">
347
+.callPrescription{
348
+  .el-dialog__body{
349
+    padding:0px 20px 30px;
350
+  }
351
+  .quote{
352
+    margin-top: 10px;
353
+    font-size: 14px;
354
+  }
355
+}
354 356
 </style>

+ 30 - 25
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Bestand weergeven

@@ -25,10 +25,10 @@
25 25
           <el-form-item label="处方类型: " prop="name" label-position="right">
26 26
             <el-select style="width:100%;" v-model="register_type" placeholder="">
27 27
               <el-option
28
-                v-for="(item,index) in register"
28
+                v-for="(item,index) in getDictionaryDataConfig('system','prescription_type')"
29 29
                 :key="index"
30
-                :label="item.label"
31
-                :value="item.value">
30
+                :label="item.name"
31
+                :value="item.id">
32 32
               </el-option>
33 33
             </el-select>
34 34
           </el-form-item>
@@ -84,22 +84,26 @@
84 84
             </el-tab-pane>
85 85
             <el-tab-pane name="more" closable><span slot="label"><i class="el-icon-plus" @click="addTab"></i></span>
86 86
             </el-tab-pane>
87
-            <div class="RP">Rp</div>
88
-
89
-            <div style="float: right">
90
-              <el-button
91
-                round
92
-                @click="openLast(3)"
93
-              >上一方
94
-              </el-button>
95
-
96
-              <el-button
97
-                round
98
-                @click="openNext(4)"
99
-              >下一方
100
-              </el-button>
87
+            <div class="RP">Rp
88
+              <div style="float: right;margin-bottom:5px;margin-right:1%;">
89
+                <el-button
90
+                  round
91
+                  size="small"
92
+                  @click="openLast(3)"
93
+                >上一方
94
+                </el-button>
95
+
96
+                <el-button
97
+                  round
98
+                  size="small"
99
+                  @click="openNext(4)"
100
+                >下一方
101
+                </el-button>
102
+              </div>
101 103
             </div>
102 104
 
105
+            
106
+
103 107
             <prescription-table ref="prescription_tables" :prescription="curPrescriptions" :preDrugs="preDrugs"
104 108
                                 :activeType="customTabIndex"></prescription-table>
105 109
           </el-tabs>
@@ -367,13 +371,13 @@
367 371
     data() {
368 372
       return {
369 373
         register: [
370
-          {value: 1, label: "普通"},
371
-          {value: 2, label: '急诊'},
372
-          {value: 3, label: "儿科"},
373
-          {value: 4, label: "麻醉"},
374
-          {value: 5, label: "精一"},
375
-          {value: 6, label: "精二"},
376
-          {value: 7, label: "其他"},
374
+          {value: 11, label: "普通门诊"},
375
+          {value: 12, label: '门诊挂号'},
376
+          {value: 13, label: "急诊"},
377
+          {value: 14, label: "门诊慢性病"},
378
+          {value: 15, label: "门诊统筹"},
379
+          {value: 16, label: "门诊特殊病"},
380
+          {value: 21, label: "普通住院"},
377 381
 
378 382
         ],
379 383
         isLastOrNextVisible: false,
@@ -1519,7 +1523,8 @@
1519 1523
           }, 400)
1520 1524
         }
1521 1525
       }
1522
-    }
1526
+    },
1527
+   
1523 1528
   }
1524 1529
 </script>
1525 1530
 

+ 24 - 22
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue Bestand weergeven

@@ -5,8 +5,9 @@
5 5
     @close="hide"
6 6
     width="1010px"
7 7
     :modal-append-to-body="false"
8
+    class="isLastOrNext"
8 9
   >
9
-    <div class="txsj">
10
+    <div class="txsj" style="text-align:center;">
10 11
       <el-button
11 12
         round
12 13
 
@@ -22,15 +23,15 @@
22 23
     </div>
23 24
 
24 25
     <div v-for="(item,index) in allPrescription" :key="index">
25
-      <div>引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
26
+      <div class="quote">引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
26 27
       <el-checkbox-group v-model="item.check_group">
27 28
         <div v-for="(subItem,index2) in item.prescriptions" :key="index2">
28
-          <el-checkbox :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
29
+          <el-checkbox style="margin:10px 0;" :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
29 30
           <el-table v-if="subItem.type  == 1" :data="subItem.doctor_advice" border style="width: 99%;"
30 31
                     :row-style="{ color: '#303133' }"
31 32
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
32
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
33
-            <el-table-column align="center" prop="drug_name"  width="100" label="名称">
33
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
34
+            <el-table-column align="center" prop="drug_name"  width="160" label="名称">
34 35
               <template slot-scope="scope">
35 36
                 <span>{{ scope.row.advice_name }}</span>
36 37
               </template>
@@ -38,9 +39,7 @@
38 39
 
39 40
             <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
40 41
               <template slot-scope="scope">
41
-                <div style="display:flex;align-items:center;">
42 42
                   <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
43
-                </div>
44 43
               </template>
45 44
             </el-table-column>
46 45
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
@@ -54,7 +53,7 @@
54 53
               </template>
55 54
             </el-table-column>
56 55
 
57
-            <el-table-column align="center" prop="day" width="50" label="天数">
56
+            <el-table-column align="center" prop="day" width="60" label="天数">
58 57
               <template slot-scope="scope">
59 58
                 {{scope.row.day}}
60 59
               </template>
@@ -62,9 +61,7 @@
62 61
 
63 62
             <el-table-column align="center" prop="prescribing_number" width="100" label="总量">
64 63
               <template slot-scope="scope">
65
-                <div style="display:flex;align-items:center;">
66
-                  <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
67
-                </div>
64
+                <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
68 65
               </template>
69 66
             </el-table-column>
70 67
             <el-table-column align="center" prop="retail_price" width="80" label="单价">
@@ -72,7 +69,7 @@
72 69
                 <div>{{scope.row.retail_price}}</div>
73 70
               </template>
74 71
             </el-table-column>
75
-            <el-table-column align="center" prop="remark" width="200" label="备注">
72
+            <el-table-column align="center" prop="remark" label="备注">
76 73
               <template slot-scope="scope">
77 74
                 <div>{{scope.row.remark}}</div>
78 75
               </template>
@@ -81,8 +78,8 @@
81 78
           <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;"
82 79
                     :row-style="{ color: '#303133' }"
83 80
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
84
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
85
-            <el-table-column align="center" prop="project_name" width="100" label="名称">
81
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
82
+            <el-table-column align="center" prop="project_name" width="160" label="名称">
86 83
               <template slot-scope="scope">
87 84
                 <span>{{ scope.row.project.project_name }}</span>
88 85
               </template>
@@ -90,7 +87,7 @@
90 87
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
91 88
               <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
92 89
             </el-table-column>
93
-            <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
90
+            <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
94 91
               <template slot-scope="scope">
95 92
                 <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
96 93
                 <span>{{ scope.row.single_dose }}</span>
@@ -120,20 +117,17 @@
120 117
             </el-table-column>
121 118
             <el-table-column align="center" prop="total" width="70" label="总量">
122 119
               <template slot-scope="scope">
123
-                <div style="display:flex;align-items:center;">
124
-                  <!--<el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>-->
125 120
                   <div>{{ scope.row.total }}{{scope.row.unit}}</div>
126
-                </div>
127 121
               </template>
128 122
             </el-table-column>
129
-            <el-table-column align="center" prop="name" width="50" label="单价">
123
+            <el-table-column align="center" prop="name" width="60" label="单价">
130 124
               <template slot-scope="scope">
131 125
                 <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
132 126
                 <span>{{ scope.row.price }}</span>
133 127
 
134 128
               </template>
135 129
             </el-table-column>
136
-            <el-table-column align="center" prop="name" width="100" label="备注">
130
+            <el-table-column align="center" prop="name" label="备注">
137 131
               <template slot-scope="scope">
138 132
                 <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
139 133
                 <span>{{ scope.row.remark }}</span>
@@ -410,6 +404,14 @@
410 404
   }
411 405
 </script>
412 406
 
413
-<style scoped>
414
-
407
+<style lang="scss">
408
+.isLastOrNext{
409
+  .el-dialog__body{
410
+    padding:0px 20px 30px;
411
+  }
412
+  .quote{
413
+    margin-top: 10px;
414
+    font-size: 14px;
415
+  }
416
+}
415 417
 </style>

+ 5 - 9
src/xt_pages/sign/components/beforeDialysisCalling.vue Bestand weergeven

@@ -85,17 +85,13 @@ export default {
85 85
         }
86 86
     },
87 87
     mounted(){
88
-        this.timer = setInterval(() => {
89
-            let obj = {
90
-                cmd: "queue/join",
91
-                data: {type:3,page:0,size:0},
92
-            };
93
-            this.websocketSend(obj)
94
-        }, 1000*50);
88
+        // let obj = {
89
+        //     cmd: "queue/join",
90
+        //     data: {type:3,page:0,size:0},
91
+        // };
92
+        // this.websocketSend(obj)
95 93
     },
96 94
     beforeDestroy(){
97
-        clearInterval(this.timer);  // 清除定时器
98
-        this.timer = null
99 95
 
100 96
         let unObj = {
101 97
             cmd: "queue/unjoin",

+ 5 - 9
src/xt_pages/sign/components/computerCalling.vue Bestand weergeven

@@ -63,17 +63,13 @@ export default {
63 63
         this.websocketMess();
64 64
     },
65 65
     mounted(){
66
-        this.timer = setInterval(() => {
67
-            let obj = {
68
-                cmd: "queue/join",
69
-                data: {type:4,page:0,size:0},
70
-            };
71
-            this.websocketSend(obj)
72
-        }, 1000*50);
66
+        // let obj = {
67
+        //     cmd: "queue/join",
68
+        //     data: {type:4,page:0,size:0},
69
+        // };
70
+        // this.websocketSend(obj)
73 71
     },
74 72
     beforeDestroy(){
75
-        clearInterval(this.timer);  // 清除定时器
76
-        this.timer = null
77 73
         let unObj = {
78 74
             cmd: "queue/unjoin",
79 75
             data: {type:4},

+ 17 - 21
src/xt_pages/sign/signIn.vue Bestand weergeven

@@ -155,25 +155,23 @@ export default {
155 155
         this.websocketMess();
156 156
     },
157 157
     mounted(){
158
-        this.timer = setInterval(() => {
159
-            if(this.page < Math.ceil(this.count / 10)){
160
-                console.log('执行')
161
-                this.page++
162
-                let obj = {
163
-                    cmd: "queue/queuelist",
164
-                    data: {page:this.page,size:10}
165
-                };
166
-                this.websocketSend(obj)
167
-            }else{
168
-                console.log('执行2222')
169
-                this.page = 1
170
-                let newobj = {
171
-                    cmd: "queue/queuelist",
172
-                    data: {page:this.page,size:10}
173
-                };
174
-                this.websocketSend(newobj)
175
-            }
176
-        }, 5000);
158
+        if(this.page < Math.ceil(this.count / 10)){
159
+            console.log('执行')
160
+            this.page++
161
+            let obj = {
162
+                cmd: "queue/queuelist",
163
+                data: {page:this.page,size:10}
164
+            };
165
+            this.websocketSend(obj)
166
+        }else{
167
+            console.log('执行2222')
168
+            this.page = 1
169
+            let newobj = {
170
+                cmd: "queue/queuelist",
171
+                data: {page:this.page,size:10}
172
+            };
173
+            this.websocketSend(newobj)
174
+        }
177 175
         
178 176
         this.timerID = setInterval(() => {
179 177
             this.updateTime()
@@ -181,9 +179,7 @@ export default {
181 179
         // this.updateTime();
182 180
     },
183 181
     beforeDestroy(){
184
-        clearInterval(this.timer);  // 清除定时器
185 182
         clearInterval(this.timerID);  // 清除定时器
186
-        this.timer = null;
187 183
         let obj = {
188 184
             cmd: "queue/unjoin",
189 185
             data: {type:1},

+ 42 - 7
src/xt_pages/stock/Dialog/stockInDialog.vue Bestand weergeven

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <el-dialog title="选择商品" :visible.sync="visibility" :close-on-click-modal="isClose"
2
+  <el-dialog title="选择耗材" :visible.sync="visibility" :close-on-click-modal="isClose"
3 3
              :close-on-press-escape="isClose">
4 4
 
5 5
     <div class="filter-container">
@@ -105,6 +105,7 @@
105 105
         SelectedDatas: [],
106 106
         table_current_index: -1,
107 107
         tableData:[],
108
+        row_id:0,
108 109
       }
109 110
     },
110 111
     props: {
@@ -135,7 +136,7 @@
135 136
         }
136 137
       },
137 138
        goodTypeTableChange: function(currentRow, oldCurrentRow) {
138
-       
139
+        
139 140
         let keyName = ""
140 141
         var arr = []
141 142
         for(let i= 0;i<this.propForm.goods.length;i++){
@@ -229,11 +230,27 @@
229 230
         console.log("searchArr",searchArr)
230 231
         this.propForm.goodType = []
231 232
         this.propForm.goodType = searchArr
233
+        
234
+       
232 235
       },
233 236
       changeGoodInfoTableData: function(val) {
234
-      }, changeAllGoodInfoTableData: function(selection) {
235
-
236
-        var goodInfos = this.propForm.goods[this.table_current_index][this.currentGoodTypeId]
237
+      },
238
+      changeAllGoodInfoTableData: function(selection) {
239
+        console.log("888878888888",this.propForm.goods)
240
+        var arr = []
241
+        var id = 0
242
+         for(let i=0;i<this.propForm.goods.length;i++){
243
+            for(let key in this.propForm.goods[i]){
244
+               if(key == this.row_id){
245
+                  arr.push(this.propForm.goods[i])
246
+                  id = i
247
+               }
248
+            }
249
+         }
250
+       console.log("arrr33333",arr)
251
+       console.log("i9999",id)
252
+        var goodInfos = this.propForm.goods[id][this.currentGoodTypeId]
253
+        console.log("999999",goodInfos)
237 254
         for (let y = 0; y < goodInfos.length; y++) {
238 255
           goodInfos[y].isSelected = false
239 256
         }
@@ -276,9 +293,27 @@
276 293
         row.index = rowIndex
277 294
       },
278 295
       onRowClicks(row, event, column) {
296
+        
279 297
         this.table_current_index = row.index
280
-      }, selectGoodInfo(selection, row) {
281
-        var goodInfos = this.propForm.goods[this.table_current_index][this.currentGoodTypeId]
298
+        this.row_id = row.id
299
+        
300
+      }, 
301
+      selectGoodInfo(selection, row) {
302
+
303
+        var arr = []
304
+        var id = 0
305
+        for(let i=0;i<this.propForm.goods.length;i++){
306
+              for(let key in this.propForm.goods[i]){
307
+                if(key == this.row_id){
308
+                    arr.push(this.propForm.goods[i])
309
+                    id = i
310
+                }
311
+              }
312
+          }
313
+        console.log("arrr33333",arr)
314
+        console.log("i9999",id)
315
+        var goodInfos = this.propForm.goods[id][this.currentGoodTypeId]
316
+        // var goodInfos = this.propForm.goods[this.table_current_index][this.currentGoodTypeId]
282 317
         for (let y = 0; y < goodInfos.length; y++) {
283 318
           goodInfos[y].isSelected = false
284 319
         }

+ 26 - 9
src/xt_pages/stock/detail/print.vue Bestand weergeven

@@ -23,30 +23,38 @@
23 23
             <tbody>
24 24
             <tr>
25 25
               <td style="line-height: 50px" width="50">序号</td>
26
-              <td style="line-height: 50px" width="250">耗材类型</td>
27
-               <td style="line-height: 50px" width="250">耗材名称</td>
26
+              <td style="line-height: 50px" width="250">耗材名称</td>
28 27
               <td style="line-height: 50px" width="250">规格型号</td>
28
+              <td style="line-height: 50px" width="50">单位</td>
29
+              <!-- <td style="line-height: 50px" width="250">耗材类型</td> -->
30
+            
31
+              
29 32
               <td style="line-height: 50px" width="80">数量</td>
33
+              <td style="line-height:50px" width="80" v-if="type == 1">进货价</td>
34
+             <td style="line-height:50px" width="80" v-if="type == 3">出货价</td>
30 35
               <td style="line-height: 50px" width="80" v-if="type == 1 || type == 3">总价</td>
31 36
               <td style="line-height: 50px" width="">备 注</td>
32 37
             </tr>
33 38
 
34
-
35 39
             <tr v-for="(stock,index) in stockDatas" :key="stock.id">
36 40
               <td style="line-height: 50px">&nbsp;
37 41
                 {{index+1}}
38 42
               </td>
39
-              <td style="line-height: 50px">
40
-                <span v-if="stock.type && stock.type.type_name.length > 0">{{stock.type.type_name}}</span>
43
+               <td style="line-height: 50px">
44
+                <span>{{stock.good_name}}</span>
41 45
               </td>
42
-              <td style="line-height: 50px">
43
-                <span v-if="stock">{{stock.good_name}}</span>
46
+               <td style="line-height: 50px">
47
+                <span v-if="stock">{{stock.specification_name}}</span>
44 48
               </td>
45 49
               <td style="line-height: 50px">
46
-                <span v-if="stock">{{stock.specification_name}}</span>
50
+                <span>{{getUnit(stock.good_unit)}}</span>
47 51
               </td>
48
-
52
+              <!-- <td style="line-height: 50px">
53
+                <span v-if="stock.type && stock.type.type_name.length > 0">{{stock.type.type_name}}</span>
54
+              </td> -->
49 55
               <td style="line-height: 50px">{{calCount(stock)}}</td>
56
+              <td style="line-height:50px" v-if="type == 1 && stock.query_warehousing_info.length > 0">{{stock.query_warehousing_info[0].price}}</td>
57
+              <td style="line-height:50px" v-if="type == 3 && stock.query_warehouseout_info.length > 0">{{stock.query_warehouseout_info[0].price}}</td>
50 58
               <td style="line-height: 50px" v-if="type == 1 || type == 3">{{calTotal(stock)}}</td>
51 59
               <td style="line-height: 50px"></td>
52 60
             </tr>
@@ -268,6 +276,15 @@
268 276
         r1 = Number(price.toString().replace('.', ''))
269 277
         r2 = Number(total.toString().replace('.', ''))
270 278
         return r1 * r2 / Math.pow(10, m)
279
+      },
280
+      getUnit(id){
281
+        var name = ""
282
+        for(let i=0;i<this.goodUnit.length;i++){
283
+           if(this.goodUnit[i].id == id){
284
+              name = this.goodUnit[i].name
285
+           }
286
+        }
287
+        return name
271 288
       }
272 289
     },
273 290
     created() {

+ 4 - 2
src/xt_pages/stock/stockInOrder.vue Bestand weergeven

@@ -586,14 +586,16 @@ export default {
586 586
       "-" +
587 587
       (nowDay < 10 ? "0" + nowDay : nowDay);
588 588
     nowDate.setMonth(nowDate.getMonth() - 1);
589
-  
589
+    nowMonth = nowDate.getMonth() + 1;
590
+    nowDay = nowDate.getDate();
590 591
     this.start_time =
591 592
       nowYear +
592 593
       "-" +
593 594
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
594 595
       "-" +
595 596
       (nowDay < 10 ? "0" + nowDay : nowDay);
596
-   
597
+     
598
+     
597 599
 
598 600
       // this.warehousing_time =
599 601
       //   nowYear +

+ 1 - 1
src/xt_pages/stock/stockInOrderAdd.vue Bestand weergeven

@@ -455,7 +455,7 @@
455 455
         }
456 456
         return name
457 457
       }, specificationName: function(good_info_id) {
458
-        console.log("333333333",this.goodInfo)
458
+        // console.log("333333333",this.goodInfo)
459 459
         let name = ''
460 460
         for (let i = 0; i < this.goodInfo.length; i++) {
461 461
           if (this.goodInfo[i].id == good_info_id) {

+ 1 - 1
src/xt_pages/stock/stockOutOrderAdd.vue Bestand weergeven

@@ -327,7 +327,7 @@ export default {
327 327
             tempForm['count'] = ''
328 328
             tempForm['price'] = val.selectedGoodInfo[i].buy_price.toString()
329 329
             tempForm['remark'] = ''
330
-            tempForm['good_unit'] = ''
330
+            tempForm['good_unit'] = val.selectedGoodInfo[i].good_unit
331 331
             this.recordInfo.recordData.splice(this.currentIndex + 1, 0, tempForm)
332 332
           }
333 333
         }

+ 2 - 2
src/xt_pages/stock/stockQuery.vue Bestand weergeven

@@ -46,7 +46,7 @@
46 46
             style="width: 200px;margin-left:10px;"
47 47
             class="filter-item"
48 48
             v-model.trim="keywords"
49
-            placeholder="商品编码/商品名称/规格名称"
49
+            placeholder="耗材名称/商品编码/商品名称/规格名称"
50 50
           />
51 51
           <el-button
52 52
             size="small"
@@ -226,7 +226,7 @@ export default {
226 226
         end_time:this.end_time,
227 227
         type_name:this.type_name,
228 228
       };
229
-      console.log("params-----",Params)
229
+     
230 230
       this.WarehouseInfo.loading = true;
231 231
       this.WarehouseInfo.warehouseInfoDate = [];
232 232
       getAllStockQueryList(Params).then(response => {

+ 1 - 1
src/xt_pages/upload/fast/dialysisParams.vue Bestand weergeven

@@ -437,7 +437,7 @@ export default {
437 437
     watch:{
438 438
         monitor_records:{
439 439
             handler:function(val) {
440
-                console.log(333333333333,this.monitor_records)
440
+                // console.log(333333333333,this.monitor_records)
441 441
                 if(this.monitor_records.length > 5){
442 442
                     this.monitor_records = this.monitor_records
443 443
                 }else{