|
@ -11,7 +11,7 @@ Vue.component('comD',{
|
|
|
<el-input paceholder="请输入药品名称" v-model="drugName">\
|
|
|
</el-input>\
|
|
|
</div>\
|
|
|
<a href=""> 查看药品字典 </a>\
|
|
|
<a href="#" @click="handleZidian"> 查看药品字典 </a>\
|
|
|
<span>就诊类型:</span> \
|
|
|
<el-select v-model="eventType" placeholder="请选择">\
|
|
|
<el-option v-for="item in event_type" :key="item.code" :label="item.name" :value="item.code">\
|
|
@ -61,11 +61,6 @@ Vue.component('comD',{
|
|
|
tableData: [],
|
|
|
pageSizeArr: [10, 20, 30, 50],
|
|
|
total: 0,
|
|
|
pickerOptions1: {
|
|
|
disabledDate(time) {
|
|
|
return time.getTime() > Date.now();
|
|
|
},
|
|
|
},
|
|
|
event_type: [{
|
|
|
"code": '0',
|
|
|
"name": '门急诊'
|
|
@ -83,6 +78,9 @@ Vue.component('comD',{
|
|
|
},
|
|
|
mounted: function () {
|
|
|
this.getData()
|
|
|
console.log()
|
|
|
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
handleCurrentChange: function (val) {
|
|
@ -105,7 +103,6 @@ Vue.component('comD',{
|
|
|
},
|
|
|
getData: function () {
|
|
|
var vm = this;
|
|
|
debugger
|
|
|
var params = {
|
|
|
start:this.value1.format('yyyy-MM-dd'),
|
|
|
end:this.value2.format('yyyy-MM-dd'),
|
|
@ -121,20 +118,25 @@ Vue.component('comD',{
|
|
|
console.log(res)
|
|
|
GlobalEventBus.$emit('setLoading');
|
|
|
vm.tableData = res.detailModelList;
|
|
|
vm.total = res.totalCount;
|
|
|
vm.total = res.totalCount;
|
|
|
debugger
|
|
|
vm.tableData = vm.tableData.map(function(item){
|
|
|
item.event_date = new Date(item.event_date).format('yyyy-MM-dd-hh-mm-ss')
|
|
|
return item;
|
|
|
})
|
|
|
}).catch(function (err) {
|
|
|
console.log(err)
|
|
|
GlobalEventBus.$emit('setLoading');
|
|
|
})
|
|
|
},
|
|
|
handleClick:function(row) {
|
|
|
demographic_id='',
|
|
|
blurry_type='',
|
|
|
searchParam=''
|
|
|
var url = httpRequest.server+'/profile/app/medication/html/medication.html?'+
|
|
|
'healthProblemName='+'&demographic_id='+demographic_id+'&blurry_type='+blurry_type+'&searchParam='+searchParam
|
|
|
console.log(row)
|
|
|
demographic_id=row.demographic_id,
|
|
|
medication=row.HDSD00_04_023,
|
|
|
eventdate=row.event_date
|
|
|
var url = httpRequest.server+'/app-ehr-browser/app/medication/html/medication.html?'+
|
|
|
'healthProblemName='+'&demographic_id='+demographic_id+'&medication='+medication+'&eventdate='+eventdate
|
|
|
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({
|
|
@ -147,6 +149,22 @@ Vue.component('comD',{
|
|
|
area:[width,height],
|
|
|
content:url
|
|
|
})
|
|
|
},
|
|
|
handleZidian:function(){
|
|
|
var url ='../html/zidian.html'
|
|
|
console.log(url)
|
|
|
var width=(0.5212*window.screen.width)+'px';
|
|
|
var height=(0.6528*window.screen.height)+'px';
|
|
|
top.layer.open({
|
|
|
id:'Lay_zidian',
|
|
|
type:2,
|
|
|
title:false,
|
|
|
closeBtn:0,
|
|
|
shade:0.5,
|
|
|
shadeClose:true,
|
|
|
area:[width,height],
|
|
|
content:url
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
})
|