Commit 42040772 authored by yanglilong's avatar yanglilong

'修改'

parent 177ba1e5
import bus from "../utils/bus"; import bus from "../utils/bus";
import {sexOptions} from '@/utils/utilsdictOptions.js' import {sexOptions, SendStatusOptions, ClaimsStatusOptions} from '@/utils/utilsdictOptions.js'
// 全局混入将会影响每个单文件组件,请慎重思考是否要混入 // 全局混入将会影响每个单文件组件,请慎重思考是否要混入
export default { export default {
...@@ -9,6 +9,7 @@ export default { ...@@ -9,6 +9,7 @@ export default {
}; };
}, },
filters: { filters: {
//过滤性别
formatSex(val){ formatSex(val){
if (!val) { if (!val) {
return; return;
...@@ -18,5 +19,25 @@ export default { ...@@ -18,5 +19,25 @@ export default {
}); });
return item? item.name: ""; return item? item.name: "";
}, },
//过滤寄送状态
formatSendStatus(val){
if (!val) {
return;
}
const item = SendStatusOptions.find((item) => {
return item.value == val;
});
return item? item.name: "";
},
//过滤理赔状态
formatClaimsStatus(val){
if (!val) {
return;
}
const item = ClaimsStatusOptions.find((item) => {
return item.value == val;
});
return item? item.name: "";
},
} }
}; };
...@@ -8,9 +8,27 @@ const sexOptions = [{ ...@@ -8,9 +8,27 @@ const sexOptions = [{
value: 'F' value: 'F'
}]; }];
//寄送状态
const SendStatusOptions = [
{ name: '未寄送', value: '1'},
{ name: '寄送', value: '2'},
{ name: '待寄送', value: '3'},
];
//理赔状态
const ClaimsStatusOptions = [
{ name: '赔付', value: '01'},
{ name: '部分赔付', value: '02'},
{ name: '拒赔', value: '03'},
{ name: '补充材料', value: '04'},
];
module.exports = { module.exports = {
sexOptions, sexOptions,
SendStatusOptions,
ClaimsStatusOptions,
} }
\ No newline at end of file
...@@ -50,6 +50,9 @@ ...@@ -50,6 +50,9 @@
:pagination="false" :pagination="false"
:customRow="handlerRowClick" :customRow="handlerRowClick"
> >
<template slot="sex" slot-scope="text">
<span>{{text | formatSex}}</span>
</template>
<template slot="operation" slot-scope="record"> <template slot="operation" slot-scope="record">
<a-button type="link" @click.stop="changeDataStatus(record)">修改</a-button> <a-button type="link" @click.stop="changeDataStatus(record)">修改</a-button>
<a-button type="link" @click.stop="printClaimPdf(record)">打印理赔申请书</a-button> <a-button type="link" @click.stop="printClaimPdf(record)">打印理赔申请书</a-button>
...@@ -68,7 +71,7 @@ ...@@ -68,7 +71,7 @@
import BurtPagination from "@/components/CUSTOMER/pagation"; import BurtPagination from "@/components/CUSTOMER/pagation";
import {downloadFile} from '@/utils/index' import {downloadFile} from '@/utils/index'
import moment from 'moment' import moment from 'moment'
import mixins from "@/mixins";
export default { export default {
data() { data() {
const dateFormat = (val) => { const dateFormat = (val) => {
...@@ -78,10 +81,10 @@ export default { ...@@ -78,10 +81,10 @@ export default {
{ title: "病历号", dataIndex: "mrnNo", width: 180, }, { title: "病历号", dataIndex: "mrnNo", width: 180, },
{ title: "客户姓名", dataIndex: "patientName", width: 120,}, { title: "客户姓名", dataIndex: "patientName", width: 120,},
{ title: "出生日期", dataIndex: "birthday", width: 170, customRender: dateFormat}, { title: "出生日期", dataIndex: "birthday", width: 170, customRender: dateFormat},
{ 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: 170, customRender: dateFormat }, { title: "单生效日期", dataIndex: "startDate", width: 170, customRender: dateFormat },
{ title: "保险终止日期", dataIndex: "endDate", width: 170, customRender: dateFormat }, { title: "保险终止日期", dataIndex: "endDate", width: 170, customRender: dateFormat },
{ title: "操作", key: "operation", width: "260px", fixed: "right", scopedSlots: { customRender: "operation" }}, { title: "操作", key: "operation", width: "260px", fixed: "right", scopedSlots: { customRender: "operation" }},
]; ];
...@@ -98,6 +101,7 @@ export default { ...@@ -98,6 +101,7 @@ export default {
}, },
}; };
}, },
mixins: [mixins],
components: { components: {
BurtPagination, BurtPagination,
}, },
......
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
<span>{{record.visitTimeStart? moment(record.visitTimeStart).format('YYYY-MM-DD'):''}}</span> ~ <span>{{record.visitTimeStart? moment(record.visitTimeStart).format('YYYY-MM-DD'):''}}</span> ~
<span>{{record.visitTimeEnd? moment(record.visitTimeEnd).format('YYYY-MM-DD'):''}}</span> <span>{{record.visitTimeEnd? moment(record.visitTimeEnd).format('YYYY-MM-DD'):''}}</span>
</template> </template>
<template slot="sendSts" slot-scope="record, text"> <template slot="paidSts" slot-scope="text">
<span>{{text==1?'已寄送':'未寄送'}}</span> <span>{{text | formatClaimsStatus}}</span>
</template> </template>
<template slot="operation" slot-scope="text, record"> <template slot="operation" slot-scope="text, record">
<a-button type="link" @click.stop="editEvt(record)">修改</a-button> <a-button type="link" @click.stop="editEvt(record)">修改</a-button>
...@@ -101,9 +101,8 @@ ...@@ -101,9 +101,8 @@
<a-row :gutter="30"> <a-row :gutter="30">
<a-col :lg="12" :sm="24"> <a-col :lg="12" :sm="24">
<a-form-model-item label="理赔状态" prop="paidSts"> <a-form-model-item label="理赔状态" prop="paidSts">
<a-select v-model="editFormObj.sendSts" placeholder="请选择理赔状态" allowClear> <a-select v-model="editFormObj.paidSts" placeholder="请选择理赔状态" allowClear>
<a-select-option :value="1">待核销</a-select-option> <a-select-option v-for="(item,i) in ClaimsStatusOptions" :key="i" :value="item.value">{{item.name}}</a-select-option>
<a-select-option :value="2">已核销</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -132,12 +131,14 @@ ...@@ -132,12 +131,14 @@
import Goback from "@/components/CUSTOMER/goback"; import Goback from "@/components/CUSTOMER/goback";
import BurtPagination from "@/components/CUSTOMER/pagation"; import BurtPagination from "@/components/CUSTOMER/pagation";
import moment from "moment"; import moment from "moment";
import {ClaimsStatusOptions} from '@/utils/utilsdictOptions.js'
import mixins from "@/mixins";
const columns = [ const columns = [
{ title: "账单编号", dataIndex: "receiptNo", ellipsis: true, width: 100 }, { title: "账单编号", dataIndex: "receiptNo", ellipsis: true, width: 100 },
{ title: "客户姓名", dataIndex: "patientName", ellipsis: true, width: 85 }, { title: "客户姓名", dataIndex: "patientName", ellipsis: true, width: 85 },
{ title: "保险公司", dataIndex: "payorName", ellipsis: true, width: 80 }, { title: "保险公司", dataIndex: "payorName", ellipsis: true, width: 80 },
{ title: "就诊日期", dataIndex: "visitTimeStart", ellipsis: true, width: 110, scopedSlots: { customRender: "visitTimeStart" } }, { title: "就诊日期", dataIndex: "visitTimeStart", ellipsis: true, width: 110, scopedSlots: { customRender: "visitTimeStart" } },
{ title: "理赔状态", dataIndex: "sendSts", ellipsis: true, width: 90, scopedSlots: { customRender: "sendSts" } }, { title: "理赔状态", dataIndex: "paidSts", ellipsis: true, width: 90, scopedSlots: { customRender: "paidSts" } },
{ title: "账单金额", dataIndex: "receiptAmount", ellipsis: true, width: 85 }, { title: "账单金额", dataIndex: "receiptAmount", ellipsis: true, width: 85 },
{ title: "自付金额", dataIndex: "selfpaidAmount", ellipsis: true, width: 85 }, { title: "自付金额", dataIndex: "selfpaidAmount", ellipsis: true, width: 85 },
{ title: "理赔金额", dataIndex: "eobPaidAmount", ellipsis: true, width: 85 }, { title: "理赔金额", dataIndex: "eobPaidAmount", ellipsis: true, width: 85 },
...@@ -153,6 +154,7 @@ export default { ...@@ -153,6 +154,7 @@ export default {
return { return {
dialogShow: false, dialogShow: false,
columns, columns,
ClaimsStatusOptions,
eobNo: '', //eob编号 eobNo: '', //eob编号
form: { form: {
eobDate: '', eobDate: '',
...@@ -184,6 +186,7 @@ export default { ...@@ -184,6 +186,7 @@ export default {
}, },
}; };
}, },
mixins: [mixins],
components: { components: {
Goback, Goback,
BurtPagination, BurtPagination,
......
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