Commit c9be409d authored by yanglilong's avatar yanglilong

修改

parent c400445b
...@@ -4,27 +4,28 @@ ...@@ -4,27 +4,28 @@
<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 show-search v-model="form.patientId" <a-select show-search v-model="form.mrnNo" :disabled="!!id"
placeholder="病历号" :filter-option="false" placeholder="病历号" :filter-option="false"
@search="getPatienList" @search="getPatienList"
@change="patienListChange"> @change="patienListChange">
<a-select-option v-for="item in patientList" :key="item.id" :value="item.id">{{item.patientName}}</a-select-option> <a-select-option v-for="item in patientList" :key="item.id" :value="item.mrnNo">{{item.patientName}}</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.patientName" placeholder="请输入客户姓名" allow-clear /> <a-input v-model="form.patientName" placeholder="请输入客户姓名" allow-clear :disabled="!!id"/>
</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-date-picker allow-clear v-model="form.firstEnrollmentTime" placeholder="请选择出生日期" value-format="YYYY-MM-DD 00:00:00" /> <a-date-picker allow-clear :disabled="!!id"
v-model="form.firstEnrollmentTime" placeholder="请选择出生日期" value-format="YYYY-MM-DD 00:00:00" />
</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="请选择保险公司" <a-select v-model="form.payorCode" placeholder="请选择保险公司" :disabled="!!id"
@change="_getPatientPolicyList"> @change="_getPatientPolicyList">
<a-select-option v-for="item in companyOptions" :key="item.id" :value="item.payorCode"> <a-select-option v-for="item in companyOptions" :key="item.id" :value="item.payorCode">
{{ item.longName }} {{ item.longName }}
...@@ -34,7 +35,7 @@ ...@@ -34,7 +35,7 @@
</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.policyNo" placeholder="请选择保单号码" allowClear> <a-select v-model="form.policyNo" placeholder="请选择保单号码" allowClear :disabled="!!id">
<a-select-option v-for="item in PolicyOptions" :key="item.id" :value="item.policyNo"> <a-select-option v-for="item in PolicyOptions" :key="item.id" :value="item.policyNo">
{{ item.policyNo }} {{ item.policyNo }}
</a-select-option> </a-select-option>
...@@ -43,7 +44,8 @@ ...@@ -43,7 +44,8 @@
</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.doctorCode" placeholder="请选择主治医生" showSearch :filter-option="filterOption" optionFilterProp="label"> <a-select v-model="form.doctorCode" placeholder="请选择主治医生" :disabled="!!id"
showSearch :filter-option="filterOption" optionFilterProp="label">
<a-select-option v-for="item in doctorOptions" :key="item.doctorCode" :value="item.doctorCode" <a-select-option v-for="item in doctorOptions" :key="item.doctorCode" :value="item.doctorCode"
:label="item.doctorDesc+item.doctorCode"> :label="item.doctorDesc+item.doctorCode">
{{ item.doctorDesc }} {{ item.doctorDesc }}
...@@ -53,21 +55,22 @@ ...@@ -53,21 +55,22 @@
</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.authProject" placeholder="请选择预授权项目" allowClear> <a-select v-model="form.authProject" placeholder="请选择预授权项目" allowClear :disabled="!!id">
<a-select-option v-for="(item) in ProjectList" :key="item.id" :value="item.refcd">{{item.descCh}}</a-select-option> <a-select-option v-for="(item) in ProjectList" :key="item.id" :value="item.refcd">{{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-date-picker allow-clear v-model="form.authorDate" placeholder="请选择预计治疗时间" value-format="YYYY-MM-DD 00:00:00" /> <a-date-picker allow-clear v-model="form.authorDate" placeholder="请选择预计治疗时间" :disabled="!!id"
value-format="YYYY-MM-DD 00:00:00" />
</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="预计治疗费用">
<div class="flex input-div"> <div class="flex input-div">
<a-input v-model="form.authorAmount" placeholder="请输入费用" type="number" :min="0" /> <a-input v-model="form.authorAmount" placeholder="请输入费用" type="number" :min="0" :disabled="!!id" />
<a-select v-model="form.authorAmountUnit" style="width:90px;"> <a-select v-model="form.authorAmountUnit" style="width:90px;" :disabled="!!id">
<a-select-option v-for="(item) in MoneyUnitOptions" :key="item.value" :value="item.value">{{item.name}}</a-select-option> <a-select-option v-for="(item) in MoneyUnitOptions" :key="item.value" :value="item.value">{{item.name}}</a-select-option>
</a-select> </a-select>
</div> </div>
...@@ -75,12 +78,13 @@ ...@@ -75,12 +78,13 @@
</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-date-picker allow-clear v-model="form.firstVisitDate" placeholder="请选择初诊日期" value-format="YYYY-MM-DD 00:00:00" /> <a-date-picker allow-clear v-model="form.firstVisitDate" placeholder="请选择初诊日期" :disabled="!!id"
value-format="YYYY-MM-DD 00:00:00" />
</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.purpose" placeholder="请选择治疗目的"> <a-select v-model="form.purpose" placeholder="请选择治疗目的" :disabled="!!id">
<a-select-option value="01">疾病</a-select-option> <a-select-option value="01">疾病</a-select-option>
<a-select-option value="02">事故</a-select-option> <a-select-option value="02">事故</a-select-option>
</a-select> </a-select>
...@@ -88,19 +92,19 @@ ...@@ -88,19 +92,19 @@
</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.treatmentPlan" placeholder="请选择治疗方案"> <a-select v-model="form.treatmentPlan" placeholder="请选择治疗方案" :disabled="!!id">
<a-select-option v-for="(item,i) in treatmentPlanList" :key="i" :value="item.refcd">{{item.descCh}}</a-select-option> <a-select-option v-for="(item,i) in treatmentPlanList" :key="i" :value="item.refcd">{{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.diagnosis" placeholder="请输入诊断" allow-clear /> <a-input v-model="form.diagnosis" placeholder="请输入诊断" allow-clear :disabled="!!id"/>
</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-upload name="file" :multiple="false" :showUploadList="true" <a-upload name="file" :multiple="false" :showUploadList="true" :disabled="!!id"
:fileList="form.medicalRecord" :fileList="form.medicalRecord"
:customRequest="(file)=>uploadFile(file, 1)" :customRequest="(file)=>uploadFile(file, 1)"
:beforeUpload="()=>beforeUpload(1)" :beforeUpload="()=>beforeUpload(1)"
...@@ -112,7 +116,7 @@ ...@@ -112,7 +116,7 @@
</a-row> </a-row>
<!--费用明细--> <!--费用明细-->
<a-row> <a-row>
<FeeDetail :ProjectList="ProjectList" @authorizeItemVoListChange="authorizeItemVoListChange" /> <FeeDetail :id="id" ref="feeDetail" :ProjectList="ProjectList" @authorizeItemVoListChange="authorizeItemVoListChange" />
</a-row> </a-row>
<a-row :gutter="30" class="footer-body"> <a-row :gutter="30" class="footer-body">
<a-col :lg="6" :sm="12"> <a-col :lg="6" :sm="12">
...@@ -150,7 +154,7 @@ ...@@ -150,7 +154,7 @@
<a-col :lg="24" :sm="12" class="none-label"> <a-col :lg="24" :sm="12" class="none-label">
<a-form-model-item label="button"> <a-form-model-item label="button">
<a-button type="primary" @click="saveEvt" :loading="loading"> <a-button type="primary" @click="saveEvt" :loading="loading">
<Icon name="ssibaocun" :size="14" />保存 <Icon :name="id?'ssibaocun':'ssiadd'" :size="14" />{{id? '保存预授权': '新建预授权'}}
</a-button> </a-button>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -173,8 +177,10 @@ export default{ ...@@ -173,8 +177,10 @@ export default{
loading: false, loading: false,
MoneyUnitOptions, MoneyUnitOptions,
ApplyStatusOptions, ApplyStatusOptions,
id: '', //预授权id
form: { form: {
mrnNo: '', mrnNo: '',
patientId: '',
payorCode: '', payorCode: '',
policyNo: '', policyNo: '',
firstEnrollmentTime: '', firstEnrollmentTime: '',
...@@ -202,12 +208,18 @@ export default{ ...@@ -202,12 +208,18 @@ export default{
}) })
}, },
created(){ created(){
this.id = this.$route.query.id || "";
this.getRefcdByRefgrp(); this.getRefcdByRefgrp();
this._getDoctorListNoPage();//获取看诊医生下拉选项 this._getDoctorListNoPage();//获取看诊医生下拉选项
if(this.id){
this.getDetail();
}
}, },
methods: { methods: {
init(){ init(){
this.form = { this.form = {
mrnNo: '',
patientId: '',
payorCode: '', payorCode: '',
policyNo: '', policyNo: '',
firstEnrollmentTime: '', firstEnrollmentTime: '',
...@@ -225,6 +237,40 @@ export default{ ...@@ -225,6 +237,40 @@ export default{
authorizeItemVoListChange(data){ authorizeItemVoListChange(data){
this.form.authorizeItemVoList = data; this.form.authorizeItemVoList = data;
}, },
//获取预授权详情
getDetail(){
this.$apis.AUTHORIZEDETAIL({
id: this.id
})
.then((res)=>{
if (res.returnCode === "0000") {
let content = res.content || {}
this.form = {
...content,
medicalRecord: (content.medicalRecord || []).map((item)=>{
return {
uid: item.id,
name: item.fileName,
status: 'done',
url: item.fileUrl,
}
}),
supplementalResult: (content.supplementalResult || []).map((item)=>{
return {
uid: item.id,
name: item.fileName,
status: 'done',
url: item.fileUrl,
}
}),
authorizeItemVoList: content.authorizeItemVoList || [],
};
this.$refs.feeDetail.dataList = this.form.authorizeItemVoList;
}else{
this.$message.success(res.returnMsg);
}
})
},
// 获取看诊医生下拉选项 // 获取看诊医生下拉选项
_getDoctorListNoPage(){ _getDoctorListNoPage(){
this.$apis.GETDOCTORlISTNOPAGE({"providerId": this.userInfo.providerId}).then((res) => { this.$apis.GETDOCTORlISTNOPAGE({"providerId": this.userInfo.providerId}).then((res) => {
...@@ -233,7 +279,6 @@ export default{ ...@@ -233,7 +279,6 @@ export default{
}else{ }else{
this.$message.success(res.returnMsg); this.$message.success(res.returnMsg);
} }
}); });
}, },
getPatienList(value){ getPatienList(value){
...@@ -257,9 +302,9 @@ export default{ ...@@ -257,9 +302,9 @@ export default{
this.form.payorCode = ""; this.form.payorCode = "";
this.form.policyNo = ""; this.form.policyNo = "";
let itemObj = this.patientList.find((item)=>{ let itemObj = this.patientList.find((item)=>{
return this.form.patientId == item.id; return this.form.mrnNo == item.mrnNo;
}) || {}; }) || {};
this.form.mrnNo = itemObj.mrnNo; this.form.patientId = itemObj.id;
this.form.patientName = itemObj.patientName; this.form.patientName = itemObj.patientName;
this.form.firstEnrollmentTime = itemObj.firstEnrollmentTime? moment(itemObj.firstEnrollmentTime).format('YYYY-MM-DD 00:00:00'): ''; this.form.firstEnrollmentTime = itemObj.firstEnrollmentTime? moment(itemObj.firstEnrollmentTime).format('YYYY-MM-DD 00:00:00'): '';
this._getCompanyOptions() this._getCompanyOptions()
...@@ -363,14 +408,30 @@ export default{ ...@@ -363,14 +408,30 @@ export default{
//保存 //保存
saveEvt(){ saveEvt(){
this.loading = true; this.loading = true;
this.$apis.AUTHORIZECREATE({ let api = this.id? 'AUTHORIZEUPDATE': 'AUTHORIZECREATE';
...this.form this.$apis[api]({
...this.form,
medicalRecord: this.form.medicalRecord.map((item)=>{
return {
fileName: item.name,
fileUrl: item.url,
}
}),
supplementalResult: this.form.supplementalResult.map((item)=>{
return {
fileName: item.name,
fileUrl: item.url,
}
})
}) })
.then((res)=>{ .then((res)=>{
this.loading = false; this.loading = false;
if(res.returnCode == '0000'){ if(res.returnCode == '0000'){
this.$message.success('保存成功'); this.$message.success('保存成功');
if(!this.id){
this.$refs.feeDetail.dataList = [];
this.init(); this.init();
}
}else{ }else{
this.$message.warning(res.returnMsg); this.$message.warning(res.returnMsg);
} }
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</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(index)">修改</a-button> <a-button type="link" @click.stop="editEvt(index)">修改</a-button>
<a-button v-if="record.eobNo" type="link" class="danger" @click.stop="delRecord(index)">删除</a-button> <!-- <a-button v-if="record.eobNo" type="link" class="danger" @click.stop="delRecord(index)">删除</a-button> -->
</template> </template>
</a-table> </a-table>
......
...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
<div> <div>
<div class="flex title-div"> <div class="flex title-div">
<span>费用明细</span> <span>费用明细</span>
<a-button type="primary" @click.stop="addEvt">新增</a-button> <a-button type="primary" @click.stop="addEvt" v-if="!id">新增</a-button>
</div> </div>
<a-table :columns="columns" :data-source="dataList" :pagination="false"> <a-table :columns="columns" :data-source="dataList" :pagination="false">
<template slot="itemCode" slot-scope="text"> <template slot="itemCode" slot-scope="text">
{{formatProject(text)}} {{formatProject(text)}}
</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(index)">修改</a-button> <a-button type="link" @click.stop="editEvt(index)" v-if="!id">修改</a-button>
<a-button v-if="record.eobNo" type="link" class="danger" @click.stop="delRecord(index)">删除</a-button> <a-button type="link" class="danger" @click.stop="delRecord(index)" v-if="!id">删除</a-button>
</template> </template>
<template slot="footer"> <template slot="footer">
<div class="flex footer-div"> <div class="flex footer-div">
...@@ -56,6 +56,9 @@ ...@@ -56,6 +56,9 @@
<script> <script>
export default{ export default{
props: { props: {
id: {
default: ''
},
ProjectList: { ProjectList: {
default: [] default: []
} }
...@@ -122,6 +125,20 @@ export default{ ...@@ -122,6 +125,20 @@ export default{
}; };
this.dialogShow = true; this.dialogShow = true;
}, },
//删除记录
delRecord(index) {
this.$modal.confirm({
title: "删除",
content: "确定删除该条记录?",
okText: "确认",
cancelText: "取消",
onOk: () => {
this.$message.success("删除成功");
this.dataList.splice(index, 1);
},
onCancel: () => {},
});
},
//编辑保存 //编辑保存
handleEditOK() { handleEditOK() {
this.$refs.editForm.validate((valid) => { this.$refs.editForm.validate((valid) => {
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</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)">修改</a-button> <a-button type="link" @click.stop="editEvt(record)">修改</a-button>
<a-button type="link" class="success" @click.stop="addEvt(record)">新增</a-button> <!-- <a-button type="link" class="success" @click.stop="addEvt(record)">新增</a-button> -->
<a-button 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>
...@@ -187,7 +187,12 @@ export default{ ...@@ -187,7 +187,12 @@ export default{
}); });
}, },
editEvt(record){ editEvt(record){
console.log(record); this.$router.push({
path: '/pre-auth/add',
query: {
id: record.id
}
})
}, },
//查看预授权使用数据 //查看预授权使用数据
seeEvt(record={}){ seeEvt(record={}){
......
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