Commit 2bb2d139 authored by 吴婷慧's avatar 吴婷慧

Merge branch 'update-0218' into test

parents 964daf4a c22bc7eb
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
export default { export default {
benefitType: "/backstage/auth/benefitMasterList", benefitType: "/backstage/auth/benefitMasterList",
planList: "/backstage/auth/planListPage", planList: "/backstage/auth/planListPage",
addPlan: "/backstage/auth/planCreate",
editPlan: "/backstage/auth/planEdit", editPlan: "/backstage/auth/planEdit",
coverageCode: "/backstage/auth/coverageMasterList", coverageCode: "/backstage/auth/coverageMasterList",
coverageList: "/backstage/auth/coverageList", coverageList: "/backstage/auth/coverageList",
......
...@@ -10,7 +10,11 @@ const GETPLANLIST = (data) => { ...@@ -10,7 +10,11 @@ const GETPLANLIST = (data) => {
return req.post(apis.planList, data); return req.post(apis.planList, data);
}; };
const EDITPLANDATE = (data) => { const ADDTPLANDATA = (data) => {
return req.post(apis.addPlan, data);
};
const EDITPLANDATA = (data) => {
return req.post(apis.editPlan, data); return req.post(apis.editPlan, data);
}; };
...@@ -66,7 +70,8 @@ const GETLIMITCODE = (data) => { ...@@ -66,7 +70,8 @@ const GETLIMITCODE = (data) => {
export default { export default {
GETBENEGITTYPE, GETBENEGITTYPE,
GETPLANLIST, GETPLANLIST,
EDITPLANDATE, ADDTPLANDATA,
EDITPLANDATA,
GETCOVERAGELIST, GETCOVERAGELIST,
GETCONDITIONLIST, GETCONDITIONLIST,
ADDCONDITIONDATA, ADDCONDITIONDATA,
......
...@@ -244,9 +244,9 @@ select { ...@@ -244,9 +244,9 @@ select {
} }
// .ant-table, // .ant-table,
.ant-table { .ant-table {
thead th{ .ant-table-thead th{
font-weight: bold; font-weight: bold;
background-color: #F8FAFB; background-color: #F8FAFB !important;
} }
.ant-btn { .ant-btn {
// .fs(21); // .fs(21);
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
<script> <script>
export default { export default {
beforeRouteUpdate(to, from, next) { beforeRouteUpdate(to, from, next) {
this.$refs.form.resetFields(); this.$refs.form.resetFields();
next(); next();
}, },
...@@ -288,8 +288,8 @@ export default { ...@@ -288,8 +288,8 @@ export default {
this.$apis.GETCUSTOMERDETAIL(data).then((res) => { this.$apis.GETCUSTOMERDETAIL(data).then((res) => {
if (res.returnCode === "0000") { if (res.returnCode === "0000") {
this.form = res.content || {}; this.form = res.content || {};
this._getCorporateCode(this.form.payorCode); this._getCorporateCode(this.form.payorId);
this._getPlanCode(this.form.corpCode); this._getPlanCode(this.form.corpId);
const medCardCopeFiles = this.form.medCardCopeFiles || []; const medCardCopeFiles = this.form.medCardCopeFiles || [];
const idCardCopeFiles = this.form.idCardCopeFiles || []; const idCardCopeFiles = this.form.idCardCopeFiles || [];
medCardCopeFiles.forEach((item) => { medCardCopeFiles.forEach((item) => {
...@@ -384,8 +384,8 @@ export default { ...@@ -384,8 +384,8 @@ export default {
handleMedRemove(file) { handleMedRemove(file) {
for (let i = 0; i < this.medCardCopeFiles.length; i++) { for (let i = 0; i < this.medCardCopeFiles.length; i++) {
if (this.medCardCopeFiles[i].url === file.url) { if (this.medCardCopeFiles[i].url === file.url) {
this.medCardCopeFiles[i].splice(i, 1); this.medCardCopeFiles.splice(i, 1);
this.form.medCardCopeFiles[i].splice(i, 1); this.form.medCardCopeFiles.splice(i, 1);
return true; return true;
} }
} }
...@@ -393,8 +393,8 @@ export default { ...@@ -393,8 +393,8 @@ export default {
handleIDRemove(file) { handleIDRemove(file) {
for (let i = 0; i < this.idCardCopeFiles.length; i++) { for (let i = 0; i < this.idCardCopeFiles.length; i++) {
if (this.idCardCopeFiles[i].url === file.url) { if (this.idCardCopeFiles[i].url === file.url) {
this.idCardCopeFiles[i].splice(i, 1); this.idCardCopeFiles.splice(i, 1);
this.form.idCardCopeFiles[i].splice(i, 1); this.form.idCardCopeFiles.splice(i, 1);
return true; return true;
} }
} }
......
...@@ -54,9 +54,9 @@ ...@@ -54,9 +54,9 @@
<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>
<!-- <a-button type="link" class="success">新增</a-button> --> <!-- <a-button type="link" class="success">新增</a-button> -->
<a-popconfirm title="你确定要删除吗?" ok-text="确定" cancel-text="取消" @confirm="deleteData(record)"> <!-- <a-popconfirm title="你确定要删除吗?" ok-text="确定" cancel-text="取消" @confirm="deleteData(record)">
<a-button type="link" class="danger" @click.stop>删除</a-button> <a-button type="link" class="danger" @click.stop>删除</a-button>
</a-popconfirm> </a-popconfirm> -->
</template> </template>
</a-table> </a-table>
<!--分页--> <!--分页-->
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
title="福利管理" title="福利管理"
v-model="isBenefitEditShow" v-model="isBenefitEditShow"
:footer="null" :footer="null"
width="500px" width="50%"
@cancel="isBenefitEditShow = false" @cancel="isBenefitEditShow = false"
> >
<a-form-model ref="editForm" layout="vertical" :model="editForm" :rules="editRule"> <a-form-model ref="editForm" layout="vertical" :model="editForm" :rules="editRule">
...@@ -127,6 +127,7 @@ ...@@ -127,6 +127,7 @@
<script> <script>
import condition from "../condition"; import condition from "../condition";
import moment from 'moment'
export default { export default {
props: { props: {
...@@ -139,13 +140,16 @@ export default { ...@@ -139,13 +140,16 @@ export default {
condition, condition,
}, },
data() { data() {
const dateFormat = (val) => {
return val && moment(val).format('YYYY-MM-DD')
}
const columns = [ const columns = [
{ title: "责任项目明细", dataIndex: "benefitCode" }, { title: "责任项目明细", dataIndex: "benefitDesc" },
// { title: "预授权申请", dataIndex: "index" }, // { title: "预授权申请", dataIndex: "index" },
{ title: "更新日期", dataIndex: "modifierDate" }, { title: "更新日期", dataIndex: "modifierDate", width: 180 },
{ title: "开始日期", dataIndex: "startDate" }, { title: "开始日期", dataIndex: "startDate", customRender: dateFormat },
{ title: "结束日期", dataIndex: "endDate" }, { title: "结束日期", dataIndex: "endDate", customRender: dateFormat },
{ title: "备注", dataIndex: "remark" }, { title: "备注", dataIndex: "remark", width: 180 },
{ {
title: "操作", title: "操作",
key: "operation", key: "operation",
......
...@@ -107,6 +107,8 @@ ...@@ -107,6 +107,8 @@
</template> </template>
<script> <script>
import moment from 'moment'
export default { export default {
props: { props: {
formData: { formData: {
...@@ -115,12 +117,22 @@ export default { ...@@ -115,12 +117,22 @@ export default {
}, },
}, },
data() { data() {
const dateFormat = (val) => {
return val && moment(val).format('YYYY-MM-DD')
}
const columns = [ const columns = [
{ title: "频率", dataIndex: "frequencyCode" }, { title: "条件类型", dataIndex: "frequencyDesc" },
{ title: "条件", dataIndex: "limitCode" }, { title: "条件内容", dataIndex: "limitDesc" },
{ title: "开始时间", dataIndex: "startDate" }, { title: "开始时间", dataIndex: "startDate", customRender: dateFormat },
{ title: "结束时间", dataIndex: "endDate" }, { title: "结束时间", dataIndex: "endDate", customRender: dateFormat },
{ title: "有效", dataIndex: "status" }, { title: "状态", dataIndex: "status", customRender: (val) => {
for(let i = 0; i < this.statusCode.length; i ++) {
if (val === this.statusCode[i].code) {
return this.statusCode[i].name
}
}
return val;
} },
// { title: "限额或限次", dataIndex: "index" }, // { title: "限额或限次", dataIndex: "index" },
{ title: "最大值", dataIndex: "maxValue" }, { title: "最大值", dataIndex: "maxValue" },
{ {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
title="责任管理" title="责任管理"
v-model="isCoverageEditShow" v-model="isCoverageEditShow"
:footer="null" :footer="null"
width="500px" width="50%"
@cancel="isCoverageEditShow = false" @cancel="isCoverageEditShow = false"
> >
<a-form-model ref="editForm" layout="vertical" :model="editForm" :rules="editRule"> <a-form-model ref="editForm" layout="vertical" :model="editForm" :rules="editRule">
...@@ -41,13 +41,6 @@ ...@@ -41,13 +41,6 @@
<a-form-model-item label="客户公司名称" prop="corpCode"> <a-form-model-item label="客户公司名称" prop="corpCode">
<a-input disabled v-model="editForm.corpCode"> </a-input> <a-input disabled v-model="editForm.corpCode"> </a-input>
</a-form-model-item> </a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="保险计划" prop="planCode">
<a-input disabled v-model="editForm.planCode"> </a-input>
</a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="保险责任" prop="coverageCode"> <a-form-model-item label="保险责任" prop="coverageCode">
<a-select v-model="editForm.coverageCode" show-search allow-clear @filterOption="filterCode"> <a-select v-model="editForm.coverageCode" show-search allow-clear @filterOption="filterCode">
<a-select-option v-for="item in coverageCode" :key="item.coverageCode" :vlaue="item.coverageCode"> <a-select-option v-for="item in coverageCode" :key="item.coverageCode" :vlaue="item.coverageCode">
...@@ -55,23 +48,9 @@ ...@@ -55,23 +48,9 @@
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="等待期">
<a-input-number v-model="editForm.waitingPeriod"></a-input-number>
</a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="英文描述"> <a-form-model-item label="英文描述">
<a-input v-model="editForm.englishDesc"></a-input> <a-input v-model="editForm.englishDesc"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="描述">
<a-input v-model="editForm.loaDesc"> </a-input>
</a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="是否直付"> <a-form-model-item label="是否直付">
<a-radio-group v-model="editForm.isDirect" :default-value="editForm.isDirect" button-style="solid" <a-radio-group v-model="editForm.isDirect" :default-value="editForm.isDirect" button-style="solid"
> >
...@@ -80,24 +59,22 @@ ...@@ -80,24 +59,22 @@
</a-radio-group> </a-radio-group>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<!-- <a-col :md="12"> <a-col :md="12">
<a-form-model-item label="状态"> <a-form-model-item label="保险计划" prop="planCode">
<a-select <a-input disabled v-model="editForm.planCode"> </a-input>
v-model="editForm.status" </a-form-model-item>
show-search <a-form-model-item label="等待期">
allow-clear <a-input-number v-model="editForm.waitingPeriod"></a-input-number>
@filterOption="filterCode" </a-form-model-item>
> <a-form-model-item label="描述">
<a-select-option <a-input v-model="editForm.loaDesc"> </a-input>
v-for="item in statusCode" </a-form-model-item>
:key="item.code" <a-form-model-item label="状态" prop="isEffective">
:vlaue="item.code" <a-select v-model="editForm.isEffective" placeholder="请选择计划状态" show-search allow-clear @filterOption="filterCode">
> <a-select-option v-for="item in statusCode" :key="item.code" :value="item.code" :label="item.name">{{ item.name }}</a-select-option>
{{ item.name }}
</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> --> </a-col>
</a-row> </a-row>
<!-- <a-form-model-item label="保险公司" prop="payorCode"> <!-- <a-form-model-item label="保险公司" prop="payorCode">
<a-input disabled v-model="editForm.payorCode"> </a-input> <a-input disabled v-model="editForm.payorCode"> </a-input>
...@@ -134,12 +111,21 @@ export default { ...@@ -134,12 +111,21 @@ export default {
}, },
data() { data() {
const columns = [ const columns = [
{ title: "门诊责任", dataIndex: "coverageCode", width: 150 }, { title: "门诊责任", dataIndex: "coverageDesc", width: 200 },
{ title: "是否直付", dataIndex: "isDirect", width: 120 }, { title: "是否直付", dataIndex: "isDirect", width: 120, customRender: (val) => {
return val === 'Y' ? '' : ''
} },
{ title: "等待期", dataIndex: "waitingPeriod", width: 120 }, { title: "等待期", dataIndex: "waitingPeriod", width: 120 },
// { title: "预授权", dataIndex: "sex", width: 80 }, // { title: "预授权", dataIndex: "sex", width: 80 },
// { title: "预授权期限", dataIndex: "payorName", width: 180 }, // { title: "预授权期限", dataIndex: "payorName", width: 180 },
{ title: "状态", dataIndex: "status", width: 180 }, { title: "状态", dataIndex: "isEffective", width: 180, customRender: (val) => {
for(let i = 0; i < this.statusCode.length; i ++) {
if (val === this.statusCode[i].code) {
return this.statusCode[i].name
}
}
return val;
} },
{ title: "备注", dataIndex: "remark" }, { title: "备注", dataIndex: "remark" },
{ {
title: "操作", title: "操作",
...@@ -156,11 +142,12 @@ export default { ...@@ -156,11 +142,12 @@ export default {
editForm: {}, editForm: {},
coverageCode: [], coverageCode: [],
statusCode: [ statusCode: [
{ code: "1", name: "有效" }, { code: "Y", name: "有效" },
{ code: "2", name: "无效" }, { code: "N", name: "无效" },
], ],
editRule: { editRule: {
coverageCode: [{ required: true, message: "请选择保险责任" }], coverageCode: [{ required: true, message: "请选择保险责任" }],
isEffective: [{ required: true, message: "请选择计划状态" }],
}, },
}; };
}, },
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
:pagination="false" :pagination="false"
> >
<template slot="operation" slot-scope="record"> <template slot="operation" slot-scope="record">
<a-button type="link" @click.stop="editPlanData(null)">新增</a-button>
<a-button type="link" @click.stop="editPlanData(record)">修改</a-button> <a-button type="link" @click.stop="editPlanData(record)">修改</a-button>
<!-- <a-popconfirm <!-- <a-popconfirm
title="你确定要删除吗?" title="你确定要删除吗?"
...@@ -90,64 +91,39 @@ ...@@ -90,64 +91,39 @@
<a-form-model-item label="保险计划" prop="planCode"> <a-form-model-item label="保险计划" prop="planCode">
<a-input v-model="editForm.planCode"></a-input> <a-input v-model="editForm.planCode"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="英文名称" prop="englishName">
<a-input v-model="editForm.englishName"></a-input>
</a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="计划全称" prop="longName"> <a-form-model-item label="计划全称" prop="longName">
<a-input v-model="editForm.longName"></a-input> <a-input v-model="editForm.longName"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="计划简称" prop="shortName">
<a-input v-model="editForm.shortName"></a-input>
</a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="公司名称" prop="corpName"> <a-form-model-item label="公司名称" prop="corpName">
<a-input v-model="editForm.corpName"></a-input> <a-input v-model="editForm.corpName"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="生效日期" prop="effectiveDate"> <a-form-model-item label="生效日期" prop="effectiveDate">
<a-date-picker v-model="editForm.effectiveDate" placeholder="请选择生效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> <a-date-picker v-model="editForm.effectiveDate" placeholder="请选择生效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker>
</a-form-model-item> </a-form-model-item>
</a-col> <a-form-model-item label="地区限制" prop="regionalRestrictions">
<a-col :md="12"> <a-select v-model="editForm.regionalRestrictions" placeholder="请选择地区限制" show-search allow-clear @filterOption="filterCode">
<a-form-model-item label="失效日期" prop="terminationDate"> <a-select-option v-for="item in areaCode" :key="item.refcd" :value="item.refcd" :label="item.descCh">{{ item.descCh }}</a-select-option>
<a-date-picker v-model="editForm.terminationDate" placeholder="请选择失效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :md="12"> <a-col :md="12">
<a-form-model-item label="英文名称" prop="englishName">
<a-input v-model="editForm.englishName"></a-input>
</a-form-model-item>
<a-form-model-item label="计划简称" prop="shortName">
<a-input v-model="editForm.shortName"></a-input>
</a-form-model-item>
<a-form-model-item label="等待期(天)" prop="waitingPeriod"> <a-form-model-item label="等待期(天)" prop="waitingPeriod">
<a-input-number v-model="editForm.waitingPeriod"></a-input-number> <a-input-number v-model="editForm.waitingPeriod"></a-input-number>
</a-form-model-item> </a-form-model-item>
</a-col> <a-form-model-item label="失效日期" prop="terminationDate">
<!-- <a-col :md="12"> <a-date-picker v-model="editForm.terminationDate" placeholder="请选择失效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker>
<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-form-model-item>
</a-col> <a-form-model-item label="医院限制" prop="hospitalRestrictions">
<a-col :md="12"> <a-select v-model="editForm.hospitalRestrictions" placeholder="请选择医院限制" show-search allow-clear @filterOption="filterCode">
<a-form-model-item label="医院限制" prop="idType"> <a-select-option v-for="item in hosCode" :key="item.refcd" :value="item.refcd" :label="item.descCh">{{ item.descCh }}</a-select-option>
<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-select>
</a-form-model-item> </a-form-model-item>
</a-col> -->
<a-col :md="12">
<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 statusCode" :key="item.code" :value="item.code" :label="item.name">{{ item.name }}</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="备注" prop="remarks"> <a-form-model-item label="备注" prop="remarks">
<a-textarea v-model="editForm.remarks" :autoSize="{ minRows: 2, maxRows: 5 }"></a-textarea> <a-textarea v-model="editForm.remarks" :autoSize="{ minRows: 2, maxRows: 5 }"></a-textarea>
</a-form-model-item> </a-form-model-item>
...@@ -170,6 +146,11 @@ import condition from "./components/condition"; ...@@ -170,6 +146,11 @@ import condition from "./components/condition";
import coverages from "./components/coverages"; import coverages from "./components/coverages";
import moment from 'moment' import moment from 'moment'
export default { export default {
beforeRouteUpdate(to, from, next) {
this.$refs.form.resetFields();
this.planData = [];
next();
},
components: { components: {
BurtPagination, BurtPagination,
condition, condition,
...@@ -182,27 +163,27 @@ export default { ...@@ -182,27 +163,27 @@ export default {
const columns = [ const columns = [
// { title: "计划责任", dataIndex: "planCode", width: 180 }, // { title: "计划责任", dataIndex: "planCode", width: 180 },
{ title: "计划全称", dataIndex: "longName", width: 180}, { title: "计划全称", dataIndex: "longName", width: 180},
{ title: "简称", dataIndex: "shortName", width: 180 }, { title: "简称", dataIndex: "shortName", width: 130, ellipsis: true },
{ title: "起始日期", dataIndex: "effectiveDate", width: 180, customRender: dateFormat }, { title: "起始日期", dataIndex: "effectiveDate", width: 130, customRender: dateFormat },
{ title: "终止日期", dataIndex: "terminationDate", width: 180, customRender: dateFormat }, { title: "终止日期", dataIndex: "terminationDate", width: 130, customRender: dateFormat },
{ title: "计划状态", dataIndex: "status", width: 180, customRender: (val) => { { title: "医院限制", dataIndex: "hospitalRestrictions", width: 130, customRender: (val) => {
for(let i = 0; i < this.statusCode.length; i ++) { for(let i = 0; i < this.hosCode.length; i ++) {
if (val === this.statusCode[i].code) { if (val === this.hosCode[i].refcd) {
return this.statusCode[i].name return this.hosCode[i].descCh
} }
} }
return val; return val;
} }, }},
// { title: "医院限制", dataIndex: "status", width: 180 }, // { title: "医院限制", dataIndex: "status", width: 180 },
// { title: "计划限额", dataIndex: "status", width: 180 }, // { title: "计划限额", dataIndex: "status", width: 180 },
// { title: "限额消耗", dataIndex: "waitingPeriod" }, // { title: "限额消耗", dataIndex: "waitingPeriod" },
{ title: "等待期", dataIndex: "waitingPeriod", width: 120 }, { title: "等待期", dataIndex: "waitingPeriod", width: 120 },
{ title: "更新日期", dataIndex: "modifierDate", width: 180}, { title: "更新日期", dataIndex: "modifierDate", width: 180},
{ title: "备注", dataIndex: "remarks", width: 180 }, { title: "备注", dataIndex: "remarks" },
{ {
title: "操作", title: "操作",
key: "operation", key: "operation",
width: "120px", width: "150px",
fixed: "right", fixed: "right",
scopedSlots: { customRender: "operation" }, scopedSlots: { customRender: "operation" },
}, },
...@@ -219,16 +200,16 @@ export default { ...@@ -219,16 +200,16 @@ export default {
planCode: undefined, planCode: undefined,
}, },
searchForm: {}, searchForm: {},
detailForm: {}, editForm: {
editForm: {}, isEffective: '',
hospitalRestrictions: ''
},
planData: [], planData: [],
companyCode: [], companyCode: [],
corpCode: [], corpCode: [],
planCode: [], planCode: [],
statusCode: [ areaCode: [],
{code: "1", name: "有效"}, hosCode: [],
{code: "2", name: "无效"}
],
queryForm: {}, queryForm: {},
pager: { pager: {
pageNum: 1, pageNum: 1,
...@@ -246,14 +227,17 @@ export default { ...@@ -246,14 +227,17 @@ export default {
// shortName: [{ required: true, message: "请输入保险计划简称" }], // shortName: [{ required: true, message: "请输入保险计划简称" }],
effectiveDate: [{ required: true, message: "请选择生效日期" }], effectiveDate: [{ required: true, message: "请选择生效日期" }],
terminationDate: [{ required: true, message: "请选择失效日期" }], terminationDate: [{ required: true, message: "请选择失效日期" }],
hospitalRestrictions: [{ required: true, message: "请选择医院限制" }]
}, },
}; };
}, },
mounted() { mounted() {
if (this.$route.query && this.$route.query.id) { if (this.$route.query && this.$route.query.planCode) {
this.detailForm = this.$route.query; this.form = this.$route.query;
this.$nextTick(this.handlerSearch)
} }
this._getPayorCode(); this._getPayorCode();
this.initCodeData();
}, },
methods: { methods: {
handlerSearch() { handlerSearch() {
...@@ -326,8 +310,24 @@ export default { ...@@ -326,8 +310,24 @@ export default {
this._editPlanData(this.editForm); this._editPlanData(this.editForm);
}); });
}, },
initCodeData() {
const params = {
areaCode: {
modid: "CI",
refgrp: "POLICY_DIRECT_AREA"
},
hosCode: {
modid: "CI",
refgrp: "HOSPITAL_RESTRICTIONS"
},
}
for (let i in params) {
this._getRefcdByRefgrp(params[i], i)
}
},
_editPlanData(data) { _editPlanData(data) {
this.$apis.EDITPLANDATE(data).then((res) => { const fn = data.id ? 'EDITPLANDATA' : 'ADDTPLANDATA'
this.$apis[fn](data).then((res) => {
if (res.returnCode === "0000") { if (res.returnCode === "0000") {
this._getPlanList(); this._getPlanList();
this.$message.success(res.returnMsg || "操作成功"); this.$message.success(res.returnMsg || "操作成功");
...@@ -368,6 +368,14 @@ export default { ...@@ -368,6 +368,14 @@ export default {
this.total = (res.content && res.content.total) || 0; this.total = (res.content && res.content.total) || 0;
}); });
}, },
_getRefcdByRefgrp(data, prop) {
if (this[prop] && this[prop].length) {
return true
}
this.$apis.GETREFCDBYREFGRP(data).then((res) => {
this[prop] = res.content || [];
});
},
}, },
}; };
</script> </script>
......
...@@ -3,17 +3,17 @@ ...@@ -3,17 +3,17 @@
<a-collapse v-model="activeKeys" expand-icon-position="right" :bordered="false"> <a-collapse v-model="activeKeys" expand-icon-position="right" :bordered="false">
<a-collapse-panel key="1" header="保单信息"> <a-collapse-panel key="1" header="保单信息">
<a-row class="policy_line" :gutter="10"> <a-row class="policy_line" :gutter="10">
<a-col :span="6">保险卡号:</a-col> <a-col :span="6">保险卡号:{{policyData.cardNo}}</a-col>
<a-col :span="6">保单号码:</a-col> <a-col :span="6">保单号码:{{policyData.policyNo}}</a-col>
<a-col :span="6">保险计划:</a-col> <a-col :span="6">保险计划:{{policyData.planName}}</a-col>
<a-col :span="6">客户公司名称:</a-col> <a-col :span="6">客户公司名称:{{policyData.corpName}}</a-col>
<a-col :span="6">首次入保日期:</a-col> <a-col :span="6">首次入保日期:{{dateFormat(policyData.firstEnrollmentTime)}}</a-col>
<a-col :span="6">保单生效日期:</a-col> <a-col :span="6">保单生效日期:{{dateFormat(policyData.startDate)}}</a-col>
<a-col :span="6">保单终止日期:</a-col> <a-col :span="6">保单终止日期:{{dateFormat(policyData.endDate)}}</a-col>
<a-col :span="6">是否承担既往症:</a-col> <a-col :span="6">是否承担既往症:{{policyData.isUndertakeAnamnesis}}</a-col>
<a-col :span="6">保单直付区域:</a-col> <a-col :span="6">保单直付区域:{{policyData.policyDircetArea}}</a-col>
<a-col :span="6">剩余等待期天数</a-col> <a-col :span="6" v-if="policyData.waitingPeriod === 'Y'">剩余等待期天数{{policyData.waitingPeriodTime}}</a-col>
<a-col :span="6">其他备注</a-col> <a-col :span="6">其他备注{{policyData.remark}}</a-col>
</a-row> </a-row>
</a-collapse-panel> </a-collapse-panel>
</a-collapse> </a-collapse>
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
</template> </template>
<script> <script>
import moment from 'moment'
export default { export default {
props: { props: {
policyData: { policyData: {
...@@ -32,6 +34,11 @@ export default { ...@@ -32,6 +34,11 @@ export default {
activeKeys: "1", activeKeys: "1",
}; };
}, },
methods: {
dateFormat(val) {
return val && moment(val).format('YYYY-MM-DD')
}
}
}; };
</script> </script>
......
...@@ -26,13 +26,13 @@ ...@@ -26,13 +26,13 @@
</div> </div>
</div> --> </div> -->
<a-collapse v-model="activeKeys" expand-icon-position="right" :bordered="false"> <a-collapse v-model="activeKeys" expand-icon-position="right" :bordered="false">
<a-collapse-panel v-for="item in benefitData" :key="item.benefitCode" :header="item.benefitCode"> <a-collapse-panel v-for="item in benefitData" :key="item.benefitCode" :header="item.benefitCode + ' ' +item.benefitDesc">
<div> <div>
<a-row class="policy_line" :gutter="10"> <a-row class="policy_line" :gutter="10">
<a-col :span="6">事先授权:</a-col> <a-col :span="6">事先授权:</a-col>
<a-col :span="6">等待期:{{ item.waitingPeriod }}</a-col> <a-col :span="6">等待期:{{ item.waitingPeriod }}</a-col>
<a-col :span="6">年限额:</a-col> <!-- <a-col :span="6">年限额:</a-col>
<a-col :span="6">赔付比例:</a-col> <a-col :span="6">赔付比例:</a-col> -->
</a-row> </a-row>
</div> </div>
<condition :formData="{ ...item, conditionType: '01' }" /> <condition :formData="{ ...item, conditionType: '01' }" />
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div> <div>
<a-table <a-table
class="mar-bottom10" class="mar-bottom10"
size="small"
:columns="columns" :columns="columns"
:locale="{ emptyText: 'No Data' }" :locale="{ emptyText: 'No Data' }"
:data-source="conditionList" :data-source="conditionList"
...@@ -20,8 +21,8 @@ export default { ...@@ -20,8 +21,8 @@ export default {
}, },
data() { data() {
const columns = [ const columns = [
{ title: "频率", dataIndex: "frequencyCode" }, { title: "条件类型", dataIndex: "frequencyDesc" },
{ title: "条件", dataIndex: "limitCode" }, { title: "条件内容", dataIndex: "limitDesc" },
{ title: "最小值", dataIndex: "minValue" }, { title: "最小值", dataIndex: "minValue" },
{ title: "最大值", dataIndex: "maxValue" }, { title: "最大值", dataIndex: "maxValue" },
{ title: "家庭最大值", dataIndex: "familyMaxValue" }, { title: "家庭最大值", dataIndex: "familyMaxValue" },
......
...@@ -12,24 +12,20 @@ ...@@ -12,24 +12,20 @@
<!-- <a-button type="primary" @click="addNew"> <!-- <a-button type="primary" @click="addNew">
<Icon name="ssiadd" :size="14" />新增 <Icon name="ssiadd" :size="14" />新增
</a-button> --> </a-button> -->
<a-button type="primary"> <!-- <a-button type="primary">
<Icon name="ssidownload" :size="14" />保存 <Icon name="ssidownload" :size="14" />保存
</a-button> </a-button> -->
<a-button type="primary" @click="totEditWelfare">编辑福利信息</a-button>
</div> </div>
</div> </div>
<a-collapse v-model="activeKeys" expand-icon-position="right" :bordered="false"> <a-collapse v-model="activeKeys" expand-icon-position="right" :bordered="false">
<a-collapse-panel v-for="item in coverageData" :key="item.coverageCode" :header="item.coverageCode"> <a-collapse-panel v-for="item in coverageData" :key="item.coverageCode" :header="item.coverageDesc">
<div> <div>
<a-row class="policy_line" :gutter="10"> <a-row class="policy_line" :gutter="10">
<a-col :span="6">是否开放直付:{{ item.isDirect }}</a-col> <a-col :span="6">是否开放直付:{{ item.isDirect }}</a-col>
<a-col :span="6">直付刷卡上限:</a-col> <a-col :span="6">直付刷卡上限:</a-col>
<a-col :span="6">事先授权:</a-col> <a-col :span="6">事先授权:</a-col>
<a-col :span="6">等待期:{{ item.waitingPeriod }}</a-col> <a-col :span="6">等待期:{{ item.waitingPeriod }}</a-col>
</a-row>
<a-row class="policy_line" :gutter="10">
<a-col :span="6">年限额:</a-col>
<a-col :span="6">限次:</a-col>
<a-col :span="6">免赔额:</a-col>
<a-col :span="6">赔付比例:</a-col> <a-col :span="6">赔付比例:</a-col>
</a-row> </a-row>
</div> </div>
...@@ -122,6 +118,17 @@ export default { ...@@ -122,6 +118,17 @@ export default {
.indexOf(input.toLowerCase()) >= 0 .indexOf(input.toLowerCase()) >= 0
); );
}, },
// 编辑福利信息
totEditWelfare() {
this.$router.push({
name: 'welfareEdit',
query: {
payorCode: this.formData.payorCode,
corpCode: this.formData.corpCode,
planCode: this.formData.planCode,
}
})
},
_getSpecialtyCode() { _getSpecialtyCode() {
this.$apis.GETSPECIALTYLIST().then((res) => { this.$apis.GETSPECIALTYLIST().then((res) => {
this.welfareType = res.content || []; this.welfareType = res.content || [];
...@@ -157,9 +164,9 @@ export default { ...@@ -157,9 +164,9 @@ export default {
.policy_line { .policy_line {
.pa(0, 30, 0, 30); .pa(0, 30, 0, 30);
line-height: 60px; line-height: 60px;
// &:not(:last-child) { .ant-col{
border-bottom: 1px solid #f8fafb; border-bottom: 1px solid #f8fafb;
// } }
} }
.classify { .classify {
.pa(10, 20, 10, 20); .pa(10, 20, 10, 20);
......
...@@ -119,8 +119,8 @@ export default { ...@@ -119,8 +119,8 @@ export default {
coverageForm: {}, coverageForm: {},
customList: [], customList: [],
companyCode: [], companyCode: [],
corpCode: [], // corpCode: [],
planCode: [], // planCode: [],
queryForm: {}, queryForm: {},
cusPager: { cusPager: {
pageNum: 1, pageNum: 1,
...@@ -179,8 +179,8 @@ export default { ...@@ -179,8 +179,8 @@ export default {
this.customList = []; this.customList = [];
this.coverageForm = res.content || {}; this.coverageForm = res.content || {};
this.isShowCoverageData = true; this.isShowCoverageData = true;
this._getCorporateCode(this.coverageForm.payorId); // this._getCorporateCode(this.coverageForm.payorId);
this._getPlanCode(this.coverageForm.corpId); // this._getPlanCode(this.coverageForm.corpId);
} }
// this.dataList = (res.content && res.content.list) || []; // this.dataList = (res.content && res.content.list) || [];
// this.total = (res.content && res.content.total) || 0; // this.total = (res.content && res.content.total) || 0;
......
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