Commit 37e60316 authored by yanglilong's avatar yanglilong

Merge branch 'yanglilong' into 'master'

Yanglilong

See merge request !2
parents 15073b38 9b2ab5f4
......@@ -10,5 +10,8 @@ module.exports = {
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"max-line-length": "off",
"object-property-newline": "off",
"prettier/prettier": "off"
},
};
......@@ -4,8 +4,8 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title><%= htmlWebpackPlugin.options.title %></title>
<!-- <link rel="icon" href="<%= BASE_URL %>favicon2.png" /> -->
<title><%= webpackConfig.name %></title>
<script
type="text/javascript"
src="//at.alicdn.com/t/font_3020450_c8k1zo91rcb.js"
......@@ -14,7 +14,7 @@
<body>
<noscript>
<strong
>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
>We're sorry but <%= webpackConfig.name %> doesn't work
properly without JavaScript enabled. Please enable it to
continue.</strong
>
......
// 收费查询api
export default {};
export default {
getChargeList: "/backstage/auth/receiptList",
getCompanyOptions: "/backstage/auth/payorListNopage",
getDoctorListNoPage:"/backstage/auth/doctorListNoPage",//医生列表
getChargeListDetail:"/backstage/auth/receiptDetailList",//账单明细
getReceiptPaymentDetail:"/backstage/auth/receiptPaymentDetail",//账单明细
};
......@@ -8,11 +8,13 @@ export default {
/*-------------保险公司-----------------*/
payorList: "/backstage/auth/payorList", //保险公司列表
createPayor: "/backstage/auth/createPayor", //新增保险公司
payorDetail: "/backstage/auth/payorDetail", //保险公司详情
payorUpdate: "/backstage/auth/payorUpdate", //保险公司修改
payorDelete: "/backstage/auth/payorDelete", //保险公司删除
/*-------------折扣信息-----------------*/
payorAddDiscount: "/backstage/auth/payorAddDiscount", //编辑折扣信息
payorAddDiscount: "/backstage/auth/payorAddDiscount", //新增折扣信息
payorAddDiscountBenefit: "/backstage/auth/payorAddDiscountBenefit", //编辑折扣信息
payorDiscountDelete: "/backstage/auth/payorDiscountDelete", //删除折扣信息
};
// 收费查询函数库
// import apis from "../apis_moudles/index";
// import req from "../request";
import apis from "../apis_moudles/";
import req from "../request";
// get charge list
const GETCHARGELIST = function (data) {
return req.post(apis.getChargeList, data);
};
//获取保险公司数据
const GETCOMPANYOPTIONS = function (data) {
return req.post(apis.getCompanyOptions, data);
};
// 获取医生列表
const GETDOCTORlISTNOPAGE= function (data) {
return req.post(apis.getDoctorListNoPage, data);
};
// get charge detail list
const GETCHARGELISTDETAIL = function (data) {
return req.post(apis.getChargeListDetail, data);
};
// 获取费用支付明细
const GETRECEIPTPAYMENTDETAIL= function (data) {
return req.post(apis.getReceiptPaymentDetail, data);
};
// 对象数组
export default {};
export default {
GETCHARGELIST,
GETCOMPANYOPTIONS,
GETDOCTORlISTNOPAGE,
GETCHARGELISTDETAIL,
GETRECEIPTPAYMENTDETAIL
};
......@@ -34,6 +34,11 @@ const PAYORLIST = (data) => {
return req.post(apis.payorList, data);
};
//新增保险公司
const CREATEPAY = (data) => {
return req.post(apis.createPayor, data);
};
//保险公司详情
const PAYORDETAIL = (data) => {
return req.post(apis.payorDetail, data);
......@@ -50,10 +55,14 @@ const PAYORDELETE = (data) => {
};
/*-------------折扣信息-----------------*/
//编辑折扣信息
//新增折扣信息
const PAYORADDDISCOUNT = (data) => {
return req.post(apis.payorAddDiscount, data);
};
//编辑折扣信息
const PAYORADDDISCOUNTBENEFIT = (data) => {
return req.post(apis.payorAddDiscountBenefit, data);
};
//删除折扣信息
const PAYORDISCOUNTDELETE = (data) => {
return req.post(apis.payorDiscountDelete, data);
......@@ -67,9 +76,11 @@ export default {
DOCTORCREATE,
DOCTORUPDATE,
PAYORLIST,
CREATEPAY,
PAYORDETAIL,
PAYORUPDATE,
PAYORDELETE,
PAYORADDDISCOUNT,
PAYORADDDISCOUNTBENEFIT,
PAYORDISCOUNTDELETE
};
......@@ -30,7 +30,7 @@ service.interceptors.request.use(
config.data = {};
}
}
console.log(config);
store.commit("common/loadingShow", true);
return config;
},
(error) => {
......@@ -39,13 +39,15 @@ service.interceptors.request.use(
} = error;
that.$msg.error({
message: status,
description: statusText,
description: statusText || "错误",
});
}
);
// response 拦截器
service.interceptors.response.use(
(response) => {
that.$msg.destroy(); //防止弹窗多次
store.commit("common/loadingShow", false);
return new Promise((resolve, reject) => {
if (response.status !== 200) {
// 请求失败
......@@ -70,6 +72,7 @@ service.interceptors.response.use(
});
},
(err) => {
store.commit("common/loadingShow", false);
// 失败
let message = "请求异常,请检测网络!";
if (err.response) {
......@@ -77,7 +80,7 @@ service.interceptors.response.use(
}
that.$msg.error({
message: message,
description: err,
description: "错误",
});
}
);
......
<template>
<div class="flex loading-container">
<div class="flex loading-container" v-show="loadingShow">
<a-spin />
<span class="txt">正在查询</span>
<span class="txt"></span>
</div>
</template>
<script>
export default{
name: 'Loading',
data(){
return {
isShow: false
}
import { mapGetters } from "vuex";
export default {
name: "Loading",
data() {
return {};
},
computed: {
...mapGetters("common", ["loadingShow"]),
}
}
};
</script>
<style lang="less" scoped>
.loading-container{
.loading-container {
width: 159px;
height: 44px;
background: #F8FAFF;
box-shadow: 0px 2px 4px 0px rgba(208,220,254,1);
background: #f8faff;
box-shadow: 0px 2px 4px 0px rgba(208, 220, 254, 1);
border-radius: 22px;
justify-content: center;
position: absolute;
......@@ -28,16 +31,16 @@ export default{
top: 22px;
left: 50%;
transform: translateX(-50%);
.txt{
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #252631;
line-height: 22px;
margin-left: 12px;
.txt {
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #252631;
line-height: 22px;
margin-left: 12px;
}
.ant-spin{
margin-top: 4px;
.ant-spin {
margin-top: 4px;
}
}
</style>
......@@ -12,9 +12,7 @@ export default {
computed: {},
watch: {},
methods: {},
mounted() {
},
mounted() {},
};
</script>
......
// 收费查询路由表,分包名称:charge-query
import Layout from '@/layout'
export default {
path: "/charge-query",
name: "ChargeQuery",
component: () => {
return import(/* webpackChunkName: "chargeQuery" */ "@/views/charge-query");
},
name: "chargeQuery",
component: Layout,
children: [
{
path:'',
name: "chargeQueryIndex",
component: () => import(/* webpackChunkName: "chargeQuery" */"@/views/charge-query/index.vue")
},
{
path: "detail",
name: "chargeQueryDetail",
component: () => import(/* webpackChunkName: "chargeQuery" */"@/views/charge-query/detail.vue")
}
]
};
......@@ -14,6 +14,11 @@ export default {
path: "company",
name: "InfoCompany",
component: () => import("@/views/info/company")
},
{
path: "companyDetail",
name: "InfoCompanyDetail",
component: () => import("@/views/info/companyDetail")
}
]
};
......@@ -37,9 +37,14 @@ export default [
},
{
icon: "ssisearch",
path: "/charge-query",
path: "charge-query",
title: "收费查询",
children: [],
children: [
{
path: "/charge-query",
title: "账单查询",
},
],
},
{
icon: "ssiorder",
......@@ -51,7 +56,7 @@ export default [
title: "EOB管理",
},
{
path: "/verification",
path: "/verification/addEOB",
title: "新建EOB数据",
},
{
......@@ -59,7 +64,7 @@ export default [
title: "回款管理",
},
{
path: "/verification",
path: "/verification/collectionAdd",
title: "新建回款管理",
},
],
......
......@@ -10,10 +10,20 @@ export default {
name: "VerificationIndex",
component: () => import("@/views/verification/index"),
},
{
path: "addEOB",
name: "VerificationAddEOB",
component: () => import("@/views/verification/addEOB"),
},
{
path: "collection",
name: "VerificationCollection",
component: () => import("@/views/verification/collection"),
},
{
path: "collectionAdd",
name: "VerificationCollectionAdd",
component: () => import("@/views/verification/collectionAdd"),
},
],
};
import NProgress from "nprogress";
import "nprogress/nprogress.css";
import store from "@/store/index";
import getPageTitle from "@/utils/get-page-title";
// 路由页面路由首位配置
export default (VueRouter, router) => {
......@@ -17,6 +18,7 @@ export default (VueRouter, router) => {
router.beforeEach((to, from, next) => {
console.log(store);
NProgress.start();
document.title = getPageTitle(to.fullPath);
next();
});
router.afterEach(() => {
......
module.exports = {
title: "商保管理系统",
}
......@@ -2,7 +2,15 @@ const state = {
token: "",
userInfo: {},
menuStack: [],
loadingShow: false,
};
const getters = {
loadingShow(state){
return state.loadingShow;
}
}
const actions = {
setMenuStack({ state }, data) {
console.log(data);
......@@ -10,6 +18,7 @@ const actions = {
state.token = JSON.stringify(data);
},
};
const mutations = {
// 设置token
setToken(state, token) {
......@@ -22,10 +31,14 @@ const mutations = {
setMenuStack(state, data) {
state.menuStack = data;
},
loadingShow(state, status) {
state.loadingShow = status;
},
};
export default {
namespaced: true,
state,
getters,
actions,
mutations,
};
import { title } from "@/settings";
import menu from "@/router/modules/menu";
let fullPathObj = {};
function tranPathObj(menus){
menus.forEach((item) => {
if (!item.children || item.children.length == 0) {
fullPathObj[item.path] = item.title;
} else {
return tranPathObj(item.children);
}
});
}
tranPathObj(menu);
export default function getPageTitle(fullPath) {
if (fullPathObj[fullPath]) {
return `${title} - ${fullPathObj[fullPath]}`
} else {
return title;
}
}
<template>
<div class="author">
<div class="content">
<h1 class="title">欢迎登录商保管理系统</h1>
<h1 class="title">欢迎登录{{title}}</h1>
<router-view></router-view>
</div>
</div>
</template>
<script>
export default {};
import { title } from "@/settings";
export default {
data(){
return {
title
}
}
};
</script>
<style lang="less" scoped>
......
<template>
<div class="login">
<h2 class="title">商保管理系统</h2>
<h2 class="title">{{title}}</h2>
<div class="content">
<p class="module-title">
<span>密码登录</span>
<router-link class="_forget" to="/forget" replace>忘记密码</router-link>
</p>
<a-form-model ref="form" :model="form" :rules="formRules">
<a-form-model
ref="form"
:model="form"
:rules="formRules"
@keyup.enter.native="handlerLogin"
>
<a-form-model-item prop="userName">
<a-input v-model="form.userName" placeholder="请输入用户名"></a-input>
</a-form-model-item>
......@@ -28,7 +33,7 @@
</a-input>
</a-form-model-item>
<a-form-model-item>
<a-button type="primary" block @click="handlerLogin">登录</a-button>
<a-button type="primary" block @click.stop="handlerLogin">登录</a-button>
</a-form-model-item>
</a-form-model>
</div>
......@@ -36,9 +41,11 @@
</template>
<script>
import { title } from "@/settings";
export default {
data() {
return {
title,
form: {
userName: process.env.VUE_APP_USER || "",
passWord: process.env.VUE_APP_PWD || "",
......
This diff is collapsed.
This diff is collapsed.
......@@ -61,9 +61,10 @@
allow-clear
@filterOption="filterCode"
@change="corpChange"
@search="corpSearch"
>
<a-select-option
v-for="item in corpCode"
v-for="item in comCorpCode"
:key="item.id"
:value="item.id + '$_' + item.longName"
>
......@@ -119,10 +120,11 @@
show-search
allow-clear
@filterOption="filterCode"
@search="codeSearch"
>
<a-select-option
v-for="item in planCode"
:key="item.id"
v-for="item in comPlanCode"
:key="item.id + '_' + item.longName"
:vlaue="item.longName"
>
{{ item.longName }}
......@@ -151,16 +153,6 @@
</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
allow-clear
v-model="form.waitingPeriodTime"
placeholder="请选择等待期时间"
value-format="YYYY-MM-DD 00:00:00"
></a-date-picker>
</a-form-model-item>
</a-col>
<a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="是否承担既往症" prop="isUndertakeAnamnesis">
<a-radio-group
......@@ -173,6 +165,8 @@
</a-radio-group>
</a-form-model-item>
</a-col>
</a-row>
<a-row>
<a-col :xl="9" :sm="12">
<a-form-model-item label="保卡复印件" prop="medCardCopeFiles">
<div class="upload-print">
......@@ -214,6 +208,8 @@
</div>
</a-form-model-item>
</a-col>
</a-row>
<a-row>
<a-col :xl="24" :lg="18" :sm="12" class="none-label clearfix">
<a-form-model-item label="button">
<a-button type="primary">
......@@ -257,7 +253,9 @@ export default {
previewImage: "",
companyCode: [],
corpCode: [],
comCorpCode: [],
planCode: [],
comPlanCode: [],
formRules: {},
};
},
......@@ -299,16 +297,56 @@ export default {
}
this._getCorporateCode(val);
},
corpSearch(val) {
if (!val) {
this.comCorpCode = this.corpCode;
return;
}
let noOne = this.corpCode.every((item) => {
return item.longName.indexOf(val) == -1;
});
if (noOne) {
this.comCorpCode = [
...this.corpCode,
{
longName: val,
id: "",
},
];
}
},
codeSearch(val) {
if (!val) {
this.comPlanCode = this.planCode;
return;
}
let noOne = this.planCode.every((item) => {
return item.longName.indexOf(val) == -1;
});
if (noOne) {
this.comPlanCode = [
...this.planCode,
{
longName: val,
id: "",
},
];
}
},
corpChange(val) {
// 因为接口要name 但是查计划要用id
this.form.planName = undefined;
if (!val) {
return false;
}
console.log(val);
this.form.corpName = val.split("$_")[1];
val = val.split("$_")[0];
this._getPlanCode(val);
if (val) {
this._getPlanCode(val);
} else {
this.planCode = [];
this.comPlanCode = [];
}
},
uploadMedImg(file) {
console.log(file);
......@@ -393,6 +431,7 @@ export default {
})
.then((res) => {
this.corpCode = res.content || [];
this.comCorpCode = res.content || [];
});
},
_getPlanCode(val) {
......@@ -403,6 +442,7 @@ export default {
})
.then((res) => {
this.planCode = res.content || [];
this.comPlanCode = res.content || [];
});
},
},
......
<template>
<div class="white_bg burt-container">
<div class="title-div">保险公司信息</div>
<a-table
:columns="columns"
:data-source="dataList"
:scroll="{ x: 'max-content' }"
:pagination="false"
>
<div
v-for="col in columns"
:slot="col.dataIndex"
slot-scope="text, record, index"
:key="col.dataIndex"
@click.stop="seeDetail(record)"
>
<a-table :columns="columns" :data-source="dataList" :scroll="{ x: 'max-content' }" :pagination="false">
<div v-for="col in columns" :slot="col.dataIndex" slot-scope="text, record, index" :key="col.dataIndex" >
<template v-if="col.dataIndex == 'operation'">
<a-button type="link" @click.stop="editEvt(record, index)">{{
record.edit ? "保存" : "修改"
}}</a-button>
<a-button type="link" class="success">新增</a-button>
<a-button type="link" class="danger" @click.stop="delRecord(index)"
>删除</a-button
>
<a-button type="link" @click.stop="editEvt(record)">修改</a-button>
<a-button type="link" @click.stop="detailEvt(record)">查看</a-button>
<a-button type="link" class="danger" @click.stop="delRecord(index)">删除</a-button>
</template>
<template v-else>
<a-input
v-if="record.edit"
placeholder="请输入"
v-model="record[col.dataIndex]"
/>
<span v-else>{{ text }}</span>
<span>{{ text }}</span>
</template>
</div>
</a-table>
<!--分页-->
<BurtPagination :pagination="pagination" @pageChange="getData" />
<!--折扣信息-->
<Discount />
<a-modal :title="editFormObj.id ? '编辑' : '新增'" :visible="dialogShow" width="60%" :maskClosable="false"
okText="确定" cancelText="取消"
@ok="handleEditOK"
@cancel="dialogShow = false">
<a-form-model layout="vertical" ref="editForm" :model="editFormObj" :rules="editRules">
<a-row :gutter="30">
<a-col :lg="12" :xs="24">
<a-form-model-item label="公司名称" prop="longName">
<a-input v-model.trim="editFormObj.longName" placeholder="保险公司名称" />
</a-form-model-item>
</a-col>
<a-col :lg="12" :xs="24">
<a-form-model-item label="医生英文名" prop="englishName">
<a-input v-model.trim="editFormObj.englishName" placeholder="保险医生英文名" />
</a-form-model-item>
</a-col>
<a-col :lg="12" :xs="24">
<a-form-model-item label="联系电话" prop="contactPhone">
<a-input v-model.trim="editFormObj.contactPhone" placeholder="联系电话" />
</a-form-model-item>
</a-col>
<a-col :lg="12" :xs="24">
<a-form-model-item label="联系地址" prop="address">
<a-input v-model.trim="editFormObj.address" placeholder="联系地址" />
</a-form-model-item>
</a-col>
<a-col :lg="12" :xs="24">
<a-form-model-item label="Protal链接" prop="portalUrl">
<a-input v-model.trim="editFormObj.portalUrl" placeholder="Protal链接" />
</a-form-model-item>
</a-col>
<a-col :lg="12" :xs="24">
<a-form-model-item label="联系人" prop="contactPerson">
<a-input v-model.trim="editFormObj.contactPerson" placeholder="联系人" />
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
</a-modal>
</div>
</template>
<script>
import BurtPagination from "@/components/CUSTOMER/pagation";
import Discount from "./components/companyDiscount";
const columns = [
{
title: "序号",
dataIndex: "id",
width: 120,
},
{
title: "保险公司名称",
dataIndex: "longName",
ellipsis: true,
scopedSlots: { customRender: "longName" },
width: 130,
},
{
title: "医生英文名",
dataIndex: "englishName",
ellipsis: true,
scopedSlots: { customRender: "englishName" },
width: 105,
},
{
title: "联系电话",
dataIndex: "contactPhone",
scopedSlots: { customRender: "contactPhone" },
width: 125,
},
{
title: "联系地址",
dataIndex: "address",
ellipsis: true,
scopedSlots: { customRender: "address" },
width: 180,
},
{
title: "Protal链接",
dataIndex: "portalUrl",
ellipsis: true,
scopedSlots: { customRender: "portalUrl" },
width: 155,
},
{
title: "联系人",
dataIndex: "contactPerson",
ellipsis: true,
scopedSlots: { customRender: "contactPerson" },
width: 100,
},
{
title: "操作",
dataIndex: "operation",
scopedSlots: { customRender: "operation" },
fixed: "right",
width: "170px",
},
{ title: "序号", dataIndex: "id",width: 120},
{ title: "保险公司名称",dataIndex: "longName", ellipsis: true, scopedSlots: { customRender: "longName" },width: 130},
{ title: "医生英文名", dataIndex: "englishName",ellipsis: true,scopedSlots: { customRender: "englishName" },width: 105},
{ title: "联系电话", dataIndex: "contactPhone", scopedSlots: { customRender: "contactPhone" }, width: 125},
{ title: "联系地址", dataIndex: "address", ellipsis: true, scopedSlots: { customRender: "address" }, width: 180},
{ title: "Protal链接", dataIndex: "portalUrl", ellipsis: true, scopedSlots: { customRender: "portalUrl" }, width: 155 },
{ title: "联系人", dataIndex: "contactPerson", ellipsis: true, scopedSlots: { customRender: "contactPerson" },width: 100},
{ title: "操作", dataIndex: "operation", scopedSlots: { customRender: "operation" },fixed: "right", width: "170px",align: "center"},
];
export default {
data() {
return {
dialogShow: false,
columns,
pagination: {
pageNum: 1,
......@@ -109,11 +80,22 @@ export default {
total: 0,
},
dataList: [],
editFormObj: {
id: "",
longName: "",
englishName: "",
contactPhone: "",
address: "",
portalUrl: "",
contactPerson: "",
},
editRules: {
longName: [{ required: true, message: "请输入", trigger: "blur" }],
},
};
},
components: {
BurtPagination,
Discount
},
created() {
this.getData();
......@@ -130,35 +112,42 @@ export default {
if (res.returnCode == "0000") {
let content = res.content || {};
this.pagination.total = content.total || 0;
this.dataList = (content.list || []).map((item) => {
return {
...item,
edit: false,
};
});
this.dataList = content.list || [];
} else {
this.$message.error(res.returnMsg);
}
});
},
//编辑
editEvt(record, index) {
this.dataList.forEach((item, i) => {
if (index != i) {
item.edit = false;
editEvt(record) {
this.editFormObj = {
id: record.id || "",
longName: record.longName || "",
englishName: record.englishName || "",
contactPhone: record.contactPhone || "",
address: record.address || "",
portalUrl: record.portalUrl || "",
contactPerson: record.contactPerson || ""
};
this.dialogShow = true;
},
//编辑保存
handleEditOK(){
this.$refs.editForm.validate((valid) => {
if (valid) {
this.$apis
.PAYORUPDATE(this.editFormObj)
.then((res) => {
if (res.returnCode == "0000") {
this.$message.success("编辑成功");
this.dialogShow = false;
this.getData();
} else {
this.$message.error(res.returnMsg);
}
});
}
});
record.edit = !record.edit;
//保存
if (!record.edit) {
this.$apis.PAYORUPDATE(record).then((res) => {
if (res.returnCode == "0000") {
this.$message.success("编辑成功");
} else {
this.$message.error(res.returnMsg);
}
});
}
},
//删除
delRecord(index) {
......@@ -183,6 +172,14 @@ export default {
},
});
},
detailEvt(record){
this.$router.push({
path: '/info/companyDetail',
query: {
id: record.id
}
})
},
//查看详情
seeDetail(record) {
//没有编辑
......
<template>
<div class="white_bg burt-container">
<!--详细信息-->
<companyInfo :detailObj="detailObj" />
<!--折扣信息-->
<Discount v-if="detailObj.id" :detailObj="detailObj" @getDetail="getDetail" />
</div>
</template>
<script>
import companyInfo from "./components/companyInfo";
import Discount from "./components/companyDiscount";
export default {
data(){
return {
id: '', //公司id
detailObj: { //公司详情
discountList: [], //折扣列表
}
}
},
components: {
companyInfo,
Discount
},
created(){
this.id = this.$route.query.id;
this.getDetail();
},
methods: {
//获取详细信息
getDetail() {
this.$apis.PAYORDETAIL({
id: this.id,
})
.then((res) => {
if (res.returnCode == "0000") {
this.detailObj = res.content || {};
} else {
this.$message.error(res.returnMsg);
}
});
},
}
}
</script>
<style lang="less" scoped>
</style>
\ No newline at end of file
......@@ -9,24 +9,21 @@
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="保险公司英文名称">
<a-input
v-model="detailObj.englishName"
placeholder="保险公司英文名称"
/>
<a-input v-model="detailObj.englishName" placeholder="保险公司英文名称" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="国家">
<a-input v-model="detailObj.englishName" placeholder="国家" />
<a-input v-model="detailObj.country" placeholder="国家" />
</a-form-model-item>
</a-col>
</a-row>
<a-row :gutter="30">
<a-col :lg="3" :sm="12">
<a-form-model-item label="有效">
<a-select v-model="detailObj.payorId" placeholder="请选择">
<a-select-option value="1">待核销</a-select-option>
<a-select-option value="2">已核销</a-select-option>
<a-select v-model="detailObj.status" placeholder="请选择" disabled>
<a-select-option value="1">有效</a-select-option>
<a-select-option value="2">无效</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
......@@ -34,108 +31,88 @@
<a-row :gutter="30">
<a-col :lg="12" :sm="12">
<a-form-model-item label="合同起始日期">
<a-date-picker
v-model="detailObj.businessHours"
format="YYYY年MM月DD日"
placeholder="选择日期"
/>
<a-date-picker v-model="detailObj.startDate" format="YYYY年MM月DD日" placeholder="选择日期"/>
</a-form-model-item>
</a-col>
<a-col :lg="12" :sm="12">
<a-form-model-item label="合同终止日期">
<a-date-picker
v-model="detailObj.businessHours"
format="YYYY年MM月DD日"
placeholder="选择日期"
/>
<a-date-picker v-model="detailObj.endDate" format="YYYY年MM月DD日" placeholder="选择日期"/>
</a-form-model-item>
</a-col>
</a-row>
</a-col>
<a-col :lg="10" :sm="12">
<a-form-model-item label="保险公司地址">
<a-input v-model="detailObj.telNo1" placeholder="保险公司地址" />
<a-input v-model="detailObj.address" placeholder="保险公司地址" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="网络联系人">
<a-input v-model="detailObj.address" placeholder="请输入联系人" />
<a-input v-model="detailObj.contactPerson" placeholder="请输入联系人"/>
</a-form-model-item>
</a-col>
<a-col :lg="8" :sm="12">
<a-form-model-item label="理赔件邮寄地址">
<a-input
v-model="detailObj.englishAddr"
placeholder="理赔件邮寄地址"
/>
<a-input v-model="detailObj.claimAddress" placeholder="理赔件邮寄地址"/>
</a-form-model-item>
</a-col>
<a-col :lg="4" :sm="12">
<a-form-model-item label="保险公司联系电话">
<a-input
v-model="detailObj.englishAddr"
placeholder="保险公司联系电话"
/>
<a-input v-model="detailObj.contactPhone" placeholder="保险公司联系电话"/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="客服电话">
<a-input v-model="detailObj.englishAddr" placeholder="客服电话" />
<a-input v-model="detailObj.customerTel" placeholder="客服电话" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="预授权电话">
<a-input v-model="detailObj.englishAddr" placeholder="预授权电话" />
<a-input v-model="detailObj.authorTel" placeholder="预授权电话" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="保险公司邮件地址">
<a-input
v-model="detailObj.englishAddr"
placeholder="保险公司邮件地址"
/>
<a-input v-model="detailObj.email" placeholder="保险公司邮件地址" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="客服邮件地址">
<a-input
v-model="detailObj.englishAddr"
placeholder="客服邮件地址"
/>
<a-input v-model="detailObj.customerEmail" placeholder="客服邮件地址" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="预授权邮件地址">
<a-input
v-model="detailObj.englishAddr"
placeholder="预授权邮件地址"
/>
<a-input v-model="detailObj.authorEmail" placeholder="预授权邮件地址" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="理赔邮件地址">
<a-input
v-model="detailObj.englishAddr"
placeholder="理赔邮件地址"
/>
<a-input v-model="detailObj.claimEmail" placeholder="理赔邮件地址" />
</a-form-model-item>
</a-col>
<a-col :lg="8" :sm="12">
<a-form-model-item label="保险公司Protal链接">
<a-input
v-model="detailObj.englishAddr"
placeholder="保险公司Protal链接"
/>
<a-input v-model="detailObj.portalUrl" placeholder="保险公司Protal链接" />
</a-form-model-item>
</a-col>
<a-col :lg="4" :sm="12">
<a-form-model-item label="登录名">
<a-input v-model="detailObj.englishAddr" placeholder="登录名" />
<a-input v-model="detailObj.loginName" placeholder="登录名" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="密码">
<a-input v-model="detailObj.englishAddr" placeholder="密码" />
<a-input type="password" v-model="detailObj.loginPwd" placeholder="密码" />
</a-form-model-item>
</a-col>
</a-row>
<a-row>
<a-col :sm="24" class="none-label">
<a-form-model-item label="button">
<a-button type="primary" @click="handlerSava">
<Icon name="ssiadd" :size="14" />新建
</a-button>
</a-form-model-item>
</a-col>
</a-row>
......@@ -145,22 +122,38 @@
<script>
export default {
data() {},
props: {
detailObj: {}
},
data() {
return {
}
},
methods: {
//获取详细信息
getDetail() {
return new Promise((resolve, reject) => {
this.$apis.DOCTORUPDATE().then((res) => {
if (res.returnCode == "0000") {
this.detailObj = res.content || {};
resolve();
} else {
this.$message.error(res.returnMsg);
reject();
}
});
//新建保存
handlerSava(){
this.$apis.CREATEPAY({
...this.detailObj
})
.then((res) => {
if (res.returnCode == "0000") {
this.$message.success("新建成功");
} else {
this.$message.error(res.returnMsg);
}
});
},
}
},
};
</script>
<style lang="less" scoped>
.info-div{
margin-top: 16px;
}
.title-div {
line-height: 56px;
color: #252631;
}
</style>
......@@ -10,19 +10,12 @@
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="医疗机构英文名">
<a-input
v-model="detailObj.englishName"
placeholder="医疗机构英文名"
/>
<a-input v-model="detailObj.englishName" placeholder="医疗机构英文名" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="营业时间">
<a-date-picker
v-model="detailObj.businessHours"
format="YYYY年MM月DD日"
placeholder="选择日期"
/>
<a-date-picker v-model="detailObj.businessHours" format="YYYY年MM月DD日" placeholder="选择日期"/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
......@@ -32,18 +25,12 @@
</a-col>
<a-col :lg="10" :sm="12">
<a-form-model-item label="诊所地址(中文)">
<a-input
v-model="detailObj.address"
placeholder="诊所地址(中文)"
/>
<a-input v-model="detailObj.address" placeholder="诊所地址(中文)" />
</a-form-model-item>
</a-col>
<a-col :lg="10" :sm="12">
<a-form-model-item label="诊所地址(英文)">
<a-input
v-model="detailObj.englishAddr"
placeholder="诊所地址(英文)"
/>
<a-input v-model="detailObj.englishAddr" placeholder="诊所地址(英文)" />
</a-form-model-item>
</a-col>
</a-row>
......@@ -63,11 +50,7 @@
</a-col>
<a-col :lg="8" :sm="12">
<a-form-model-item label="银行账号">
<a-input
v-model="detailObj.bankAccount"
type="number"
placeholder="银行账号"
/>
<a-input v-model="detailObj.bankAccount" type="number" placeholder="银行账号" />
</a-form-model-item>
</a-col>
</a-row>
......@@ -77,45 +60,27 @@
<a-row :gutter="30">
<a-col :lg="8" :sm="12">
<a-form-model-item label="Beneficiiary Name 账号">
<a-input
v-model="detailObj.accountNameEng"
placeholder="Beneficiiary Name 账号"
/>
<a-input v-model="detailObj.accountNameEng" placeholder="Beneficiiary Name 账号" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="Bank Account No 银行账号">
<a-input
v-model="detailObj.bankAccountEng"
placeholder="Bank Account No 银行账号"
/>
<a-input v-model="detailObj.bankAccountEng" placeholder="Bank Account No 银行账号"/>
</a-form-model-item>
</a-col>
<a-col :lg="8" :sm="12">
<a-form-model-item label="Bank Name 银行名称">
<a-input
v-model="detailObj.bankAddrEng"
type="number"
placeholder="Bank Name 银行名称"
/>
<a-input v-model="detailObj.bankAddrEng" type="number" placeholder="Bank Name 银行名称" />
</a-form-model-item>
</a-col>
<a-col :sm="12">
<a-form-model-item label="Bank Address 银行地址">
<a-input
v-model="detailObj.bankAddr"
type="number"
placeholder="Bank Address 银行地址"
/>
<a-input v-model="detailObj.bankAddr" type="number" placeholder="Bank Address 银行地址"/>
</a-form-model-item>
</a-col>
<a-col :sm="12">
<a-form-model-item label="Swift Code 国际电汇代码">
<a-input
v-model="detailObj.telegraphicTransferCode"
type="number"
placeholder="Swift Code 国际电汇代码"
/>
<a-input v-model="detailObj.telegraphicTransferCode" type="number" placeholder="Swift Code 国际电汇代码" />
</a-form-model-item>
</a-col>
</a-row>
......@@ -127,40 +92,29 @@
</a-upload>
</div> -->
<div class="title-div">医生信息</div>
<a-table
:columns="columns"
:data-source="dataList"
:scroll="{ x: 'max-content' }"
:pagination="false"
>
<a-table :columns="columns" :data-source="dataList" :scroll="{ x: 'max-content' }" :pagination="false">
<template slot="specialtyList" slot-scope="text, record">
<a-select
v-if="record.edit"
v-model="record.specialtyList2"
placeholder="请选择"
mode="multiple"
>
<a-select-option
:value="item.id"
v-for="item in specialtyList"
:key="item.id"
>{{ item.specialtyDesc }}</a-select-option
>
</a-select>
<span v-else>{{ filterSpecialty(record.specialtyList2) }}</span>
<span>{{ filterSpecialty(record.specialtyList) }}</span>
</template>
<template slot="operation" slot-scope="text, record, index">
<a-button type="link" @click.stop="editEvt(record, index)">{{
record.edit ? "保存" : "修改"
}}</a-button>
<a-button type="link" class="success">新增</a-button>
<a-button type="link" class="danger" @click.stop="delRecord(index)"
>删除</a-button
>
<a-button type="link" @click.stop="editEvt(record)">{{ record.edit ? "保存" : "修改"}}</a-button>
<a-button type="link" class="danger" @click.stop="delRecord(index)">删除</a-button>
</template>
</a-table>
<!--分页-->
<BurtPagination :pagination="pagination" @pageChange="getDoctorList" />
<a-modal title="编辑" :visible="dialogShow" width="700px" :maskClosable="false"
okText="确定" cancelText="取消"
@ok="handleEditOK" @cancel="dialogShow = false">
<a-form-model ref="editForm" :model="editFormObj"
:rules="editRules" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-form-model-item label="科室" prop="specialtyList">
<a-select v-model="editFormObj.specialtyList" placeholder="请选择" mode="multiple">
<a-select-option :value="item.id" v-for="item in specialtyList" :key="item.id">{{ item.specialtyDesc }}</a-select-option>
</a-select>
</a-form-model-item>
</a-form-model>
</a-modal>
</div>
</template>
......@@ -195,12 +149,16 @@ const columns = [
dataIndex: "operation",
scopedSlots: { customRender: "operation" },
fixed: "right",
width: "170px",
width: "120px",
align: "center",
},
];
export default {
data() {
return {
dialogShow: false,
labelCol: { span: 4 },
wrapperCol: { span: 20 },
columns,
dataList: [],
detailObj: {}, //详细信息
......@@ -211,6 +169,15 @@ export default {
},
specialtyList: [], //科室列表
specialtyObj: {}, //科室对象
editFormObj: {
id: "",
specialtyList: [],
},
editRules: {
specialtyList: [
{ required: true, message: "请选择", trigger: "change" },
],
},
};
},
components: {
......@@ -272,15 +239,14 @@ export default {
let content = res.content || {};
this.pagination.total = content.total || 0;
this.dataList = (content.list || []).map((item) => {
let specialtyList2 = (item.specialtyList || []).map(
let specialtyList = (item.specialtyList || []).map(
(innerItem) => {
return innerItem.specialtyId;
}
);
return {
...item,
specialtyList2: specialtyList2 || [],
edit: false,
specialtyList: specialtyList || [],
};
});
} else {
......@@ -288,33 +254,37 @@ export default {
}
});
},
//编辑
editEvt(record, index) {
this.dataList.forEach((item, i) => {
if (index != i) {
item.edit = false;
editEvt(record) {
this.editFormObj = {
id: record.id || "",
specialtyList: record.specialtyList || [],
};
this.dialogShow = true;
},
//编辑保存
handleEditOK() {
this.$refs.editForm.validate((valid) => {
if (valid) {
this.$apis
.DOCTORUPDATE({
id: this.editFormObj.id,
specialtyList: this.editFormObj.specialtyList.map((item) => {
return {
specialtyId: item,
};
}),
})
.then((res) => {
if (res.returnCode == "0000") {
this.$message.success("编辑成功");
this.dialogShow = false;
this.getDoctorList();
} else {
this.$message.error(res.returnMsg);
}
});
}
});
record.edit = !record.edit;
//保存
if (!record.edit) {
this.$apis
.DOCTORUPDATE({
id: record.id,
specialtyList: record.specialtyList2.map((item) => {
return {
specialtyId: item,
};
}),
})
.then((res) => {
if (res.returnCode == "0000") {
this.$message.success("编辑成功");
} else {
this.$message.error(res.returnMsg);
}
});
}
},
//删除医生
delRecord(index) {
......
<template>
<div class="header">
<div class="logo">商保管理系统</div>
<div class="header-container">
<div class="logo">{{title}}</div>
<div class="user-info">
<p class="name"><Icon :name="'ssicb'" :size="24" />{{ userInfo.name }}</p>
<a-dropdown
......@@ -22,10 +22,12 @@
<script>
import { mapState } from "vuex";
import { title } from "@/settings";
export default {
data() {
return {};
return {
title,
};
},
computed: {
...mapState({
......@@ -49,8 +51,8 @@ export default {
};
</script>
<style lang="less" scoped>
.header {
<style lang="less">
.header-container {
position: fixed;
width: 100%;
display: flex;
......
......@@ -3,6 +3,7 @@
<Header></Header>
<div class="container">
<Menu></Menu>
<Loading />
<div class="content">
<SubMenu></SubMenu>
<router-view />
......@@ -15,12 +16,14 @@
import Header from "./components/Header.vue";
import Menu from "./components/menu";
import SubMenu from "./components/menu/subMenu.vue";
import Loading from "@/components/Loading/Loading.vue";
export default {
components: {
Header,
Menu,
SubMenu
SubMenu,
Loading
},
data() {
return {};
......
<template>
<div>111</div>
</template>
<script>
export default {
data() {
return {};
},
};
</script>
<style lang="less" scoped></style>
......@@ -13,41 +13,53 @@
</a-col>
<a-col :lg="5" :sm="12">
<a-form-model-item label="回款日期">
<a-date-picker format="YYYY年MM月DD日" v-model="form.date" placeholder="选择日期" />
<a-date-picker
format="YYYY年MM月DD日"
v-model="form.date"
placeholder="选择日期"
/>
</a-form-model-item>
</a-col>
<a-col :lg="5" :sm="12">
<a-form-model-item label="银行状态">
<a-select v-model="form.payorId" placeholder="请选择">
<a-select-option value="1">待核销</a-select-option>
<a-select-option value="2">已核销</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col :lg="4" :sm="12">
<a-form-model-item label="回款金额(人民币)">
<a-input
type="number"
v-model="form.mrnNo"
placeholder="请输入金额"
/>
</a-form-model-item>
</a-col>
<a-col :lg="4" :sm="12">
<a-form-model-item label="回款金额(美元)">
<a-input
type="number"
v-model="form.mrnNo"
placeholder="请输入金额"
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="汇率差">
<a-input v-model="form.mrnNo" placeholder="请输入金额" />
</a-form-model-item>
</a-col>
<a-col :lg="5" :sm="12">
<a-form-model-item label="银行状态">
<a-select v-model="form.payorId" placeholder="请选择">
<a-select-option value="1">待核销</a-select-option>
<a-select-option value="2">已核销</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col :lg="4" :sm="12">
<a-form-model-item label="回款金额(人民币)">
<a-input type="number" v-model="form.mrnNo" placeholder="请输入金额" />
</a-form-model-item>
</a-col>
<a-col :lg="4" :sm="12">
<a-form-model-item label="回款金额(美元)">
<a-input type="number" v-model="form.mrnNo" placeholder="请输入金额" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="汇率差">
<a-input v-model="form.mrnNo" placeholder="请输入金额" />
</a-form-model-item>
</a-col>
<a-col :md="24" :lg="18" class="none-label">
<a-form-model-item label="button">
<a-button type="primary">导出</a-button>
<a-button class="mar-left10" type="primary">
<Icon name="ssiadd" :size="14" />新建回款
</a-button>
<a-button class="mar-left10" type="primary">
<Icon name="ssireset" :size="14" />重置
</a-button>
<a-button class="mar-left10" type="primary">
<Icon name="ssiadd" :size="14" />新建回款
</a-button>
<a-button class="mar-left10" type="primary">
<Icon name="ssireset" :size="14" />重置
</a-button>
<a-button class="mar-left10" type="primary" @click="handlerSearch">
<Icon name="ssisearch_active" :size="14" />查询
</a-button>
......@@ -55,82 +67,104 @@
</a-col>
</a-row>
</a-form-model>
<!-- table -->
<!-- table -->
<a-table
:columns="columns"
:data-source="dataList"
:scroll="{ x: true }"
:pagination="pagination"
@change="pageChange"
>
<template slot="operation" slot-scope="record,index">
<a-button type="link">修改</a-button>
<a-button type="link" class="success">新增</a-button>
<a-button type="link" class="danger" @click.stop="delRecord(index)">删除</a-button>
</template>
</a-table>
:pagination="false"
>
<template slot="operation" slot-scope="record, index">
<a-button type="link">修改</a-button>
<a-button type="link" class="success">新增</a-button>
<a-button type="link" class="danger" @click.stop="delRecord(index)"
>删除</a-button
>
</template>
</a-table>
<BurtPagination :pagination="pagination" @pageChange="getData" />
</div>
</template>
<script>
const columns =[
{ title: "序号", dataIndex: "mrnNo", ellipsis: true, width: 180 },
{ title: "EOB姓名", dataIndex: "patientName", ellipsis: true, width: 180 },
{ title: "核销时间", dataIndex: "patientName2", ellipsis: true, width: 180 },
{ title: "保险公司", dataIndex: "patientName3", ellipsis: true, width: 180 },
{ title: "EOB赔付金额(人民币)", dataIndex: "patientName4", ellipsis: true, width: 180 },
{ title: "EOB赔付金额(美元)", dataIndex: "patientName5", ellipsis: true, width: 180 },
{ title: "EOB状态", dataIndex: "patientName9", ellipsis: true, width: 180 },
{ title: "操作", dataIndex: "operation", scopedSlots: { customRender: "operation" }, fixed: "right", width: '170px' }
import BurtPagination from "@/components/CUSTOMER/pagation";
const columns = [
{ title: "序号", dataIndex: "mrnNo", ellipsis: true, width: 72 },
{ title: "EOB名称", dataIndex: "patientName", ellipsis: true, width: 195 },
{ title: "核销时间", dataIndex: "patientName2", ellipsis: true, width: 110 },
{ title: "保险公司", dataIndex: "patientName3", ellipsis: true, width: 110 },
{ title: "EOB状态", dataIndex: "patientName9", ellipsis: true, width: 110 },
{
title: "EOB赔付金额(人民币)",
dataIndex: "patientName4",
ellipsis: true,
width: 190,
},
{
title: "EOB赔付金额(美元)",
dataIndex: "patientName5",
ellipsis: true,
width: 190,
},
{ title: "汇率差", dataIndex: "patientName10", ellipsis: true, width: 110 },
{
title: "操作",
dataIndex: "operation",
scopedSlots: { customRender: "operation" },
fixed: "right",
width: "170px",
},
];
export default {
data() {
return {
columns,
form: {
dateRange: []
},
dataList: [],
pagination: {
pageNum: 1,
pageSize: 10,
total: 0
},
};
columns,
form: {
dateRange: [],
},
dataList: [],
pagination: {
pageNum: 1,
pageSize: 10,
total: 0,
},
};
},
components: {
BurtPagination,
},
methods: {
pageChange(pager) {
const { current } = pager;
this.pagination.pageNum = current;
this.getData();
},
handlerSearch(){
this.pagination.pageNum = 1;
this.getData();
},
getData(){
},
//删除记录
delRecord(index){
this.$modal.confirm({
title: '删除',
content: '确定删除该条记录?',
okText: '确认',
cancelText: '取消',
onOk: ()=>{
this.$store.dispatch('medicinal/delMedicine', {
id: this.dataList[index].id,
status: -1
})
.then(()=>{
this.$message.success('删除成功');
this.dataList.splice(index, 1);
});
},
onCancel: ()=>{}
});
}
pageChange(pager) {
const { current } = pager;
this.pagination.pageNum = current;
this.getData();
},
handlerSearch() {
this.pagination.pageNum = 1;
this.getData();
},
getData() {},
//删除记录
delRecord(index) {
this.$modal.confirm({
title: "删除",
content: "确定删除该条记录?",
okText: "确认",
cancelText: "取消",
onOk: () => {
this.$store
.dispatch("medicinal/delMedicine", {
id: this.dataList[index].id,
status: -1,
})
.then(() => {
this.$message.success("删除成功");
this.dataList.splice(index, 1);
});
},
onCancel: () => {},
});
},
},
};
</script>
......
<template>
<div>111</div>
</template>
<script>
export default {
data() {
return {};
},
};
</script>
<style lang="less" scoped></style>
......@@ -13,24 +13,36 @@
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="EOB收到日期">
<a-range-picker format="YYYY年MM月DD日" v-model="form.dateRange" :placeholder="['开始日期','结束日期']" />
<a-range-picker
format="YYYY年MM月DD日"
v-model="form.dateRange"
:placeholder="['开始日期', '结束日期']"
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="EOB名称">
<a-input v-model="form.mrnNo" placeholder="请输入EOB名称" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="EOB金额(人民币)">
<a-input
type="number"
v-model="form.mrnNo"
placeholder="请输入金额"
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="EOB金额(美元)">
<a-input
type="number"
v-model="form.mrnNo"
placeholder="请输入金额"
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="EOB名称">
<a-input v-model="form.mrnNo" placeholder="请输入EOB名称" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="EOB金额(人民币)">
<a-input type="number" v-model="form.mrnNo" placeholder="请输入金额" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="EOB金额(美元)">
<a-input type="number" v-model="form.mrnNo" placeholder="请输入金额" />
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="EOB状态">
<a-select v-model="form.payorId" placeholder="请选择">
......@@ -42,12 +54,12 @@
<a-col :md="24" :lg="12" class="none-label">
<a-form-model-item label="button">
<a-button type="primary">导出</a-button>
<a-button class="mar-left10" type="primary">
<Icon name="ssiadd" :size="14" />新建EOB
</a-button>
<a-button class="mar-left10" type="primary">
<Icon name="ssireset" :size="14" />重置
</a-button>
<a-button class="mar-left10" type="primary">
<Icon name="ssiadd" :size="14" />新建EOB
</a-button>
<a-button class="mar-left10" type="primary">
<Icon name="ssireset" :size="14" />重置
</a-button>
<a-button class="mar-left10" type="primary" @click="handlerSearch">
<Icon name="ssisearch_active" :size="14" />查询
</a-button>
......@@ -55,85 +67,91 @@
</a-col>
</a-row>
</a-form-model>
<!-- table -->
<a-table
:columns="columns"
:data-source="dataList"
:scroll="{ x: true }"
:pagination="pagination"
@change="pageChange"
>
<template slot="operation" slot-scope="record,index">
<a-button type="link">修改</a-button>
<a-button type="link" class="success">新增</a-button>
<a-button type="link" class="danger" @click.stop="delRecord(index)">删除</a-button>
</template>
</a-table>
<!-- table -->
<a-table
:columns="columns"
:data-source="dataList"
:scroll="{ x: true }"
:pagination="false"
>
<template slot="operation" slot-scope="record, index">
<a-button type="link">修改</a-button>
<a-button type="link" class="success">新增</a-button>
<a-button type="link" class="danger" @click.stop="delRecord(index)"
>删除</a-button
>
</template>
</a-table>
<BurtPagination :pagination="pagination" @pageChange="getData" />
</div>
</template>
<script>
const columns =[
{ title: "病历号", dataIndex: "mrnNo", ellipsis: true, width: 180 },
{ title: "客户姓名", dataIndex: "patientName", ellipsis: true, width: 180 },
{ title: "保险公司", dataIndex: "patientName2", ellipsis: true, width: 180 },
{ title: "就诊日期", dataIndex: "patientName3", ellipsis: true, width: 180 },
{ title: "账单金额", dataIndex: "patientName4", ellipsis: true, width: 180 },
{ title: "自付金额", dataIndex: "patientName5", ellipsis: true, width: 180 },
{ title: "理赔金额", dataIndex: "patientName6", ellipsis: true, width: 180 },
{ title: "回款金额", dataIndex: "patientName7", ellipsis: true, width: 180 },
{ title: "未赔付金额", dataIndex: "patientName8", ellipsis: true, width: 180 },
{ title: "理赔状态", dataIndex: "patientName9", ellipsis: true, width: 180 },
{ title: "操作", dataIndex: "operation", scopedSlots: { customRender: "operation" }, fixed: "right", width: '170px' }
import BurtPagination from "@/components/CUSTOMER/pagation";
const columns = [
{ title: "病历号", dataIndex: "mrnNo", ellipsis: true, width: 100 },
{ title: "客户姓名", dataIndex: "patientName", ellipsis: true, width: 85 },
{ title: "保险公司", dataIndex: "patientName2", ellipsis: true, width: 80 },
{ title: "就诊日期", dataIndex: "patientName3", ellipsis: true, width: 110 },
{ title: "理赔状态", dataIndex: "patientName0", ellipsis: true, width: 90 },
{ title: "账单金额", dataIndex: "patientName4", ellipsis: true, width: 85 },
{ title: "自付金额", dataIndex: "patientName5", ellipsis: true, width: 85 },
{ title: "理赔金额", dataIndex: "patientName6", ellipsis: true, width: 85 },
{ title: "回款金额", dataIndex: "patientName7", ellipsis: true, width: 85 },
{ title: "未清金额", dataIndex: "patientName8", ellipsis: true, width: 85 },
{
title: "保险公司欠费",
dataIndex: "patientName9",
ellipsis: true,
width: 110,
},
{ title: "个人欠费", dataIndex: "patientName9", ellipsis: true, width: 85 },
{ title: "备注", dataIndex: "patientName10", ellipsis: true, width: 120 },
{
title: "操作",
dataIndex: "operation",
scopedSlots: { customRender: "operation" },
fixed: "right",
width: "170px",
},
];
export default {
data() {
return {
columns,
form: {
dateRange: []
},
dataList: [],
pagination: {
pageNum: 1,
pageSize: 10,
total: 0
},
};
columns,
form: {
dateRange: [],
},
dataList: [],
pagination: {
pageNum: 1,
pageSize: 10,
total: 0,
},
};
},
components: {
BurtPagination,
},
methods: {
pageChange(pager) {
const { current } = pager;
this.pagination.pageNum = current;
this.getData();
},
handlerSearch(){
this.pagination.pageNum = 1;
this.getData();
},
getData(){
},
//删除记录
delRecord(index){
this.$modal.confirm({
title: '删除',
content: '确定删除该条记录?',
okText: '确认',
cancelText: '取消',
onOk: ()=>{
this.$store.dispatch('medicinal/delMedicine', {
id: this.dataList[index].id,
status: -1
})
.then(()=>{
this.$message.success('删除成功');
this.dataList.splice(index, 1);
});
},
onCancel: ()=>{}
});
}
handlerSearch() {
this.pagination.pageNum = 1;
this.getData();
},
getData() {},
//删除记录
delRecord(index) {
this.$modal.confirm({
title: "删除",
content: "确定删除该条记录?",
okText: "确认",
cancelText: "取消",
onOk: () => {
console.log(index, 111)
},
onCancel: () => {},
});
},
},
};
</script>
......
const path = require("path");
const LodashModuleReplacementPlugin = require("lodash-webpack-plugin");
const CompressionPlugin = require("compression-webpack-plugin"); // 代码压缩
const defaultSettings = require("./src/settings.js");
module.exports = {
publicPath: "/bims",
......@@ -16,7 +17,7 @@ module.exports = {
less: {
javascriptEnabled: true,
},
},
}
},
chainWebpack: (config) => {
if (process.env.NODE_ENV === "production") {
......@@ -25,6 +26,7 @@ module.exports = {
}
},
configureWebpack: (config) => {
config.name = defaultSettings.title;
const plugins = [];
if (process.env.NODE_ENV === "production") {
plugins.push(
......
......@@ -5939,7 +5939,7 @@ mkdirp@^1.0.3, mkdirp@^1.0.4:
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==
moment@^2.21.0:
moment@^2.21.0, moment@^2.29.1:
version "2.29.1"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3"
integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==
......
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