|
@ -1,36 +1,28 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<div> |
|
|
<div class="dialog-h-content scroll-h"> |
|
|
<el-form |
|
|
<el-form ref="ref_form" |
|
|
ref="ref_form" |
|
|
|
|
|
:inline="true" |
|
|
:inline="true" |
|
|
:model="dataForm" |
|
|
:model="dataForm" |
|
|
:rules="dataRule" |
|
|
:rules="dataRule" |
|
|
:disabled="formType === 'detail'" |
|
|
:disabled="formType === 'detail'" |
|
|
class="form" |
|
|
class="form"> |
|
|
> |
|
|
<el-form-item label="事项名称" |
|
|
<el-form-item |
|
|
|
|
|
label="事项名称" |
|
|
|
|
|
prop="matterName" |
|
|
prop="matterName" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block" |
|
|
style="display: block"> |
|
|
> |
|
|
<el-input class="item_width_1" |
|
|
<el-input |
|
|
|
|
|
class="item_width_1" |
|
|
|
|
|
maxlength="50" |
|
|
maxlength="50" |
|
|
show-word-limit |
|
|
show-word-limit |
|
|
v-model="info.matterName" |
|
|
v-model="info.matterName" |
|
|
disabled |
|
|
disabled> |
|
|
> |
|
|
|
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item |
|
|
<el-form-item label="预约日期" |
|
|
label="预约日期" |
|
|
|
|
|
prop="appointmentDate" |
|
|
prop="appointmentDate" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block" |
|
|
style="display: block"> |
|
|
> |
|
|
|
|
|
<!-- <el-date-picker |
|
|
<!-- <el-date-picker |
|
|
v-model="dataForm.appointmentDate" |
|
|
v-model="dataForm.appointmentDate" |
|
|
placeholder="预约日期" |
|
|
placeholder="预约日期" |
|
@ -38,98 +30,77 @@ |
|
|
:picker-options="dateOptions" |
|
|
:picker-options="dateOptions" |
|
|
> |
|
|
> |
|
|
</el-date-picker> --> |
|
|
</el-date-picker> --> |
|
|
<el-select v-model="dataForm.appointmentDate" placeholder="请选择"> |
|
|
<el-select v-model="dataForm.appointmentDate" |
|
|
<el-option |
|
|
placeholder="请选择"> |
|
|
v-for="item in dateList" |
|
|
<el-option v-for="item in dateList" |
|
|
:key="item" |
|
|
:key="item" |
|
|
:label="item" |
|
|
:label="item" |
|
|
:value="item" |
|
|
:value="item"> |
|
|
> |
|
|
</el-option> |
|
|
</el-option |
|
|
</el-select> |
|
|
></el-select> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item |
|
|
<el-form-item v-if="timeList.length > 0" |
|
|
v-if="timeList.length > 0" |
|
|
|
|
|
label="预约时段" |
|
|
label="预约时段" |
|
|
prop="timeId" |
|
|
prop="timeId" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block" |
|
|
style="display: block"> |
|
|
> |
|
|
|
|
|
<div style="margin-left: auto; width: 600px"> |
|
|
<div style="margin-left: auto; width: 600px"> |
|
|
<el-checkbox |
|
|
<el-checkbox :label="item.timeId" |
|
|
:label="item.timeId" |
|
|
|
|
|
:key="item.timeId" |
|
|
:key="item.timeId" |
|
|
:disabled="!item.isAppointment" |
|
|
:disabled="!item.isAppointment" |
|
|
v-for="(item, index) in timeList" |
|
|
v-for="(item, index) in timeList" |
|
|
:checked="item.selected" |
|
|
:checked="item.selected" |
|
|
:value="item.selected" |
|
|
:value="item.selected" |
|
|
@change="selectTime(index)" |
|
|
@change="selectTime(index)" |
|
|
@onChange="selectTime(index)" |
|
|
@onChange="selectTime(index)">{{ item.time }}</el-checkbox> |
|
|
>{{ item.time }}</el-checkbox |
|
|
|
|
|
> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item |
|
|
<el-form-item label="预约人" |
|
|
label="预约人" |
|
|
|
|
|
prop="appointmentName" |
|
|
prop="appointmentName" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block" |
|
|
style="display: block"> |
|
|
> |
|
|
<el-input class="item_width_1" |
|
|
<el-input |
|
|
|
|
|
class="item_width_1" |
|
|
|
|
|
maxlength="50" |
|
|
maxlength="50" |
|
|
show-word-limit |
|
|
show-word-limit |
|
|
placeholder="请输入预约人" |
|
|
placeholder="请输入预约人" |
|
|
v-model="dataForm.appointmentName" |
|
|
v-model="dataForm.appointmentName"> |
|
|
> |
|
|
|
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item |
|
|
<el-form-item label="联系方式" |
|
|
label="联系方式" |
|
|
|
|
|
prop="appointmentPhone" |
|
|
prop="appointmentPhone" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block" |
|
|
style="display: block"> |
|
|
> |
|
|
<el-input class="item_width_1" |
|
|
<el-input |
|
|
|
|
|
class="item_width_1" |
|
|
|
|
|
maxlength="50" |
|
|
maxlength="50" |
|
|
show-word-limit |
|
|
show-word-limit |
|
|
placeholder="请输入联系方式" |
|
|
placeholder="请输入联系方式" |
|
|
v-model="dataForm.appointmentPhone" |
|
|
v-model="dataForm.appointmentPhone"> |
|
|
> |
|
|
|
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item |
|
|
<el-form-item label="备注" |
|
|
label="备注" |
|
|
|
|
|
prop="remark" |
|
|
prop="remark" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block" |
|
|
style="display: block"> |
|
|
> |
|
|
<el-input class="item_width_1" |
|
|
<el-input |
|
|
|
|
|
class="item_width_1" |
|
|
|
|
|
type="textarea" |
|
|
type="textarea" |
|
|
maxlength="1000" |
|
|
maxlength="1000" |
|
|
show-word-limit |
|
|
show-word-limit |
|
|
:rows="3" |
|
|
:rows="3" |
|
|
placeholder="请输入备注,不超过1000字" |
|
|
placeholder="请输入备注,不超过1000字" |
|
|
v-model="dataForm.remark" |
|
|
v-model="dataForm.remark"></el-input> |
|
|
></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
<div class="div_btn"> |
|
|
<div class="div_btn"> |
|
|
<el-button @click="handleCancle">取 消</el-button> |
|
|
<el-button @click="handleCancle">取 消</el-button> |
|
|
<el-button |
|
|
<el-button v-if="formType != 'detail'" |
|
|
v-if="formType != 'detail'" |
|
|
|
|
|
type="primary" |
|
|
type="primary" |
|
|
:disabled="btnDisable" |
|
|
:disabled="btnDisable" |
|
|
@click="handleComfirm" |
|
|
@click="handleComfirm">确 定</el-button> |
|
|
>确 定</el-button |
|
|
|
|
|
> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|