Commit df6faaec authored by 朱彩云's avatar 朱彩云

feat(eccs-2837): 相应表格区域固定,不产生额外滚动条

parent 73ea0b78
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
</template> </template>
<style lang="less"> <style lang="less">
.flex{ .flex {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.borderBox{ .borderBox {
box-sizing: border-box; box-sizing: border-box;
} }
.ellipsis { .ellipsis {
...@@ -17,11 +17,11 @@ ...@@ -17,11 +17,11 @@
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
} }
.white_bg{ .white_bg {
background: #fff; background: #fff;
} }
.burt-container{ .burt-container {
.pa(30, 36, 50, 39); .pa(30, 36, 10, 39);
} }
.none-label { .none-label {
text-align: right; text-align: right;
......
...@@ -23,23 +23,23 @@ export default { ...@@ -23,23 +23,23 @@ export default {
props: { props: {
//分页器 //分页器
pagination: { pagination: {
default: {}, default: {}
}, }
}, },
data() { data() {
return { return {
//跳转到第几页 //跳转到第几页
jumpPage: "", jumpPage: ''
}; }
}, },
methods: { methods: {
//自定义分页 //自定义分页
itemRender(current, type, originalElement) { itemRender(current, type, originalElement) {
if (type === "prev") { if (type === 'prev') {
return <li class="page pre">上一页</li>; return <li class="page pre">上一页</li>
} else if (type === "next") { } else if (type === 'next') {
return <li class="page next">下一页</li>; return <li class="page next">下一页</li>
} else if (type === "page") { } else if (type === 'page') {
//当前页面 //当前页面
if (current == this.pagination.pageNum) { if (current == this.pagination.pageNum) {
return ( return (
...@@ -49,39 +49,39 @@ export default { ...@@ -49,39 +49,39 @@ export default {
{Math.ceil(this.pagination.total / this.pagination.pageSize)} {Math.ceil(this.pagination.total / this.pagination.pageSize)}
</span> </span>
</div> </div>
); )
} else { } else {
return null; return null
} }
} else if (type == "jump-prev") { } else if (type == 'jump-prev') {
return null; return null
} else if (type == "jump-next") { } else if (type == 'jump-next') {
return null; return null
} }
return originalElement; return originalElement
}, },
//跳转页面 //跳转页面
inputPageChange() { inputPageChange() {
this.jumpPage = parseInt(this.jumpPage); this.jumpPage = parseInt(this.jumpPage)
let pages = Math.ceil(this.pagination.total / this.pagination.pageSize); let pages = Math.ceil(this.pagination.total / this.pagination.pageSize)
this.jumpPage = this.jumpPage < 0 ? 0 : this.jumpPage; this.jumpPage = this.jumpPage < 0 ? 0 : this.jumpPage
this.jumpPage = this.jumpPage > pages ? pages : this.jumpPage; this.jumpPage = this.jumpPage > pages ? pages : this.jumpPage
this.pagination.pageNum = this.jumpPage; this.pagination.pageNum = this.jumpPage
this.$emit("pageChange", { pageNum: this.jumpPage }); this.$emit('pageChange', { pageNum: this.jumpPage })
}, },
//改变分页 //改变分页
pageChange(pager) { pageChange(pager) {
this.pagination.pageNum = pager; this.pagination.pageNum = pager
this.$emit("pageChange", { pageNum: pager }); this.$emit('pageChange', { pageNum: pager })
}, }
}, }
}; }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.my-pagination { .my-pagination {
justify-content: flex-end; justify-content: flex-end;
margin-top: 33px; margin-top: 10px;
.page { .page {
width: 80px; width: 80px;
height: 36px; height: 36px;
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
<!-- 收费查询-账单查询 --> <!-- 收费查询-账单查询 -->
<div class="white_bg burt-container custom-info"> <div class="white_bg burt-container custom-info">
<!-- form --> <!-- form -->
<a-form-model ref="form" layout="vertical" :model="form"> <a-form-model
ref="form"
:model="form"
:label-col="labelCol"
:wrapper-col="wrapperCol"
>
<a-row :gutter="30"> <a-row :gutter="30">
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="病历号"> <a-form-model-item label="病历号">
<a-input <a-input
v-model="form.mrnNo" v-model="form.mrnNo"
...@@ -13,7 +18,7 @@ ...@@ -13,7 +18,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="客户姓名"> <a-form-model-item label="客户姓名">
<a-input <a-input
v-model="form.patientName" v-model="form.patientName"
...@@ -22,7 +27,7 @@ ...@@ -22,7 +27,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="就诊日期"> <a-form-model-item label="就诊日期">
<a-range-picker <a-range-picker
format="YYYY-MM-DD" format="YYYY-MM-DD"
...@@ -32,7 +37,7 @@ ...@@ -32,7 +37,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="保险公司"> <a-form-model-item label="保险公司">
<a-select <a-select
v-model="form.payorIds" v-model="form.payorIds"
...@@ -54,7 +59,7 @@ ...@@ -54,7 +59,7 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="看诊医生"> <a-form-model-item label="看诊医生">
<a-select <a-select
v-model="form.doctorCode" v-model="form.doctorCode"
...@@ -71,7 +76,7 @@ ...@@ -71,7 +76,7 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="收费时间"> <a-form-model-item label="收费时间">
<a-range-picker <a-range-picker
format="YYYY-MM-DD" format="YYYY-MM-DD"
...@@ -81,7 +86,7 @@ ...@@ -81,7 +86,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="是否已关联寄送单"> <a-form-model-item label="是否已关联寄送单">
<a-select <a-select
v-model="form.isSend" v-model="form.isSend"
...@@ -93,7 +98,7 @@ ...@@ -93,7 +98,7 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="是否已回款"> <a-form-model-item label="是否已回款">
<a-select <a-select
v-model="form.isEobBack" v-model="form.isEobBack"
...@@ -105,7 +110,7 @@ ...@@ -105,7 +110,7 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="账单类型"> <a-form-model-item label="账单类型">
<a-select <a-select
v-model="form.receiptType" v-model="form.receiptType"
...@@ -122,7 +127,7 @@ ...@@ -122,7 +127,7 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="账单编号"> <a-form-model-item label="账单编号">
<a-input <a-input
v-model="form.receiptNo" v-model="form.receiptNo"
...@@ -131,7 +136,7 @@ ...@@ -131,7 +136,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="状态"> <a-form-model-item label="状态">
<a-select v-model="form.status" placeholder="请选择状态" allowClear> <a-select v-model="form.status" placeholder="请选择状态" allowClear>
<a-select-option <a-select-option
...@@ -144,11 +149,12 @@ ...@@ -144,11 +149,12 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="3" :sm="3" class="none-label"> <a-col :xxl="6" :xl="8" :sm="3" class="none-label">
<a-form-model-item label="button"> <a-form-model-item
<!-- <a-button>更新数据</a-button> --> label=""
<!-- <a-button class="mar-left10" type="primary" @click="addNewCharge"> :labelCol="{ span: 0 }"
<Icon name="ssiadd" :size="14" />新建预授权</a-button> --> :wrapperCol="{ span: 24 }"
>
<a-button class="mar-left10" type="primary" @click="handlerReset"> <a-button class="mar-left10" type="primary" @click="handlerReset">
<Icon name="ssireset" :size="14" />重置 <Icon name="ssireset" :size="14" />重置
</a-button> </a-button>
...@@ -181,40 +187,42 @@ ...@@ -181,40 +187,42 @@
</a-form-model> </a-form-model>
<!-- table --> <!-- table -->
<a-table <div class="scroll-table">
:columns="columns" <a-table
:data-source="dataList" :columns="columns"
:scroll="{ x: true }" :data-source="dataList"
:pagination="false" :scroll="{ x: true }"
> :pagination="false"
<template slot="index" slot-scope="text, record, index"> >
{{ index + 1 }} <template slot="index" slot-scope="text, record, index">
</template> {{ index + 1 }}
<template slot="operation" slot-scope="record"> </template>
<a-button type="link" class="success" @click.stop="detailEvt(record)" <template slot="operation" slot-scope="record">
>查看</a-button <a-button type="link" class="success" @click.stop="detailEvt(record)"
> >查看</a-button
</template> >
<template slot="isSend" slot-scope="text"> </template>
{{ text == 'Y' ? '' : text == 'N' ? '' : '' }} <template slot="isSend" slot-scope="text">
</template> {{ text == 'Y' ? '' : text == 'N' ? '' : '' }}
<template slot="isEob" slot-scope="text"> </template>
{{ text == 'Y' ? '' : text == 'N' ? '' : '' }} <template slot="isEob" slot-scope="text">
</template> {{ text == 'Y' ? '' : text == 'N' ? '' : '' }}
<template slot="isEobBack" slot-scope="text"> </template>
{{ text == 'Y' ? '' : text == 'N' ? '' : '' }} <template slot="isEobBack" slot-scope="text">
</template> {{ text == 'Y' ? '' : text == 'N' ? '' : '' }}
<template slot="status" slot-scope="text"> </template>
<span :style="{ color: text == 2 ? 'red' : '' }">{{ <template slot="status" slot-scope="text">
text == 1 ? '有效' : text == 2 ? '无效' : '' <span :style="{ color: text == 2 ? 'red' : '' }">{{
}}</span> text == 1 ? '有效' : text == 2 ? '无效' : ''
</template> }}</span>
<template slot="redText" slot-scope="text"> </template>
<span style="color: red">{{ text }}</span> <template slot="redText" slot-scope="text">
</template> <span style="color: red">{{ text }}</span>
</a-table> </template>
<!--分页--> </a-table>
<BurtPagination :pagination="pagination" @pageChange="_getChargeList" /> <!--分页-->
<BurtPagination :pagination="pagination" @pageChange="_getChargeList" />
</div>
</div> </div>
</template> </template>
...@@ -308,6 +316,8 @@ export default { ...@@ -308,6 +316,8 @@ export default {
} }
] ]
return { return {
labelCol: { span: 8 },
wrapperCol: { span: 16 },
columns, columns,
receiptTypeOptions, receiptTypeOptions,
form: {}, form: {},
...@@ -554,7 +564,15 @@ export default { ...@@ -554,7 +564,15 @@ export default {
.residue-amount { .residue-amount {
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
font-size: 14px; font-size: 14px;
// .mg-t(48);
margin: 0 0 10px; margin: 0 0 10px;
} }
.scroll-table {
height: calc(100vh - 355px);
overflow: scroll;
}
@media screen and (min-width: 1920px) {
.scroll-table {
height: calc(100vh - 342px);
}
}
</style> </style>
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
<!-- 收费查询-账单查询 --> <!-- 收费查询-账单查询 -->
<div class="white_bg burt-container custom-info"> <div class="white_bg burt-container custom-info">
<!-- form --> <!-- form -->
<a-form-model ref="form" layout="vertical" :model="form"> <a-form-model
ref="form"
:model="form"
:label-col="labelCol"
:wrapper-col="wrapperCol"
>
<a-row :gutter="30"> <a-row :gutter="30">
<a-col :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="就诊日期"> <a-form-model-item label="就诊日期">
<a-range-picker <a-range-picker
format="YYYY-MM-DD" format="YYYY-MM-DD"
...@@ -13,7 +18,7 @@ ...@@ -13,7 +18,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="账单日期"> <a-form-model-item label="账单日期">
<a-range-picker <a-range-picker
format="YYYY-MM-DD" format="YYYY-MM-DD"
...@@ -23,7 +28,7 @@ ...@@ -23,7 +28,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="保险公司"> <a-form-model-item label="保险公司">
<a-select <a-select
v-model="form.payorCode" v-model="form.payorCode"
...@@ -43,7 +48,7 @@ ...@@ -43,7 +48,7 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="寄送状态"> <a-form-model-item label="寄送状态">
<a-select <a-select
v-model="form.sendSts" v-model="form.sendSts"
...@@ -55,9 +60,7 @@ ...@@ -55,9 +60,7 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> <a-col :xxl="6" :xl="8" :sm="12">
<a-row :gutter="30">
<a-col :lg="6" :sm="12">
<a-form-model-item label="快递公司"> <a-form-model-item label="快递公司">
<a-select <a-select
v-model="form.sendCompany" v-model="form.sendCompany"
...@@ -74,7 +77,7 @@ ...@@ -74,7 +77,7 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="快递单号"> <a-form-model-item label="快递单号">
<a-input <a-input
v-model="form.trackingNo" v-model="form.trackingNo"
...@@ -83,7 +86,7 @@ ...@@ -83,7 +86,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="寄送批号"> <a-form-model-item label="寄送批号">
<a-input <a-input
v-model="form.sendBatchNo" v-model="form.sendBatchNo"
...@@ -92,7 +95,7 @@ ...@@ -92,7 +95,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="账单编号"> <a-form-model-item label="账单编号">
<a-input <a-input
v-model="form.receiptNo" v-model="form.receiptNo"
...@@ -101,7 +104,7 @@ ...@@ -101,7 +104,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="病案号"> <a-form-model-item label="病案号">
<a-input <a-input
v-model="form.mrnNo" v-model="form.mrnNo"
...@@ -110,7 +113,7 @@ ...@@ -110,7 +113,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12"> <a-col :xxl="6" :xl="8" :sm="12">
<a-form-model-item label="客户名称"> <a-form-model-item label="客户名称">
<a-input <a-input
v-model="form.patientName" v-model="form.patientName"
...@@ -119,10 +122,14 @@ ...@@ -119,10 +122,14 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :sm="24" class="none-label"> <a-col :xxl="12" :xl="16" :sm="24" class="none-label">
<div class="btn-div flex"> <div class="btn-div flex">
<span></span> <span></span>
<a-form-model-item label="button"> <a-form-model-item
label=""
:labelCol="{ span: 0 }"
:wrapperCol="{ span: 24 }"
>
<a-button <a-button
class="mar-left10" class="mar-left10"
type="primary" type="primary"
...@@ -143,32 +150,34 @@ ...@@ -143,32 +150,34 @@
</a-form-model> </a-form-model>
<!-- table --> <!-- table -->
<a-table <div class="scroll-table">
:columns="columns" <a-table
:data-source="dataList" :columns="columns"
:scroll="{ x: true }" :data-source="dataList"
:pagination="false" :scroll="{ x: true }"
> :pagination="false"
<template slot="sendDate" slot-scope="text"> >
{{ text ? moment(text).format('YYYY-MM-DD') : '' }} <template slot="sendDate" slot-scope="text">
</template> {{ text ? moment(text).format('YYYY-MM-DD') : '' }}
<template slot="sendSts" slot-scope="text"> </template>
{{ text == 1 ? '已寄送' : '未寄送' }} <template slot="sendSts" slot-scope="text">
</template> {{ text == 1 ? '已寄送' : '未寄送' }}
<template slot="operation" slot-scope="text, record, index"> </template>
<a-button type="link" @click.stop="editEvt(record, true)" <template slot="operation" slot-scope="text, record, index">
>编辑</a-button <a-button type="link" @click.stop="editEvt(record, true)"
> >编辑</a-button
<a-button type="link" class="success" @click.stop="editEvt(record)" >
>查看</a-button <a-button type="link" class="success" @click.stop="editEvt(record)"
> >查看</a-button
<a-button type="link" class="danger" @click.stop="delRecord(index)" >
>删除</a-button <a-button type="link" class="danger" @click.stop="delRecord(index)"
> >删除</a-button
</template> >
</a-table> </template>
<!--分页--> </a-table>
<BurtPagination :pagination="pagination" @pageChange="getData" /> <!--分页-->
<BurtPagination :pagination="pagination" @pageChange="getData" />
</div>
</div> </div>
</template> </template>
...@@ -210,16 +219,18 @@ export default { ...@@ -210,16 +219,18 @@ export default {
} }
] ]
return { return {
labelCol: { span: 5 },
wrapperCol: { span: 19 },
loading: false, loading: false,
columns, columns,
form: { form: {
dateRange: [], dateRange: [],
billDate: [], billDate: [],
payorCode: '', payorCode: undefined,
sendBatchNo: '', sendBatchNo: '',
sendCompany: '', sendCompany: undefined,
trackingNo: '', trackingNo: '',
sendSts: '' sendSts: undefined
}, },
companyOptions: [], //保险公司 companyOptions: [], //保险公司
expressList: [], //快递列表 expressList: [], //快递列表
...@@ -360,9 +371,6 @@ export default { ...@@ -360,9 +371,6 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.none-label { .none-label {
text-align: right; text-align: right;
.ant-form-item-label {
opacity: 0;
}
} }
.ant-btn .icon-class { .ant-btn .icon-class {
.mg-r(10); .mg-r(10);
...@@ -370,4 +378,13 @@ export default { ...@@ -370,4 +378,13 @@ export default {
.btn-div { .btn-div {
justify-content: space-between; justify-content: space-between;
} }
.scroll-table {
height: calc(100vh - 330px);
overflow: scroll;
}
@media screen and (min-width: 1920px) {
.scroll-table {
height: calc(100vh - 320px);
}
}
</style> </style>
...@@ -8,28 +8,26 @@ ...@@ -8,28 +8,26 @@
<script> <script>
export default { export default {
data() { data() {
return {}; return {}
}, },
computed: {}, computed: {},
watch: {}, watch: {},
methods: { methods: {
openNotificationWithIcon(type) { openNotificationWithIcon(type) {
this.$msg[type]({ this.$msg[type]({
message: "Notification Title", message: 'Notification Title',
description: description:
"This is the content of the notification. This is the content of the notification. This is the content of the notification.", 'This is the content of the notification. This is the content of the notification. This is the content of the notification.'
}); })
}, }
}, }
mounted() { }
// console.log("this.apis", this.$apis.getUserInfo(), this.$lodash);
},
};
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.customer { .customer {
.pa(30, 36, 50, 39); .pa(30, 36, 10, 39);
background-color: #fff; background-color: #fff;
box-sizing: border-box;
} }
</style> </style>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -52,8 +52,8 @@ module.exports = { ...@@ -52,8 +52,8 @@ module.exports = {
hot: true, hot: true,
proxy: { proxy: {
'^/api_bims': { '^/api_bims': {
target: 'http://47.99.75.3:8070', // 测试 // target: 'http://47.99.75.3:8070', // 测试
// target: 'http://bims.medilink-global.com.cn/api_bims', // 生产 target: 'http://bims.medilink-global.com.cn/api_bims', // 生产
pathRewrite: { pathRewrite: {
'^/api_bims': '/' '^/api_bims': '/'
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment