Commit 8c170ba3 authored by yanglilong's avatar yanglilong

'a'

parent c367a608
...@@ -38,12 +38,20 @@ ...@@ -38,12 +38,20 @@
<a-row :gutter="20"> <a-row :gutter="20">
<a-col :md="12"> <a-col :md="12">
<a-form-model-item label="客户公司名称" prop="corpCode"> <a-form-model-item label="客户公司名称" prop="corpCode">
<a-input disabled v-model="editForm.corpCode"> </a-input> <a-select v-model="editForm.corpCode" placeholder="请选择客户公司名称" disabled>
<a-select-option v-for="item in corpCode" :key="item.corpCode" :value="item.corpCode">
{{ item.longName }}
</a-select-option>
</a-select>
</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="保险计划" prop="planCode"> <a-form-model-item label="保险计划" prop="planCode">
<a-input disabled v-model="editForm.planCode"> </a-input> <a-select v-model="editForm.planCode" placeholder="请选择保险计划" disabled>
<a-select-option v-for="item in planCode" :key="item.planCode" :value="item.planCode">
{{ item.longName }}
</a-select-option>
</a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :md="12"> <a-col :md="12">
...@@ -60,7 +68,7 @@ ...@@ -60,7 +68,7 @@
</a-select> </a-select>
</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="开始时间" prop="startDate"> <a-form-model-item label="开始时间" prop="startDate">
<a-date-picker v-model="editForm.startDate" placeholder="请选择开始时间" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> <a-date-picker v-model="editForm.startDate" placeholder="请选择开始时间" value-format="YYYY-MM-DD 00:00:00"></a-date-picker>
</a-form-model-item> </a-form-model-item>
...@@ -69,7 +77,7 @@ ...@@ -69,7 +77,7 @@
<a-form-model-item label="结束时间" prop="endDate"> <a-form-model-item label="结束时间" prop="endDate">
<a-date-picker v-model="editForm.endDate" placeholder="请选择结束时间" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> <a-date-picker v-model="editForm.endDate" placeholder="请选择结束时间" value-format="YYYY-MM-DD 00:00:00"></a-date-picker>
</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-radio-group v-model="editForm.isdays" :default-value="editForm.isdays" button-style="solid" <a-radio-group v-model="editForm.isdays" :default-value="editForm.isdays" button-style="solid"
...@@ -131,7 +139,7 @@ ...@@ -131,7 +139,7 @@
<script> <script>
import condition from "../condition"; import condition from "../condition";
import moment from 'moment' //import moment from 'moment'
export default { export default {
props: { props: {
...@@ -139,19 +147,27 @@ export default { ...@@ -139,19 +147,27 @@ export default {
type: Object, type: Object,
required: true, required: true,
}, },
//客户公司名称
corpCode: {
default: []
},
//保险计划
planCode: {
default: []
}
}, },
components: { components: {
condition, condition,
}, },
data() { data() {
const dateFormat = (val) => { /* const dateFormat = (val) => {
return val && moment(val).format('YYYY-MM-DD') return val && moment(val).format('YYYY-MM-DD')
} } */
const columns = [ const columns = [
{ title: "责任项目明细", dataIndex: "benefitDesc" }, { title: "责任项目明细", dataIndex: "benefitDesc" },
// { title: "预授权申请", dataIndex: "index" }, // { title: "预授权申请", dataIndex: "index" },
{ title: "开始日期", dataIndex: "startDate", customRender: dateFormat }, // { title: "开始日期", dataIndex: "startDate", customRender: dateFormat },
{ title: "结束日期", dataIndex: "endDate", customRender: dateFormat }, // { title: "结束日期", dataIndex: "endDate", customRender: dateFormat },
{ title: "更新日期", dataIndex: "modifierDate", width: 180 }, { title: "更新日期", dataIndex: "modifierDate", width: 180 },
{ title: "备注", dataIndex: "remarks", width: 180 }, { title: "备注", dataIndex: "remarks", width: 180 },
{ {
...@@ -171,8 +187,8 @@ export default { ...@@ -171,8 +187,8 @@ export default {
editForm: {}, editForm: {},
editRule: { editRule: {
benefitCode: [{ required: true, message: "请选择福利项" }], benefitCode: [{ required: true, message: "请选择福利项" }],
startDate: [{ required: true, message: "请选择开始时间" }], // startDate: [{ required: true, message: "请选择开始时间" }],
endDate: [{ required: true, message: "请选择结束时间" }], // endDate: [{ required: true, message: "请选择结束时间" }],
waitingPeriod: [{ required: true, message: "请输入等待期天数" }] waitingPeriod: [{ required: true, message: "请输入等待期天数" }]
}, },
}; };
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</template> </template>
<template slot="expandedRowRender" slot-scope="record"> <template slot="expandedRowRender" slot-scope="record">
<condition class="mar-bottom10" :form-data="{ ...record, conditionType: '02' }"/> <condition class="mar-bottom10" :form-data="{ ...record, conditionType: '02' }"/>
<benefits :formData="record" /> <benefits :corpCode="corpCode" :planCode="planCode" :formData="record" />
</template> </template>
</a-table> </a-table>
<a-modal <a-modal
......
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