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