提前预约时长
This commit is contained in:
parent
c2864af224
commit
a385fa91d5
@ -331,6 +331,20 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="提前预约时长" prop="nurseStationItem.advanceAppointDuration">
|
||||
<el-select
|
||||
v-model="form.nurseStationItem.advanceAppointDuration"
|
||||
placeholder="请选择提前预约时长"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionlist"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="项目内容简介"
|
||||
prop="nurseStationItem.nurseItemContent"
|
||||
|
||||
@ -81,6 +81,17 @@ export default {
|
||||
|
||||
],
|
||||
value:"",
|
||||
optionlist: [{
|
||||
value: 'HALF_DAY',
|
||||
label: '半小时'
|
||||
}, {
|
||||
value: 'ONE_DAY',
|
||||
label: '一小时'
|
||||
},
|
||||
|
||||
|
||||
],
|
||||
value1:"",
|
||||
//权限查询
|
||||
nurseStationlist: [],
|
||||
nurseStationlist2: [],
|
||||
@ -123,6 +134,7 @@ export default {
|
||||
nurseClassifyId: '',
|
||||
appointmentLimitCount:"",
|
||||
appointmentTimeInterval:"",
|
||||
|
||||
},
|
||||
},
|
||||
idd: 1,
|
||||
@ -137,9 +149,9 @@ export default {
|
||||
"nurseStationItem.sort": [
|
||||
{ required: true, message: "排序不能为空", trigger: "blur" },
|
||||
],
|
||||
// "nurseStationItem.advanceAppointDuration": [
|
||||
// { required: true, message: "提前预约时长不能为空", trigger: "blur" },
|
||||
// ],
|
||||
"nurseStationItem.advanceAppointDuration": [
|
||||
{ required: true, message: "提前预约时长不能为空", trigger: "blur" },
|
||||
],
|
||||
"nurseStationItem.itemPictureUrl": [{
|
||||
required: true,
|
||||
trigger: "blur",
|
||||
@ -556,7 +568,7 @@ export default {
|
||||
this.form.nurseStationItemPrices.forEach(e => {
|
||||
e.price = Number(e.price)
|
||||
})
|
||||
this.form.nurseStationItem.advanceAppointDuration = 0
|
||||
|
||||
updateNurseItem(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
@ -566,7 +578,7 @@ export default {
|
||||
this.form.nurseStationItemPrices.forEach(e => {
|
||||
e.price = Number(e.price)
|
||||
})
|
||||
this.form.nurseStationItem.advanceAppointDuration = 0
|
||||
|
||||
addNurseItem(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.$forceUpdate();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user