|
@@ -433,7 +433,7 @@
|
433
|
433
|
<span v-else> {{ scope.row.total }}</span> -->
|
434
|
434
|
<span v-if="org_id != 10206 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
|
435
|
435
|
<!-- //针对坐标系统的库存数据-->
|
436
|
|
- <span v-if="org_id == 10206 && scope.row.type == 3">{{scope.row.zuobiao_stock_num}}</span>
|
|
436
|
+ <span v-if="org_id == 10206 && scope.row.type == 3">{{scope.row.good_info.zuobiao_stock_num}}</span>
|
437
|
437
|
|
438
|
438
|
</template>
|
439
|
439
|
</el-table-column>
|
|
@@ -531,13 +531,13 @@ import { uParseTime } from '@/utils/tools'
|
531
|
531
|
import NextOrLastPrescription from './nextOrLastPrescription'
|
532
|
532
|
import CallPrescription from './callPrescription'
|
533
|
533
|
import DayPrescriptionTable from '../../outpatientCharges/components/dayPrescriptionTable'
|
534
|
|
-import axios from 'axios'
|
535
|
534
|
|
536
|
535
|
const moment = require('moment')
|
537
|
536
|
|
538
|
537
|
export default {
|
539
|
538
|
props: {
|
540
|
539
|
zuobiao_drug:Array,
|
|
540
|
+ zuobiao_project:Array,
|
541
|
541
|
drugs:Array,
|
542
|
542
|
allDrugs:Array,
|
543
|
543
|
advices_template:Array,
|
|
@@ -574,9 +574,7 @@ export default {
|
574
|
574
|
additionalCharges
|
575
|
575
|
},
|
576
|
576
|
data() {
|
577
|
|
-
|
578
|
577
|
return {
|
579
|
|
- zuobiao_project:[],
|
580
|
578
|
start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
|
581
|
579
|
end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
|
582
|
580
|
register10206: [
|
|
@@ -1624,20 +1622,24 @@ export default {
|
1624
|
1622
|
this.$refs.additionalCharges.hide()
|
1625
|
1623
|
|
1626
|
1624
|
}, searchProjectAction() {
|
|
1625
|
+ console.log('~~~~',this.search_project_keyword)
|
|
1626
|
+ console.log('5555',this.tabProject)
|
|
1627
|
+ console.log('6666',this.allProject)
|
1627
|
1628
|
// console.log('4444',this.tabProject[1].first_letter.indexOf(this.search_project_keyword) != -1)
|
1628
|
1629
|
if (this.search_project_keyword.length == 0) {
|
1629
|
1630
|
this.tabProject = this.allProject
|
1630
|
1631
|
} else {
|
1631
|
1632
|
let arr = []
|
1632
|
1633
|
for (let i = 0; i < this.allProject.length; i++) {
|
1633
|
|
-
|
1634
|
|
-
|
1635
|
|
- if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
|
|
1634
|
+ // console.log('4444',this.tabProject[i].first_letter.indexOf(this.search_project_keyword) != -1)
|
|
1635
|
+ if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1 ||
|
|
1636
|
+ this.allProject[i].first_letter.indexOf(this.search_project_keyword) !=-1) {
|
1636
|
1637
|
arr = arr.concat(this.allProject[i])
|
1637
|
1638
|
}
|
1638
|
1639
|
|
1639
|
1640
|
}
|
1640
|
1641
|
this.tabProject = arr
|
|
1642
|
+ console.log('kkkk',this.tabProject);
|
1641
|
1643
|
}
|
1642
|
1644
|
|
1643
|
1645
|
}, searchProjectTeamAction() {
|
|
@@ -1886,6 +1888,7 @@ export default {
|
1886
|
1888
|
},
|
1887
|
1889
|
|
1888
|
1890
|
tabclickEvent(val) {
|
|
1891
|
+ console.log("li3333333333333li")
|
1889
|
1892
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
1890
|
1893
|
if (this.prescriptions[i].name == val.name) {
|
1891
|
1894
|
this.prescription_id = this.prescriptions[i].id
|
|
@@ -1953,6 +1956,7 @@ export default {
|
1953
|
1956
|
|
1954
|
1957
|
},
|
1955
|
1958
|
setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data, last_info,sick,diagnoses,patient_diagnose) {
|
|
1959
|
+ console.log("诊断23333333333333",this.diagnose)
|
1956
|
1960
|
this.sick = sick
|
1957
|
1961
|
this.diagnoses = diagnoses
|
1958
|
1962
|
this.department = department
|
|
@@ -2068,6 +2072,7 @@ export default {
|
2068
|
2072
|
|
2069
|
2073
|
|
2070
|
2074
|
this.diagnose = []
|
|
2075
|
+ console.log("处方----------------------------------------------",info.id)
|
2071
|
2076
|
if (info.id == 0) {
|
2072
|
2077
|
if (last_info.diagnosis.length == 0) {
|
2073
|
2078
|
this.diagnose = []
|
|
@@ -2119,6 +2124,8 @@ export default {
|
2119
|
2124
|
|
2120
|
2125
|
}
|
2121
|
2126
|
|
|
2127
|
+ // console.log("info233333333333333333333",info.id)
|
|
2128
|
+ // console.log("LAST_INFO2323232323WO",last_info.patient_diagnosis)
|
2122
|
2129
|
this.patient_diagnose = []
|
2123
|
2130
|
if(info.id == 0){
|
2124
|
2131
|
if (last_info.patient_diagnosis.length == 0) {
|
|
@@ -2147,6 +2154,7 @@ export default {
|
2147
|
2154
|
}
|
2148
|
2155
|
|
2149
|
2156
|
}
|
|
2157
|
+ console.log("hhahahahah",this.patient_diagnose)
|
2150
|
2158
|
}
|
2151
|
2159
|
|
2152
|
2160
|
this.state1 = info.sick_type
|
|
@@ -2278,6 +2286,7 @@ export default {
|
2278
|
2286
|
},
|
2279
|
2287
|
|
2280
|
2288
|
moreState(tab, event) {
|
|
2289
|
+ console.log("li222222222")
|
2281
|
2290
|
if (tab == 'more') {
|
2282
|
2291
|
return false
|
2283
|
2292
|
}
|
|
@@ -2385,6 +2394,7 @@ export default {
|
2385
|
2394
|
// }
|
2386
|
2395
|
// }
|
2387
|
2396
|
if (index == 1) {
|
|
2397
|
+ console.log(this.prescriptions)
|
2388
|
2398
|
|
2389
|
2399
|
if (this.org_id != 10206 && this.org_id != 0) {
|
2390
|
2400
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
|
@@ -2464,6 +2474,7 @@ export default {
|
2464
|
2474
|
this.$emit('editKeepLoad', false)
|
2465
|
2475
|
return
|
2466
|
2476
|
}
|
|
2477
|
+ console.log("2o23o23o23o2o23",this.prescriptions[i].advices[b])
|
2467
|
2478
|
if(this.prescriptions[i].advices[b].day == NaN){
|
2468
|
2479
|
this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数未填写`)
|
2469
|
2480
|
this.$emit('editKeepLoad', false)
|
|
@@ -2537,6 +2548,8 @@ export default {
|
2537
|
2548
|
'prescriptions': this.prescriptions
|
2538
|
2549
|
}
|
2539
|
2550
|
isLoading = true
|
|
2551
|
+ console.log('this.prescriptionsthis.prescriptions', this.prescriptions)
|
|
2552
|
+ console.log('this.prescriptionsthis.prescriptions', params)
|
2540
|
2553
|
let num = 0
|
2541
|
2554
|
// this.prescriptions.map(item => {
|
2542
|
2555
|
// if (item.advices.length > 0) {
|
|
@@ -2555,6 +2568,7 @@ export default {
|
2555
|
2568
|
var arr_one = []
|
2556
|
2569
|
var arr_Two = []
|
2557
|
2570
|
|
|
2571
|
+ console.log("ooo233323233232323232",this.prescriptions)
|
2558
|
2572
|
|
2559
|
2573
|
//药品
|
2560
|
2574
|
for(let i=0;i<this.prescriptions.length;i++){
|
|
@@ -3610,7 +3624,6 @@ export default {
|
3610
|
3624
|
}
|
3611
|
3625
|
}
|
3612
|
3626
|
|
3613
|
|
-
|
3614
|
3627
|
let obj = {
|
3615
|
3628
|
id: good_info[i].id,
|
3616
|
3629
|
project_name: good_info[i].good_name,
|
|
@@ -3635,10 +3648,8 @@ export default {
|
3635
|
3648
|
}
|
3636
|
3649
|
this.tabProject.push(obj)
|
3637
|
3650
|
}
|
3638
|
|
-
|
3639
|
|
-
|
3640
|
3651
|
//跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
|
3641
|
|
- if(this.org_id == 10206) {
|
|
3652
|
+ if(this.org_id == 10206 ) {
|
3642
|
3653
|
for (let i = 0; i < this.zuobiao_project.length; i++) {
|
3643
|
3654
|
for (let b = 0; b < this.tabProject.length; b++) {
|
3644
|
3655
|
if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
|
|
@@ -3810,45 +3821,12 @@ export default {
|
3810
|
3821
|
},
|
3811
|
3822
|
clearSelection() {
|
3812
|
3823
|
this.$refs.tabProjectTeam.clearSelection()
|
3813
|
|
- },getstock(){
|
3814
|
|
- if(this.org_id == 10206){
|
3815
|
|
- var that = this
|
3816
|
|
- axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
|
3817
|
|
-
|
3818
|
|
- })
|
3819
|
|
- .then(function(response) {
|
3820
|
|
- if (response.data.state == 0) {
|
3821
|
|
- that.$message.error(response.data.msg)
|
3822
|
|
- that.loadingtwo = false
|
3823
|
|
- return false
|
3824
|
|
- } else {
|
3825
|
|
- if (response.data.data.failed_code == -10) {
|
3826
|
|
- that.$confirm(response.data.data.msg, '医保错误信息', {
|
3827
|
|
- confirmButtonText: '确 定',
|
3828
|
|
- type: 'warning'
|
3829
|
|
- }).then(() => {
|
3830
|
|
-
|
3831
|
|
- }).catch(() => {
|
3832
|
|
- })
|
3833
|
|
-
|
3834
|
|
- } else {
|
3835
|
|
- that.zuobiao_project = response.data.data.project
|
3836
|
|
- }
|
3837
|
|
- }
|
3838
|
|
- })
|
3839
|
|
- .catch(function(error) {
|
3840
|
|
- })
|
3841
|
|
- }
|
3842
|
|
-
|
3843
|
|
-
|
3844
|
|
- },
|
|
3824
|
+ }
|
3845
|
3825
|
}, mounted() {
|
3846
|
3826
|
this.request_record_date = this.record_date
|
3847
|
3827
|
// this.getInitData()
|
3848
|
|
- this.getstock()
|
3849
|
3828
|
//获取所有项目
|
3850
|
3829
|
this.getlist()
|
3851
|
|
-
|
3852
|
3830
|
//获取所以项目组套
|
3853
|
3831
|
this.getAllProjectTeam()
|
3854
|
3832
|
|
|
@@ -3859,25 +3837,7 @@ export default {
|
3859
|
3837
|
|
3860
|
3838
|
},
|
3861
|
3839
|
watch: {
|
3862
|
|
- // tabProject:{//深度监听,可监听到对象、数组的变化
|
3863
|
|
- // handler(val, oldVal) {
|
3864
|
|
- // if(this.org_id == 10206 ) {
|
3865
|
|
- // console.log("~~~~~~~")
|
3866
|
|
- // console.log(this.zuobiao_project)
|
3867
|
|
- // console.log(this.tabProject)
|
3868
|
|
- // for (let i = 0; i < this.zuobiao_project.length; i++) {
|
3869
|
|
- // for (let b = 0; b < this.tabProject.length; b++) {
|
3870
|
|
- // if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
|
3871
|
|
- // this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
|
3872
|
|
- // }
|
3873
|
|
- // }
|
3874
|
|
- // }
|
3875
|
|
- // console.log(this.tabProject)
|
3876
|
|
- //
|
3877
|
|
- // }
|
3878
|
|
- // },
|
3879
|
|
- // deep: true
|
3880
|
|
- // },
|
|
3840
|
+
|
3881
|
3841
|
fullHeight(val) {
|
3882
|
3842
|
if (!this.timer) {
|
3883
|
3843
|
this.fullHeight = val
|