Browse Source

医保控件解开bug

liangweifeng 6 years ago
parent
commit
05a87db581

+ 4 - 4
page/bigDataOut/html/zidian.html

@ -32,7 +32,7 @@
                    <i class="el-icon-search" @click='searchClick'></i>
                </div>
                <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%" >
                    <el-table-column type="index" label="序号" width='60'>
                    </el-table-column>
                    <el-table-column prop="code" label="值域编码">
@ -102,11 +102,11 @@
                    var vm = this;
                    var params = {
                        code: this.code,
                        size: this.currentPage*this.pageSize,
                        page: 1
                        size: this.pageSize,
                        page: this.currentPage
                    }
                    if (this.searchKey) {
                        params.filters =  " code?" + this.searchKey +";value?" + this.searchKey
                        params.filters ="code?"+this.searchKey+" g1;value?"+this.searchKey+" g1"
                    }
                    GlobalEventBus.$emit('setLoading', {
                        loading: true

+ 4 - 3
page/bigDataOut/js/handleChangeViewA.js

@ -5,7 +5,7 @@ Vue.component('comA', {
    </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)">\
           <el-table :data="tableData" border style="width: 100%" >\
                        <el-table-column prop="patient_name" label="姓名">\
                        </el-table-column>\
                        <el-table-column prop="result" label="就医次数">\
@ -72,8 +72,8 @@ Vue.component('comA', {
            var vm = this;
            var params = {
                time: this.value4.format('yyyy-MM-dd'),
                size: this.pageSize*this.currentPage,
                page: 1
                size: this.pageSize,
                page: this.currentPage
            }
            GlobalEventBus.$emit('setLoading', {
                loading: true
@ -83,6 +83,7 @@ Vue.component('comA', {
                GlobalEventBus.$emit('setLoading');
                vm.tableData = res.detailModelList;
                vm.total = res.totalCount;
                debugger
            }).catch(function (err) {
                console.log(err)
                GlobalEventBus.$emit('setLoading');

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

@ -19,7 +19,7 @@ Vue.component('comB', {
                      </el-date-picker>\
                    <div class="search" @click="searchClick">搜  索</div>\
                    <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%">\
                            <el-table-column prop="event_date" label="就诊时间">\
                            </el-table-column>\
                            <el-table-column prop="patient_name" label="姓名">\
@ -172,8 +172,8 @@ Vue.component('comB', {
                eventType: this.eventType,
                hosLevel: this.level,
                hosHierarchy: this.hos,
                size: this.pageSize*this.currentPage,
                page: 1
                size: this.pageSize,
                page: this.currentPage
            }
            GlobalEventBus.$emit('setLoading', {
                loading: true
@ -195,9 +195,9 @@ Vue.component('comB', {
        getFeiYongStr: function (obj) {
            debugger
            if (this.eventType == "0") {
                this.feiyong = '门急诊费用>=' + (obj * 3).toFixed(2)+' ('+ (obj * 3).toFixed(2)+'='+ obj.toFixed(2) +'(上月门急诊次均费用)*3)'
                this.feiyong = '门急诊费用>=' + (obj *5).toFixed(2)+' ('+ (obj *5).toFixed(2)+'='+ obj.toFixed(2) +'(上月门急诊次均费用)*5)'
            } else {
                this.feiyong = '住院费用>='  + (obj * 3).toFixed(2)+' ('+ (obj * 3).toFixed(2)+'='+ obj.toFixed(2) +'(上月住院次均费用)*3)'
                this.feiyong = '住院费用>='  + (obj *5).toFixed(2)+' ('+ (obj *5).toFixed(2)+'='+ obj.toFixed(2) +'(上月住院次均费用)*5)'
            }

+ 17 - 13
page/bigDataOut/js/handleChangeViewC.js

@ -14,7 +14,7 @@ Vue.component('comC', {
        <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 :data="tableData" border style="width: 100%" >\
        <el-table-column prop="patient_name" label="姓名">\
        </el-table-column>\
        <el-table-column prop="result" label="就医次数">\
@ -83,8 +83,8 @@ Vue.component('comC', {
            var vm = this;
            var params = {
                month: this.value4.format('yyyy-MM'),
                size: this.pageSize*this.currentPage,
                page: 1,
                size: this.pageSize,
                page: this.currentPage,
                inspect: this.inspect,
            }
            GlobalEventBus.$emit('setLoading', {
@ -104,7 +104,7 @@ Vue.component('comC', {
        getList: function () {
            var it = this;
            var params = {
                code: "STD_LAB_EXAM_TYPE",
                code: "STD_CHECK_ITEM",
                size: 20,
                page: 1
            }
@ -148,15 +148,19 @@ Vue.component('comC', {
            console.log(url)
            var width = 1000 + 'px';
            var height = 600 + 'px';
            top.layer.open({
                id: 'Lay_zidian',
                type: 2,
                title: false,
                shade: 0.5,
                shadeClose: true,
                area: [width, height],
                content: url
            })
            if (sessionStorage.asstoken = '') {
                window.open(login)
            } else {
                top.layer.open({
                    id: 'Lay_zidian',
                    type: 2,
                    title: false,
                    shade: 0.5,
                    shadeClose: true,
                    area: [width, height],
                    content: url
                })
            }
        }
    }
})

+ 12 - 6
page/bigDataOut/js/handleChangeViewD.js

@ -20,7 +20,7 @@ Vue.component('comD', {
                      </el-select>\
        <div class="search" @click="searchClick">搜索</div>\
    </template>\
    <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%">\
            <el-table-column prop="event_date" label="就诊时间">\
                </el-table-column>\
        <el-table-column prop="patient_name" label="姓名">\
@ -136,8 +136,8 @@ Vue.component('comD', {
                end: this.value2.format('yyyy-MM-dd'),
                drugName: $('#dataArr').val(),
                eventType: this.eventType,
                size: this.pageSize * this.currentPage,
                page: 1
                size: this.pageSize  ,
                page:this.currentPage
            }
            GlobalEventBus.$emit('setLoading', {
                loading: true
@ -147,7 +147,7 @@ Vue.component('comD', {
                GlobalEventBus.$emit('setLoading');
                vm.tableData = res.detailModelList;
                vm.tableData = vm.tableData.map(function (item) {
                    item.event_date = new Date(item.event_date).format('yyyy-MM-dd hh:mm:ss')
                    item.event_date = new Date(item.event_date).format('yyyy-MM-dd')
                    return item;
                })
                vm.total = res.totalCount;
@ -180,10 +180,14 @@ Vue.component('comD', {
        },
        handleZidian: function () {
            var url = '../html/zidian.html'
            var login=httpRequest.server +'/login.html?'
            console.log(url)
            var width = 1000 + 'px';
            var height = 600 + 'px';
            top.layer.open({
            if(sessionStorage.asstoken=''){
                window.open(login)
            }else{
               top.layer.open({
                id: 'Lay_zidian',
                type: 2,
                title: false,
@ -191,7 +195,9 @@ Vue.component('comD', {
                shadeClose: true,
                area: [width, height],
                content: url
            })
            }) 
            }
            
        }
    }
})