Commit 20b555a5 authored by 朱彩云's avatar 朱彩云

Merge branch 'func_eccs_2803' into 'master'

Func eccs 2803: feat(eccs-2803): 商保增加就诊日期的展示和查询

See merge request !93
parents 533d3695 327a4eaf
......@@ -6,20 +6,49 @@
<a-row :gutter="30">
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="病历号">
<a-input v-model="form.mrnNo" placeholder="请输入病历号" allow-clear />
<a-input
v-model="form.mrnNo"
placeholder="请输入病历号"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="客户姓名">
<a-input v-model="form.patientName" placeholder="请输入客户姓名" allow-clear />
<a-input
v-model="form.patientName"
placeholder="请输入客户姓名"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="就诊日期">
<a-range-picker
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
v-model="form.admissionDateArr"
:placeholder="['选择开始日期', '选择结束日期']"
/>
</a-form-model-item>
</a-col>
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="保险公司">
<a-select v-model="form.payorIds" placeholder="请选择保险公司" allowClear show-search mode="multiple"
:filterOption="filterCode" optionFilterProp="label">
<a-select-option v-for="item in companyOptions" :key="item.corpCode" :value="item.id"
:label="item.longName">
<a-select
v-model="form.payorIds"
placeholder="请选择保险公司"
allowClear
show-search
mode="multiple"
:filterOption="filterCode"
optionFilterProp="label"
>
<a-select-option
v-for="item in companyOptions"
:key="item.corpCode"
:value="item.id"
:label="item.longName"
>
{{ item.longName }}
</a-select-option>
</a-select>
......@@ -27,8 +56,16 @@
</a-col>
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="看诊医生">
<a-select v-model="form.doctorCode" placeholder="请选择看诊医生" allowClear>
<a-select-option v-for="item in doctorOptions" :key="item.doctorCode" :value="item.doctorCode">
<a-select
v-model="form.doctorCode"
placeholder="请选择看诊医生"
allowClear
>
<a-select-option
v-for="item in doctorOptions"
:key="item.doctorCode"
:value="item.doctorCode"
>
{{ item.doctorDesc }}
</a-select-option>
</a-select>
......@@ -36,38 +73,50 @@
</a-col>
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="收费时间">
<a-range-picker format="YYYY-MM-DD" v-model="form.dateRange" :placeholder="['开始时间', '结束时间']"
@change="onSelectVisitTime" />
<a-range-picker
format="YYYY-MM-DD"
v-model="form.dateRange"
:placeholder="['开始时间', '结束时间']"
@change="onSelectVisitTime"
/>
</a-form-model-item>
</a-col>
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="是否已关联寄送单">
<a-select v-model="form.isSend" placeholder="请选择是否已关联寄送单" allowClear>
<a-select-option value="Y" allow-clear>
</a-select-option>
<a-select-option value="N" allow-clear>
</a-select-option>
<a-select
v-model="form.isSend"
placeholder="请选择是否已关联寄送单"
allowClear
>
<a-select-option value="Y" allow-clear></a-select-option>
<a-select-option value="N" allow-clear></a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="是否已回款">
<a-select v-model="form.isEobBack" placeholder="请选择是否已回款" allowClear>
<a-select-option value="Y" allow-clear>
</a-select-option>
<a-select-option value="N" allow-clear>
</a-select-option>
<a-select
v-model="form.isEobBack"
placeholder="请选择是否已回款"
allowClear
>
<a-select-option value="Y" allow-clear></a-select-option>
<a-select-option value="N" allow-clear></a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="账单类型">
<a-select v-model="form.receiptType" placeholder="请选择账单类型" allowClear>
<a-select-option v-for="item in receiptTypeOptions" :key="item.value" :value="item.value">
<a-select
v-model="form.receiptType"
placeholder="请选择账单类型"
allowClear
>
<a-select-option
v-for="item in receiptTypeOptions"
:key="item.value"
:value="item.value"
>
{{ item.name }}
</a-select-option>
</a-select>
......@@ -75,13 +124,21 @@
</a-col>
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="账单编号">
<a-input v-model="form.receiptNo" placeholder="请输入账单编号" allow-clear />
<a-input
v-model="form.receiptNo"
placeholder="请输入账单编号"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="状态">
<a-select v-model="form.status" placeholder="请选择状态" allowClear>
<a-select-option v-for="item in statusOptions" :key="item.code" :value="item.code">
<a-select-option
v-for="item in statusOptions"
:key="item.code"
:value="item.code"
>
{{ item.name }}
</a-select-option>
</a-select>
......@@ -104,8 +161,19 @@
</a-form-model-item>
</a-col>
<a-col :xl="24" :lg="24" :sm="24">
<div class="residue-amount">未清余额合计:<span class="blue-text">{{ ciReceiptTotalVo.residueBackAmount || 0 }} </span> (共计<span class="blue-text"> {{
ciReceiptTotalVo.totalNum || 0 }} </span><span v-if="ciReceiptTotalVo.invalidNum">,其中:无效 <span style="color: red;">{{ ciReceiptTotalVo.invalidNum || 0 }}</span></span>)
<div class="residue-amount">
未清余额合计:<span class="blue-text"
>{{ ciReceiptTotalVo.residueBackAmount || 0 }}
</span>
(共计<span class="blue-text">
{{ ciReceiptTotalVo.totalNum || 0 }} </span
><span v-if="ciReceiptTotalVo.invalidNum"
>,其中:无效
<span style="color: red">{{
ciReceiptTotalVo.invalidNum || 0
}}</span>
</span
>)
</div>
</a-col>
</a-row>
......@@ -113,12 +181,19 @@
</a-form-model>
<!-- table -->
<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="index" slot-scope="text, record, index">
{{ index + 1 }}
</template>
<template slot="operation" slot-scope="record">
<a-button type="link" class="success" @click.stop="detailEvt(record)">查看</a-button>
<a-button type="link" class="success" @click.stop="detailEvt(record)"
>查看</a-button
>
</template>
<template slot="isSend" slot-scope="text">
{{ text == 'Y' ? '' : text == 'N' ? '' : '' }}
......@@ -130,7 +205,9 @@
{{ text == 'Y' ? '' : text == 'N' ? '' : '' }}
</template>
<template slot="status" slot-scope="text">
<span :style="{ color: text == 2 ? 'red' : '' }">{{ text == 1 ? '有效' : text == 2 ? '无效' : '' }}</span>
<span :style="{ color: text == 2 ? 'red' : '' }">{{
text == 1 ? '有效' : text == 2 ? '无效' : ''
}}</span>
</template>
<template slot="redText" slot-scope="text">
<span style="color: red">{{ text }}</span>
......@@ -142,11 +219,11 @@
</template>
<script>
import BurtPagination from '@/components/Customers/pagation';
import { mapState } from 'vuex';
import moment from 'moment';
import { receiptTypeOptions } from '@/assets/js/utilsdictOptions.js';
import { exportFile } from '@/utils/index';
import BurtPagination from '@/components/Customers/pagation'
import { mapState } from 'vuex'
import moment from 'moment'
import { receiptTypeOptions } from '@/assets/js/utilsdictOptions.js'
import { exportFile } from '@/utils/index'
export default {
data() {
const columns = [
......@@ -161,17 +238,44 @@ export default {
{ title: '收费时间', dataIndex: 'receiptDate', width: 180 },
{ title: '账单编号', dataIndex: 'receiptNo', width: 180 },
{ title: '账单类型', dataIndex: 'receiptTypeStr', width: 130 },
{ title: '状态', dataIndex: 'status', width: 130, customRender: val => {
return <span class={val === '2' ? 'red-text' : ''}>{val === '2' ? '无效' : '有效'}</span>;
}},
{
title: '状态',
dataIndex: 'status',
width: 130,
customRender: (val) => {
return (
<span class={val === '2' ? 'red-text' : ''}>
{val === '2' ? '无效' : '有效'}
</span>
)
}
},
{ title: '病历号', dataIndex: 'mrnNo', width: 180 },
{ title: '客户姓名', dataIndex: 'patientName', width: 120 },
{
title: '就诊日期',
dataIndex: 'admissionDate',
width: 120,
customRender: (val) => {
return val ? moment(val).format('YYYY-MM-DD') : ''
}
},
{ title: '保险公司', dataIndex: 'payorName', width: 200 },
{ title: '保险卡', dataIndex: 'cardNo', width: 200 },
{ title: '客户生日', dataIndex: 'birthday', width: 200 },
{ title: '就诊医生', dataIndex: 'doctorName', width: 150 },
{ title: '是否已关联寄送单', dataIndex: 'isSend', width: 180, scopedSlots: { customRender: 'isSend' } },
{ title: '是否已回款', dataIndex: 'isEobBack', width: 180, scopedSlots: { customRender: 'isEobBack' } },
{
title: '是否已关联寄送单',
dataIndex: 'isSend',
width: 180,
scopedSlots: { customRender: 'isSend' }
},
{
title: '是否已回款',
dataIndex: 'isEobBack',
width: 180,
scopedSlots: { customRender: 'isEobBack' }
},
{ title: '应收金额', dataIndex: 'chargeAmount', width: 180 },
{ title: '折扣(%)', dataIndex: 'discountAmount', width: 180 },
{ title: '减免金额', dataIndex: 'reduceAmount', width: 180 },
......@@ -180,8 +284,18 @@ export default {
{ title: '理赔金额', dataIndex: 'actualAmount', width: 180 },
{ title: '保险已支付', dataIndex: 'backAmount', width: 180 },
{ title: '保险欠费', dataIndex: 'insuranceArrearsAmount', width: 180 },
{ title: '个人欠费', dataIndex: 'arrearsAmount', width: 180, scopedSlots: { customRender: 'redText' } },
{ title: '备注', dataIndex: 'remark', width: 200, scopedSlots: { customRender: 'redText' } },
{
title: '个人欠费',
dataIndex: 'arrearsAmount',
width: 180,
scopedSlots: { customRender: 'redText' }
},
{
title: '备注',
dataIndex: 'remark',
width: 200,
scopedSlots: { customRender: 'redText' }
},
{ title: '未清余额', dataIndex: 'residueBackAmount', width: 180 },
{ title: '账龄', dataIndex: 'diffDay', width: 180 },
{
......@@ -192,7 +306,7 @@ export default {
scopedSlots: { customRender: 'operation' },
align: 'center'
}
];
]
return {
columns,
receiptTypeOptions,
......@@ -200,6 +314,7 @@ export default {
pageForm: {
doctorCode: '',
patientName: '',
admissionDateArr: [],
mrnNo: '',
paymentCode: '',
payorIds: [],
......@@ -243,8 +358,8 @@ export default {
}
],
ciReceiptTotalVo: {},
iscreated:false
};
iscreated: false
}
},
components: {
BurtPagination
......@@ -256,13 +371,13 @@ export default {
},
created() {
this.iscreated = true
this._getCompanyOptions();
this._getDoctorListNoPage(); //获取医生下拉选项
this._getCompanyOptions()
this._getDoctorListNoPage() //获取医生下拉选项
},
activated(){
if(!this.iscreated){
this._getCompanyOptions();
}else{
activated() {
if (!this.iscreated) {
this._getCompanyOptions()
} else {
this.iscreated = false
}
},
......@@ -270,70 +385,104 @@ export default {
moment,
// 获取未清余额合计
getReceiptCount() {
this.$apis.receiptCount({
this.$apis
.receiptCount({
...this.pageForm,
...this.pagination
}).then((res) => {
...this.pagination,
admissionDateStart:
this.form.admissionDateArr && this.form.admissionDateArr[0]
? moment(this.form.admissionDateArr[0]).format(
'YYYY-MM-DD 00:00:00'
)
: '',
admissionDateEnd:
this.form.admissionDateArr && this.form.admissionDateArr[1]
? moment(this.form.admissionDateArr[1]).format(
'YYYY-MM-DD 23:59:59'
)
: ''
})
.then((res) => {
if (res.returnCode == '0000') {
console.log(res.content)
this.ciReceiptTotalVo = res.content
}
});
})
},
// 选择框筛选
filterCode(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
return (
option.componentOptions.children[0].text
.toLowerCase()
.indexOf(input.toLowerCase()) >= 0
)
},
// 获取列表数据
_getChargeList() {
const data = {
...this.pageForm,
...this.pagination
};
...this.pagination,
admissionDateStart:
this.form.admissionDateArr && this.form.admissionDateArr[0]
? moment(this.form.admissionDateArr[0]).format(
'YYYY-MM-DD 00:00:00'
)
: '',
admissionDateEnd:
this.form.admissionDateArr && this.form.admissionDateArr[1]
? moment(this.form.admissionDateArr[1]).format(
'YYYY-MM-DD 23:59:59'
)
: ''
}
this.$apis.getChargeList(data).then((res) => {
let content = res.content || {};
let content = res.content || {}
this.dataList =
content.list.map((item) => {
item.receiptTypeStr = this.receiptTypeDict[item.receiptType] || '';
return item;
}) || [];
this.pagination.total = content.total || 0;
});
item.receiptTypeStr = this.receiptTypeDict[item.receiptType] || ''
return item
}) || []
this.pagination.total = content.total || 0
})
},
// 获取保险公司下拉选项
_getCompanyOptions() {
this.$apis.getCompanyOptions().then((res) => {
this.companyOptions = res.content || [];
});
this.companyOptions = res.content || []
})
},
// 获取看诊医生下拉选项
_getDoctorListNoPage() {
this.$apis.getDoctorListNoPage({ providerId: this.userInfo.providerId }).then((res) => {
this.$apis
.getDoctorListNoPage({ providerId: this.userInfo.providerId })
.then((res) => {
if (res.returnCode === '0000') {
this.doctorOptions = res.content || [];
this.doctorOptions = res.content || []
} else {
this.$message.success(res.returnMsg);
this.$message.success(res.returnMsg)
}
});
})
},
// 选中就诊时间
onSelectVisitTime(date, dateString) {
this.form.visitTimeStart = dateString[0] ? dateString[0] + ' 00:00:00' : '';
this.form.visitTimeEnd = dateString[1] ? dateString[1] + ' 23:59:59' : '';
console.log(date, dateString);
this.form.visitTimeStart = dateString[0]
? dateString[0] + ' 00:00:00'
: ''
this.form.visitTimeEnd = dateString[1] ? dateString[1] + ' 23:59:59' : ''
console.log(date, dateString)
},
// 重置
handlerReset() {
this.form = {};
this.form = {}
},
//查看
detailEvt(record) {
localStorage.setItem('chargeQueryDetail', JSON.stringify(record));
const { receiptNo } = record;
localStorage.setItem('chargeQueryDetail', JSON.stringify(record))
const { receiptNo } = record
this.$router.push({
name: 'chargeQueryDetail',
query: { receiptNo }
});
})
},
//账单结算
receiptEvt(record) {
......@@ -349,26 +498,29 @@ export default {
})
.then((res) => {
if (res.returnCode === '0000') {
this.$message.success('结算成功');
this._getChargeList();
this.$message.success('结算成功')
this._getChargeList()
} else {
this.$message.error(res.returnMsg);
this.$message.error(res.returnMsg)
}
});
})
}
});
})
},
handlerSearch() {
this.$refs.form.validate((valid) => {
if (!valid) {
return false;
return false
}
this.pagination.pageNum = 1;
this.pageForm = this.$lodash.cloneDeep({ ...this.form, dateRange: undefined });
this._getChargeList();
this.pagination.pageNum = 1
this.pageForm = this.$lodash.cloneDeep({
...this.form,
dateRange: undefined
})
this._getChargeList()
this.getReceiptCount()
});
})
},
// 新建账单信息
addNewCharge() {
......@@ -378,13 +530,13 @@ export default {
exportExcel() {
let filter = {
...this.form
};
}
this.$apis.rceiptListReport(filter).then((res) => {
exportFile(res, '账单报表.xls');
});
exportFile(res, '账单报表.xls')
})
}
}
};
}
</script>
<style lang="less" scoped>
.none-label {
......@@ -404,4 +556,5 @@ export default {
font-size: 14px;
// .mg-t(48);
margin: 0 0 10px;
}</style>
}
</style>
......@@ -6,18 +6,38 @@
<a-row :gutter="30">
<a-col :lg="6" :sm="12">
<a-form-model-item label="就诊日期">
<a-range-picker format="YYYY年MM月DD日" v-model="form.dateRange" :placeholder="['开始日期', '结束日期']" />
<a-range-picker
format="YYYY-MM-DD"
v-model="form.dateRange"
:placeholder="['开始日期', '结束日期']"
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="账单日期">
<a-range-picker format="YYYY年MM月DD日" value-format="YYYY年MM月DD日" v-model="form.billDate" :placeholder="['选择账单开始日期', '选择账单结束日期']" />
<a-range-picker
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
v-model="form.billDate"
:placeholder="['选择账单开始日期', '选择账单结束日期']"
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="保险公司">
<a-select v-model="form.payorCode" placeholder="请选择保险公司" showSearch allowClear optionFilterProp="label">
<a-select-option v-for="item in companyOptions" :key="item.longName" :value="item.payorCode" :label="item.longName">
<a-select
v-model="form.payorCode"
placeholder="请选择保险公司"
showSearch
allowClear
optionFilterProp="label"
>
<a-select-option
v-for="item in companyOptions"
:key="item.longName"
:value="item.payorCode"
:label="item.longName"
>
{{ item.longName }}
</a-select-option>
</a-select>
......@@ -25,7 +45,11 @@
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="寄送状态">
<a-select v-model="form.sendSts" placeholder="请选择寄送状态" allowClear>
<a-select
v-model="form.sendSts"
placeholder="请选择寄送状态"
allowClear
>
<a-select-option value="1">已寄送</a-select-option>
<a-select-option value="2">未寄送</a-select-option>
</a-select>
......@@ -35,48 +59,83 @@
<a-row :gutter="30">
<a-col :lg="6" :sm="12">
<a-form-model-item label="快递公司">
<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
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>
<a-col :lg="6" :sm="12">
<a-form-model-item label="快递单号">
<a-input v-model="form.trackingNo" placeholder="请输入快递单号" allow-clear />
<a-input
v-model="form.trackingNo"
placeholder="请输入快递单号"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="寄送批号">
<a-input v-model="form.sendBatchNo" placeholder="请输入寄送批号" allow-clear />
<a-input
v-model="form.sendBatchNo"
placeholder="请输入寄送批号"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="账单编号">
<a-input v-model="form.receiptNo" placeholder="请输入账单编号" allow-clear />
<a-input
v-model="form.receiptNo"
placeholder="请输入账单编号"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="病案号">
<a-input v-model="form.mrnNo" placeholder="请输入病案号" allow-clear />
<a-input
v-model="form.mrnNo"
placeholder="请输入病案号"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="客户名称">
<a-input v-model="form.patientName" placeholder="请输入客户名称" allow-clear />
<a-input
v-model="form.patientName"
placeholder="请输入客户名称"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col :sm="24" class="none-label">
<div class="btn-div flex">
<span></span>
<a-form-model-item label="button">
<a-button class="mar-left10" type="primary" @click="handlerSearch">
<a-button
class="mar-left10"
type="primary"
@click="handlerSearch"
>
<Icon name="ssisearch_active" :size="14" />查询
</a-button>
<a-button class="mar-left10" type="primary" @click="handlerReset">
<Icon name="ssireset" :size="14" />重置
</a-button>
<a-button class="mar-left10" type="primary" @click="addNewCharge">
<Icon name="ssiadd" :size="14" />新建寄送</a-button>
<Icon name="ssiadd" :size="14" />新建寄送</a-button
>
</a-form-model-item>
</div>
</a-col>
......@@ -84,17 +143,28 @@
</a-form-model>
<!-- table -->
<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="sendDate" slot-scope="text">
{{ text? moment(text).format('YYYY-MM-DD'): '' }}
{{ text ? moment(text).format('YYYY-MM-DD') : '' }}
</template>
<template slot="sendSts" slot-scope="text">
{{ text==1?'已寄送':'未寄送' }}
{{ text == 1 ? '已寄送' : '未寄送' }}
</template>
<template slot="operation" slot-scope="text, record, index">
<a-button type="link" @click.stop="editEvt(record, true)">编辑</a-button>
<a-button type="link" class="success" @click.stop="editEvt(record)">查看</a-button>
<a-button type="link" class="danger" @click.stop="delRecord(index)">删除</a-button>
<a-button type="link" @click.stop="editEvt(record, true)"
>编辑</a-button
>
<a-button type="link" class="success" @click.stop="editEvt(record)"
>查看</a-button
>
<a-button type="link" class="danger" @click.stop="delRecord(index)"
>删除</a-button
>
</template>
</a-table>
<!--分页-->
......@@ -103,30 +173,53 @@
</template>
<script>
import BurtPagination from "@/components/Customers/pagation";
import BurtPagination from '@/components/Customers/pagation'
import moment from 'moment'
export default {
data() {
const columns = [
{ title: "寄送批号", dataIndex: "sendBatchNo", key:"sendBatchNo",align:'center', width: 136},
{ title: "保险公司", dataIndex: "payorName", width: 110 },
{ title: "寄送状态", dataIndex: "sendSts", width: 90,scopedSlots: { customRender: "sendSts" } },
{ title: "寄送日期", dataIndex: "sendDate",width: 130,scopedSlots: { customRender: "sendDate" }},
{ title: "快递单号",dataIndex: "trackingNo",width: 180,},
{ title: "寄送备注", dataIndex: "sendRemark", width: 100 },
{ title: "操作", key: "operation", width: "200px",fixed: "right",scopedSlots: { customRender: "operation" }, align: "center"},
];
{
title: '寄送批号',
dataIndex: 'sendBatchNo',
key: 'sendBatchNo',
align: 'center',
width: 136
},
{ title: '保险公司', dataIndex: 'payorName', width: 110 },
{
title: '寄送状态',
dataIndex: 'sendSts',
width: 90,
scopedSlots: { customRender: 'sendSts' }
},
{
title: '寄送日期',
dataIndex: 'sendDate',
width: 130,
scopedSlots: { customRender: 'sendDate' }
},
{ title: '快递单号', dataIndex: 'trackingNo', width: 180 },
{ title: '寄送备注', dataIndex: 'sendRemark', width: 100 },
{
title: '操作',
key: 'operation',
width: '200px',
fixed: 'right',
scopedSlots: { customRender: 'operation' },
align: 'center'
}
]
return {
loading: false,
columns,
form: {
dateRange: [],
billDate:[],
billDate: [],
payorCode: '',
sendBatchNo: '',
sendCompany: '',
trackingNo: '',
sendSts: '',
sendSts: ''
},
companyOptions: [], //保险公司
expressList: [], //快递列表
......@@ -134,26 +227,26 @@ export default {
pagination: {
pageNum: 1,
pageSize: 10,
total: 0,
total: 0
},
iscreated:false
};
iscreated: false
}
},
components: {
BurtPagination,
BurtPagination
},
created() {
this.iscreated = true
this.getData();
this._getCompanyOptions();
this.getRefcdByRefgrp();
this.getData()
this._getCompanyOptions()
this.getRefcdByRefgrp()
},
activated(){
if(!this.iscreated){
this.getData();
this._getCompanyOptions();
this.getRefcdByRefgrp();
}else{
activated() {
if (!this.iscreated) {
this.getData()
this._getCompanyOptions()
this.getRefcdByRefgrp()
} else {
this.iscreated = false
}
},
......@@ -165,94 +258,104 @@ export default {
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
...this.form,
visitTimeStart: this.form.dateRange[0]?moment(this.form.dateRange[0]).format('YYYY-MM-DD 00:00:00'):'',
visitTimeEnd: this.form.dateRange[1]?moment(this.form.dateRange[1]).format('YYYY-MM-DD 00:00:00'):'',
receiptEndDate: this.form.billDate[1] ? moment(this.form.billDate[1]).format('YYYY-MM-DD 00:00:00'):'',
receiptStartDate: this.form.billDate[0] ? moment(this.form.billDate[0]).format('YYYY-MM-DD 00:00:00'):''
visitTimeStart: this.form.dateRange[0]
? moment(this.form.dateRange[0]).format('YYYY-MM-DD 00:00:00')
: '',
visitTimeEnd: this.form.dateRange[1]
? moment(this.form.dateRange[1]).format('YYYY-MM-DD 00:00:00')
: '',
receiptEndDate: this.form.billDate[1]
? moment(this.form.billDate[1]).format('YYYY-MM-DD 00:00:00')
: '',
receiptStartDate: this.form.billDate[0]
? moment(this.form.billDate[0]).format('YYYY-MM-DD 00:00:00')
: ''
}
delete filter.dateRange;
this.$apis.querySendInfoList(filter)
.then((res) => {
if (res.returnCode == "0000") {
let content = res.content || {};
this.pagination.total = content.total || 0;
this.dataList = content.list || [];
delete filter.dateRange
this.$apis.querySendInfoList(filter).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);
this.$message.error(res.returnMsg)
}
});
})
},
// 获取保险公司下拉选项
_getCompanyOptions() {
this.$apis.getCompanyOptions().then((res) => {
this.companyOptions = res.content || [];
});
this.companyOptions = res.content || []
})
},
// 获取快递列表
getRefcdByRefgrp() {
this.$apis.getRefcdByRefgrp({
modid: "CI",
refgrp: "SEND_COMPANY"
}).then((res) => {
this.expressList = res.content || [];
});
this.$apis
.getRefcdByRefgrp({
modid: 'CI',
refgrp: 'SEND_COMPANY'
})
.then((res) => {
this.expressList = res.content || []
})
},
// 重置
handlerReset() {
this.form = {
dateRange: [],
billDate:[],
billDate: [],
payorCode: '',
sendBatchNo: '',
sendCompany: '',
trackingNo: '',
sendSts: '',
sendSts: ''
}
},
//编辑
editEvt(record, isEdit) {
const { sendBatchNo } = record;
localStorage.setItem('jisongDataDetail', JSON.stringify(record));
const { sendBatchNo } = record
localStorage.setItem('jisongDataDetail', JSON.stringify(record))
this.$router.push({
path: "/charge-query/lpjManageDetail",
query: { sendBatchNo, isEdit },
});
path: '/charge-query/lpjManageDetail',
query: { sendBatchNo, isEdit }
})
},
handlerSearch() {
this.pagination.pageNum = 1;
this.getData();
this.pagination.pageNum = 1
this.getData()
},
//删除
delRecord(index) {
this.$modal.confirm({
title: "删除",
content: "确定删除该条记录?",
okText: "确定",
cancelText: "取消",
title: '删除',
content: '确定删除该条记录?',
okText: '确定',
cancelText: '取消',
onOk: () => {
this.$apis.DeleteReceiptSendInfo({
sendBatchNo: this.dataList[index].sendBatchNo,
this.$apis
.DeleteReceiptSendInfo({
sendBatchNo: this.dataList[index].sendBatchNo
})
.then((res) => {
if (res.returnCode == "0000") {
this.$message.success("删除成功");
this.dataList.splice(index, 1);
if (res.returnCode == '0000') {
this.$message.success('删除成功')
this.dataList.splice(index, 1)
} else {
this.$message.error(res.returnMsg);
this.$message.error(res.returnMsg)
}
});
},
});
})
}
})
},
//新建寄送
addNewCharge(){
addNewCharge() {
this.$router.push({
path: '/charge-query/lpjManageDetail',
query: { isEdit: true },
query: { isEdit: true }
})
}
},
};
}
}
</script>
<style lang="less" scoped>
.none-label {
......@@ -264,7 +367,7 @@ export default {
.ant-btn .icon-class {
.mg-r(10);
}
.btn-div{
.btn-div {
justify-content: space-between;
}
</style>
......@@ -196,6 +196,16 @@
</a-select>
</a-form-model-item>
</a-col>
<a-col :lg="8" :sm="12">
<a-form-model-item label="就诊日期">
<a-range-picker
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
v-model="searchForm.admissionDateStart"
:placeholder="['选择开始日期', '选择结束日期']"
/>
</a-form-model-item>
</a-col>
</a-row>
<a-row :gutter="30">
<a-col :sm="24" class="none-label">
......@@ -468,6 +478,12 @@ export default {
fixed: 'left',
width: 120
},
{
title: '就诊日期',
dataIndex: 'admissionDate',
fixed: 'left',
width: 120
},
{
title: '病历号',
dataIndex: 'mrnNo',
......@@ -731,8 +747,15 @@ export default {
handlerSearch() {
this.pagination.pageNum = 1
let visitTimeStart = this.searchForm.visitTimeStart || []
let admissionDateStart = this.searchForm.admissionDateStart || []
this.searchData = this.$lodash.cloneDeep({
...this.searchForm,
admissionDateStart: admissionDateStart[0]
? admissionDateStart[0] + ' 00:00:00'
: undefined,
admissionDateEnd: admissionDateStart[0]
? admissionDateStart[0] + ' 23:59:59'
: undefined,
visitTimeEnd: visitTimeStart[1]
? visitTimeStart[1] + ' 23:59:59'
: undefined,
......
......@@ -284,6 +284,16 @@
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12" v-if="activeKey1 === '1'">
<a-form-model-item label="就诊日期">
<a-range-picker
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
v-model="searchForm.admissionDateStart"
:placeholder="['选择开始日期', '选择结束日期']"
/>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12" v-if="activeKey1 === '1'">
<a-form-model-item label="" class="mar_l40">
<a-checkbox
......@@ -295,7 +305,10 @@
</a-col>
<a-col class="flex-col" :lg="4" :sm="12">
<div>
<a-button type="primary" @click="searchData">
<a-button
type="primary"
@click="searchData('init')"
>
<Icon name="ssisearch_active" :size="14" />查询
</a-button>
</div>
......@@ -541,6 +554,12 @@ export default {
width: 180,
scopedSlots: { customRender: 'patientName' }
},
{
title: '就诊日期',
dataIndex: 'admissionDate',
ellipsis: true,
width: 160
},
{ title: '病历号', dataIndex: 'mrnNo', ellipsis: true, width: 195 },
{
title: '保险公司',
......@@ -742,7 +761,7 @@ export default {
patientName: '', // 客户名字
hasBack: 'N'
}
this.searchData()
this.searchData('init')
}
},
created() {
......@@ -820,7 +839,10 @@ export default {
return record.hidden ? 'hide_' : ''
},
// 账单查询
searchData() {
searchData(type) {
if (type === 'init') {
this.pagination.pageNum = 1
}
if (this.activeKey1 === '1') {
this._getNewEOBList()
} else {
......@@ -903,6 +925,7 @@ export default {
// 全选
selectAllList() {
let billDate = this.searchForm.billDate || []
let admissionDateStart = this.searchForm.admissionDateStart || []
this.$apis
.queryReceiptInfoList({
pageNum: 1,
......@@ -911,7 +934,13 @@ export default {
payorCode: this.form.payorCode,
...this.searchForm,
receiptEndDate: billDate[1] ? billDate[1] + ' 23:59:59' : undefined,
receiptStartDate: billDate[0] ? billDate[0] + ' 00:00:00' : undefined
receiptStartDate: billDate[0] ? billDate[0] + ' 00:00:00' : undefined,
admissionDateStart: admissionDateStart[0]
? admissionDateStart[0] + ' 00:00:00'
: undefined,
admissionDateEnd: admissionDateStart[1]
? admissionDateStart[1] + ' 23:59:59'
: undefined
})
.then((res) => {
if (res.returnCode == '0000') {
......@@ -1009,6 +1038,7 @@ export default {
return
}
let billDate = this.searchForm.billDate || []
let admissionDateStart = this.searchForm.admissionDateStart || []
this.$apis
.queryBackReceiptList({
pageNum: 1,
......@@ -1016,7 +1046,13 @@ export default {
backMoneyNo: this.backMoneyNo,
...this.searchForm,
receiptEndDate: billDate[1] ? billDate[1] + ' 23:59:59' : undefined,
receiptStartDate: billDate[0] ? billDate[0] + ' 00:00:00' : undefined
receiptStartDate: billDate[0] ? billDate[0] + ' 00:00:00' : undefined,
admissionDateStart: admissionDateStart[0]
? admissionDateStart[0] + ' 00:00:00'
: undefined,
admissionDateEnd: admissionDateStart[1]
? admissionDateStart[1] + ' 23:59:59'
: undefined
})
.then((res) => {
if (res.returnCode == '0000') {
......@@ -1030,6 +1066,12 @@ export default {
: undefined,
receiptStartDate: billDate[0]
? billDate[0] + ' 00:00:00'
: undefined,
admissionDateStart: admissionDateStart[0]
? admissionDateStart[0] + ' 00:00:00'
: undefined,
admissionDateEnd: admissionDateStart[1]
? admissionDateStart[1] + ' 23:59:59'
: undefined
})
const list = res.content.list || []
......@@ -1049,6 +1091,7 @@ export default {
// 获取所有账单
_getNewEOBList() {
let billDate = this.searchForm.billDate || []
let admissionDateStart = this.searchForm.admissionDateStart || []
this.$apis
.queryReceiptInfoList({
pageNum: this.pagination.pageNum,
......@@ -1057,7 +1100,13 @@ export default {
payorCode: this.form.payorCode,
...this.searchForm,
receiptEndDate: billDate[1] ? billDate[1] + ' 23:59:59' : undefined,
receiptStartDate: billDate[0] ? billDate[0] + ' 00:00:00' : undefined
receiptStartDate: billDate[0] ? billDate[0] + ' 00:00:00' : undefined,
admissionDateStart: admissionDateStart[0]
? admissionDateStart[0] + ' 00:00:00'
: undefined,
admissionDateEnd: admissionDateStart[1]
? admissionDateStart[1] + ' 23:59:59'
: undefined
})
.then((res) => {
if (res.returnCode == '0000') {
......@@ -1072,6 +1121,12 @@ export default {
: undefined,
receiptStartDate: billDate[0]
? billDate[0] + ' 00:00:00'
: undefined,
admissionDateStart: admissionDateStart[0]
? admissionDateStart[0] + ' 00:00:00'
: undefined,
admissionDateEnd: admissionDateStart[1]
? admissionDateStart[1] + ' 23:59:59'
: undefined
})
let content = res.content || {}
......
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