Commit 5e728ea1 authored by 吴婷慧's avatar 吴婷慧

解决冲突

parents 4fb0b84a b4208943
...@@ -168,7 +168,7 @@ export default { ...@@ -168,7 +168,7 @@ export default {
{ title: "应收金额", dataIndex: "chargeAmount", width: 100, align: 'center' }, { title: "应收金额", dataIndex: "chargeAmount", width: 100, align: 'center' },
{ title: "折扣金额", dataIndex: "discountAmount", width: 100, align: 'center' }, { title: "折扣金额", dataIndex: "discountAmount", width: 100, align: 'center' },
{ title: "减免金额", dataIndex: "discountAmount2", width: 100, align: 'center' }, { title: "减免金额", dataIndex: "discountAmount2", width: 100, align: 'center' },
{ title: "客户自", dataIndex: "paidAmount", width: 100, align: 'center' }, { title: "客户自", dataIndex: "paidAmount", width: 100, align: 'center' },
{ title: "理赔金额", dataIndex: "paidamount", width: 100, align: 'center' }, { title: "理赔金额", dataIndex: "paidamount", width: 100, align: 'center' },
// { title: "操作", key: "operation", width: "175px",fixed: "right",scopedSlots: { customRender: "operation" }}, // { title: "操作", key: "operation", width: "175px",fixed: "right",scopedSlots: { customRender: "operation" }},
]; ];
......
<template> <template>
<div class="info-doctor"> <div class="info-doctor">
<div class="mar-bottom10">
<a-button type="primary" @click="editEvt({})">
<Icon name="ssiadd" :size="14" />新建医生
</a-button>
</div>
<a-table :columns="columns" :data-source="dataList" :scroll="{ x: 'max-content' }" :pagination="false"> <a-table :columns="columns" :data-source="dataList" :scroll="{ x: 'max-content' }" :pagination="false">
<template slot="specialtyList" slot-scope="text, record"> <template slot="specialtyList" slot-scope="text, record">
<span>{{ filterSpecialty(record.specialtyList) }}</span> <span>{{ filterSpecialty(record.specialtyList) }}</span>
...@@ -180,7 +185,7 @@ export default{ ...@@ -180,7 +185,7 @@ export default{
}, },
editEvt(record) { editEvt(record) {
this.editFormObj = { this.editFormObj = {
id: record.id || "", id: record.id || undefined,
doctorCode: record.doctorCode || "", doctorCode: record.doctorCode || "",
doctorDesc: record.doctorDesc || "", doctorDesc: record.doctorDesc || "",
doctorDescLang1: record.doctorDescLang1 || "", doctorDescLang1: record.doctorDescLang1 || "",
...@@ -194,8 +199,8 @@ export default{ ...@@ -194,8 +199,8 @@ export default{
handleEditOK() { handleEditOK() {
this.$refs.editForm.validate((valid) => { this.$refs.editForm.validate((valid) => {
if (valid) { if (valid) {
this.$apis const fn = this.editFormObj.id ? this.$apis.DOCTORUPDATE : this.$apis.DOCTORCREATE
.DOCTORUPDATE({ fn({
...this.editFormObj, ...this.editFormObj,
language: this.editFormObj.language.join(','), language: this.editFormObj.language.join(','),
specialtyList: this.editFormObj.specialtyList.map((item) => { specialtyList: this.editFormObj.specialtyList.map((item) => {
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
</a-input-number> </a-input-number>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :md="12"> <!-- <a-col :md="12">
<a-form-model-item label="英文描述"> <a-form-model-item label="英文描述">
<a-input v-model="editForm.englishDesc"></a-input> <a-input v-model="editForm.englishDesc"></a-input>
</a-form-model-item> </a-form-model-item>
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<a-form-model-item label="描述"> <a-form-model-item label="描述">
<a-input v-model="editForm.loaDesc"> </a-input> <a-input v-model="editForm.loaDesc"> </a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col> -->
<!-- <a-col :md="12"> <!-- <a-col :md="12">
<a-form-model-item label="状态"> <a-form-model-item label="状态">
<a-select <a-select
...@@ -184,7 +184,9 @@ export default { ...@@ -184,7 +184,9 @@ export default {
isBenefitEditShow: false, isBenefitEditShow: false,
benefitData: [], benefitData: [],
benefitCode: [], benefitCode: [],
editForm: {}, editForm: {
benefitCode: []
},
editRule: { editRule: {
benefitCode: [{ required: true, message: "请选择福利项" }], benefitCode: [{ required: true, message: "请选择福利项" }],
// startDate: [{ required: true, message: "请选择开始时间" }], // startDate: [{ required: true, message: "请选择开始时间" }],
...@@ -211,12 +213,15 @@ export default { ...@@ -211,12 +213,15 @@ export default {
corpCode: this.formData.corpCode, corpCode: this.formData.corpCode,
planCode: this.formData.planCode, planCode: this.formData.planCode,
coverageCode: this.formData.coverageCode, coverageCode: this.formData.coverageCode,
benefitCode: '',
isDirect: "N", isDirect: "N",
status: "1", status: "1",
}; };
this._getBenefitCode(); this._getBenefitCode();
this.editForm = this.$lodash.cloneDeep(data); this.editForm = this.$lodash.cloneDeep(data);
// this.editForm.benefitCode = this.editForm.benefitCode ? this.editForm.benefitCode.split(',') : []
this.isBenefitEditShow = true; this.isBenefitEditShow = true;
console.log(this.editForm)
}, },
cancel() { cancel() {
this.$refs.editForm.resetFields(); this.$refs.editForm.resetFields();
...@@ -233,7 +238,12 @@ export default { ...@@ -233,7 +238,12 @@ export default {
if (!valid) { if (!valid) {
return false; return false;
} }
this._editBenefitData(this.editForm); const data = {
...this.editForm,
// benefitCode: this.editForm.benefitCode.join(',')
}
this._editBenefitData(data);
}); });
}, },
_editBenefitData(data) { _editBenefitData(data) {
......
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