Browse Source

医保控费

liangweifeng 6 years ago
parent
commit
0389ebe971

+ 12 - 1
js/api/bigDataOut-api.js

@ -14,11 +14,22 @@
            return httpRequest.get("/api/v1.0/resource/text_search",{data: data,getServer:true})
        },
        // 频繁就医
        getOftenIllList: function(data) {
            return httpRequest.get("/api/v1.0/open/tj/getOftenIllList",{data: data})
        },
        // 超高费用
        getHighCostList: function(data) {
            return httpRequest.get("/api/v1.0/open/tj/getHighCostList",{data: data})
        },
         // 重复检查检验
         getRepeateInspectList: function(data) {
            return httpRequest.get("/api/v1.0/open/tj/getRepeateInspectList",{data: data})
        },
        // 用药分析
        drugAnalysis: function(data) {
            return httpRequest.get("/api/v1.0/open/tj/drugAnalysis",{data: data})
        },
	}
	
	exports.bigDataOutApi = bigDataOutApi;
})(window)

+ 20 - 2
page/bigDataOut/css/tableChange.css

@ -107,7 +107,25 @@ a {
    margin-right: 15px;
    margin-bottom: 15px;
}
.el-input__icon el-range__icon el-icon-date{
.tab4 .el-icon-date{
    position: relative;
    top: 10px;
    top: 0;
    left: 5px;
}
.tab4 .el-range-editor.el-input__inner {
    height: 35px;
    padding: 0;
    width: 200px; 
}
 .el-date-editor.el-input, .el-date-editor.el-input__inner{
    width: 140px;
    height: 35px;
}
 .el-icon-date{
    position: relative;
    top: -2px;
}
.el-table th{
    background-color: #f8f8f8;
}

+ 182 - 0
page/bigDataOut/html/zidian.html

@ -0,0 +1,182 @@
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../../../css/element.css">
    <style>
        body{
            margin: 0;
        }
        .header{
            padding: 18px 18px 18px 0px;
        }
        #text{
            padding-left: 18px;
border-left: 2px solid #2eaafa;
        }
       #app{
           margin: 0;
           padding: 0;
       }
        .el-dialog__title {
            position: absolute;
            font-size: 16px;
            top: 5px;
            left: 0.5px;
            border-left: 2px solid #2eaafa;
            border-radius: 2px;
            padding-left: 10px;
        }
        .el-dialog__headerbtn {
            position: absolute;
            top: 7px;
            font-size: 18px ;
        }
        .el-dialog__body {
            padding: 0;
        }
        .el-menu {
            width: 200px;
            font-size: 15px;
            /* background-color: #f2f6fa; */
        }
        .el-menu-item {
            font-size: 15px;
            background-color: #f2f6fa;
        }
        .el-aside {
            overflow: hidden;
            background-color: #f2f6fa;
        }
        aside{
            background-color: #f2f6fa;
        }
        #typeSearch {
            width: 400px;
        }
        .search_box {
            display: inline-block;
            margin: 10px 0px 20px 0px;
            position: relative;
            left: 50px;
        }
        #searchtext{
            position: relative;
            left: 50px;
        }
        .el-main {
          padding: 0;
          padding-right: 20px;
        }
    </style>
</head>
<body>
    <div id="app">
        <nav class="header">
<span id="text">查看字典</span>
        </nav>
                <el-container style="height: 100%;">
                    <el-aside style="width: 200px; ">
                        <el-menu active-text-color="#2eaafa" :default-openeds="['1']">
                            <el-menu-item class="ellipsis" title="检验专业代码" index="1-0">
                                检验专业代码</el-menu-item>
                            <el-menu-item class="ellipsis" title="检验专业分类" index="1-1">
                                检验专业分类</el-menu-item>
                    </el-aside>      
                    <el-main style="height: 100%;overflow: hidden;">
                        <span id="searchtext"> 字典项:</span>
                        <div class="search_box">
                            <div class="flex f_xy_c ">
                                <el-input placeholder="请输入内容" id="typeSearch" v-model="searchKey">
                                </el-input>
                            </div>
                        </div>
                        <el-table :data="tableData" border style="width: 100%">
                            <el-table-column prop="date" label="序号" width="80">
                            </el-table-column>
                            <el-table-column prop="name" label="值域编码" width="220">
                            </el-table-column>
                            <el-table-column prop="address" label="值域名称">
                            </el-table-column>
                        </el-table>
                        <el-pagination
                        @size-change="handleSizeChange"
                        @current-change="handleCurrentChange"
                        :current-page="currentPage4"
                        :page-sizes="[100, 200, 300, 400]"
                        :page-size="100"
                        layout="total, sizes, prev, pager, next, jumper"
                        :total="400">
                      </el-pagination>
                    </el-main>
                </el-container>
    
    </div>
    <script>
        window.noUse=true
    </script>
    <script src="../../../js/post.js"></script>
    <script>
        new Vue({
            el: "#app",
            data: function () {
                return {
                    showFlag: true,
                    radio: "",
                    searchKey: '',
                    currentPage4: 4,
                    tableData: [{
          date: '02',
          name: '王小虎',
          address: '上海市'
        }, {
          date: '04',
          name: '王小虎',
          address: '上海市'
        }, {
          date: '01',
          name: '王小虎',
          address: '上海'
        }, {
          date: '03',
          name: '王小虎',
          address: '上海'
        }]
                }
            },
            methods: {
                radioEvent() {
                    this.showFlag = false;
                    this.adapterSelected = this.radio;
                },
                handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
      }
            }
        })
    </script>
