Merge remote-tracking branch 'origin/jihan_0203_运营管理端功能开发' into jihan_0203_运营管理端功能开发
This commit is contained in:
commit
a8c1b4bfd2
@ -269,6 +269,7 @@
|
|||||||
<el-select
|
<el-select
|
||||||
v-model="form.informationCategoryType"
|
v-model="form.informationCategoryType"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
|
style="width: 250px"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in options"
|
v-for="item in options"
|
||||||
|
|||||||
@ -171,7 +171,7 @@
|
|||||||
<el-dialog
|
<el-dialog
|
||||||
:title="title"
|
:title="title"
|
||||||
:visible.sync="addopen"
|
:visible.sync="addopen"
|
||||||
width="600px"
|
width="900px"
|
||||||
append-to-body
|
append-to-body
|
||||||
:before-close="cancel"
|
:before-close="cancel"
|
||||||
>
|
>
|
||||||
@ -272,6 +272,7 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-model="item.departmentSort"
|
v-model="item.departmentSort"
|
||||||
placeholder="请输入科室显示顺序"
|
placeholder="请输入科室显示顺序"
|
||||||
|
style="width:250px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
@ -439,13 +440,20 @@
|
|||||||
style="width: 250px"
|
style="width: 250px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="科室联系电话" prop="departmentAddress">
|
<el-form-item label="科室地址" prop="departmentAddress">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.departmentAddress"
|
v-model="form.departmentAddress"
|
||||||
placeholder="请输入科室地址"
|
placeholder="请输入科室地址"
|
||||||
style="width: 250px"
|
style="width: 250px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="科室显示顺序" prop="departmentSort">
|
||||||
|
<el-input
|
||||||
|
v-model="form.departmentSort"
|
||||||
|
placeholder="请输入科室显示顺序"
|
||||||
|
style="width: 250px"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
@ -610,6 +618,15 @@ export default {
|
|||||||
message: "",
|
message: "",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
departmentSort: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请选择科室显示顺序",
|
||||||
|
trigger: "blur",
|
||||||
|
message: "",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -737,6 +754,13 @@ export default {
|
|||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
|
this.queryParams = {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
hospitalName:"",
|
||||||
|
departmentCode:"",
|
||||||
|
departmentName:"",
|
||||||
|
};
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
|
|||||||
@ -221,7 +221,6 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-width="140px"
|
label-width="140px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
|
|
||||||
>
|
>
|
||||||
<el-form-item label="资讯标题" prop="informationTitle">
|
<el-form-item label="资讯标题" prop="informationTitle">
|
||||||
<el-input
|
<el-input
|
||||||
@ -272,16 +271,16 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-model="form.informationSort"
|
v-model="form.informationSort"
|
||||||
placeholder="请输入显示顺序"
|
placeholder="请输入显示顺序"
|
||||||
|
style="width:250px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="资讯图文内容" prop="informationContent">
|
<el-form-item label="资讯图文内容" prop="informationContent">
|
||||||
<editor
|
<editor
|
||||||
@imgs="imgs"
|
@imgs="imgs"
|
||||||
|
|
||||||
maxlength="300"
|
maxlength="300"
|
||||||
:min-height="102"
|
:min-height="102"
|
||||||
placeholder="请输入资讯图文内容"
|
placeholder="请输入资讯图文内容"
|
||||||
style="width: 80%;margin-left:18%;margin-top: -5%;"
|
style="width: 80%; margin-left: 18%; margin-top: -5%"
|
||||||
v-model="form.informationContent"
|
v-model="form.informationContent"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -336,7 +335,10 @@
|
|||||||
@click="informationInfoinfo"
|
@click="informationInfoinfo"
|
||||||
>搜索</el-button
|
>搜索</el-button
|
||||||
>
|
>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="addresetQuery"
|
<el-button
|
||||||
|
icon="el-icon-refresh"
|
||||||
|
size="mini"
|
||||||
|
@click="addresetQuerylist"
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -530,7 +532,17 @@ export default {
|
|||||||
innerVisiblecancel() {
|
innerVisiblecancel() {
|
||||||
this.innerVisible = false;
|
this.innerVisible = false;
|
||||||
},
|
},
|
||||||
|
//重置
|
||||||
addresetQuery() {
|
addresetQuery() {
|
||||||
|
this.nurseStationqueryParams = {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
informationCategoryCode: "",
|
||||||
|
informationCategoryName: "",
|
||||||
|
};
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
addresetQuerylist() {
|
||||||
this.nurseStationqueryParams = {
|
this.nurseStationqueryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@ -556,7 +568,6 @@ export default {
|
|||||||
// this.nnerVisibleindex = index;
|
// this.nnerVisibleindex = index;
|
||||||
// console.log(this.nnerVisibleindex);
|
// console.log(this.nnerVisibleindex);
|
||||||
this.innerVisible = true;
|
this.innerVisible = true;
|
||||||
|
|
||||||
},
|
},
|
||||||
imgUrl(imgUrl) {
|
imgUrl(imgUrl) {
|
||||||
this.form.leadThumbnailUrl = imgUrl;
|
this.form.leadThumbnailUrl = imgUrl;
|
||||||
@ -586,7 +597,7 @@ export default {
|
|||||||
// this.form.hospitalName = row.hospitalName;
|
// this.form.hospitalName = row.hospitalName;
|
||||||
// this.form.hospitalId = row.id;
|
// this.form.hospitalId = row.id;
|
||||||
// } else {
|
// } else {
|
||||||
this.form.informationCategoryId = row.id;
|
this.form.informationCategoryId = row.id;
|
||||||
this.form.informationCategoryName = row.informationCategoryName;
|
this.form.informationCategoryName = row.informationCategoryName;
|
||||||
|
|
||||||
// }
|
// }
|
||||||
@ -635,7 +646,7 @@ export default {
|
|||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.reset();
|
this.reset();
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.form.informationCategoryName="请选择资讯分类";
|
this.form.informationCategoryName = "请选择资讯分类";
|
||||||
this.title = "添加资讯信息管理";
|
this.title = "添加资讯信息管理";
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
|
|||||||
@ -292,18 +292,7 @@
|
|||||||
maxlength="50"
|
maxlength="50"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item
|
|
||||||
label="提前预约时长"
|
|
||||||
prop="nurseStationItem.advanceAppointDuration"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
v-model="form.nurseStationItem.advanceAppointDuration"
|
|
||||||
placeholder="提前预约时长(单位小时)"
|
|
||||||
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>5){value=value.slice(0,5)}"
|
|
||||||
type="number"
|
|
||||||
min="0"
|
|
||||||
/>
|
|
||||||
</el-form-item> -->
|
|
||||||
<el-form-item label="排序" prop="nurseStationItem.sort">
|
<el-form-item label="排序" prop="nurseStationItem.sort">
|
||||||
<el-input
|
<el-input
|
||||||
placeholder="请输入排序"
|
placeholder="请输入排序"
|
||||||
@ -320,19 +309,47 @@
|
|||||||
:type="'itemPictureUrl'"
|
:type="'itemPictureUrl'"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="预约人数上限" prop="nurseStationItem.appointmentLimitCount">
|
||||||
|
<el-input
|
||||||
|
placeholder="请输入预约人数上限"
|
||||||
|
v-model="form.nurseStationItem.appointmentLimitCount"
|
||||||
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
|
maxLength="8"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="预约时间点间隔" prop="nurseStationItem.appointmentTimeInterval">
|
||||||
|
<el-select
|
||||||
|
v-model="form.nurseStationItem.appointmentTimeInterval"
|
||||||
|
placeholder="请选择预约时间点间隔"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in options"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
>
|
||||||
|
</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
|
<el-form-item
|
||||||
label="项目内容简介"
|
label="项目内容简介"
|
||||||
prop="nurseStationItem.nurseItemContent"
|
prop="nurseStationItem.nurseItemContent"
|
||||||
>
|
>
|
||||||
<!-- <el-input
|
|
||||||
maxlength="300"
|
|
||||||
type="textarea"
|
|
||||||
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
||||||
placeholder="请输入内容"
|
|
||||||
style="width: 208px"
|
|
||||||
v-model="form.nurseStationItem.nurseItemContent"
|
|
||||||
>
|
|
||||||
</el-input> -->
|
|
||||||
<editor
|
<editor
|
||||||
@imgs="imgs"
|
@imgs="imgs"
|
||||||
maxlength="300"
|
maxlength="300"
|
||||||
|
|||||||
@ -63,6 +63,35 @@ export default {
|
|||||||
title: "",
|
title: "",
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
|
options: [{
|
||||||
|
value: 'HALF_HOUR',
|
||||||
|
label: '半小时'
|
||||||
|
}, {
|
||||||
|
value: 'ONE_HOUR',
|
||||||
|
label: '一小时'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: ' NINETY_MINUTES',
|
||||||
|
label: '九十分钟'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'TWO_HOUR',
|
||||||
|
label: '两小时'
|
||||||
|
}
|
||||||
|
|
||||||
|
],
|
||||||
|
value:"",
|
||||||
|
optionlist: [{
|
||||||
|
value: 'HALF_DAY',
|
||||||
|
label: '半小时'
|
||||||
|
}, {
|
||||||
|
value: 'ONE_DAY',
|
||||||
|
label: '一小时'
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
],
|
||||||
|
value1:"",
|
||||||
//权限查询
|
//权限查询
|
||||||
nurseStationlist: [],
|
nurseStationlist: [],
|
||||||
nurseStationlist2: [],
|
nurseStationlist2: [],
|
||||||
@ -102,7 +131,10 @@ export default {
|
|||||||
sort: "",
|
sort: "",
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择所属护理站",
|
||||||
classifyName: '请选择护理项目分类',
|
classifyName: '请选择护理项目分类',
|
||||||
nurseClassifyId: ''
|
nurseClassifyId: '',
|
||||||
|
appointmentLimitCount:"",
|
||||||
|
appointmentTimeInterval:"",
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
idd: 1,
|
idd: 1,
|
||||||
@ -117,14 +149,24 @@ export default {
|
|||||||
"nurseStationItem.sort": [
|
"nurseStationItem.sort": [
|
||||||
{ required: true, message: "排序不能为空", trigger: "blur" },
|
{ required: true, message: "排序不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
// "nurseStationItem.advanceAppointDuration": [
|
"nurseStationItem.advanceAppointDuration": [
|
||||||
// { required: true, message: "提前预约时长不能为空", trigger: "blur" },
|
{ required: true, message: "提前预约时长不能为空", trigger: "blur" },
|
||||||
// ],
|
],
|
||||||
"nurseStationItem.itemPictureUrl": [{
|
"nurseStationItem.itemPictureUrl": [{
|
||||||
required: true,
|
required: true,
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
message: "请选择项目头像",
|
message: "请选择项目头像",
|
||||||
}, ],
|
}, ],
|
||||||
|
"nurseStationItem.appointmentLimitCount": [{
|
||||||
|
required: true,
|
||||||
|
trigger: "blur",
|
||||||
|
message: "请输入预约人数上限",
|
||||||
|
}, ],
|
||||||
|
"nurseStationItem.appointmentTimeInterval": [{
|
||||||
|
required: true,
|
||||||
|
trigger: "blur",
|
||||||
|
message: "请选择预约时间点间隔",
|
||||||
|
}, ],
|
||||||
nurseStationId: [
|
nurseStationId: [
|
||||||
{ required: true, trigger: "blur", message: "请选择所属护理站" },
|
{ required: true, trigger: "blur", message: "请选择所属护理站" },
|
||||||
],
|
],
|
||||||
@ -526,7 +568,7 @@ export default {
|
|||||||
this.form.nurseStationItemPrices.forEach(e => {
|
this.form.nurseStationItemPrices.forEach(e => {
|
||||||
e.price = Number(e.price)
|
e.price = Number(e.price)
|
||||||
})
|
})
|
||||||
this.form.nurseStationItem.advanceAppointDuration = 0
|
|
||||||
updateNurseItem(this.form).then((response) => {
|
updateNurseItem(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
@ -536,7 +578,7 @@ export default {
|
|||||||
this.form.nurseStationItemPrices.forEach(e => {
|
this.form.nurseStationItemPrices.forEach(e => {
|
||||||
e.price = Number(e.price)
|
e.price = Number(e.price)
|
||||||
})
|
})
|
||||||
this.form.nurseStationItem.advanceAppointDuration = 0
|
|
||||||
addNurseItem(this.form).then((response) => {
|
addNurseItem(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
@ -571,3 +613,4 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user