Commit a9c22865 authored by 吴婷慧's avatar 吴婷慧

客户信息模块调整,新增打印、删除接口

parent c485b1d7
...@@ -7,5 +7,5 @@ export default { ...@@ -7,5 +7,5 @@ export default {
uploadImg: "/common/upload", uploadImg: "/common/upload",
specialtyList: "/backstage/auth/specialtyList", specialtyList: "/backstage/auth/specialtyList",
coverageCode: "/backstage/auth/coverageMasterList", coverageCode: "/backstage/auth/coverageMasterList",
getRefcdByRefgrp: "/common/getRefcdByRefgrp", //获取快递列表 getRefcdByRefgrp: "/common/getRefcdByRefgrp", // 公共获取码表接口
}; };
// 客户管理api // 客户管理api
export default { export default {
getCustomerList: "/backstage/auth/patientList", getCustomerList: "/backstage/auth/patientList", // 获取用户信息列表
updateCustomList: "/backstage/auth/updatePatientPolicy", updateCustomList: "/backstage/auth/updatePatientPolicy", // 修改用户信息
createCustomer: "/backstage/auth/createPatient", createCustomer: "/backstage/auth/createPatient", // 新建用户信息
customerDetail: "/backstage/auth/patientDetail", customerDetail: "/backstage/auth/patientDetail", // 获取用户详细信息
createClaimPdf: "/backstage/auth/createClaimPdf", // 获取用户理赔申请书
deleteCustom: "/backstage/auth/patientDelete" // 删除客户
}; };
...@@ -41,7 +41,7 @@ const GETCOVERAGECODE = (data) => { ...@@ -41,7 +41,7 @@ const GETCOVERAGECODE = (data) => {
return req.post(apis.coverageCode, data); return req.post(apis.coverageCode, data);
}; };
// 获取快递列表 // 公共获取码表列表
const GETREFCDBYREFGRP = (data) => { const GETREFCDBYREFGRP = (data) => {
return req.post(apis.getRefcdByRefgrp, data); return req.post(apis.getRefcdByRefgrp, data);
}; };
......
...@@ -21,10 +21,21 @@ const UPDATECUSTOMDATA = function (data) { ...@@ -21,10 +21,21 @@ const UPDATECUSTOMDATA = function (data) {
const CREATENEWCUSTOMER = function (data) { const CREATENEWCUSTOMER = function (data) {
return req.post(apis.createCustomer, data); return req.post(apis.createCustomer, data);
}; };
// 删除客户
const DELETECUSTOM = function (data) {
return req.post(apis.deleteCustom, data);
};
// 获取用户理赔申请书
const CREATECUSTOMERCLAIMPGF = function (data) {
return req.post(apis.createClaimPdf, data, { responseType: "blob" });
};
export default { export default {
GETCUSTOMERLIST, GETCUSTOMERLIST,
GETCUSTOMERDETAIL, GETCUSTOMERDETAIL,
UPDATECUSTOMDATA, UPDATECUSTOMDATA,
CREATENEWCUSTOMER, CREATENEWCUSTOMER,
DELETECUSTOM,
CREATECUSTOMERCLAIMPGF
}; };
...@@ -60,6 +60,11 @@ service.interceptors.response.use( ...@@ -60,6 +60,11 @@ service.interceptors.response.use(
const PUBSTATE = code.PUB_ERR(returnCode, returnMsg, response.config); const PUBSTATE = code.PUB_ERR(returnCode, returnMsg, response.config);
// 请求成功,但逻辑或者业务有错,返回具体数据,根据业务决定是否要提示 有token失效全局异常不返回 // 请求成功,但逻辑或者业务有错,返回具体数据,根据业务决定是否要提示 有token失效全局异常不返回
if (TOKENSTATE && PUBSTATE) { if (TOKENSTATE && PUBSTATE) {
const { config } = response
if (config && config.responseType === 'blob') {
resolve(response)
return true
}
resolve(response.data); resolve(response.data);
} }
} }
......
...@@ -18,7 +18,7 @@ const TOKEN_INVLIDE_TO_LOGIN = (code) => { ...@@ -18,7 +18,7 @@ const TOKEN_INVLIDE_TO_LOGIN = (code) => {
route.replace({ route.replace({
path: "/login", path: "/login",
query: { query: {
refirect: route.currentRoute.fullPath, redirect: route.currentRoute.fullPath,
}, },
}); });
return false; return false;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div <div
class="icon-class" class="icon-class"
:style="`font-size:${size}px`" :style="`font-size:${size}px`"
@click.stop="clickEvent" @click="clickEvent"
> >
<svg class="icon" aria-hidden="true"> <svg class="icon" aria-hidden="true">
<use :xlink:href="iconName" /> <use :xlink:href="iconName" />
......
// 统一暴露工具,供其他地方调用 // 统一暴露工具,供其他地方调用
// 数组转对象 // 数组转对象
function arrToObj(arr) { export function arrToObj(arr) {
// 参数必须是一个数组 // 参数必须是一个数组
if (!Array.isArray(arr)) { if (!Array.isArray(arr)) {
throw new Error("type err: arr 必须是一个数组"); throw new Error("type err: arr 必须是一个数组");
...@@ -13,4 +13,62 @@ function arrToObj(arr) { ...@@ -13,4 +13,62 @@ function arrToObj(arr) {
}); });
return obj; return obj;
} }
export default { arrToObj };
/*
* 文件流转换为url
* @params file 文件流
* @return url
*/
export function getObjectURL(file) {
console.log(file)
let url = null;
if (window.createObjectURL != undefined) { // basic
url = window.createObjectURL(file);
} else if (window.webkitURL != undefined) { // webkit or chrome
url = window.webkitURL.createObjectURL(file);
} else if (window.URL != undefined) { // mozilla(firefox)
url = window.URL.createObjectURL(file);
}
return url;
}
/**
* @description 文件下载(兼容IE)
* @param {Object} response options 接口响应的数据 包括文件流及保文信息
* @param {String} file_name 文件名称
* @returns {undefined} undefined
*/
export function downloadFile(response, file_name = "ExportFile") {
const fileType = response.headers["content-type"] || "application/pdf";
const disposition = response.headers["content-disposition"]
if (disposition) {
file_name = disposition.split("filename=")[1]
}
const blob = new Blob([response.data], { type: `${fileType};charset=utf-8` });
const ie = navigator.userAgent.match(/MSIE\s([\d.]+)/),
ie11 = navigator.userAgent.match(/Trident\/7.0/) && navigator.userAgent.match(/rv:11/),
ieEDGE = navigator.userAgent.match(/Edge/g),
ieVer = ie ? ie[1] : ie11 ? 11 : ieEDGE ? 12 : -1;
if (ie && ieVer < 10) {
this.message.error('No blobs on IE<10');
return;
}
if (ieVer > -1) {
window.navigator.msSaveBlob(blob, file_name);
return {}
} else {
const url = window.URL.createObjectURL(blob);
return {
url,
file_name
}
// let link = document.createElement('a');
// link.setAttribute('href', url);
// link.setAttribute('download', file_name);
// document.body.appendChild(link);
// link.click();
// document.body.removeChild(link);
}
}
\ No newline at end of file
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
<script> <script>
import { title } from "@/settings"; import { title } from "@/settings";
import { downloadFile } from '@/utils/index'
export default { export default {
data() { data() {
return { return {
...@@ -75,7 +76,7 @@ export default { ...@@ -75,7 +76,7 @@ export default {
}, },
_getVerifyImg() { _getVerifyImg() {
this.$apis.GETVERIFYIMG().then((res) => { this.$apis.GETVERIFYIMG().then((res) => {
const url = window.URL.createObjectURL(res); const { url } = downloadFile(res);
this.verifyImg = url || ""; this.verifyImg = url || "";
}); });
}, },
...@@ -145,6 +146,8 @@ export default { ...@@ -145,6 +146,8 @@ export default {
.mg-t(13); .mg-t(13);
} }
.verify-img { .verify-img {
.w(110px);
height: 100%;
cursor: pointer; cursor: pointer;
} }
} }
......
This diff is collapsed.
...@@ -5,29 +5,29 @@ ...@@ -5,29 +5,29 @@
<a-row :gutter="30"> <a-row :gutter="30">
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="病历号码"> <a-form-model-item label="病历号码">
<a-input v-model="form.mrnNo" placeholder="请输入病历号"></a-input> <a-input v-model="form.mrnNo" placeholder="请输入病历号" allow-clear></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="客户姓名"> <a-form-model-item label="客户姓名">
<a-input v-model="form.patientName" placeholder="请输入客户姓名"></a-input> <a-input v-model="form.patientName" placeholder="请输入客户姓名" allow-clear></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="5" :lg="6" :sm="12"> <a-col :xl="5" :lg="6" :sm="12">
<a-form-model-item label="出生日期"> <a-form-model-item label="出生日期">
<a-date-picker v-model="form.birthday" placeholder="请选择出生日期"></a-date-picker> <a-date-picker v-model="form.birthday" placeholder="请选择出生日期" value-format="YYYY-MM-DD 00:00:00" allow-clear></a-date-picker>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="5" :lg="6" :sm="12"> <a-col :xl="5" :lg="6" :sm="12">
<a-form-model-item label="保险公司"> <a-form-model-item label="保险公司">
<a-select v-model="form.payorId" placeholder="请选择保险公司"> <a-select v-model="form.payorId" placeholder="请选择保险公司" allow-clear>
<a-select-option v-for="item in companyCode" :key="item.corpCode" :value="item.id">{{ item.longName }}</a-select-option> <a-select-option v-for="item in companyCode" :key="item.corpCode" :value="item.id">{{ item.longName }}</a-select-option>
</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 :xl="6" :lg="6" :sm="12">
<a-form-model-item label="保单号码"> <a-form-model-item label="保单号码">
<a-input v-model="form.policyNo" placeholder="请输入保单号码"></a-input> <a-input v-model="form.policyNo" placeholder="请输入保单号码" allow-clear></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="18" :lg="18" :sm="12" class="none-label"> <a-col :xl="18" :lg="18" :sm="12" class="none-label">
...@@ -52,10 +52,10 @@ ...@@ -52,10 +52,10 @@
> >
<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">打印理赔申请书</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"> <a-popconfirm title="你确定要删除吗?" ok-text="确定" cancel-text="取消" @confirm="deleteData(record)">
<a-button type="link" class="danger">删除</a-button> <a-button type="link" class="danger" @click.stop>删除</a-button>
</a-popconfirm> </a-popconfirm>
</template> </template>
</a-table> </a-table>
...@@ -66,32 +66,24 @@ ...@@ -66,32 +66,24 @@
<script> <script>
import BurtPagination from "@/components/CUSTOMER/pagation"; import BurtPagination from "@/components/CUSTOMER/pagation";
import {downloadFile} from '@/utils/index'
import moment from 'moment'
export default { export default {
data() { data() {
const dateFormat = (val) => {
return val && moment(val).format('YYYY-MM-DD')
}
const columns = [ const columns = [
{ { title: "病历号", dataIndex: "mrnNo", width: 180, },
title: "病历号", { title: "客户姓名", dataIndex: "patientName", width: 120,},
dataIndex: "mrnNo", { title: "出生日期", dataIndex: "birthday", width: 170, customRender: dateFormat},
width: 180,
},
{
title: "客户姓名",
dataIndex: "patientName",
width: 120,
},
{ title: "出生日期", dataIndex: "birthday", width: 180 },
{ title: "性别", dataIndex: "sex", width: 80 }, { title: "性别", dataIndex: "sex", width: 80 },
{ 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", width: 170, customRender: dateFormat },
{ title: "保险终止日期", dataIndex: "endDate", width: 180 }, { 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" },
},
]; ];
return { return {
columns, columns,
...@@ -155,8 +147,29 @@ export default { ...@@ -155,8 +147,29 @@ export default {
this._getCustomerList(); this._getCustomerList();
}); });
}, },
deleteData() { printClaimPdf(data) {
this.$message.success("删除成功"); this.$apis.CREATECUSTOMERCLAIMPGF(data).then(res => {
const {url, file_name} = downloadFile(res);
console.log(url, file_name)
let link = document.createElement('a');
link.setAttribute('href', url);
// link.setAttribute('download', file_name);
link.setAttribute('target', "_blank");
link.setAttribute('alt', file_name);
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
})
},
deleteData(data) {
this.$apis.DELETECUSTOM({id: data.id}).then(res => {
if (res.returnCode === "0000") {
this.$message.success(res.returnMsg || "操作成功");
this._getCustomerList();
} else {
this.$message.error(res.returnMsg || "操作失败");
}
})
}, },
// 新建客户信息 // 新建客户信息
addNewCustom() { addNewCustom() {
......
...@@ -74,39 +74,85 @@ ...@@ -74,39 +74,85 @@
title="计划管理" title="计划管理"
v-model="isPlanEditShow" v-model="isPlanEditShow"
:footer="null" :footer="null"
width="50%"
@cancel="isPlanEditShow = false" @cancel="isPlanEditShow = false"
> >
<a-form-model ref="editForm" layout="vertical" :model="editForm" :rules="editRule"> <a-form-model ref="editForm" layout="vertical" :model="editForm" :rules="editRule">
<!-- <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>
</a-form-model-item> </a-form-model-item>
<a-col :md="12">
<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-form-model-item label="保险计划" prop="planCode"> <a-row :gutter="20">
<a-input v-model="editForm.planCode"></a-input> <a-col :md="12">
</a-form-model-item> <a-form-model-item label="保险计划" prop="planCode">
<a-form-model-item label="计划全称" prop="longName"> <a-input v-model="editForm.planCode"></a-input>
<a-input v-model="editForm.longName"></a-input> </a-form-model-item>
</a-form-model-item> </a-col>
<a-form-model-item label="计划简称" prop="shortName"> <a-col :md="12">
<a-input v-model="editForm.shortName"></a-input> <a-form-model-item label="英文名称" prop="englishName">
</a-form-model-item> <a-input v-model="editForm.englishName"></a-input>
<a-form-model-item label="英文名称" prop="englishName"> </a-form-model-item>
<a-input v-model="editForm.englishName"></a-input> </a-col>
</a-form-model-item> <a-col :md="12">
<a-form-model-item label="生效日期" prop="effectiveDate"> <a-form-model-item label="计划全称" prop="longName">
<a-date-picker v-model="editForm.effectiveDate" placeholder="请选择生效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> <a-input v-model="editForm.longName"></a-input>
</a-form-model-item> </a-form-model-item>
<a-form-model-item label="失效日期" prop="terminationDate"> </a-col>
<a-date-picker v-model="editForm.terminationDate" placeholder="请选择失效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> <a-col :md="12">
</a-form-model-item> <a-form-model-item label="计划简称" prop="shortName">
<a-form-model-item label="等待期(天)" prop="waitingPeriod"> <a-input v-model="editForm.shortName"></a-input>
<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="remarks"> <a-col :md="12">
<a-textarea v-model="editForm.remarks" :autoSize="{ minRows: 2, maxRows: 5 }"></a-textarea> <a-form-model-item label="公司名称" prop="corpName">
</a-form-model-item> <a-input v-model="editForm.corpName"></a-input>
</a-form-model-item>
</a-col>
<a-col :md="12">
<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-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="失效日期" prop="terminationDate">
<a-date-picker v-model="editForm.terminationDate" placeholder="请选择失效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker>
</a-form-model-item>
</a-col>
<a-col :md="12">
<a-form-model-item label="等待期(天)" prop="waitingPeriod">
<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="地区限制" 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 :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 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 :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-textarea v-model="editForm.remarks" :autoSize="{ minRows: 2, maxRows: 5 }"></a-textarea>
</a-form-model-item>
</a-col>
</a-row>
<a-form-model-item class="text-r"> <a-form-model-item class="text-r">
<a-button type="primary" @click="savePlanData"> <a-button type="primary" @click="savePlanData">
<Icon name="ssiadd" :size="14" />保存 <Icon name="ssiadd" :size="14" />保存
...@@ -122,6 +168,7 @@ ...@@ -122,6 +168,7 @@
import BurtPagination from "@/components/CUSTOMER/pagation"; import BurtPagination from "@/components/CUSTOMER/pagation";
import condition from "./components/condition"; import condition from "./components/condition";
import coverages from "./components/coverages"; import coverages from "./components/coverages";
import moment from 'moment'
export default { export default {
components: { components: {
BurtPagination, BurtPagination,
...@@ -129,19 +176,33 @@ export default { ...@@ -129,19 +176,33 @@ export default {
coverages, coverages,
}, },
data() { data() {
const dateFormat = (val) => {
return val && moment(val).format('YYYY-MM-DD')
}
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: 180 },
{ title: "起始日期", dataIndex: "effectiveDate", width: 180 }, { title: "起始日期", dataIndex: "effectiveDate", width: 180, customRender: dateFormat },
{ title: "终止日期", dataIndex: "terminationDate", width: 180 }, { title: "终止日期", dataIndex: "terminationDate", width: 180, customRender: dateFormat },
{ title: "计划状态", dataIndex: "status", width: 180 }, { title: "计划状态", dataIndex: "status", width: 180, customRender: (val) => {
{ title: "等待期", dataIndex: "waitingPeriod" }, for(let i = 0; i < this.statusCode.length; i ++) {
{ title: "备注", dataIndex: "remarks" }, if (val === this.statusCode[i].code) {
return this.statusCode[i].name
}
}
return val;
} },
// { title: "医院限制", dataIndex: "status", width: 180 },
// { title: "计划限额", dataIndex: "status", width: 180 },
// { title: "限额消耗", dataIndex: "waitingPeriod" },
{ title: "等待期", dataIndex: "waitingPeriod", width: 120 },
{ title: "更新日期", dataIndex: "modifierDate", width: 180},
{ title: "备注", dataIndex: "remarks", width: 180 },
{ {
title: "操作", title: "操作",
key: "operation", key: "operation",
width: "175px", width: "120px",
fixed: "right", fixed: "right",
scopedSlots: { customRender: "operation" }, scopedSlots: { customRender: "operation" },
}, },
...@@ -164,6 +225,10 @@ export default { ...@@ -164,6 +225,10 @@ export default {
companyCode: [], companyCode: [],
corpCode: [], corpCode: [],
planCode: [], planCode: [],
statusCode: [
{code: "1", name: "有效"},
{code: "2", name: "无效"}
],
queryForm: {}, queryForm: {},
pager: { pager: {
pageNum: 1, pageNum: 1,
...@@ -178,7 +243,7 @@ export default { ...@@ -178,7 +243,7 @@ export default {
editRule: { editRule: {
planCode: [{ required: true, message: "请输入保险计划内容" }], planCode: [{ required: true, message: "请输入保险计划内容" }],
longName: [{ required: true, message: "请输入保险计划全称" }], longName: [{ required: true, message: "请输入保险计划全称" }],
shortName: [{ required: true, message: "请输入保险计划简称" }], // shortName: [{ required: true, message: "请输入保险计划简称" }],
effectiveDate: [{ required: true, message: "请选择生效日期" }], effectiveDate: [{ required: true, message: "请选择生效日期" }],
terminationDate: [{ required: true, message: "请选择失效日期" }], terminationDate: [{ required: true, message: "请选择失效日期" }],
}, },
......
...@@ -3,25 +3,17 @@ ...@@ -3,25 +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">主被保险人:</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-col :span="6">保险计划:</a-col>
<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-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-col :span="6">剩余等待期天数</a-col>
<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 class="policy_line" :gutter="10">
<a-col :span="6">公司:</a-col>
<a-col :span="6">会员标识:</a-col>
</a-row> </a-row>
</a-collapse-panel> </a-collapse-panel>
</a-collapse> </a-collapse>
...@@ -47,8 +39,8 @@ export default { ...@@ -47,8 +39,8 @@ 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;
// } }
} }
</style> </style>
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
<a-form-model ref="form" layout="vertical" :model="form"> <a-form-model ref="form" layout="vertical" :model="form">
<a-row :gutter="30"> <a-row :gutter="30">
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="病历号码" prop="mrnNo">
<a-input v-model="form.mrnNo" placeholder="请输入客户号码"></a-input>
</a-form-model-item>
</a-col>
<a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="客户姓名" prop="patientName"> <a-form-model-item label="客户姓名" prop="patientName">
<a-input v-model="form.patientName" placeholder="请输入客户姓名"></a-input> <a-input v-model="form.patientName" placeholder="请输入客户姓名"></a-input>
</a-form-model-item> </a-form-model-item>
...@@ -14,79 +19,35 @@ ...@@ -14,79 +19,35 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="4" :lg="6" :sm="12"> <a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="保险公司" prop="payorId"> <a-form-model-item label="性别" prop="sex">
<a-select v-model="form.payorId" placeholder="请选择保险公司" show-search allow-clear @change="payorChange" @filterOption="filterCode"> <a-radio-group v-model="form.sex" :default-value="form.sex" button-style="solid">
<a-select-option v-for="item in companyCode" :key="item.id" :value="item.id"> <a-radio-button value="M"></a-radio-button>
{{ item.longName }} <a-radio-button class="mar-left10" value="F"></a-radio-button>
</a-select-option> </a-radio-group>
</a-select>
</a-form-model-item>
</a-col>
<a-col :xl="7" :lg="6" :sm="12">
<a-form-model-item label="客户公司名称" prop="corpName">
<a-select v-model="form.corpName" placeholder="请选择客户公司名称" show-search allow-clear @filterOption="filterCode" @change="corpChange">
<a-select-option v-for="item in corpCode" :key="item.id" :value="item.id + '$_' + item.longName">
{{ item.longName }}
</a-select-option>
</a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="保单卡号" prop="policyNo"> <a-form-model-item label="证件号码" prop="idNo">
<a-input v-model="form.policyNo" allow-clear placeholder="请输入保单卡号"></a-input> <a-input v-model="form.idNo" allow-clear placeholder="请输入证件号码"></a-input>
</a-form-model-item>
</a-col>
<a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="首次入保时间" prop="firstEnrollmentTime">
<a-date-picker v-model="form.firstEnrollmentTime" placeholder="请选择首次入保时间" value-format="YYYY-MM-DD"></a-date-picker>
</a-form-model-item>
</a-col>
<a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="保单生效日期" prop="startDate">
<a-date-picker v-model="form.startDate" placeholder="请选择保单生效日期" value-format="YYYY-MM-DD"></a-date-picker>
</a-form-model-item>
</a-col>
<a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="保单终止日期" prop="endDate">
<a-date-picker v-model="form.endDate" placeholder="请选择保单终止日期" value-format="YYYY-MM-DD"></a-date-picker>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="保险计划" prop="planName"> <a-form-model-item label="保险公司" prop="payorId">
<a-select v-model="form.planName" placeholder="请选择保险计划" show-search allow-clear @filterOption="filterCode"> <a-select v-model="form.payorId" placeholder="请选择保险公司" show-search allow-clear @change="payorChange" @filterOption="filterCode">
<a-select-option v-for="item in planCode" :key="item.id" :vlaue="item.longName"> <a-select-option v-for="item in companyCode" :key="item.id" :value="item.id">
{{ item.longName }} {{ item.longName }}
</a-select-option> </a-select-option>
</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-form-model-item label="其他备注" prop="remark">
<a-input v-model="form.remark" allow-clear placeholder="请输入备注信息"></a-input>
</a-form-model-item>
</a-col>
<a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="等待期" prop="waitingPeriod">
<a-radio-group v-model="form.waitingPeriod" :default-value="form.waitingPeriod" button-style="solid">
<a-radio-button value="Y"></a-radio-button>
<a-radio-button class="mar-left10" value="N"></a-radio-button>
</a-radio-group>
</a-form-model-item>
</a-col>
<a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="等待期时间" prop="waitingPeriodTime">
<a-date-picker v-model="form.waitingPeriodTime" placeholder="请选择等待期时间" value-format="YYYY-MM-DD"></a-date-picker>
</a-form-model-item>
</a-col>
<a-col :xl="4" :lg="6" :sm="12"> <a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="是否承担既往症" prop="isUndertakeAnamnesis"> <a-form-model-item label="是否直付" prop="idType">
<a-radio-group v-model="form.isUndertakeAnamnesis" :default-value="form.isUndertakeAnamnesis" button-style="solid"> <a-select v-model="form.idType" placeholder="请选择保单直付区域" show-search allow-clear @filterOption="filterCode">
<a-radio-button value="Y"></a-radio-button> <a-select-option v-for="item in companyCode" :key="item.id" :value="item.id" :label="item.longName">{{ item.longName }}</a-select-option>
<a-radio-button class="mar-left10" value="N"></a-radio-button> </a-select>
</a-radio-group>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="18" :sm="12" class="none-label"> <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" />重置
...@@ -111,7 +72,7 @@ ...@@ -111,7 +72,7 @@
/> />
</div> </div>
<div v-if="isShowCoverageData"> <div v-if="isShowCoverageData">
<PolicyInfo :policyData="{}" /> <PolicyInfo :policyData="coverageForm" />
<coverages :formData="coverageForm"></coverages> <coverages :formData="coverageForm"></coverages>
</div> </div>
</div> </div>
...@@ -146,18 +107,13 @@ export default { ...@@ -146,18 +107,13 @@ export default {
isShowCoverageData: false, isShowCoverageData: false,
customColumns, customColumns,
form: { form: {
mrnNo: undefined,
patientName: undefined, patientName: undefined,
payorId: undefined,
corpName: undefined,
planName: undefined,
birthday: undefined, birthday: undefined,
policyNo: undefined, sex: undefined,
firstEnrollmentTime: undefined, idNo: undefined,
startDate: undefined, payorId: undefined,
endDate: undefined, idType: undefined
remark: undefined,
waitingPeriod: "N",
isUndertakeAnamnesis: "N",
}, },
detailForm: {}, detailForm: {},
coverageForm: {}, coverageForm: {},
......
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