|
@ -18,7 +18,7 @@ Vue.component('comB', {
|
|
<el-date-picker v-model="value4" type="month" placeholder="选择时间">\
|
|
<el-date-picker v-model="value4" type="month" placeholder="选择时间">\
|
|
</el-date-picker>\
|
|
</el-date-picker>\
|
|
<div class="search" @click="searchClick">搜 索</div>\
|
|
<div class="search" @click="searchClick">搜 索</div>\
|
|
<span class="span">门急诊费>=999,000.00(999,000.00=上月门急诊次均费用*3)/住院费用>=999,000.00(999,000.00=上月住院次均费用*3)</span>\
|
|
|
|
|
|
<span class="span" >{{feiyong}}</span>\
|
|
<el-table :data="tableData" border style="width: 100%" :data.native="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)">\
|
|
<el-table :data="tableData" border style="width: 100%" :data.native="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)">\
|
|
el-table-column prop="event_date" label="就诊时间">\
|
|
el-table-column prop="event_date" label="就诊时间">\
|
|
</el-table-column>\
|
|
</el-table-column>\
|
|
@ -63,13 +63,14 @@ Vue.component('comB', {
|
|
pageSize: 10, // 每页的数据
|
|
pageSize: 10, // 每页的数据
|
|
pageSizeArr: [10, 20, 30, 50],
|
|
pageSizeArr: [10, 20, 30, 50],
|
|
tableData: [],
|
|
tableData: [],
|
|
|
|
feiyong: '',
|
|
total: 0,
|
|
total: 0,
|
|
eventType: '0',
|
|
eventType: '0',
|
|
item: '',
|
|
item: '',
|
|
hosLevel: '',
|
|
hosLevel: '',
|
|
level: "",
|
|
level: "",
|
|
hos: "",
|
|
hos: "",
|
|
value4:new Date(getLastMonthStartDate()),
|
|
|
|
|
|
value4: new Date(),
|
|
event_type: [{
|
|
event_type: [{
|
|
"code": '0',
|
|
"code": '0',
|
|
"name": '门急诊'
|
|
"name": '门急诊'
|
|
@ -107,47 +108,47 @@ Vue.component('comB', {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|
|
mounted: function () {
|
|
mounted: function () {
|
|
this.getData()
|
|
this.getData()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
handleClick:function(row) {
|
|
|
|
demographic_id=row.demographic_id,
|
|
|
|
blurry_type=row.eventType,
|
|
|
|
searchParam=''
|
|
|
|
var url = httpRequest.server+'/profile/app/medication/html/jiuzhen-item.html?'+
|
|
|
|
'healthProblemName='+'&demographic_id='+demographic_id+'&blurry_type='+blurry_type+'&searchParam='+searchParam
|
|
|
|
|
|
handleClick: function (row) {
|
|
|
|
demographic_id = row.demographic_id,
|
|
|
|
blurry_type = row.eventType,
|
|
|
|
searchParam = ''
|
|
|
|
var url = httpRequest.server + '/profile/app/medication/html/jiuzhen-item.html?' +
|
|
|
|
'healthProblemName=' + '&demographic_id=' + demographic_id + '&blurry_type=' + blurry_type + '&searchParam=' + searchParam
|
|
console.log(url)
|
|
console.log(url)
|
|
// window.open(url)
|
|
|
|
var width=(0.5212*window.screen.width)+'px';
|
|
|
|
var height=(0.7878*window.screen.height)+'px';
|
|
|
|
top.layer.open({
|
|
|
|
id:'Lay_xiangqing',
|
|
|
|
type:2,
|
|
|
|
title:false,
|
|
|
|
closeBtn:0,
|
|
|
|
shade:0.5,
|
|
|
|
shadeClose:true,
|
|
|
|
area:[width,height],
|
|
|
|
content:url
|
|
|
|
})
|
|
|
|
|
|
// window.open(url)
|
|
|
|
var width = (0.5212 * window.screen.width) + 'px';
|
|
|
|
var height = (0.7878 * window.screen.height) + 'px';
|
|
|
|
top.layer.open({
|
|
|
|
id: 'Lay_xiangqingB',
|
|
|
|
type: 2,
|
|
|
|
title: false,
|
|
|
|
closeBtn: 0,
|
|
|
|
shade: 0.5,
|
|
|
|
shadeClose: true,
|
|
|
|
area: [width, height],
|
|
|
|
content: url
|
|
|
|
})
|
|
},
|
|
},
|
|
selectChange(value) {
|
|
selectChange(value) {
|
|
console.log(value);
|
|
console.log(value);
|
|
if(value==3){
|
|
|
|
this.hos_hierarchy.push({'code':'9',"name": '特等'})
|
|
|
|
this.hos=''
|
|
|
|
}else{
|
|
|
|
if(this.level.code==3){
|
|
|
|
this.hos=''
|
|
|
|
}else{
|
|
|
|
this.hos=''
|
|
|
|
var vm=this.hos_hierarchy[0].code
|
|
|
|
console.log(vm)
|
|
|
|
this.hos_hierarchy.splice(4)
|
|
|
|
}
|
|
|
|
|
|
if (value == 3) {
|
|
|
|
this.hos_hierarchy.push({ 'code': '9', "name": '特等' })
|
|
|
|
this.hos = ''
|
|
|
|
} else {
|
|
|
|
if (this.level.code == 3) {
|
|
|
|
this.hos = ''
|
|
|
|
} else {
|
|
|
|
this.hos = ''
|
|
|
|
var vm = this.hos_hierarchy[0].code
|
|
|
|
console.log(vm)
|
|
|
|
this.hos_hierarchy.splice(4)
|
|
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleCurrentChange: function (val) { //page 当前页
|
|
handleCurrentChange: function (val) { //page 当前页
|
|
@ -160,10 +161,8 @@ Vue.component('comB', {
|
|
},
|
|
},
|
|
searchClick: function () {
|
|
searchClick: function () {
|
|
console.log(this.eventType)
|
|
console.log(this.eventType)
|
|
console.log(this.level)
|
|
|
|
console.log(this.hos)
|
|
|
|
this.initData()
|
|
this.initData()
|
|
|
|
|
|
|
|
this.getFeiYongStr()
|
|
},
|
|
},
|
|
initData: function () { //初始化数据
|
|
initData: function () { //初始化数据
|
|
this.currentPage = 1;
|
|
this.currentPage = 1;
|
|
@ -175,7 +174,7 @@ Vue.component('comB', {
|
|
month: this.value4.format('yyyy-MM'),
|
|
month: this.value4.format('yyyy-MM'),
|
|
eventType: this.eventType,
|
|
eventType: this.eventType,
|
|
hosLevel: this.level,
|
|
hosLevel: this.level,
|
|
hosHierarchy:this.hos,
|
|
|
|
|
|
hosHierarchy: this.hos,
|
|
size: 15,
|
|
size: 15,
|
|
page: 1,
|
|
page: 1,
|
|
}
|
|
}
|
|
@ -187,11 +186,25 @@ Vue.component('comB', {
|
|
GlobalEventBus.$emit('setLoading');
|
|
GlobalEventBus.$emit('setLoading');
|
|
vm.tableData = res.detailModelList;
|
|
vm.tableData = res.detailModelList;
|
|
vm.total = res.totalCount;
|
|
vm.total = res.totalCount;
|
|
|
|
var obj = res.obj;
|
|
|
|
|
|
|
|
vm.getFeiYongStr(obj)
|
|
|
|
console.log(obj)
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
console.log(err)
|
|
console.log(err)
|
|
GlobalEventBus.$emit('setLoading');
|
|
GlobalEventBus.$emit('setLoading');
|
|
|
|
|
|
})
|
|
})
|
|
|
|
},
|
|
|
|
getFeiYongStr: function (obj) {
|
|
|
|
debugger
|
|
|
|
if (this.eventType == "0") {
|
|
|
|
this.feiyong = '门急诊费用>=' + obj * 3+' ('+ obj * 3+'上月门急诊次均费用*3)'
|
|
|
|
} else {
|
|
|
|
this.feiyong = '住院费用>=' + obj * 3+' ('+ obj * 3+'上月住院次均费用*3)'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|