</body>
</html>

+ 16 - 9
page/bigDataOut/js/handleChangeViewA.js

@ -1,8 +1,8 @@
Vue.component('comA', {
    template: '<div class="tab1">\
    <template>\
    <el-date-picker  v-model="value1" type="date" placeholder="选择日期">\
  </el-date-picker>\
    <el-date-picker v-model="value4" type="month" placeholder="选择时间">\
    </el-date-picker>\
    <div class="search" @click="searchClick">搜  索</div>\
        <span class="span">一周就医次数>=3次的患者记录</span>\
           <el-table :data="tableData" border style="width: 100%" :data.native="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)"">\
@ -46,7 +46,7 @@ Vue.component('comA', {
            tableData: [],
            pageSizeArr: [10, 20, 30, 50],
            total: 0,
            value1: '2018-08-30',
            value4:new Date(getLastMonthStartDate()),
        }
    },
@ -73,13 +73,13 @@ Vue.component('comA', {
        getData: function () {
            var vm = this;
            var params = {
                time: this.value1,
                time:this.value4.format('yyyy-MM-dd'),
                size: 15,
                page: 1,
            }
            GlobalEventBus.$emit('setLoading', {
                loading: true
            }); //等待效果
            // GlobalEventBus.$emit('setLoading', {
            //     loading: true
            // }); //等待效果
            bigDataOutApi.getOftenIllList(params).then(function (res) {
                console.log(res)
                GlobalEventBus.$emit('setLoading');
@ -90,8 +90,15 @@ Vue.component('comA', {
                GlobalEventBus.$emit('setLoading');
            })
        },
        handleClick:function() {
            console.log(row);
        handleClick:function(row) {
            demographic_id=row.demographic_id,
            blurry_type='',
            searchParam=''
            debugger
            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)
           window.open(url)
        }
    }
})

+ 2 - 2
page/bigDataOut/js/handleChangeViewB.js

@ -63,7 +63,7 @@ Vue.component('comB', {
            hosLevel: '',
            level: "",
            hos: "",
            value4:'2018-08',
            value4:new Date(getLastMonthStartDate()),
            event_type: [{
                "code": '0',
                "name": '门急诊'
@ -148,7 +148,7 @@ Vue.component('comB', {
        getData: function () {
            var vm = this;
            var params = {
                month: this.value4,
                month: this.value4.format('yyyy-MM'),
                eventType: this.eventType,
                hosLevel: this.level,
                hosHierarchy:this.hos,

+ 73 - 74
page/bigDataOut/js/handleChangeViewC.js

@ -4,98 +4,97 @@ Vue.component('comC',{
      <span>检查/检验:</span> <el-select v-model="value" placeholder="请选择">\
            <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">\
            </el-option>\
        </el-select> <a href="#" @click="open5">查看字典</a>\
        <div class="search">搜索</div>\
        </el-select> <a href="#">查看字典</a>\
        <el-date-picker v-model="value4" type="month" placeholder="选择时间">\
        </el-date-picker>\
        <div class="search" @click="searchClick">搜索</div>\
    </template>\
    <span class="span">一周内同种检查/检验项目的次数>=3</span>\
    <el-table :data="tableData" border style="width: 100%"  :data.native="tableData.slice((currentPage-1)*pagesize,currentPage*pagesize)">\
        <el-table-column prop="name" label="姓名" width="140">\
    <el-table :data="tableData" border style="width: 100%"  :data.native="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)">\
        <el-table-column prop="patient_name" label="姓名">\
        </el-table-column>\
        <el-table-column prop="province" label="就医次数" width="140">\
        <el-table-column prop="result" label="就医次数">\
        </el-table-column>\
        <el-table-column prop="address" label="身份证号" width="380">\
        <el-table-column prop="demographic_id" label="身份证号">\
        </el-table-column>\
        <el-table-column prop="province" label="性别" width="140">\
        <el-table-column label="性别" >\
        <template slot-scope="scope">\
        <span v-if="scope.row.patient_sex == 1">男</span>\
        <span v-else>女</span>\
        </template>\
    </el-table-column>\
        <el-table-column prop="patient_age" label="年龄">\
        </el-table-column>\
        <el-table-column prop="province" label="年龄" width="140">\
        <el-table-column prop="address" label="地址">\
        </el-table-column>\
        <el-table-column prop="address" label="地址" width="380">\
        </el-table-column>\
        <el-table-column fixed="right" label="操作" width="140">\
        <el-table-column fixed="right" label="操作">\
            <template slot-scope="scope">\
                <el-button @click="handleClick(scope.row)" type="text" size="small">查看详情</el-button>\
            </template>\
        </el-table-column>\
    </el-table>\
    <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"\
    :page-sizes="[2,10, 20, 40]" :page-size="pagesize" layout="total,sizes,prev, pager, next, jumper"\
    :page-sizes="[2,10, 20, 40]" :page-size="pageSize" layout="total,sizes,prev, pager, next, jumper"\
    :total="tableData.length">\
</el-pagination>\
</template>\
</div>',
    data:function(){
        return{
            currentPage: 1, //初始页
            pagesize:2,    //    每页的数据 
            tableData: [{
                date: '2016-05-03',
                name: '王小虎',
                province: '上海',
                city: '普陀区',
                address: '上海市普陀区金沙江路 1518 弄',
                zip: 200333
            }, {
                date: '2016-05-02',
                name: '王小虎',
                province: '上海',
                city: '普陀区',
                address: '上海市普陀区金沙江路 1518 弄',
                zip: 200333
            }, {
                date: '2016-05-04',
                name: '王小虎',
                province: '上海',
                city: '普陀区',
                address: '上海市普陀区金沙江路 1518 弄',
                zip: 200333
            }, {
                date: '2016-05-01',
                name: '王小虎',
                province: '上海',
                city: '普陀区',
                address: '上海市普陀区金沙江路 1518 弄',
                zip: 200333
            }],
            options: [{
                value: '选项1',
                label: '外科'
            }, {
                value: '选项2',
                label: '住院'
            }],
            option: [{
                value: '选项1',
                label: '全部'
            }, {
                value: '选项2',
                label: '选线一'
            }],
            value: '全部'
data: function () {
    return {
        currentPage: 1, //初始页
        pageSize: 10,    //    每页的数据 
        tableData: [],
        options:[],
        pageSizeArr: [10, 20, 30, 50],
        total: 0,
        value4:new Date(getLastMonthStartDate()),
        value:'',
    }
},
mounted: function () {
    this.getData()
},
methods: {
    handleCurrentChange: function (val) {
        this.currentPage = val;
        this.getData()
    },
    handleSizeChange: function (val) {
        this.pageSize = val;
        this.initData()
    },
    initData: function () { //初始化
        this.currentPage = 1;
        this.getData()
    },
    searchClick: function () {
        this.initData()
    },
    getData: function () {
        var vm = this;
        var params = {
            month:this.value4.format('yyyy-MM'),
            size: 15,
            page: 1,
            inspect:8,
        }
        // GlobalEventBus.$emit('setLoading', {
        //     loading: true
        // }); //等待效果
        bigDataOutApi.getRepeateInspectList(params).then(function (res) {
            console.log(res)
            GlobalEventBus.$emit('setLoading');
            vm.tableData = res.detailModelList;
            vm.total = res.totalCount;
        }).catch(function (err) {
            console.log(err)
            GlobalEventBus.$emit('setLoading');
        })
    },
    methods: {
        handleSizeChange: function (size) {
            this.pagesize = size;
            console.log(this.pagesize)  //每页下拉显示数据
        },
        handleCurrentChange: function (currentPage) {
            this.currentPage = currentPage;
            console.log(this.currentPage)  //点击第几页
        },
        handleClick(row) {
            console.log(row);
          },
         
          }
    handleClick:function() {
        console.log(row);
    }
}
})

+ 2 - 1
page/bigDataOut/js/handleChangeViewD.js

@ -4,7 +4,7 @@ Vue.component('comD',{
      <span>就诊时间:</span>    \
      <el-date-picker v-model="value6"type="daterange" range-separator="至" start-placeholder="开始日期"end-placeholder="结束日期">\
      </el-date-picker>\
      <span>药品名称:</span>  \
      <span>药品名称:</span>    \
      <div class="modelSearch" >\
      <el-input paceholder="请输入药品名称"  v-model="drugName" clearable>\
      </el-input>\
@ -102,6 +102,7 @@ Vue.component('comD',{
        },
        getData: function () {
            var vm = this;
            debugger
            var params = {
               start:'2018-08-01',
               end:'2018-08-31',

+ 1 - 1
page/bigDataOut/js/index.js

@ -123,7 +123,7 @@ new Vue({
					switch (obj.url){                                   //已经存在并且在左边的菜单的话则需要高亮左边菜单
						case "../html/home.html":obj.index='2-0';break;
						case "../html/search.html":obj.index='2-0';break; 
						case "../html/yibiaofenxi.html":obj.index='2-4';break; 
						case "../html/tableChange.html":obj.index='2-4';break; 
					}
					exist=true;
					index = i;