Commit 3de191c7 authored by yanglilong's avatar yanglilong

'修改'

parent 7bec9043
...@@ -7,4 +7,5 @@ export default { ...@@ -7,4 +7,5 @@ export default {
uploadImg: "/common/upload", uploadImg: "/common/upload",
specialtyList: "/backstage/auth/specialtyList", specialtyList: "/backstage/auth/specialtyList",
coverageCode: "/backstage/auth/coverageMasterList", coverageCode: "/backstage/auth/coverageMasterList",
getRefcdByRefgrp: "/common/getRefcdByRefgrp", //获取快递列表
}; };
// 核销管理api // 核销管理api
export default {}; export default {
queryCiReceipSendList: "/backstage/auth/queryEobReceiptList", //EOB待核销账单查询
deleteEobReceiptInfo: "/backstage/auth/deleteEobReceiptInfo", //删除EOB
saveEobReceiptInfo: "/backstage/auth/saveEobReceiptInfo", //EOB新建
queryEobInfoList: "/backstage/auth/queryEobInfoList", //回款EOB列表查询
saveBackMoney: "/backstage/auth/saveBackMoney", //新建回款
deleteBackMoney: "/backstage/auth/deleteBackMoney", //删除回款
};
...@@ -41,6 +41,11 @@ const GETCOVERAGECODE = (data) => { ...@@ -41,6 +41,11 @@ const GETCOVERAGECODE = (data) => {
return req.post(apis.coverageCode, data); return req.post(apis.coverageCode, data);
}; };
// 获取快递列表
const GETREFCDBYREFGRP = (data) => {
return req.post(apis.getRefcdByRefgrp, data);
};
// 对象数组 // 对象数组
export default { export default {
GETUSERINFO, GETUSERINFO,
...@@ -50,4 +55,5 @@ export default { ...@@ -50,4 +55,5 @@ export default {
GETSPECIALTYLIST, GETSPECIALTYLIST,
UPLOADIMG, UPLOADIMG,
GETCOVERAGECODE, GETCOVERAGECODE,
GETREFCDBYREFGRP,
}; };
// 核销管理函数库 // 核销管理函数库
// import apis from "../apis_moudles/index"; import apis from "../apis_moudles/verification.js";
// import req from "../request"; import req from "../request";
//EOB待核销账单查询
const QUERYCIRECEIPSENDLIST = (data) => {
return req.post(apis.queryCiReceipSendList, data);
};
//EOB新建
const SAVEEOBRECEIPTINFO = (data) => {
return req.post(apis.saveEobReceiptInfo, data);
};
//删除EOB
const DELEOBRECEIPTINFO = (data) => {
return req.post(apis.deleteEobReceiptInfo, data);
};
//回款EOB列表查询
const QUERYEOBRECEIPTINFO = (data) => {
return req.post(apis.queryEobInfoList, data);
};
//新建回款
const SAVEBACKMONEY = (data) => {
return req.post(apis.saveBackMoney, data);
};
//删除回款
const DELETEBACKMONEY = (data) => {
return req.post(apis.deleteBackMoney, data);
};
// 对象数组 // 对象数组
export default {}; export default {
QUERYCIRECEIPSENDLIST,
SAVEEOBRECEIPTINFO,
DELEOBRECEIPTINFO,
QUERYEOBRECEIPTINFO,
SAVEBACKMONEY,
DELETEBACKMONEY,
};
\ No newline at end of file
...@@ -48,10 +48,8 @@ ...@@ -48,10 +48,8 @@
</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-select v-model="form.sendCompany" placeholder="请选择快递公司" allowClear> <a-select v-model="form.sendCompany" placeholder="请选择快递公司" showSearch allowClear>
<a-select-option :value="1">顺丰</a-select-option> <a-select-option v-for="(item) in expressList" :key="item.id" :value="item.descCh">{{item.descCh}}</a-select-option>
<a-select-option :value="2">韵达</a-select-option>
<a-select-option :value="3">中通</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -90,7 +88,6 @@ ...@@ -90,7 +88,6 @@
</a-button> </a-button>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
...@@ -192,6 +189,7 @@ export default { ...@@ -192,6 +189,7 @@ export default {
sendRemark: '' sendRemark: ''
}, },
companyOptions: [], //保险公司 companyOptions: [], //保险公司
expressList: [], //快递列表
selectedRowKeys: [], // Check here to configure the default column selectedRowKeys: [], // Check here to configure the default column
dataList: [], dataList: [],
pagination: { pagination: {
...@@ -218,11 +216,22 @@ export default { ...@@ -218,11 +216,22 @@ export default {
created() { created() {
this.getData(); this.getData();
this._getCompanyOptions(); this._getCompanyOptions();
this.getRefcdByRefgrp();
}, },
methods: { methods: {
moment, moment,
onSelectChange(selectedRowKeys) { onSelectChange(selectedRowKeys) {
this.selectedRowKeys = selectedRowKeys; let arr = [];
for(let i=0; i<selectedRowKeys.length; i++){
let idx = selectedRowKeys[i];
if(this.dataList[idx].sendBatchNo){
this.$msg.destroy();
this.$message.warning('寄送批号已存在')
}else{
arr.push(idx);
}
}
this.selectedRowKeys = arr;
}, },
// 获取列表数据 // 获取列表数据
getData() { getData() {
...@@ -251,6 +260,15 @@ export default { ...@@ -251,6 +260,15 @@ export default {
this.companyOptions = res.content || []; this.companyOptions = res.content || [];
}); });
}, },
// 获取快递列表
getRefcdByRefgrp() {
this.$apis.GETREFCDBYREFGRP({
modid: "CI",
refgrp: "SEND_COMPANY"
}).then((res) => {
this.expressList = res.content || [];
});
},
// 重置 // 重置
handlerReset() { handlerReset() {
this.form = { this.form = {
...@@ -372,6 +390,7 @@ export default { ...@@ -372,6 +390,7 @@ export default {
if (res.returnCode == "0000") { if (res.returnCode == "0000") {
this.$message.success("新建成功"); this.$message.success("新建成功");
this.handlerReset(); this.handlerReset();
this.selectedRowKeys = [];
this.getData(); this.getData();
} else { } else {
this.$message.error(res.returnMsg); this.$message.error(res.returnMsg);
......
...@@ -13,11 +13,7 @@ ...@@ -13,11 +13,7 @@
</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 <a-date-picker format="YYYY年MM月DD日" v-model="form.date" placeholder="选择日期" />
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">
...@@ -30,20 +26,12 @@ ...@@ -30,20 +26,12 @@
</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 type="number" v-model="form.mrnNo" placeholder="请输入金额"/>
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 <a-input type="number" v-model="form.mrnNo" placeholder="请输入金额"/>
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">
...@@ -68,18 +56,16 @@ ...@@ -68,18 +56,16 @@
</a-row> </a-row>
</a-form-model> </a-form-model>
<!-- table --> <!-- table -->
<a-table <a-table :columns="columns" :data-source="dataList" :scroll="{ x: true }" :pagination="false" >
:columns="columns" <template slot="idx" slot-scope="text ,record, index">
:data-source="dataList" {{index+1}}
:scroll="{ x: true }" </template>
:pagination="false" <template slot="eobSts" slot-scope="text">
> {{text==1?'待回款':'已回款'}}
<template slot="operation" slot-scope="record, index"> </template>
<template slot="operation" slot-scope="text, record, index">
<a-button type="link">修改</a-button> <a-button type="link">修改</a-button>
<a-button type="link" class="success">新增</a-button> <a-button v-if="record.backMoneyNo" 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" /> <BurtPagination :pagination="pagination" @pageChange="getData" />
...@@ -88,32 +74,17 @@ ...@@ -88,32 +74,17 @@
<script> <script>
import BurtPagination from "@/components/CUSTOMER/pagation"; import BurtPagination from "@/components/CUSTOMER/pagation";
import moment from "moment";
const columns = [ const columns = [
{ title: "序号", dataIndex: "mrnNo", ellipsis: true, width: 72 }, { title: "序号", dataIndex: "idx", ellipsis: true, width: 72, scopedSlots: { customRender: "idx" }, },
{ title: "EOB名称", dataIndex: "patientName", ellipsis: true, width: 195 }, { title: "EOB名称", dataIndex: "eobName", ellipsis: true, width: 195 },
{ title: "核销时间", dataIndex: "patientName2", ellipsis: true, width: 110 }, { title: "核销时间", dataIndex: "patientName2", ellipsis: true, width: 110 },
{ title: "保险公司", dataIndex: "patientName3", ellipsis: true, width: 110 }, { title: "保险公司", dataIndex: "payorName", ellipsis: true, width: 110 },
{ title: "EOB状态", dataIndex: "patientName9", ellipsis: true, width: 110 }, { title: "EOB状态", dataIndex: "eobSts", ellipsis: true, width: 110, scopedSlots: { customRender: "eobSts" } },
{ { title: "EOB赔付金额(人民币)", dataIndex: "eobAmountCny", ellipsis: true, width: 190,},
title: "EOB赔付金额(人民币)", { title: "EOB赔付金额(美元)", dataIndex: "eobAmountUsd", ellipsis: true, width: 190,},
dataIndex: "patientName4", { title: "汇率差", dataIndex: "backExchangeRate", ellipsis: true, width: 110 },
ellipsis: true, { title: "操作", dataIndex: "operation", scopedSlots: { customRender: "operation" },fixed: "right", width: "170px"},
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() {
...@@ -133,7 +104,11 @@ export default { ...@@ -133,7 +104,11 @@ export default {
components: { components: {
BurtPagination, BurtPagination,
}, },
created(){
this.getData();
},
methods: { methods: {
moment,
pageChange(pager) { pageChange(pager) {
const { current } = pager; const { current } = pager;
this.pagination.pageNum = current; this.pagination.pageNum = current;
...@@ -143,7 +118,21 @@ export default { ...@@ -143,7 +118,21 @@ export default {
this.pagination.pageNum = 1; this.pagination.pageNum = 1;
this.getData(); this.getData();
}, },
getData() {}, getData() {
this.$apis.QUERYEOBRECEIPTINFO({
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
})
.then((res) => {
if (res.returnCode == "0000") {
let content = res.content || {};
this.pagination.total = content.total || 0;
this.dataList = content.list || [];
} else {
this.$message.error(res.returnMsg);
}
});
},
//删除记录 //删除记录
delRecord(index) { delRecord(index) {
this.$modal.confirm({ this.$modal.confirm({
...@@ -152,15 +141,17 @@ export default { ...@@ -152,15 +141,17 @@ export default {
okText: "确认", okText: "确认",
cancelText: "取消", cancelText: "取消",
onOk: () => { onOk: () => {
this.$store this.$apis.DELETEBACKMONEY({
.dispatch("medicinal/delMedicine", { backMoneyNo: this.dataList[index].backMoneyNo,
id: this.dataList[index].id, })
status: -1, .then((res) => {
}) if (res.returnCode == "0000") {
.then(() => {
this.$message.success("删除成功"); this.$message.success("删除成功");
this.dataList.splice(index, 1); this.dataList.splice(index, 1);
}); } else {
this.$message.error(res.returnMsg);
}
});
}, },
onCancel: () => {}, onCancel: () => {},
}); });
......
This diff is collapsed.
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