Commit 9101e3f0 authored by 朱彩云's avatar 朱彩云

Merge branch 'ECCS-1845' into 'master'

客户上的保单到期日期自动按生效日期处理

See merge request !19
parents 61f99195 0061005d
......@@ -51,7 +51,7 @@
</a-select>
</a-form-model-item>
<a-form-model-item label="保单生效日期" prop="startDate">
<a-date-picker allow-clear v-model="form.startDate" placeholder="请选择保单生效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker>
<a-date-picker allow-clear v-model="form.startDate" placeholder="请选择保单生效日期" value-format="YYYY-MM-DD 00:00:00" @change="startDateChange"></a-date-picker>
</a-form-model-item>
<a-form-model-item label="是否承担既往症" prop="isUndertakeAnamnesis">
<a-radio-group v-model="form.isUndertakeAnamnesis" :default-value="form.isUndertakeAnamnesis" button-style="solid">
......@@ -173,6 +173,7 @@
</template>
<script>
import moment from 'moment'
export default {
beforeRouteUpdate(to, from, next) {
this.$refs.form.resetFields();
......@@ -186,6 +187,8 @@ export default {
payorId: undefined,
corpName: undefined,
planName: undefined,
startDate: undefined,
endDate: undefined,
waitingPeriod: "N",
isUndertakeAnamnesis: "N",
medCardCopeFiles: [],
......@@ -219,6 +222,11 @@ export default {
this.initCodeData();
},
methods: {
// 保单生效日期选择后自动将保单结束日期置为一年后
startDateChange(val) {
if(!val){return}
this.form.endDate = moment(val).add(1, 'year').format('YYYY-MM-DD 00:00:00')
},
handlerSave() {
this.$refs.form.validate((valid) => {
if (!valid) {
......
......@@ -55,6 +55,9 @@
<!-- table -->
<a-table :columns="columns" :data-source="dataList" :scroll="{ x: true }" :pagination="false"
:row-selection="isEditNewEOB? { selectedRowKeys: selectedRowKeys, onChange: onSelectChange }: null">
<template slot="eobNo" slot-scope="text,record">
<a @click="toEOBDetail(record)">{{text}}</a>
</template>
<template slot="eobSts" slot-scope="text">
{{text | formatEOBStatus}}
</template>
......@@ -152,7 +155,7 @@ export default {
computed: {
columns() {
const base = [
{ title: "EOB编号", dataIndex: "eobNo", ellipsis: true, width: 150 },
{ title: "EOB编号", dataIndex: "eobNo", scopedSlots: { customRender: 'eobNo' }, ellipsis: true, width: 150 },
{ title: "EOB名称", dataIndex: "eobName", ellipsis: true, width: 195 },
{ title: "核销时间", dataIndex: "eobBackDate", ellipsis: true, width: 110, scopedSlots: { customRender: "eobBackDate" }, },
{ title: "保险公司", dataIndex: "payorName", ellipsis: true, width: 110 },
......@@ -184,6 +187,22 @@ export default {
},
methods: {
moment,
// 查看的超链点击时链接已经生成好了,所以要点击的时候才set值才是对应的,不然存的都是最后一条数据
setData(record){
console.log(record)
localStorage.setItem('EobDataDetail', JSON.stringify(record));
},
// EOB添加去查看的超链
toEOBDetail(record){
const { eobNo } = record;
localStorage.setItem('EobDataDetail', JSON.stringify(record));
this.$router.push({
path: '/verification/detail',
query: {
eobNo
}
})
},
onSelectChange(selectedRowKeys) {
let arr = [];
for(let i=0; i<selectedRowKeys.length; i++){
......
......@@ -117,13 +117,18 @@ export default {
}
this.coverageData.splice(index, 1);
},
// 点击选择或取消选择科室
specialtyChange(code) {
if (code || code == 0) {
this.type.push(code)
const index = this.type.indexOf(code)
if(index < 0) {
this.type.push(code)
} else {
this.type.splice(index, 1)
}
} else {
this.type = [];
}
console.log(code, code || code == 0, this.type)
this._getCoverageList();
},
// 选择框筛选
......
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