Commit c096c57c authored by 王安伟's avatar 王安伟

【商保系统】-回款管理-账单列表和已关联账单样式调整

parent 300a798f
...@@ -104,16 +104,16 @@ ...@@ -104,16 +104,16 @@
<a-tabs type="card" v-model="activeKey1"> <a-tabs type="card" v-model="activeKey1">
<a-tab-pane v-for="pane in panes1" :key="pane.key" :tab="pane.title"> <a-tab-pane v-for="pane in panes1" :key="pane.key" :tab="pane.title">
<div> <div>
<a-row class="search-form"> <a-row type="flex" align="middle" class="search-form">
<a-form-model <a-form-model
ref="searchForm" ref="searchForm"
layout="inline" layout="inline"
:labelCol="{ span: 9 }" :labelCol="{ span: 8 }"
:wrapperCol="{ span: 15 }" :wrapperCol="{ span: 16 }"
:model="searchForm" :model="searchForm"
> >
<a-row :gutter="30"> <a-row>
<a-col :lg="5" :sm="10"> <a-col :lg="4" :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"
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="4" :sm="10"> <a-col :lg="4" :sm="12">
<a-form-model-item label="病历号"> <a-form-model-item label="病历号">
<a-input <a-input
v-model="searchForm.mrnNo" v-model="searchForm.mrnNo"
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="4" :sm="12"> <a-col :lg="4" :sm="12">
<a-form-model-item label="状态"> <a-form-model-item label="状态" :labelCol="{ span: 7 }" :wrapperCol="{ span: 14 }">
<a-select v-model="searchForm.rStatus" placeholder="请选择状态" allowClear> <a-select v-model="searchForm.rStatus" placeholder="请选择状态" allowClear>
<a-select-option v-for="item in statusOptions" :key="item.code" :value="item.code"> <a-select-option v-for="item in statusOptions" :key="item.code" :value="item.code">
{{ item.name }} {{ item.name }}
...@@ -162,12 +162,17 @@ ...@@ -162,12 +162,17 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="2" :sm="12"> <a-col class="flex-col" :lg="4" :sm="12">
<div class="btn-div mar-bottom10 none-label"> <div>
<a-button type="primary" @click="searchData"> <a-button type="primary" @click="searchData">
<Icon name="ssisearch_active" :size="14" />查询 <Icon name="ssisearch_active" :size="14" />查询
</a-button> </a-button>
</div> </div>
<div v-if="activeKey1 === '0' && selectedRows.length > 0">
<a-button type="primary" @click="exportExcel">
<Icon name="ssidaochu" :size="14" />导出
</a-button>
</div>
</a-col> </a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
...@@ -176,53 +181,52 @@ ...@@ -176,53 +181,52 @@
<!-- 已关联账单 --> <!-- 已关联账单 -->
<template v-if="activeKey1 === '0'"> <template v-if="activeKey1 === '0'">
<template v-if="selectedRows.length > 0"> <template v-if="selectedRows.length > 0">
<div class="table-title"> <div class="all-list_box">
<a-button class="mar-left10" type="primary" @click="exportExcel"> <a-table
<Icon name="ssidaochu" :size="14" />导出 class="table-content"
</a-button> :rowClassName="rowClassName"
:columns="selectedColumns"
:data-source="selectedRows"
:scroll="{ x: '100%', y: tableHeight }"
:pagination="false"
>
<template slot="status" slot-scope="text">
<span :style="{ color: text == 2 ? 'red' : '' }">{{
text == 1 ? '有效' : text == 2 ? '无效' : ''
}}</span>
</template>
<template slot="operation" slot-scope="text, record, index">
<a-button type="link" class="danger" @click.stop="delRecord(record, index)">删除</a-button>
</template>
</a-table>
</div> </div>
<a-table
class="table-content"
:rowClassName="rowClassName"
:columns="selectedColumns"
:data-source="selectedRows"
:scroll="{ x: '100%', y: tableHeight }"
:pagination="false"
>
<template slot="status" slot-scope="text">
<span :style="{ color: text == 2 ? 'red' : '' }">{{
text == 1 ? '有效' : text == 2 ? '无效' : ''
}}</span>
</template>
<template slot="operation" slot-scope="text, record, index">
<a-button type="link" class="danger" @click.stop="delRecord(record, index)">删除</a-button>
</template>
</a-table>
</template> </template>
</template> </template>
<template v-else> <template v-else>
<!-- table --> <!-- table -->
<template v-if="isEdit"> <template v-if="isEdit">
<a-table <div class="all-list_box">
class="table-content all-list" <a-table
:columns="columns" class="table-content all-list"
:data-source="dataList" :columns="columns"
:scroll="{ x: '100%', y: tableHeight }" :data-source="dataList"
:pagination="false" :scroll="{ x: '100%', y: tableHeight }"
:rowKey="'id'" :pagination="false"
:row-selection="{ :rowKey="'id'"
selectedRowKeys: selectedRowKeys, :row-selection="{
onSelect: onSelectChange, selectedRowKeys: selectedRowKeys,
onSelectAll: onSelectAll onSelect: onSelectChange,
}" onSelectAll: onSelectAll
> }"
<template slot="status" slot-scope="text"> >
<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>
</a-table> </template>
<BurtPagination class="pagination" :pagination="pagination" @pageChange="pageChange" /> </a-table>
<BurtPagination class="pagination" :pagination="pagination" @pageChange="pageChange" />
</div>
</template> </template>
</template> </template>
</a-tab-pane> </a-tab-pane>
...@@ -856,10 +860,9 @@ export default { ...@@ -856,10 +860,9 @@ export default {
opacity: 0; opacity: 0;
} }
} }
.table-title { .all-list_box {
font-size: 15px; height: calc(100vh - 430px);
margin: 6px 0; overflow-y: auto;
text-align: right;
} }
.table-content { .table-content {
::v-deep { ::v-deep {
...@@ -875,6 +878,12 @@ export default { ...@@ -875,6 +878,12 @@ export default {
.ant-form .ant-form-item { .ant-form .ant-form-item {
margin-bottom: 4px; margin-bottom: 4px;
} }
.flex-col {
display: flex;
justify-content: space-around;
align-items: center;
height: 44px;
}
} }
.ant-btn .icon-class { .ant-btn .icon-class {
.mg-r(10); .mg-r(10);
...@@ -904,6 +913,11 @@ export default { ...@@ -904,6 +913,11 @@ export default {
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
padding-right: 12px; padding-right: 12px;
::v-deep {
.ant-form-item {
margin-right: 0;
}
}
.pagination { .pagination {
margin-top: 10px; margin-top: 10px;
::v-deep .jump-page { ::v-deep .jump-page {
......
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