|
@@ -143,7 +143,7 @@
|
143
|
143
|
</el-date-picker>
|
144
|
144
|
|
145
|
145
|
|
146
|
|
- <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
|
|
146
|
+ <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
|
147
|
147
|
@change="changevalue">
|
148
|
148
|
<el-option
|
149
|
149
|
v-for="(item,index) in register"
|
|
@@ -152,6 +152,16 @@
|
152
|
152
|
:value="item.value">
|
153
|
153
|
</el-option>
|
154
|
154
|
</el-select>
|
|
155
|
+<!-- //针对海拉尔普爱肾病医院-->
|
|
156
|
+ <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
|
|
157
|
+ @change="changevalue">
|
|
158
|
+ <el-option
|
|
159
|
+ v-for="(item,index) in register10206"
|
|
160
|
+ :key="index"
|
|
161
|
+ :label="item.label"
|
|
162
|
+ :value="item.value">
|
|
163
|
+ </el-option>
|
|
164
|
+ </el-select>
|
155
|
165
|
|
156
|
166
|
<div style="float: right;margin-bottom:5px;margin-right:1%;">
|
157
|
167
|
<el-button
|
|
@@ -303,7 +313,8 @@
|
303
|
313
|
<span v-if="scope.row.min_unit != scope.row.dose_unit">{{scope.row.dose}}{{scope.row.dose_unit}} * </span>{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
|
304
|
314
|
</template>
|
305
|
315
|
</el-table-column>
|
306
|
|
- <el-table-column label="库存" width="60">
|
|
316
|
+
|
|
317
|
+ <el-table-column label="库存" width="60" v-if="org_id != 10454">
|
307
|
318
|
<template slot-scope="scope">
|
308
|
319
|
<!-- <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id ==9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217 || org_id ==10210 || org_id ==record_date ||org_id ==10340">
|
309
|
320
|
<span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
|
|
@@ -315,6 +326,13 @@
|
315
|
326
|
<span v-if="scope.row.sum_count >0 && scope.row.max_unit == scope.row.min_unit">{{scope.row.sum_count}}{{scope.row.max_unit}}</span>
|
316
|
327
|
</template>
|
317
|
328
|
</el-table-column>
|
|
329
|
+
|
|
330
|
+<!-- //针对对接坐标系统的,使用坐标的库存数据-->
|
|
331
|
+ <el-table-column label="库存" width="60" v-else>
|
|
332
|
+ <template slot-scope="scope">
|
|
333
|
+ <span>{{scope.row.zuobiao_stock_num}}</span>
|
|
334
|
+ </template>
|
|
335
|
+ </el-table-column>
|
318
|
336
|
<el-table-column label="单价" width="40">
|
319
|
337
|
<template slot-scope="scope">{{ scope.row.min_price }}</template>
|
320
|
338
|
</el-table-column>
|
|
@@ -408,7 +426,10 @@
|
408
|
426
|
{{scope.row.stock_count}}
|
409
|
427
|
</span>
|
410
|
428
|
<span v-else> {{ scope.row.total }}</span> -->
|
411
|
|
- <span v-if="scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
|
|
429
|
+ <span v-if="org_id != 10454 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
|
|
430
|
+<!-- //针对坐标系统的库存数据-->
|
|
431
|
+ <span v-if="org_id == 10454 && scope.row.type == 3">{{scope.row.good_info.zuobiao_stock_num}}</span>
|
|
432
|
+
|
412
|
433
|
</template>
|
413
|
434
|
</el-table-column>
|
414
|
435
|
<el-table-column label="单价" width="40">
|
|
@@ -488,10 +509,7 @@ import {
|
488
|
509
|
editHisPrescription,
|
489
|
510
|
getCallHisPrescription,
|
490
|
511
|
getDayOrMonthHisPrescription,
|
491
|
|
- getInitData,
|
492
|
512
|
getNextOrLastHisPrescription,
|
493
|
|
- getPatientInfo,
|
494
|
|
- getSchedulePatientList
|
495
|
513
|
} from '@/api/his/his'
|
496
|
514
|
import { getDictionaryDataConfig } from '@/utils/data'
|
497
|
515
|
import prescriptionTable from './prescriptionTable'
|
|
@@ -499,7 +517,6 @@ import selectTemplate from './selectTemplate'
|
499
|
517
|
import saveTemplate from './saveTemplate'
|
500
|
518
|
import additionalCharges from './additionalCharges'
|
501
|
519
|
import {
|
502
|
|
- addProjectTeam,
|
503
|
520
|
getAllProjectList,
|
504
|
521
|
getAllProjectTeam,
|
505
|
522
|
getHisProject,
|
|
@@ -514,6 +531,8 @@ const moment = require('moment')
|
514
|
531
|
|
515
|
532
|
export default {
|
516
|
533
|
props: {
|
|
534
|
+ zuobiao_drug:Array,
|
|
535
|
+ zuobiao_project:Array,
|
517
|
536
|
drugs:Array,
|
518
|
537
|
allDrugs:Array,
|
519
|
538
|
advices_template:Array,
|
|
@@ -553,6 +572,18 @@ export default {
|
553
|
572
|
return {
|
554
|
573
|
start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
|
555
|
574
|
end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
|
|
575
|
+ register10206: [
|
|
576
|
+ { value: 1, label: '普通' },
|
|
577
|
+ { value: 2, label: '急诊' },
|
|
578
|
+ { value: 5, label: '第一类精神药品' },
|
|
579
|
+ { value: 6, label: '第二类精神药品' },
|
|
580
|
+ { value: 7, label: '放射药品' },
|
|
581
|
+ { value: 8, label: '毒性药品' },
|
|
582
|
+ { value: 9, label: '检查' },
|
|
583
|
+ { value: 10, label: '检验' },
|
|
584
|
+ { value: 12, label: '治疗' },
|
|
585
|
+ { value: 99, label: '其他' },
|
|
586
|
+ ],
|
556
|
587
|
register: [
|
557
|
588
|
|
558
|
589
|
{ value: 11, label: '普通门诊' },
|
|
@@ -693,9 +724,6 @@ export default {
|
693
|
724
|
methods: {
|
694
|
725
|
|
695
|
726
|
changeClass(id) {
|
696
|
|
- console.log("asdaff,id",id)
|
697
|
|
- console.log("asdaff,this.value",this.value)
|
698
|
|
- console.log("asdaff,this.allProject",this.allProject)
|
699
|
727
|
this.tabProject = []
|
700
|
728
|
if (id == 0) {
|
701
|
729
|
this.tabProject = this.allProject
|
|
@@ -1596,11 +1624,11 @@ export default {
|
1596
|
1624
|
} else {
|
1597
|
1625
|
let arr = []
|
1598
|
1626
|
for (let i = 0; i < this.allProject.length; i++) {
|
1599
|
|
-
|
|
1627
|
+
|
1600
|
1628
|
if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
|
1601
|
1629
|
arr = arr.concat(this.allProject[i])
|
1602
|
1630
|
}
|
1603
|
|
-
|
|
1631
|
+
|
1604
|
1632
|
}
|
1605
|
1633
|
this.tabProject = arr
|
1606
|
1634
|
console.log('kkkk',this.tabProject);
|
|
@@ -1628,7 +1656,7 @@ export default {
|
1628
|
1656
|
let arr = []
|
1629
|
1657
|
for (let i = 0; i < this.drugs.length; i++) {
|
1630
|
1658
|
if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 ||
|
1631
|
|
- this.drugs[i].wubi.indexOf(this.search_keyword) != -1 ||
|
|
1659
|
+ this.drugs[i].wubi.indexOf(this.search_keyword) != -1 ||
|
1632
|
1660
|
this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
|
1633
|
1661
|
this.drugs[i].first_letter.indexOf(this.search_keyword) != -1
|
1634
|
1662
|
) {
|
|
@@ -3536,7 +3564,10 @@ export default {
|
3536
|
3564
|
is_special_diseases: project[i].disease_directory,
|
3537
|
3565
|
project: project[i],
|
3538
|
3566
|
stock_count:0,
|
3539
|
|
- first_letter:project[i].first_letter
|
|
3567
|
+ first_letter:project[i].first_letter,
|
|
3568
|
+ bbx01:project[i].bbx01,
|
|
3569
|
+ zuobiao_stock_num:0,
|
|
3570
|
+
|
3540
|
3571
|
}
|
3541
|
3572
|
// console.log('hhhhh',obj);
|
3542
|
3573
|
this.tabProject.push(obj)
|
|
@@ -3570,11 +3601,24 @@ export default {
|
3570
|
3601
|
is_special_diseases: good_info[i].is_special_diseases,
|
3571
|
3602
|
good_info: good_info[i],
|
3572
|
3603
|
stock_count:good_info[i].stock_count,
|
|
3604
|
+ bbx01:good_info[i].bbx01,
|
|
3605
|
+ zuobiao_stock_num:0,
|
|
3606
|
+
|
3573
|
3607
|
}
|
3574
|
3608
|
this.tabProject.push(obj)
|
3575
|
3609
|
}
|
3576
|
|
-
|
|
3610
|
+ //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
|
|
3611
|
+ if(this.org_id == 10205 || this.org_id == 10454) {
|
|
3612
|
+ for (let i = 0; i < this.zuobiao_project.length; i++) {
|
|
3613
|
+ for (let b = 0; b < this.tabProject.length; b++) {
|
|
3614
|
+ if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
|
|
3615
|
+ this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
|
|
3616
|
+ }
|
|
3617
|
+ }
|
|
3618
|
+ }
|
|
3619
|
+ }
|
3577
|
3620
|
this.allProject = this.tabProject
|
|
3621
|
+
|
3578
|
3622
|
// console.log('cccc',this.allProject);
|
3579
|
3623
|
}
|
3580
|
3624
|
})
|