Commit 897dade0 authored by yanglilong's avatar yanglilong

'调整'

parent e05b7274
import bus from "../utils/bus"; import bus from "../utils/bus";
import {} from '@/utils/utilsdictOptions.js' import {sexOptions} from '@/utils/utilsdictOptions.js'
// 全局混入将会影响每个单文件组件,请慎重思考是否要混入 // 全局混入将会影响每个单文件组件,请慎重思考是否要混入
export default { export default {
...@@ -9,6 +9,14 @@ export default { ...@@ -9,6 +9,14 @@ export default {
}; };
}, },
filters: { filters: {
formatSex(val){
if (!val) {
return;
}
const item = sexOptions.find((item) => {
return item.value == val;
});
return item? item.name: "";
},
} }
}; };
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</a-form-model> </a-form-model>
<!-- table --> <!-- table -->
<a-table :columns="columns" :data-source="dataList" :scroll="{ x: true }" :pagination="false"> <a-table :columns="columns" :data-source="dataList" :scroll="{ x: true }" :pagination="false">
<template slot="eobSts" slot-scope="record, text"> <template slot="eobSts" slot-scope="text">
<span>{{text==1?'未回款':'已回款'}}</span> <span>{{text==1?'未回款':'已回款'}}</span>
</template> </template>
<template slot="operation" slot-scope="text, record, index"> <template slot="operation" slot-scope="text, record, index">
......
...@@ -40,14 +40,7 @@ ...@@ -40,14 +40,7 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="4" :lg="6" :sm="12"> <a-col :xl="18" :lg="12" :sm="24" class="none-label">
<a-form-model-item label="是否直付" prop="idType">
<a-select v-model="form.idType" placeholder="请选择保单直付区域" show-search allow-clear @filterOption="filterCode">
<a-select-option v-for="item in companyCode" :key="item.id" :value="item.id" :label="item.longName">{{ item.longName }}</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col :xl="14" :lg="12" :sm="24" class="none-label">
<a-form-model-item label="button"> <a-form-model-item label="button">
<a-button type="primary" class="text-r" @click="handlerReset"> <a-button type="primary" class="text-r" @click="handlerReset">
<Icon name="ssireset" :size="14" />重置 <Icon name="ssireset" :size="14" />重置
...@@ -66,10 +59,21 @@ ...@@ -66,10 +59,21 @@
row-key="mrnNo" row-key="mrnNo"
:scroll="{ x: true }" :scroll="{ x: true }"
:pagination="false" :pagination="false"
:customRow="handlerRowClick" :customRow="handlerRowClick">
></a-table> <template slot="sex" slot-scope="text">
<BurtPagination :pagination="{ ...cusPager, total: cusTotal }" @pageChange="onCustomChange" <span>{{text | formatSex}}</span>
/> </template>
<template slot="birthday" slot-scope="text">
<span>{{text?moment(text).format('YYYY-MM-DD'):''}}</span>
</template>
<template slot="startDate" slot-scope="text">
<span>{{text?moment(text).format('YYYY-MM-DD'):''}}</span>
</template>
<template slot="endDate" slot-scope="text">
<span>{{text?moment(text).format('YYYY-MM-DD'):''}}</span>
</template>
</a-table>
<BurtPagination :pagination="{ ...cusPager, total: cusTotal }" @pageChange="onCustomChange" />
</div> </div>
<div v-if="isShowCoverageData"> <div v-if="isShowCoverageData">
<PolicyInfo :policyData="coverageForm" /> <PolicyInfo :policyData="coverageForm" />
...@@ -82,6 +86,8 @@ ...@@ -82,6 +86,8 @@
import BurtPagination from "@/components/CUSTOMER/pagation"; import BurtPagination from "@/components/CUSTOMER/pagation";
import coverages from "./components/coverages"; import coverages from "./components/coverages";
import PolicyInfo from "./components/PolicyInfo"; import PolicyInfo from "./components/PolicyInfo";
import moment from "moment";
import mixins from "@/mixins";
export default { export default {
beforeRouteUpdate(to, from, next) { beforeRouteUpdate(to, from, next) {
this.handlerReset(); this.handlerReset();
...@@ -92,16 +98,17 @@ export default { ...@@ -92,16 +98,17 @@ export default {
coverages, coverages,
PolicyInfo, PolicyInfo,
}, },
mixins: [mixins],
data() { data() {
const customColumns = [ const customColumns = [
{ title: "病历号", dataIndex: "mrnNo", width: 180 }, { title: "病历号", dataIndex: "mrnNo", width: 180 },
{ title: "客户姓名", dataIndex: "patientName", width: 120 }, { title: "客户姓名", dataIndex: "patientName", width: 120 },
{ title: "出生日期", dataIndex: "birthday", width: 180 }, { title: "出生日期", dataIndex: "birthday", width: 180, scopedSlots: { customRender: "birthday" } },
{ title: "性别", dataIndex: "sex", width: 80 }, { title: "性别", dataIndex: "sex", width: 80, scopedSlots: { customRender: "sex" } },
{ title: "保险公司", dataIndex: "payorName", width: 180 }, { title: "保险公司", dataIndex: "payorName", width: 180 },
{ title: "保单号码", dataIndex: "policyNo", width: 190 }, { title: "保单号码", dataIndex: "policyNo", width: 190 },
{ title: "保险有效日期", dataIndex: "startDate", width: 180 }, { title: "保险有效日期", dataIndex: "startDate", scopedSlots: { customRender: "startDate" }, width: 180 },
{ title: "保险终止日期", dataIndex: "endDate", width: 180 }, { title: "保险终止日期", dataIndex: "endDate", scopedSlots: { customRender: "endDate" }, width: 180 },
]; ];
return { return {
isShowCoverageData: false, isShowCoverageData: false,
...@@ -113,7 +120,6 @@ export default { ...@@ -113,7 +120,6 @@ export default {
sex: undefined, sex: undefined,
idNo: undefined, idNo: undefined,
payorId: undefined, payorId: undefined,
idType: undefined
}, },
detailForm: {}, detailForm: {},
coverageForm: {}, coverageForm: {},
...@@ -137,6 +143,7 @@ export default { ...@@ -137,6 +143,7 @@ export default {
this._getPayorCode(); this._getPayorCode();
}, },
methods: { methods: {
moment,
onCustomChange(pager) { onCustomChange(pager) {
const { pageNum } = pager; const { pageNum } = pager;
// console.log(pager); // console.log(pager);
......
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