|
@ -2,9 +2,9 @@ Vue.component('comD', {
|
|
|
template: ' <div class="tab4">\
|
|
|
<template>\
|
|
|
<span>就诊时间:</span> \
|
|
|
<el-date-picker v-model="value1" type="date" placeholder="选择日期">\
|
|
|
<el-date-picker v-model="value1" type="date" placeholder="选择日期" >\
|
|
|
</el-date-picker>\
|
|
|
<el-date-picker v-model="value2" type="date" placeholder="选择日期">\
|
|
|
<el-date-picker v-model="value2" type="date" placeholder="选择日期" >\
|
|
|
</el-date-picker>\
|
|
|
<span>药品名称:</span> \
|
|
|
<div class="modelSearch" >\
|
|
@ -14,7 +14,7 @@ Vue.component('comD', {
|
|
|
</div>\
|
|
|
<a href="#" @click="handleZidian"> 查看药品字典 </a>\
|
|
|
<span>就诊类型:</span> \
|
|
|
<el-select v-model="eventType" placeholder="请选择">\
|
|
|
<el-select v-model="eventType" class="inputbox" placeholder="请选择">\
|
|
|
<el-option v-for="item in event_type" :key="item.code" :label="item.name" :value="item.code">\
|
|
|
</el-option>\
|
|
|
</el-select>\
|
|
@ -45,8 +45,8 @@ Vue.component('comD', {
|
|
|
</el-table>\
|
|
|
<div class="flex f_y_c f_x_e">\
|
|
|
<el-pagination @size-change="handleSizeChange" background @current-change="handleCurrentChange" :current-page="currentPage"\
|
|
|
:page-sizes="[2,10, 20, 40]" :page-size="pageSize" layout="total,sizes,prev, pager, next, jumper"\
|
|
|
:total="tableData.length">\
|
|
|
:page-sizes=" pageSizeArr" :page-size="pageSize" layout="total,sizes,prev, pager, next, jumper"\
|
|
|
:total="total">\
|
|
|
</el-pagination>\
|
|
|
</div>\
|
|
|
</template>\
|
|
@ -93,22 +93,20 @@ Vue.component('comD', {
|
|
|
this.getData()
|
|
|
},
|
|
|
searchClick: function () {
|
|
|
console.log(this.eventType)
|
|
|
console.log(this.drugName)
|
|
|
this.initData()
|
|
|
|
|
|
},
|
|
|
formInit: function () {
|
|
|
debugger
|
|
|
var url = httpRequest.server + '/gateway/hos-admin/api/v1.0/standardCenter/lastDictItem/list'
|
|
|
$("#dataArr").customCombo(url, {
|
|
|
token: sessionStorage.asstoken,
|
|
|
tenant_name: 'jkzl',
|
|
|
code: "STD_MEDICINE",
|
|
|
}, false, false, false, {
|
|
|
|
|
|
|
|
|
valueField: "id",//id
|
|
|
textField: 'value',//name
|
|
|
|
|
|
conditionSearchClick: function (g) {
|
|
|
var searchParm = g.rules.length > 0 ? g.rules[0].value : '';
|
|
|
var parms = g.grid.get("parms");
|
|
@ -137,8 +135,8 @@ Vue.component('comD', {
|
|
|
end: this.value2.format('yyyy-MM-dd'),
|
|
|
drugName: this.drugName,
|
|
|
eventType: this.eventType,
|
|
|
size: 15,
|
|
|
page: 1,
|
|
|
size: this.pageSize * this.currentPage,
|
|
|
page: this.currentPage
|
|
|
}
|
|
|
GlobalEventBus.$emit('setLoading', {
|
|
|
loading: true
|
|
@ -147,11 +145,12 @@ Vue.component('comD', {
|
|
|
console.log(res)
|
|
|
GlobalEventBus.$emit('setLoading');
|
|
|
vm.tableData = res.detailModelList;
|
|
|
vm.total = res.detailModelList.length;
|
|
|
vm.tableData = vm.tableData.map(function (item) {
|
|
|
item.event_date = new Date(item.event_date).format('yyyy-MM-dd hh:mm:ss')
|
|
|
return item;
|
|
|
})
|
|
|
vm.total = res.totalCount;
|
|
|
|
|
|
}).catch(function (err) {
|
|
|
console.log(err)
|
|
|
GlobalEventBus.$emit('setLoading');
|
|
@ -166,7 +165,7 @@ Vue.component('comD', {
|
|
|
'healthProblemName=' + '&demographic_id=' + demographic_id + '&medication=' + medication + '&eventdate=' + eventdate
|
|
|
console.log(url)
|
|
|
var width = 1000 + 'px';
|
|
|
var height = 600+ 'px';
|
|
|
var height = 600 + 'px';
|
|
|
top.layer.open({
|
|
|
id: 'Lay_xiangqingD',
|
|
|
type: 2,
|
|
@ -181,8 +180,8 @@ Vue.component('comD', {
|
|
|
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';
|
|
|
var width = 1000 + 'px';
|
|
|
var height = 600 + 'px';
|
|
|
top.layer.open({
|
|
|
id: 'Lay_zidian',
|
|
|
type: 2,
|