Commit 99294735 authored by 朱彩云's avatar 朱彩云

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

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