Commit c400445b authored by yanglilong's avatar yanglilong

修改

parent dded8e7b
// 报表api // 报表api
export default { export default {
createAuthorize: "/backstage/auth/createAuthorize", //创建预授权
authorizeList: "/backstage/auth/authorizeList", //预授权列表
authorizeDetail: "/backstage/auth/authorizeDetail", //预授权详情
authorizeUpdate: "/backstage/auth/authorizeUpdate", //预授权修改
authorizeDelete: "/backstage/auth/authorizeDelete", //预授权删除
}; };
// 预授权api // 预授权api
export default {}; export default {
patientListNoPage: "/backstage/auth/patientListNoPage", //患者列表无分页
patientPayorList: "/backstage/auth/patientPayorList", //根据患者查询保司列表
patientPolicyList: "/backstage/auth/patientPolicyList", //根据患者查询保单列表
createAuthorize: "/backstage/auth/createAuthorize", //创建预授权
authorizeList: "/backstage/auth/authorizeList", //预授权列表
authorizeDetail: "/backstage/auth/authorizeDetail", //预授权详情
authorizeUpdate: "/backstage/auth/authorizeUpdate", //预授权修改
authorizeDelete: "/backstage/auth/authorizeDelete", //预授权删除
authorizeUseList: "/backstage/auth/authorizeUseList", //预授权使用列表
authorizeUseAdd: "/backstage/auth/authorizeUseAdd", //新增预授权使用
};
// 报表函数库 // 报表函数库
import apis from "../apis_moudles/index"; // import apis from "../apis_moudles/index";
import req from "../request"; // import req from "../request";
//创建预授权
const AUTHORIZECREATE = function (data) {
return req.post(apis.createAuthorize, data);
};
//预授权列表
const AUTHORIZELIST = function (data) {
return req.post(apis.authorizeList, data);
};
//预授权详情
const AUTHORIZEDETAIL = function (data) {
return req.post(apis.authorizeDetail, data);
};
//预授权修改
const AUTHORIZEUPDATE = function (data) {
return req.post(apis.authorizeUpdate, data);
};
//预授权删除
const AUTHORIZEDELETE = function (data) {
return req.post(apis.authorizeDelete, data);
};
// 对象数组 // 对象数组
export default { export default {
AUTHORIZECREATE,
AUTHORIZELIST,
AUTHORIZEDETAIL,
AUTHORIZEUPDATE,
AUTHORIZEDELETE,
}; };
// 预授权函数库 // 预授权函数库
// import apis from "../apis_moudles/index"; import apis from "../apis_moudles/index";
// import req from "../request"; import req from "../request";
//患者列表无分页
const PATIENTLISTNOPAGE = (data) => {
return req.post(apis.patientListNoPage, data);
};
//根据患者查询保司列表
const PATIENTPAYORLIST = (data) => {
return req.post(apis.patientPayorList, data);
};
//根据患者查询保单列表
const PATIENTPOLICYLIST = (data) => {
return req.post(apis.patientPolicyList, data);
};
//创建预授权
const AUTHORIZECREATE = function (data) {
return req.post(apis.createAuthorize, data);
};
//预授权列表
const AUTHORIZELIST = function (data) {
return req.post(apis.authorizeList, data);
};
//预授权详情
const AUTHORIZEDETAIL = function (data) {
return req.post(apis.authorizeDetail, data);
};
//预授权修改
const AUTHORIZEUPDATE = function (data) {
return req.post(apis.authorizeUpdate, data);
};
//预授权删除
const AUTHORIZEDELETE = function (data) {
return req.post(apis.authorizeDelete, data);
};
//预授权使用列表
const AUTHORIZEUSELIST = function (data) {
return req.post(apis.authorizeUseList, data);
};
//新增预授权使用
const AUTHORIZEUSEADD = function (data) {
return req.post(apis.authorizeUseAdd, data);
};
// 对象数组 // 对象数组
export default {}; export default {
PATIENTLISTNOPAGE,
PATIENTPAYORLIST,
PATIENTPOLICYLIST,
AUTHORIZECREATE,
AUTHORIZELIST,
AUTHORIZEDETAIL,
AUTHORIZEUPDATE,
AUTHORIZEDELETE,
AUTHORIZEUSELIST,
AUTHORIZEUSEADD,
};
...@@ -46,10 +46,10 @@ const ApproveStatusOptions = [ ...@@ -46,10 +46,10 @@ const ApproveStatusOptions = [
//monetUnit //monetUnit
const MoneyUnitOptions = [ const MoneyUnitOptions = [
{ name: '', value: '1'}, { name: '', value: '01'},
{ name: '美元', value: '2'}, { name: '美元', value: '02'},
{ name: '英镑', value: '3'}, { name: '英镑', value: '03'},
{ name: '欧元', value: '4'}, { name: '欧元', value: '04'},
]; ];
......
This diff is collapsed.
...@@ -2,34 +2,154 @@ ...@@ -2,34 +2,154 @@
<!--预授权费用数据--> <!--预授权费用数据-->
<a-modal title="预授权费用数据" :visible="dialogShow1" width="900px" :maskClosable="false" <a-modal title="预授权费用数据" :visible="dialogShow1" width="900px" :maskClosable="false"
:footer="null" @cancel="dialogShow1 = false"> :footer="null" @cancel="dialogShow1 = false">
<a-table :columns="columns" :data-source="dataList" :pagination="false">
<template slot="title">
<div class="flex header-div">
<div class="flex left-div">
<div class="item">
<span>批准次数/金额: </span>
<span class="val money">{{detailObj.approvalAmount}}</span>
</div>
<div class="item">
<span>是否已使用: </span>
<span class="val">{{detailObj.isUse}}</span>
</div>
</div>
<a-button type="primary" @click="editEvt({})">
<Icon name="ssiadd" :size="14" />添 加
</a-button>
</div>
</template>
<template slot="userTime" slot-scope="text">
{{text? moment(text).format('YYYY-MM-DD'): ''}}
</template>
<template slot="operation" slot-scope="text, record, index">
<a-button type="link" @click.stop="editEvt(index)">修改</a-button>
<a-button v-if="record.eobNo" type="link" class="danger" @click.stop="delRecord(index)">删除</a-button>
</template>
</a-table>
<a-modal title="编辑" :visible="dialogShow2" width="60%" :maskClosable="false"
okText="确定" cancelText="取消"
@ok="handleEditOK" @cancel="dialogShow2 = false">
<a-form-model ref="editForm" :model="editFormObj" :rules="editRules">
<a-row :gutter="30">
<a-col :lg="12" :xs="24">
<a-form-model-item label="次数/金额" prop="userd">
<a-input type="number" v-model.trim="editFormObj.userd" placeholder="次数/金额" />
</a-form-model-item>
</a-col>
<a-col :lg="12" :xs="24">
<a-form-model-item label="日期" prop="userTime">
<a-date-picker allow-clear v-model="editFormObj.userTime" placeholder="请选择日期" value-format="YYYY-MM-DD 00:00:00" />
</a-form-model-item>
</a-col>
<a-col :lg="12" :xs="24">
<a-form-model-item label="剩余次数/金额" prop="surplus">
<a-input type="number" v-model.trim="editFormObj.surplus" placeholder="剩余次数/金额" />
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
</a-modal>
</a-modal> </a-modal>
</template> </template>
<script> <script>
import moment from 'moment';
export default{ export default{
data(){ data(){
const columns = [ const columns = [
{ title: "次数/金额", dataIndex: "userd", align: 'center' },
{ title: "日期", dataIndex: "userTime",scopedSlots: { customRender: "userTime" }, align: 'center'},
{ title: "剩余次数/金额", dataIndex: "surplus", align: 'center'},
]; ];
return{ return{
columns, columns,
dialogShow1: false, dialogShow1: false,
dialogShow2: false,
detailObj: {},
dataList: [], dataList: [],
editFormObj: {
userd: '',
userTime: '',
surplus: ''
},
editRules: {
userd: [{ required: true, message: "请输入", trigger: "blur" }],
userTime: [{ required: true, message: "请选择", trigger: "change" }],
surplus: [{ required: true, message: "请输入", trigger: "blur" }],
},
} }
}, },
created(){ created(){
}, },
methods: { methods: {
moment,
showModal1(data){ showModal1(data){
this.dialogShow1 = true; this.dialogShow1 = true;
this.dataList = data; this.detailObj = data || {};
} this.getData();
},
getData(){
this.$apis.AUTHORIZEUSELIST({
authorizeId: this.detailObj.id
})
.then((res)=>{
if (res.returnCode == "0000") {
this.dataList = res.content || [];
} else {
this.$message.error(res.returnMsg);
}
});
},
editEvt(record){
this.editFormObj = {
userd: record.userd || "",
userTime: record.userTime? moment(record.userTime).format('YYYY-MM-DD 00:00:00'): '',
surplus: record.surplus
};
this.dialogShow2 = true;
},
//编辑保存
handleEditOK() {
this.$refs.editForm.validate((valid) => {
if (valid) {
this.$apis.AUTHORIZEUSEADD({
authorizeId: this.detailObj.id,
...this.editFormObj
})
.then((res)=>{
if (res.returnCode == "0000") {
this.dialogShow2 = false;
this.getData();
} else {
this.$message.error(res.returnMsg);
}
});
}
});
},
} }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.header-div{
font-weight: bold;
justify-content: space-between;
.item{
&:nth-child(2){
margin-left: 50px;
}
.val{
margin-left: 8px;
}
.money{
color: red;
}
}
}
</style> </style>
\ No newline at end of file
...@@ -132,6 +132,7 @@ export default{ ...@@ -132,6 +132,7 @@ export default{
this.dataList.splice(this.chooseIdex, 1, {...this.editFormObj}); this.dataList.splice(this.chooseIdex, 1, {...this.editFormObj});
} }
this.dialogShow = false; this.dialogShow = false;
this.$emit('authorizeItemVoListChange', this.dataList);
} }
}); });
}, },
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<a-col :lg="6" :sm="12"> <a-col :lg="6" :sm="12">
<a-form-model-item label="申请项目"> <a-form-model-item label="申请项目">
<a-select v-model="form.authProject" placeholder="请选择项目" allowClear> <a-select v-model="form.authProject" placeholder="请选择项目" allowClear>
<a-select-option v-for="(item) in ProjectList" :key="item.id" :value="item.descCh">{{item.descCh}}</a-select-option> <a-select-option v-for="(item) in ProjectList" :key="item.id" :value="item.refcd">{{item.descCh}}</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -53,13 +53,19 @@ ...@@ -53,13 +53,19 @@
</a-row> </a-row>
</a-form-model> </a-form-model>
<a-table :columns="columns" :data-source="dataList" :scroll="{ x: true }" :pagination="false"> <a-table :columns="columns" :data-source="dataList" :scroll="{ x: true }" :pagination="false">
<template slot="authorStatus" slot-scope="text">
{{text | formatApplyStatus}}
</template>
<template slot="authProject" slot-scope="text">
{{formatProject(text)}}
</template>
<template slot="authorizeItemVoList" slot-scope="text, record"> <template slot="authorizeItemVoList" slot-scope="text, record">
<a-button type="link" @click.stop="seeEvt(record)">查看</a-button> <a-button type="link" @click.stop="seeEvt(record)">查看</a-button>
</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)">修改</a-button> <a-button type="link" @click.stop="editEvt(record)">修改</a-button>
<a-button type="link" class="success" @click.stop="addEvt(record)">新增</a-button> <a-button type="link" class="success" @click.stop="addEvt(record)">新增</a-button>
<a-button v-if="record.eobNo" 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>
<!--分页--> <!--分页-->
...@@ -73,7 +79,7 @@ ...@@ -73,7 +79,7 @@
import BurtPagination from "@/components/CUSTOMER/pagation"; import BurtPagination from "@/components/CUSTOMER/pagation";
import authorizeVoList from './components/authorizeVoList'; import authorizeVoList from './components/authorizeVoList';
import moment from 'moment' import moment from 'moment'
import {ClaimsStatusOptions,ApplyStatusOptions} from '@/utils/utilsdictOptions'; import {ApplyStatusOptions} from '@/utils/utilsdictOptions';
import mixins from '@/mixins/index'; import mixins from '@/mixins/index';
export default{ export default{
data(){ data(){
...@@ -81,20 +87,19 @@ export default{ ...@@ -81,20 +87,19 @@ export default{
{ title: "病历号", dataIndex: "mrnNo", key:"receiptNo",align:'center', width: 136}, { title: "病历号", dataIndex: "mrnNo", key:"receiptNo",align:'center', width: 136},
{ title: "客户姓名", dataIndex: "patientName", key:"patientNo",align:'center', width: 136}, { title: "客户姓名", dataIndex: "patientName", key:"patientNo",align:'center', width: 136},
{ title: "保险公司", dataIndex: "payorName", width: 110 }, { title: "保险公司", dataIndex: "payorName", width: 110 },
{ title: "申请项目", dataIndex: "authProject", width: 100}, { title: "申请项目", dataIndex: "authProject", width: 100, scopedSlots: { customRender: "authProject" }},
{ title: "申请金额", dataIndex: "authorAmount", width: 100, align: 'center' }, { title: "申请金额", dataIndex: "authorAmount", width: 100, align: 'center' },
{ title: "申请状态", dataIndex: "authorStatus", width: 100, align: 'center' }, { title: "申请状态", dataIndex: "authorStatus", width: 100, align: 'center', scopedSlots: { customRender: "authorStatus" } },
{ title: "申请日期", dataIndex: "paidAmount", width: 100, align: 'center' }, { title: "申请日期", dataIndex: "paidAmount", width: 100, align: 'center' },
{ title: "批准金额", dataIndex: "approvalAmount", width: 100, align: 'center' }, { title: "批准金额", dataIndex: "approvalAmount", width: 100, align: 'center' },
{ title: "批准天数", dataIndex: "authorDays", width: 110, align: 'center' }, { title: "批准天数", dataIndex: "authorDays", width: 110, align: 'center' },
{ title: "不予批准原因", dataIndex: "rejectReason", width: 120, align: 'center' }, { title: "不予批准原因", dataIndex: "rejectReason", width: 120, align: 'center', scopedSlots: { customRender: "authorStatus" } },
{ title: "预授权使用情况", dataIndex: "authorizeItemVoList", width: 120, align: 'center', scopedSlots: { customRender: "authorizeItemVoList" } }, { title: "预授权使用情况", dataIndex: "authorizeItemVoList", width: 130, align: 'center', scopedSlots: { customRender: "authorizeItemVoList" } },
{ title: "备注", dataIndex: "remark", width: 100, align: 'center' }, { title: "备注", dataIndex: "remark", width: 100, align: 'center' },
{ title: "操作", dataIndex: "operation", scopedSlots: { customRender: "operation" }, fixed: "right", width: "200px", align: 'center'}, { title: "操作", dataIndex: "operation", scopedSlots: { customRender: "operation" }, fixed: "right", width: "200px", align: 'center'},
]; ];
return { return {
columns, columns,
ClaimsStatusOptions,
ApplyStatusOptions, ApplyStatusOptions,
form: { form: {
dateRange: [], dateRange: [],
...@@ -102,7 +107,7 @@ export default{ ...@@ -102,7 +107,7 @@ export default{
authProject: '', authProject: '',
authorStatus: '', authorStatus: '',
mrnNo: '', mrnNo: '',
patientName: '' patientName: '',
}, },
companyOptions: [], //保险公司 companyOptions: [], //保险公司
ProjectList: [], //预授权项目 ProjectList: [], //预授权项目
...@@ -125,6 +130,15 @@ export default{ ...@@ -125,6 +130,15 @@ export default{
}, },
methods: { methods: {
moment, moment,
formatProject(val){
if (!val) {
return;
}
const item = this.ProjectList.find((item) => {
return item.refcd == val;
});
return item? item.descCh: "";
},
//新建预授权 //新建预授权
addPreAuth(){ addPreAuth(){
this.$router.push({ this.$router.push({
...@@ -146,7 +160,7 @@ export default{ ...@@ -146,7 +160,7 @@ export default{
//预授权项目 //预授权项目
this.$apis.GETREFCDBYREFGRP({ this.$apis.GETREFCDBYREFGRP({
modid: "CI", modid: "CI",
refgrp: "预授权项目" refgrp: "AUTH_PROJECT"
}).then((res) => { }).then((res) => {
this.ProjectList = res.content || []; this.ProjectList = res.content || [];
}); });
...@@ -177,11 +191,33 @@ export default{ ...@@ -177,11 +191,33 @@ export default{
}, },
//查看预授权使用数据 //查看预授权使用数据
seeEvt(record={}){ seeEvt(record={}){
let data = record.authorizeItemVoList || []; this.$refs.authData.showModal1(record);
this.$refs.authData.showModal1(data);
}, },
addEvt(){ addEvt(){
},
//删除记录
delRecord(index) {
this.$modal.confirm({
title: "删除",
content: "确定删除该条记录?",
okText: "确认",
cancelText: "取消",
onOk: () => {
this.$apis.AUTHORIZEDELETE({
id: this.dataList[index].id,
})
.then((res) => {
if (res.returnCode == "0000") {
this.$message.success("删除成功");
this.dataList.splice(index, 1);
} else {
this.$message.error(res.returnMsg);
}
});
},
onCancel: () => {},
});
} }
} }
} }
......
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