Commit 8c170ba3 authored by yanglilong's avatar yanglilong

'a'

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