Commit 3de191c7 authored by yanglilong's avatar yanglilong

'修改'

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