修改
This commit is contained in:
parent
1047422885
commit
a48df0556a
@ -25,16 +25,8 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
type="primary"
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
icon="el-icon-search"
|
|
||||||
size="mini"
|
|
||||||
@click="handleQuery"
|
|
||||||
>搜索</el-button
|
|
||||||
>
|
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
||||||
>重置</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@ -47,8 +39,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['system:classifyItem:add']"
|
v-hasPermi="['system:classifyItem:add']"
|
||||||
>新增</el-button
|
>新增</el-button>
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
@ -59,8 +50,7 @@
|
|||||||
:disabled="single"
|
:disabled="single"
|
||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['system:classifyItem:edit']"
|
v-hasPermi="['system:classifyItem:edit']"
|
||||||
>修改</el-button
|
>修改</el-button>
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
@ -71,8 +61,7 @@
|
|||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
v-hasPermi="['system:classifyItem:remove']"
|
v-hasPermi="['system:classifyItem:remove']"
|
||||||
>删除</el-button
|
>删除</el-button>
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">
|
<!-- <el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
@ -84,18 +73,11 @@
|
|||||||
v-hasPermi="['classify:info:export']"
|
v-hasPermi="['classify:info:export']"
|
||||||
>导出</el-button
|
>导出</el-button
|
||||||
>
|
>
|
||||||
</el-col> -->
|
</el-col>-->
|
||||||
<right-toolbar
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
:showSearch.sync="showSearch"
|
|
||||||
@queryTable="getList"
|
|
||||||
></right-toolbar>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table
|
<el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
|
||||||
v-loading="loading"
|
|
||||||
:data="infoList"
|
|
||||||
@selection-change="handleSelectionChange"
|
|
||||||
>
|
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="分类编码" align="center" prop="classifyCode" />
|
<el-table-column label="分类编码" align="center" prop="classifyCode" />
|
||||||
<el-table-column label="分类名称" align="center" prop="classifyName" />
|
<el-table-column label="分类名称" align="center" prop="classifyName" />
|
||||||
@ -104,13 +86,9 @@
|
|||||||
>{{ scope.row.classifyType == "NURSE_AGNECY" ? "护理机构分类" : "" }}
|
>{{ scope.row.classifyType == "NURSE_AGNECY" ? "护理机构分类" : "" }}
|
||||||
{{ scope.row.classifyType == "NURSE_ITEM" ? "护理项目分类" : "" }}
|
{{ scope.row.classifyType == "NURSE_ITEM" ? "护理项目分类" : "" }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column> -->
|
</el-table-column>-->
|
||||||
<el-table-column label="分类排序" align="center" prop="classifySort" />
|
<el-table-column label="分类排序" align="center" prop="classifySort" />
|
||||||
<el-table-column
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
label="操作"
|
|
||||||
align="center"
|
|
||||||
class-name="small-padding fixed-width"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -118,16 +96,14 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['system:classifyItem:edit']"
|
v-hasPermi="['system:classifyItem:edit']"
|
||||||
>修改</el-button
|
>修改</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['system:classifyItem:remove']"
|
v-hasPermi="['system:classifyItem:remove']"
|
||||||
>删除</el-button
|
>删除</el-button>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -167,7 +143,7 @@
|
|||||||
:prop="`nurseClassifyInfoList.${index}.classifyName`"
|
:prop="`nurseClassifyInfoList.${index}.classifyName`"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
maxLength="30"
|
maxlength="30"
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
v-model="item.classifyName"
|
v-model="item.classifyName"
|
||||||
placeholder="请输入分类名称"
|
placeholder="请输入分类名称"
|
||||||
@ -183,7 +159,7 @@
|
|||||||
v-model="item.classifySort"
|
v-model="item.classifySort"
|
||||||
placeholder="请输入分类排序"
|
placeholder="请输入分类排序"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="5"
|
maxlength="5"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@ -234,11 +210,7 @@
|
|||||||
>
|
>
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
<el-form-item label="分类名称" prop="classifyName">
|
<el-form-item label="分类名称" prop="classifyName">
|
||||||
<el-input
|
<el-input v-model="form.classifyName" placeholder="请输入分类名称" maxlength="30" />
|
||||||
v-model="form.classifyName"
|
|
||||||
placeholder="请输入分类名称"
|
|
||||||
maxLength="30"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="分类图标" prop="classifyPictureUrl">
|
<el-form-item label="分类图标" prop="classifyPictureUrl">
|
||||||
<stationAcatar
|
<stationAcatar
|
||||||
@ -254,7 +226,7 @@
|
|||||||
v-model="form.classifySort"
|
v-model="form.classifySort"
|
||||||
placeholder="请输入分类排序"
|
placeholder="请输入分类排序"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="5"
|
maxlength="5"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -273,7 +245,7 @@ import {
|
|||||||
getInfo,
|
getInfo,
|
||||||
delInfo,
|
delInfo,
|
||||||
addInfo,
|
addInfo,
|
||||||
updateInfo,
|
updateInfo
|
||||||
} from "@/api/system/classifyItem.js";
|
} from "@/api/system/classifyItem.js";
|
||||||
import { updatePicture } from "@/api/system/station";
|
import { updatePicture } from "@/api/system/station";
|
||||||
export default {
|
export default {
|
||||||
@ -287,7 +259,7 @@ export default {
|
|||||||
ids: [],
|
ids: [],
|
||||||
// 非单个禁用
|
// 非单个禁用
|
||||||
single: true,
|
single: true,
|
||||||
imgone:"",
|
imgone: "",
|
||||||
// 非多个禁用
|
// 非多个禁用
|
||||||
multiple: true,
|
multiple: true,
|
||||||
// 显示搜索条件
|
// 显示搜索条件
|
||||||
@ -308,15 +280,15 @@ export default {
|
|||||||
parentId: null,
|
parentId: null,
|
||||||
classifyCode: null,
|
classifyCode: null,
|
||||||
classifyName: null,
|
classifyName: null,
|
||||||
|
|
||||||
classifyLevel: null,
|
classifyLevel: null,
|
||||||
classifyType: null,
|
classifyType: null,
|
||||||
classifyPictureUrl: null,
|
classifyPictureUrl: null,
|
||||||
classifySort: null,
|
classifySort: null
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {
|
form: {
|
||||||
nurseClassifyInfoList: [],
|
nurseClassifyInfoList: []
|
||||||
},
|
},
|
||||||
idd: 0,
|
idd: 0,
|
||||||
classifyPictureUrl: null,
|
classifyPictureUrl: null,
|
||||||
@ -328,46 +300,46 @@ export default {
|
|||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请输入分类名称",
|
message: "请输入分类名称",
|
||||||
trigger: "blur",
|
trigger: "blur"
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
classifyPictureUrl: [
|
classifyPictureUrl: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请选择分类图标",
|
message: "请选择分类图标",
|
||||||
trigger: "blur",
|
trigger: "blur"
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
classifySort: [
|
classifySort: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请输入分类排序",
|
message: "请输入分类排序",
|
||||||
trigger: "blur",
|
trigger: "blur"
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
},
|
},
|
||||||
classifyName: [
|
classifyName: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请输入分类名称",
|
message: "请输入分类名称",
|
||||||
trigger: "blur",
|
trigger: "blur"
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
classifyPictureUrl: [
|
classifyPictureUrl: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请选择分类图标",
|
message: "请选择分类图标",
|
||||||
trigger: "blur",
|
trigger: "blur"
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
classifySort: [
|
classifySort: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请输入分类排序",
|
message: "请输入分类排序",
|
||||||
trigger: "blur",
|
trigger: "blur"
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -385,7 +357,7 @@ export default {
|
|||||||
classifyName: "",
|
classifyName: "",
|
||||||
classifyPictureUrl: "",
|
classifyPictureUrl: "",
|
||||||
classifySort: "",
|
classifySort: "",
|
||||||
idd: this.idd,
|
idd: this.idd
|
||||||
};
|
};
|
||||||
if (this.form.nurseClassifyInfoList.length == 5) {
|
if (this.form.nurseClassifyInfoList.length == 5) {
|
||||||
this.$message.error("最多批量添加5条");
|
this.$message.error("最多批量添加5条");
|
||||||
@ -399,7 +371,7 @@ export default {
|
|||||||
imgclassifyPictureitem(item) {
|
imgclassifyPictureitem(item) {
|
||||||
let items = JSON.parse(item);
|
let items = JSON.parse(item);
|
||||||
if (items.idd && !items.id) {
|
if (items.idd && !items.id) {
|
||||||
this.form.nurseClassifyInfoList.forEach((e) => {
|
this.form.nurseClassifyInfoList.forEach(e => {
|
||||||
if (e.idd == items.idd) {
|
if (e.idd == items.idd) {
|
||||||
e.classifyPictureUrl = items.classifyPictureUrl;
|
e.classifyPictureUrl = items.classifyPictureUrl;
|
||||||
}
|
}
|
||||||
@ -411,7 +383,7 @@ export default {
|
|||||||
/** 查询护理机构和护理项目分类信息列表 */
|
/** 查询护理机构和护理项目分类信息列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listInfo(this.queryParams).then((response) => {
|
listInfo(this.queryParams).then(response => {
|
||||||
this.infoList = response.rows;
|
this.infoList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
@ -424,18 +396,18 @@ export default {
|
|||||||
if (this.form.classifyPictureUrl != this.imgone) {
|
if (this.form.classifyPictureUrl != this.imgone) {
|
||||||
obj.pictureUrlList.push(this.form.classifyPictureUrl);
|
obj.pictureUrlList.push(this.form.classifyPictureUrl);
|
||||||
}
|
}
|
||||||
updatePicture(obj).then((res) => {
|
updatePicture(obj).then(res => {
|
||||||
this.editopen = false;
|
this.editopen = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.open) {
|
if (this.open) {
|
||||||
var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
if (this.form.nurseClassifyInfoList) {
|
if (this.form.nurseClassifyInfoList) {
|
||||||
this.form.nurseClassifyInfoList.forEach((e) => {
|
this.form.nurseClassifyInfoList.forEach(e => {
|
||||||
obj.pictureUrlList.push(e.classifyPictureUrl);
|
obj.pictureUrlList.push(e.classifyPictureUrl);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
updatePicture(obj).then((res) => {
|
updatePicture(obj).then(res => {
|
||||||
this.open = false;
|
this.open = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -455,7 +427,7 @@ export default {
|
|||||||
createBy: null,
|
createBy: null,
|
||||||
createTime: null,
|
createTime: null,
|
||||||
updateBy: null,
|
updateBy: null,
|
||||||
updateTime: null,
|
updateTime: null
|
||||||
};
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
@ -471,7 +443,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map((item) => item.id);
|
this.ids = selection.map(item => item.id);
|
||||||
this.single = selection.length !== 1;
|
this.single = selection.length !== 1;
|
||||||
this.multiple = !selection.length;
|
this.multiple = !selection.length;
|
||||||
},
|
},
|
||||||
@ -483,11 +455,9 @@ export default {
|
|||||||
classifyName: "",
|
classifyName: "",
|
||||||
classifyPictureUrl: "",
|
classifyPictureUrl: "",
|
||||||
classifySort: "",
|
classifySort: "",
|
||||||
idd: this.idd,
|
idd: this.idd
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "添加护理项目分类信息";
|
this.title = "添加护理项目分类信息";
|
||||||
@ -496,7 +466,7 @@ export default {
|
|||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
this.reset();
|
||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getInfo(id).then((response) => {
|
getInfo(id).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
this.imgone = this.form.classifyPictureUrl;
|
this.imgone = this.form.classifyPictureUrl;
|
||||||
this.classifyPictureUrl = response.data.classifyPictureUrl;
|
this.classifyPictureUrl = response.data.classifyPictureUrl;
|
||||||
@ -506,27 +476,27 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
console.log(this.form);
|
this.form.classifySort = Number(this.form.classifySort);
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateInfo(this.form).then((response) => {
|
updateInfo(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
if (this.form.classifyPictureUrl != this.imgone) {
|
if (this.form.classifyPictureUrl != this.imgone) {
|
||||||
var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
obj.pictureUrlList.push(this.imgone);
|
obj.pictureUrlList.push(this.imgone);
|
||||||
updatePicture(obj).then((res) => {});
|
updatePicture(obj).then(res => {});
|
||||||
}
|
}
|
||||||
this.editopen = false;
|
this.editopen = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if(this.form.nurseClassifyInfoList[0].classifySort){
|
if (this.form.nurseClassifyInfoList[0].classifySort) {
|
||||||
this.form.nurseClassifyInfoList[0].classifySort = parseInt(this.form.nurseClassifyInfoList[0].classifySort);
|
this.form.nurseClassifyInfoList[0].classifySort = parseInt(
|
||||||
|
this.form.nurseClassifyInfoList[0].classifySort
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
addInfo(this.form).then(response => {
|
||||||
addInfo(this.form).then((response) => {
|
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
@ -541,7 +511,7 @@ export default {
|
|||||||
console.log(row);
|
console.log(row);
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm("是否确认删除?")
|
.confirm("是否确认删除?")
|
||||||
.then(function () {
|
.then(function() {
|
||||||
return delInfo(ids);
|
return delInfo(ids);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@ -555,11 +525,11 @@ export default {
|
|||||||
this.download(
|
this.download(
|
||||||
"classify/info/export",
|
"classify/info/export",
|
||||||
{
|
{
|
||||||
...this.queryParams,
|
...this.queryParams
|
||||||
},
|
},
|
||||||
`info_${new Date().getTime()}.xlsx`
|
`info_${new Date().getTime()}.xlsx`
|
||||||
);
|
);
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -9,14 +9,18 @@
|
|||||||
label-width="110px"
|
label-width="110px"
|
||||||
>
|
>
|
||||||
<el-form-item label="护理站名称" prop="nurseStationId">
|
<el-form-item label="护理站名称" prop="nurseStationId">
|
||||||
<el-button type="" class="stationbtn" @click="ParamsStation(true)">{{
|
<el-button type class="stationbtn" @click="ParamsStation(true)">
|
||||||
|
{{
|
||||||
queryParams.nurseStationName
|
queryParams.nurseStationName
|
||||||
}}</el-button>
|
}}
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理项目" prop="nurseItemId" label-width="100px">
|
<el-form-item label="护理项目" prop="nurseItemId" label-width="100px">
|
||||||
<el-button type="" class="stationbtn" @click="ParamsStationxm(true)">{{
|
<el-button type class="stationbtn" @click="ParamsStationxm(true)">
|
||||||
|
{{
|
||||||
queryParams.nurseItemName
|
queryParams.nurseItemName
|
||||||
}}</el-button>
|
}}
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="海报名称" prop="poserName">
|
<el-form-item label="海报名称" prop="poserName">
|
||||||
<el-input
|
<el-input
|
||||||
@ -27,18 +31,13 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="海报所属模块" prop="moduleType">
|
<el-form-item label="海报所属模块" prop="moduleType">
|
||||||
<el-select
|
<el-select v-model="queryParams.moduleType" placeholder="请选择" style="width: 208px">
|
||||||
v-model="queryParams.moduleType"
|
|
||||||
placeholder="请选择"
|
|
||||||
style="width: 208px"
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in options"
|
v-for="item in options"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
>
|
></el-option>
|
||||||
</el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="海报编号" prop="poserCode">
|
<el-form-item label="海报编号" prop="poserCode">
|
||||||
@ -50,16 +49,8 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
type="primary"
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
icon="el-icon-search"
|
|
||||||
size="mini"
|
|
||||||
@click="handleQuery"
|
|
||||||
>搜索</el-button
|
|
||||||
>
|
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
||||||
>重置</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
@ -71,8 +62,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['system:poser:add']"
|
v-hasPermi="['system:poser:add']"
|
||||||
>新增</el-button
|
>新增</el-button>
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
@ -83,8 +73,7 @@
|
|||||||
:disabled="single"
|
:disabled="single"
|
||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['system:poser:edit']"
|
v-hasPermi="['system:poser:edit']"
|
||||||
>修改</el-button
|
>修改</el-button>
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
@ -95,8 +84,7 @@
|
|||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
v-hasPermi="['system:poser:remove']"
|
v-hasPermi="['system:poser:remove']"
|
||||||
>删除</el-button
|
>删除</el-button>
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">
|
<!-- <el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
@ -108,57 +96,38 @@
|
|||||||
v-hasPermi="['system:poser:export']"
|
v-hasPermi="['system:poser:export']"
|
||||||
>导出</el-button
|
>导出</el-button
|
||||||
>
|
>
|
||||||
</el-col> -->
|
</el-col>-->
|
||||||
<right-toolbar
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
:showSearch.sync="showSearch"
|
|
||||||
@queryTable="getList"
|
|
||||||
></right-toolbar>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table
|
<el-table v-loading="loading" :data="poserList" @selection-change="handleSelectionChange">
|
||||||
v-loading="loading"
|
|
||||||
:data="poserList"
|
|
||||||
@selection-change="handleSelectionChange"
|
|
||||||
>
|
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column
|
<el-table-column label="所属护理站" align="center" prop="nurseStationName" />
|
||||||
label="所属护理站"
|
<el-table-column label="所属护理项目" align="center" prop="nurseItemName" />
|
||||||
align="center"
|
|
||||||
prop="nurseStationName"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="所属护理项目"
|
|
||||||
align="center"
|
|
||||||
prop="nurseItemName"
|
|
||||||
/>
|
|
||||||
<el-table-column label="海报名称" align="center" prop="poserName" />
|
<el-table-column label="海报名称" align="center" prop="poserName" />
|
||||||
<el-table-column label="海报编号" align="center" prop="poserCode" />
|
<el-table-column label="海报编号" align="center" prop="poserCode" />
|
||||||
<el-table-column label="海报所属模块" align="center" prop="moduleType">
|
<el-table-column label="海报所属模块" align="center" prop="moduleType">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{
|
{{
|
||||||
scope.row.moduleType == "NURSE_AGENCY_MODULE" ? "护理机构模块" : ""
|
scope.row.moduleType == "NURSE_AGENCY_MODULE" ? "护理机构模块" : ""
|
||||||
}}
|
}}
|
||||||
{{
|
{{
|
||||||
scope.row.moduleType == "NURSE_ITEM_MODULE" ? "护理项目模块" : ""
|
scope.row.moduleType == "NURSE_ITEM_MODULE" ? "护理项目模块" : ""
|
||||||
}}
|
}}
|
||||||
{{
|
{{
|
||||||
scope.row.moduleType == "HEALTH_CONSUTION_MODULE"
|
scope.row.moduleType == "HEALTH_CONSUTION_MODULE"
|
||||||
? "健康咨询模块"
|
? "健康咨询模块"
|
||||||
: ""
|
: ""
|
||||||
}}
|
}}
|
||||||
{{ scope.row.moduleType == "HOME_PAGE_MODULE" ? "首页模块" : "" }}
|
{{ scope.row.moduleType == "HOME_PAGE_MODULE" ? "首页模块" : "" }}
|
||||||
{{
|
{{
|
||||||
scope.row.moduleType == "NURSE_AGENCY_INTRODUCE_MODULE"
|
scope.row.moduleType == "NURSE_AGENCY_INTRODUCE_MODULE"
|
||||||
? "护理机构简介模块"
|
? "护理机构简介模块"
|
||||||
: ""
|
: ""
|
||||||
}}
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="海报显示顺序" align="center" prop="poserSort" />
|
<el-table-column label="海报显示顺序" align="center" prop="poserSort" />
|
||||||
<el-table-column
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
label="操作"
|
|
||||||
align="center"
|
|
||||||
class-name="small-padding fixed-width"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -166,16 +135,14 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['system:poser:edit']"
|
v-hasPermi="['system:poser:edit']"
|
||||||
>修改</el-button
|
>修改</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['system:poser:remove']"
|
v-hasPermi="['system:poser:remove']"
|
||||||
>删除</el-button
|
>删除</el-button>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -194,19 +161,9 @@
|
|||||||
:before-close="cancel"
|
:before-close="cancel"
|
||||||
append-to-body
|
append-to-body
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px" :inline="true">
|
||||||
ref="form"
|
|
||||||
:model="form"
|
|
||||||
:rules="rules"
|
|
||||||
label-width="110px"
|
|
||||||
:inline="true"
|
|
||||||
>
|
|
||||||
<el-form-item label="海报名称" prop="poserName">
|
<el-form-item label="海报名称" prop="poserName">
|
||||||
<el-input
|
<el-input v-model="form.poserName" placeholder="请输入海报名称" maxlength="50" />
|
||||||
v-model="form.poserName"
|
|
||||||
placeholder="请输入海报名称"
|
|
||||||
maxlength="50"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="海报所属模块" prop="moduleType">
|
<el-form-item label="海报所属模块" prop="moduleType">
|
||||||
@ -221,8 +178,7 @@
|
|||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
>
|
></el-option>
|
||||||
</el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="海报显示顺序" prop="poserSort">
|
<el-form-item label="海报显示顺序" prop="poserSort">
|
||||||
@ -230,7 +186,7 @@
|
|||||||
v-model="form.poserSort"
|
v-model="form.poserSort"
|
||||||
placeholder="请输入海报显示顺序"
|
placeholder="请输入海报显示顺序"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="5"
|
maxlength="5"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@ -243,7 +199,7 @@
|
|||||||
>
|
>
|
||||||
<template>
|
<template>
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type
|
||||||
@click="ParamsStation(false)"
|
@click="ParamsStation(false)"
|
||||||
:disabled="isEditFlag"
|
:disabled="isEditFlag"
|
||||||
style="
|
style="
|
||||||
@ -256,10 +212,9 @@
|
|||||||
color: #c0c4cc;
|
color: #c0c4cc;
|
||||||
"
|
"
|
||||||
v-if="form.nurseStationName == '请选择所属护理站'"
|
v-if="form.nurseStationName == '请选择所属护理站'"
|
||||||
>{{ form.nurseStationName }}</el-button
|
>{{ form.nurseStationName }}</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type
|
||||||
style="
|
style="
|
||||||
width: 208px;
|
width: 208px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -271,8 +226,7 @@
|
|||||||
@click="ParamsStation(false)"
|
@click="ParamsStation(false)"
|
||||||
:disabled="isEditFlag"
|
:disabled="isEditFlag"
|
||||||
v-else
|
v-else
|
||||||
>{{ form.nurseStationName }}</el-button
|
>{{ form.nurseStationName }}</el-button>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@ -283,7 +237,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-button
|
<el-button
|
||||||
:disabled="isEditFlag"
|
:disabled="isEditFlag"
|
||||||
type=""
|
type
|
||||||
style="
|
style="
|
||||||
width: 208px;
|
width: 208px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -295,11 +249,10 @@
|
|||||||
"
|
"
|
||||||
@click="ParamsStationxm(false)"
|
@click="ParamsStationxm(false)"
|
||||||
v-if="form.nurseItemName == '请选择所属护理项目'"
|
v-if="form.nurseItemName == '请选择所属护理项目'"
|
||||||
>{{ form.nurseItemName }}</el-button
|
>{{ form.nurseItemName }}</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
:disabled="isEditFlag"
|
:disabled="isEditFlag"
|
||||||
type=""
|
type
|
||||||
style="
|
style="
|
||||||
width: 208px;
|
width: 208px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -310,17 +263,12 @@
|
|||||||
"
|
"
|
||||||
@click="ParamsStationxm(false)"
|
@click="ParamsStationxm(false)"
|
||||||
v-else
|
v-else
|
||||||
>{{ form.nurseItemName }}</el-button
|
>{{ form.nurseItemName }}</el-button>
|
||||||
>
|
</template>
|
||||||
</template></el-form-item
|
</el-form-item>
|
||||||
>
|
|
||||||
|
|
||||||
<el-form-item label="海报图片" prop="posterPictureUrl">
|
<el-form-item label="海报图片" prop="posterPictureUrl">
|
||||||
<el-table
|
<el-table label-width="50px" style="margin-top: 20px" :data="form.posterPictureUrlLists">
|
||||||
label-width="50px"
|
|
||||||
style="margin-top: 20px"
|
|
||||||
:data="form.posterPictureUrlLists"
|
|
||||||
>
|
|
||||||
<el-table-column label="图片" align="center" width="300">
|
<el-table-column label="图片" align="center" width="300">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<stationAcatar
|
<stationAcatar
|
||||||
@ -333,32 +281,20 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="图片跳转标识" align="center" width="300">
|
<el-table-column label="图片跳转标识" align="center" width="300">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-select
|
<el-select v-model="scope.row.jumpType" placeholder="请选择" style="width: 208px">
|
||||||
v-model="scope.row.jumpType"
|
|
||||||
placeholder="请选择"
|
|
||||||
style="width: 208px"
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in jumpTypes"
|
v-for="item in jumpTypes"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
>
|
></el-option>
|
||||||
</el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="250">
|
<el-table-column label="操作" align="center" width="250">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" @click="addPictureUrl"
|
<el-button size="mini" type="text" @click="addPictureUrl">新增</el-button>
|
||||||
>新增</el-button
|
<el-button size="mini" type="text" @click="delPictureUrl(scope.row)">删除</el-button>
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="text"
|
|
||||||
@click="delPictureUrl(scope.row)"
|
|
||||||
>删除</el-button
|
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -370,8 +306,7 @@
|
|||||||
style="width: 540px"
|
style="width: 540px"
|
||||||
placeholder="请输入海报简介"
|
placeholder="请输入海报简介"
|
||||||
v-model="form.posterIntroduce"
|
v-model="form.posterIntroduce"
|
||||||
>
|
></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="海报视频">
|
<el-form-item label="海报视频">
|
||||||
<!-- <video
|
<!-- <video
|
||||||
@ -381,7 +316,7 @@
|
|||||||
controls="controls"
|
controls="controls"
|
||||||
>
|
>
|
||||||
您的浏览器不支持视频播放
|
您的浏览器不支持视频播放
|
||||||
</video> -->
|
</video>-->
|
||||||
<stationAcatar
|
<stationAcatar
|
||||||
style="width: 208px"
|
style="width: 208px"
|
||||||
@imgUrl="imgUrl2"
|
@imgUrl="imgUrl2"
|
||||||
@ -404,42 +339,19 @@
|
|||||||
append-to-body
|
append-to-body
|
||||||
:before-close="clicknurseStationshow"
|
:before-close="clicknurseStationshow"
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form ref="form" :model="getListByUserquery" label-width="110px" :inline="true">
|
||||||
ref="form"
|
|
||||||
:model="getListByUserquery"
|
|
||||||
label-width="110px"
|
|
||||||
:inline="true"
|
|
||||||
>
|
|
||||||
<el-form-item label="护理站编码" prop="nurseStationCode">
|
<el-form-item label="护理站编码" prop="nurseStationCode">
|
||||||
<el-input
|
<el-input v-model="getListByUserquery.nurseStationCode" placeholder="请输入护理站编码" />
|
||||||
v-model="getListByUserquery.nurseStationCode"
|
|
||||||
placeholder="请输入护理站编码"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理站名称" prop="nurseStationName">
|
<el-form-item label="护理站名称" prop="nurseStationName">
|
||||||
<el-input
|
<el-input v-model="getListByUserquery.nurseStationName" placeholder="请输入护理站名称" />
|
||||||
v-model="getListByUserquery.nurseStationName"
|
|
||||||
placeholder="请输入护理站名称"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="info">搜索</el-button>
|
||||||
type="primary"
|
<el-button icon="el-icon-refresh" size="mini" @click="stationcancel">重置</el-button>
|
||||||
icon="el-icon-search"
|
|
||||||
size="mini"
|
|
||||||
@click="info"
|
|
||||||
>搜索</el-button
|
|
||||||
>
|
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="stationcancel"
|
|
||||||
>重置</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table
|
<el-table v-loading="loading" :data="nurseStationlist" @cell-dblclick="choicestationid">
|
||||||
v-loading="loading"
|
|
||||||
:data="nurseStationlist"
|
|
||||||
@cell-dblclick="choicestationid"
|
|
||||||
>
|
|
||||||
<el-table-column label="请选择" width="70" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -455,31 +367,18 @@
|
|||||||
circle
|
circle
|
||||||
v-else
|
v-else
|
||||||
@click="choicestationid(scope.row)"
|
@click="choicestationid(scope.row)"
|
||||||
>
|
></el-button>
|
||||||
</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column property="nurseStationCode" label="护理站编码" align="center"></el-table-column>
|
||||||
property="nurseStationCode"
|
<el-table-column property="nurseStationName" label="护理站名称" align="center"></el-table-column>
|
||||||
label="护理站编码"
|
<el-table-column property="phone" label="联系电话" align="center"></el-table-column>
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
property="nurseStationName"
|
|
||||||
label="护理站名称"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column property="phone" label="联系电话" align="center">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="address"
|
property="address"
|
||||||
label="护理站地址"
|
label="护理站地址"
|
||||||
align="center"
|
align="center"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
>
|
></el-table-column>
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
@ -500,38 +399,17 @@
|
|||||||
>
|
>
|
||||||
<el-form :model="nurseItemquery" label-width="150px" :inline="true">
|
<el-form :model="nurseItemquery" label-width="150px" :inline="true">
|
||||||
<el-form-item label="护理项目编码" prop="nurseItemCode">
|
<el-form-item label="护理项目编码" prop="nurseItemCode">
|
||||||
<el-input
|
<el-input v-model="nurseItemquery.nurseItemCode" placeholder="请输入护理项目编码" />
|
||||||
v-model="nurseItemquery.nurseItemCode"
|
|
||||||
placeholder="请输入护理项目编码"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理项目名称" prop="nurseItemName">
|
<el-form-item label="护理项目名称" prop="nurseItemName">
|
||||||
<el-input
|
<el-input v-model="nurseItemquery.nurseItemName" placeholder="请输入护理项目名称" />
|
||||||
v-model="nurseItemquery.nurseItemName"
|
|
||||||
placeholder="请输入护理项目名称"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="nurseItemlistInfo">搜索</el-button>
|
||||||
type="primary"
|
<el-button icon="el-icon-refresh" size="mini" @click="nurseItemlistcancel">重置</el-button>
|
||||||
icon="el-icon-search"
|
|
||||||
size="mini"
|
|
||||||
@click="nurseItemlistInfo"
|
|
||||||
>搜索</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
icon="el-icon-refresh"
|
|
||||||
size="mini"
|
|
||||||
@click="nurseItemlistcancel"
|
|
||||||
>重置</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table
|
<el-table v-loading="loading" :data="nurseItemlist" @cell-dblclick="choicenurseItem">
|
||||||
v-loading="loading"
|
|
||||||
:data="nurseItemlist"
|
|
||||||
@cell-dblclick="choicenurseItem"
|
|
||||||
>
|
|
||||||
<el-table-column label="请选择" width="70" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -547,31 +425,14 @@
|
|||||||
circle
|
circle
|
||||||
v-else
|
v-else
|
||||||
@click="choicenurseItem(scope.row)"
|
@click="choicenurseItem(scope.row)"
|
||||||
>
|
></el-button>
|
||||||
</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="所属护理站" align="center" prop="nurseStationName" />
|
||||||
label="所属护理站"
|
|
||||||
align="center"
|
|
||||||
prop="nurseStationName"
|
|
||||||
/>
|
|
||||||
<!-- <el-table-column label="护理类型" align="center" prop="nurseTypeName" /> -->
|
<!-- <el-table-column label="护理类型" align="center" prop="nurseTypeName" /> -->
|
||||||
<el-table-column
|
<el-table-column label="护理项目编号" align="center" prop="nurseItemCode" />
|
||||||
label="护理项目编号"
|
<el-table-column label="护理项目名称" align="center" prop="nurseItemName" />
|
||||||
align="center"
|
<el-table-column label="护理项目分类名称" align="center" prop="nurseItemName" />
|
||||||
prop="nurseItemCode"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="护理项目名称"
|
|
||||||
align="center"
|
|
||||||
prop="nurseItemName"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="护理项目分类名称"
|
|
||||||
align="center"
|
|
||||||
prop="nurseItemName"
|
|
||||||
/>
|
|
||||||
<el-table-column label="创建时间" align="center" prop="createTime" />
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
||||||
<el-table-column label="创建人" align="center" prop="createBy" />
|
<el-table-column label="创建人" align="center" prop="createBy" />
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -595,7 +456,7 @@ import {
|
|||||||
addPoser,
|
addPoser,
|
||||||
getListByUser,
|
getListByUser,
|
||||||
updatePoser,
|
updatePoser,
|
||||||
updatePicture,
|
updatePicture
|
||||||
} from "@/api/system/poser";
|
} from "@/api/system/poser";
|
||||||
import { list } from "@/api/system/nurseItem";
|
import { list } from "@/api/system/nurseItem";
|
||||||
import stationAcatar from "../stationAvatar/index.vue";
|
import stationAcatar from "../stationAvatar/index.vue";
|
||||||
@ -609,7 +470,7 @@ export default {
|
|||||||
loading: true,
|
loading: true,
|
||||||
getListByUserquery: {
|
getListByUserquery: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10
|
||||||
},
|
},
|
||||||
nurseStationlist: [],
|
nurseStationlist: [],
|
||||||
nurseStationshow: false,
|
nurseStationshow: false,
|
||||||
@ -645,7 +506,7 @@ export default {
|
|||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
nurseItemCode: null,
|
nurseItemCode: null,
|
||||||
nurseItemName: null,
|
nurseItemName: null
|
||||||
},
|
},
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
@ -662,7 +523,7 @@ export default {
|
|||||||
moduleType: null,
|
moduleType: null,
|
||||||
poserSort: null,
|
poserSort: null,
|
||||||
jumpLink: null,
|
jumpLink: null,
|
||||||
jumpType: null,
|
jumpType: null
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {
|
form: {
|
||||||
@ -676,75 +537,75 @@ export default {
|
|||||||
nurseStationId: "",
|
nurseStationId: "",
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择所属护理站",
|
||||||
nurseItemName: "请选择所属护理项目",
|
nurseItemName: "请选择所属护理项目",
|
||||||
nurseItemId: "",
|
nurseItemId: ""
|
||||||
},
|
},
|
||||||
imgsurl: { pictureUrlList: [] },
|
imgsurl: { pictureUrlList: [] },
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
moduleType: [
|
moduleType: [
|
||||||
{ required: true, message: "请选择海报所属模块", trigger: "blur" },
|
{ required: true, message: "请选择海报所属模块", trigger: "blur" }
|
||||||
],
|
],
|
||||||
poserName: [
|
poserName: [
|
||||||
{ required: true, message: "请输入海报名称", trigger: "blur" },
|
{ required: true, message: "请输入海报名称", trigger: "blur" }
|
||||||
],
|
],
|
||||||
nurseStationId: [
|
nurseStationId: [
|
||||||
{ required: true, message: "请选择所属护理站", trigger: "blur" },
|
{ required: true, message: "请选择所属护理站", trigger: "blur" }
|
||||||
],
|
],
|
||||||
posterIntroduce: [
|
posterIntroduce: [
|
||||||
{ required: true, message: "请输入海报简介", trigger: "blur" },
|
{ required: true, message: "请输入海报简介", trigger: "blur" }
|
||||||
],
|
],
|
||||||
|
|
||||||
posterVideoUrl: [
|
posterVideoUrl: [
|
||||||
{ required: true, message: "请选择海报视频", trigger: "blur" },
|
{ required: true, message: "请选择海报视频", trigger: "blur" }
|
||||||
],
|
],
|
||||||
poserSort: [
|
poserSort: [
|
||||||
{ required: true, message: "请输入海报顺序", trigger: "blur" },
|
{ required: true, message: "请输入海报顺序", trigger: "blur" }
|
||||||
],
|
],
|
||||||
nurseItemId: [
|
nurseItemId: [
|
||||||
{ required: true, message: "请选择所属护理项目", trigger: "blur" },
|
{ required: true, message: "请选择所属护理项目", trigger: "blur" }
|
||||||
],
|
]
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
value: "NURSE_AGENCY_MODULE",
|
value: "NURSE_AGENCY_MODULE",
|
||||||
label: "护理机构模块",
|
label: "护理机构模块"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "NURSE_ITEM_MODULE",
|
value: "NURSE_ITEM_MODULE",
|
||||||
label: "护理项目模块",
|
label: "护理项目模块"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "HEALTH_CONSUTION_MODULE",
|
value: "HEALTH_CONSUTION_MODULE",
|
||||||
label: "健康咨询模块",
|
label: "健康咨询模块"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "HOME_PAGE_MODULE",
|
value: "HOME_PAGE_MODULE",
|
||||||
label: "首页模块",
|
label: "首页模块"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "NURSE_AGENCY_INTRODUCE_MODULE",
|
value: "NURSE_AGENCY_INTRODUCE_MODULE",
|
||||||
label: "护理机构简介模块",
|
label: "护理机构简介模块"
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
objitem:[],
|
objitem: [],
|
||||||
jumpTypes: [
|
jumpTypes: [
|
||||||
{
|
{
|
||||||
value: "NEW_PEOPLE_WELFARE",
|
value: "NEW_PEOPLE_WELFARE",
|
||||||
label: "新人福利",
|
label: "新人福利"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "HOME_PAGE",
|
value: "HOME_PAGE",
|
||||||
label: "首页",
|
label: "首页"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "SHOPPING",
|
value: "SHOPPING",
|
||||||
label: "商城",
|
label: "商城"
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
//页面链接
|
//页面链接
|
||||||
stationid: "",
|
stationid: "",
|
||||||
imgone:[],
|
imgone: [],
|
||||||
nurseitemid: "",
|
nurseitemid: "",
|
||||||
homenumber: false,
|
homenumber: false,
|
||||||
videourl: "",
|
videourl: "",
|
||||||
@ -755,10 +616,10 @@ export default {
|
|||||||
isShowUploadVideo: false,
|
isShowUploadVideo: false,
|
||||||
//显示上传按钮
|
//显示上传按钮
|
||||||
videoForm: {
|
videoForm: {
|
||||||
showVideoPath: "", //回显的变量
|
showVideoPath: "" //回显的变量
|
||||||
},
|
},
|
||||||
// 存储新上传的图片数组
|
// 存储新上传的图片数组
|
||||||
deletNewImgs:[],
|
deletNewImgs: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -774,15 +635,17 @@ export default {
|
|||||||
if (this.form.posterPictureUrlLists.length == 1) {
|
if (this.form.posterPictureUrlLists.length == 1) {
|
||||||
this.$message.error("最后一条不可删除");
|
this.$message.error("最后一条不可删除");
|
||||||
} else {
|
} else {
|
||||||
this.form.posterPictureUrlLists =
|
this.form.posterPictureUrlLists = this.form.posterPictureUrlLists.filter(
|
||||||
this.form.posterPictureUrlLists.filter((e) => e.idd != item.idd);
|
e => e.idd != item.idd
|
||||||
|
);
|
||||||
}
|
}
|
||||||
} else if (!item.idd && item.id) {
|
} else if (!item.idd && item.id) {
|
||||||
if (this.form.posterPictureUrlLists.length == 1) {
|
if (this.form.posterPictureUrlLists.length == 1) {
|
||||||
this.$message.error("最后一条不可删除");
|
this.$message.error("最后一条不可删除");
|
||||||
} else {
|
} else {
|
||||||
this.form.posterPictureUrlLists =
|
this.form.posterPictureUrlLists = this.form.posterPictureUrlLists.filter(
|
||||||
this.form.posterPictureUrlLists.filter((e) => e.id != item.id);
|
e => e.id != item.id
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -792,7 +655,7 @@ export default {
|
|||||||
var obj = {
|
var obj = {
|
||||||
posterPictureUrl: "",
|
posterPictureUrl: "",
|
||||||
jumpType: "",
|
jumpType: "",
|
||||||
idd: this.idd,
|
idd: this.idd
|
||||||
};
|
};
|
||||||
if (this.form.posterPictureUrlLists.length >= 5) {
|
if (this.form.posterPictureUrlLists.length >= 5) {
|
||||||
this.$message.error("最多新增5条");
|
this.$message.error("最多新增5条");
|
||||||
@ -828,13 +691,13 @@ export default {
|
|||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
nurseItemCode: null,
|
nurseItemCode: null,
|
||||||
nurseItemName: null,
|
nurseItemName: null
|
||||||
};
|
};
|
||||||
this.nurseItemlistInfo();
|
this.nurseItemlistInfo();
|
||||||
},
|
},
|
||||||
//搜索
|
//搜索
|
||||||
nurseItemlistInfo() {
|
nurseItemlistInfo() {
|
||||||
list(this.nurseItemquery).then((res) => {
|
list(this.nurseItemquery).then(res => {
|
||||||
this.nurseItemlist = res.rows;
|
this.nurseItemlist = res.rows;
|
||||||
this.nurseItemtotal = res.total;
|
this.nurseItemtotal = res.total;
|
||||||
});
|
});
|
||||||
@ -867,7 +730,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//护理站list
|
//护理站list
|
||||||
info() {
|
info() {
|
||||||
getListByUser(this.getListByUserquery).then((res) => {
|
getListByUser(this.getListByUserquery).then(res => {
|
||||||
this.nurseStationlist = res.rows;
|
this.nurseStationlist = res.rows;
|
||||||
this.total4 = res.total;
|
this.total4 = res.total;
|
||||||
});
|
});
|
||||||
@ -882,7 +745,7 @@ export default {
|
|||||||
stationcancel() {
|
stationcancel() {
|
||||||
this.getListByUserquery = {
|
this.getListByUserquery = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10
|
||||||
};
|
};
|
||||||
this.info();
|
this.info();
|
||||||
},
|
},
|
||||||
@ -909,15 +772,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//图片传值过来接收
|
//图片传值过来接收
|
||||||
imgUrl(imgUrl) {
|
imgUrl(imgUrl) {
|
||||||
|
let imgUrlData = JSON.parse(imgUrl);
|
||||||
console.log(JSON.parse(imgUrl),'url');
|
|
||||||
let imgUrlData=JSON.parse(imgUrl)
|
|
||||||
// 存贮新上传的图片数组
|
// 存贮新上传的图片数组
|
||||||
this.deletNewImgs.push(imgUrlData.posterPictureUrl)
|
this.deletNewImgs.push(imgUrlData.posterPictureUrl);
|
||||||
console.log(this.deletNewImgs,'触发了上传时间')
|
this.objitem.push(imgUrlData.posterPictureUrl);
|
||||||
this.objitem.push(imgUrlData.posterPictureUrl)
|
|
||||||
|
|
||||||
console.log(this.objitem)
|
|
||||||
},
|
},
|
||||||
imgUrl2(imgUrl) {
|
imgUrl2(imgUrl) {
|
||||||
this.videoForm.showVideoPath = baseurl + imgUrl;
|
this.videoForm.showVideoPath = baseurl + imgUrl;
|
||||||
@ -926,7 +784,7 @@ export default {
|
|||||||
/** 查询泉医到家系统海报模块信息(包含咨询简介信息)列表 */
|
/** 查询泉医到家系统海报模块信息(包含咨询简介信息)列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listPoser(this.queryParams).then((response) => {
|
listPoser(this.queryParams).then(response => {
|
||||||
this.poserList = response.rows;
|
this.poserList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
@ -934,22 +792,17 @@ export default {
|
|||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
console.log(this.objitem)
|
|
||||||
var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
if (this.form.posterPictureUrlLists) {
|
if (this.form.posterPictureUrlLists) {
|
||||||
this.form.posterPictureUrlLists.forEach((e) => {
|
this.form.posterPictureUrlLists.forEach(e => {
|
||||||
obj.pictureUrlList.push(e.posterPictureUrl);
|
obj.pictureUrlList.push(e.posterPictureUrl);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (obj.pictureUrlList.length > 0) {
|
||||||
console.log(this.deletNewImgs)
|
updatePicture({ pictureUrlList: this.deletNewImgs }).then(res => {
|
||||||
if(obj.pictureUrlList.length>0){
|
|
||||||
updatePicture({pictureUrlList:this.deletNewImgs}).then((res) => {
|
|
||||||
this.open = false;
|
this.open = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.deletNewImgs=[],
|
|
||||||
this.nurseItemquery.nurseStationId = null;
|
this.nurseItemquery.nurseStationId = null;
|
||||||
this.imgs = { pictureUrlList: [] };
|
this.imgs = { pictureUrlList: [] };
|
||||||
this.open = false;
|
this.open = false;
|
||||||
@ -962,8 +815,8 @@ export default {
|
|||||||
{
|
{
|
||||||
posterPictureUrl: "",
|
posterPictureUrl: "",
|
||||||
jumpType: "",
|
jumpType: "",
|
||||||
idd: this.idd,
|
idd: this.idd
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
id: null,
|
id: null,
|
||||||
poserName: null,
|
poserName: null,
|
||||||
@ -974,8 +827,9 @@ export default {
|
|||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择所属护理站",
|
||||||
nurseStationId: null,
|
nurseStationId: null,
|
||||||
nurseItemName: "请选择所属护理项目",
|
nurseItemName: "请选择所属护理项目",
|
||||||
nurseItemId: null,
|
nurseItemId: null
|
||||||
};
|
};
|
||||||
|
this.deletNewImgs = [];
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
@ -986,22 +840,22 @@ export default {
|
|||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.nurseItemquery = {
|
this.nurseItemquery = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10
|
||||||
};
|
};
|
||||||
this.stationid = "";
|
this.stationid = "";
|
||||||
this.nurseitemid = "";
|
this.nurseitemid = "";
|
||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10
|
||||||
};
|
};
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map((item) => item.nurseStationId);
|
this.ids = selection.map(item => item.nurseStationId);
|
||||||
this.itemids = selection.map((item) => item.nurseItemId);
|
this.itemids = selection.map(item => item.nurseItemId);
|
||||||
this.Types = selection.map((item) => item.moduleType);
|
this.Types = selection.map(item => item.moduleType);
|
||||||
this.single = selection.length !== 1;
|
this.single = selection.length !== 1;
|
||||||
this.multiple = !selection.length;
|
this.multiple = !selection.length;
|
||||||
},
|
},
|
||||||
@ -1017,7 +871,7 @@ export default {
|
|||||||
const id = row.nurseStationId || this.ids;
|
const id = row.nurseStationId || this.ids;
|
||||||
const itemid = row.nurseItemId || this.itemids;
|
const itemid = row.nurseItemId || this.itemids;
|
||||||
const type = row.moduleType || this.Types;
|
const type = row.moduleType || this.Types;
|
||||||
getPoser(type, id, itemid).then((response) => {
|
getPoser(type, id, itemid).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
if (response.data.goodAttributeDetailsLists) {
|
if (response.data.goodAttributeDetailsLists) {
|
||||||
this.goodDetailsLists = response.data.goodAttributeDetailsLists;
|
this.goodDetailsLists = response.data.goodAttributeDetailsLists;
|
||||||
@ -1029,19 +883,19 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updatePoser(this.form).then((response) => {
|
updatePoser(this.form).then(response => {
|
||||||
// var obj = { pictureUrlList: [] };
|
// var obj = { pictureUrlList: [] };
|
||||||
// if (this.form.posterPictureUrlLists) {
|
// if (this.form.posterPictureUrlLists) {
|
||||||
// this.form.posterPictureUrlLists.forEach((e) => {
|
// this.form.posterPictureUrlLists.forEach((e) => {
|
||||||
// obj.pictureUrlList.push(e.posterPictureUrl);
|
// obj.pictureUrlList.push(e.posterPictureUrl);
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
// updatePicture({pictureUrlList:this.deletNewImgs}).then((res) => {
|
// updatePicture({pictureUrlList:this.deletNewImgs}).then((res) => {
|
||||||
// this.open = false;
|
// this.open = false;
|
||||||
// });
|
// });
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
@ -1049,10 +903,10 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
if (this.form.poserSort) {
|
if (this.form.poserSort) {
|
||||||
this.form.poserSort = parseInt(this.form.poserSort);
|
this.form.poserSort = parseInt(this.form.poserSort);
|
||||||
}else{
|
} else {
|
||||||
this.form.poserSort=null
|
this.form.poserSort = null;
|
||||||
}
|
}
|
||||||
addPoser(this.form).then((response) => {
|
addPoser(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
@ -1063,18 +917,13 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
console.log(row);
|
|
||||||
const ids = row.id || this.ids;
|
const ids = row.id || this.ids;
|
||||||
const nurseStationIds = row.nurseStationId || this.nurseStationIds;
|
const nurseStationIds = row.nurseStationId || this.nurseStationIds;
|
||||||
const moduleTypes = row.moduleType || this.moduleTypes;
|
const moduleTypes = row.moduleType || this.moduleTypes;
|
||||||
const nurseItemIds = row.nurseItemId || this.nurseItemIds;
|
const nurseItemIds = row.nurseItemId || this.nurseItemIds;
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm(
|
.confirm("是否确认删除?")
|
||||||
'是否确认删除泉医到家系统海报模块信息(包含咨询简介信息)编号为"' +
|
.then(function() {
|
||||||
ids +
|
|
||||||
'"的数据项?'
|
|
||||||
)
|
|
||||||
.then(function () {
|
|
||||||
return delPoser(nurseStationIds, moduleTypes, nurseItemIds);
|
return delPoser(nurseStationIds, moduleTypes, nurseItemIds);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@ -1088,15 +937,15 @@ export default {
|
|||||||
this.download(
|
this.download(
|
||||||
"system/poser/export",
|
"system/poser/export",
|
||||||
{
|
{
|
||||||
...this.queryParams,
|
...this.queryParams
|
||||||
},
|
},
|
||||||
`poser_${new Date().getTime()}.xlsx`
|
`poser_${new Date().getTime()}.xlsx`
|
||||||
);
|
);
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.avatar-uploader-icon {
|
.avatar-uploader-icon {
|
||||||
border: 1px dashed #d9d9d9 !important;
|
border: 1px dashed #d9d9d9 !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,14 +8,12 @@
|
|||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="110px"
|
label-width="110px"
|
||||||
>
|
>
|
||||||
<el-form-item
|
<el-form-item label="护理站名称" prop="nurseStationId" label-width="100px">
|
||||||
label="护理站名称"
|
<el-button type class="stationbtn" @click="ParamsStation(true)">
|
||||||
prop="nurseStationId"
|
{{
|
||||||
label-width="100px"
|
|
||||||
>
|
|
||||||
<el-button type="" class="stationbtn" @click="ParamsStation(true)">{{
|
|
||||||
queryParams.nurseStationName
|
queryParams.nurseStationName
|
||||||
}}</el-button>
|
}}
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理项目编号" prop="nurseItemCode">
|
<el-form-item label="护理项目编号" prop="nurseItemCode">
|
||||||
<el-input
|
<el-input
|
||||||
@ -34,16 +32,8 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
type="primary"
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
icon="el-icon-search"
|
|
||||||
size="mini"
|
|
||||||
@click="handleQuery"
|
|
||||||
>搜索</el-button
|
|
||||||
>
|
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
||||||
>重置</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
@ -55,8 +45,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['system:stationItem:add']"
|
v-hasPermi="['system:stationItem:add']"
|
||||||
>新增</el-button
|
>新增</el-button>
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
@ -67,8 +56,7 @@
|
|||||||
:disabled="single"
|
:disabled="single"
|
||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['system:stationItem:edit']"
|
v-hasPermi="['system:stationItem:edit']"
|
||||||
>修改</el-button
|
>修改</el-button>
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
@ -79,8 +67,7 @@
|
|||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
v-hasPermi="['system:stationItem:remove']"
|
v-hasPermi="['system:stationItem:remove']"
|
||||||
>删除</el-button
|
>删除</el-button>
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
@ -90,19 +77,11 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
v-hasPermi="['system:stationItem:importStationItem']"
|
v-hasPermi="['system:stationItem:importStationItem']"
|
||||||
>导入</el-button
|
>导入</el-button>
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
:showSearch.sync="showSearch"
|
|
||||||
@queryTable="getList"
|
|
||||||
></right-toolbar>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table
|
<el-table v-loading="loading" :data="nurseItemList" @selection-change="handleSelectionChange">
|
||||||
v-loading="loading"
|
|
||||||
:data="nurseItemList"
|
|
||||||
@selection-change="handleSelectionChange"
|
|
||||||
>
|
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column type="expand">
|
<el-table-column type="expand">
|
||||||
<template slot-scope="props">
|
<template slot-scope="props">
|
||||||
@ -112,50 +91,26 @@
|
|||||||
v-for="(item, index) in props.row.nurseStationItemPrices"
|
v-for="(item, index) in props.row.nurseStationItemPrices"
|
||||||
:key="index"
|
:key="index"
|
||||||
style="display: block"
|
style="display: block"
|
||||||
>
|
>{{ item.serveDurationUnit }}</div>
|
||||||
{{ item.serveDurationUnit }}
|
|
||||||
</div>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="价格(元)" style="margin-left: 30px">
|
<el-form-item label="价格(元)" style="margin-left: 30px">
|
||||||
<div
|
<div
|
||||||
v-for="(item, index) in props.row.nurseStationItemPrices"
|
v-for="(item, index) in props.row.nurseStationItemPrices"
|
||||||
:key="index"
|
:key="index"
|
||||||
style="display: block"
|
style="display: block"
|
||||||
>
|
>{{ item.price }}</div>
|
||||||
{{ item.price }}
|
|
||||||
</div>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="所属护理站" align="center" prop="nurseStationName" />
|
||||||
label="所属护理站"
|
|
||||||
align="center"
|
|
||||||
prop="nurseStationName"
|
|
||||||
/>
|
|
||||||
<!-- <el-table-column label="护理类型" align="center" prop="nurseTypeName" /> -->
|
<!-- <el-table-column label="护理类型" align="center" prop="nurseTypeName" /> -->
|
||||||
<el-table-column
|
<el-table-column label="护理项目编号" align="center" prop="nurseItemCode" />
|
||||||
label="护理项目编号"
|
<el-table-column label="护理项目名称" align="center" prop="nurseItemName" />
|
||||||
align="center"
|
<el-table-column label="护理项目分类名称" align="center" prop="classifyName" />
|
||||||
prop="nurseItemCode"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="护理项目名称"
|
|
||||||
align="center"
|
|
||||||
prop="nurseItemName"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="护理项目分类名称"
|
|
||||||
align="center"
|
|
||||||
prop="classifyName"
|
|
||||||
/>
|
|
||||||
<el-table-column label="创建时间" align="center" prop="createTime" />
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
||||||
<el-table-column label="创建人" align="center" prop="createBy" />
|
<el-table-column label="创建人" align="center" prop="createBy" />
|
||||||
<el-table-column
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
label="操作"
|
|
||||||
align="center"
|
|
||||||
class-name="small-padding fixed-width"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -163,16 +118,14 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['system:stationItem:edit']"
|
v-hasPermi="['system:stationItem:edit']"
|
||||||
>修改</el-button
|
>修改</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['system:stationItem:remove']"
|
v-hasPermi="['system:stationItem:remove']"
|
||||||
>删除</el-button
|
>删除</el-button>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -191,17 +144,11 @@
|
|||||||
append-to-body
|
append-to-body
|
||||||
:before-close="cancel"
|
:before-close="cancel"
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form ref="form" :model="form" :rules="rules" label-width="130px" :inline="true">
|
||||||
ref="form"
|
|
||||||
:model="form"
|
|
||||||
:rules="rules"
|
|
||||||
label-width="130px"
|
|
||||||
:inline="true"
|
|
||||||
>
|
|
||||||
<el-form-item label="所属护理站" prop="nurseStationId" v-if="addxg == 'add'">
|
<el-form-item label="所属护理站" prop="nurseStationId" v-if="addxg == 'add'">
|
||||||
<template>
|
<template>
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type
|
||||||
@click="nurseStationshowclick"
|
@click="nurseStationshowclick"
|
||||||
style="
|
style="
|
||||||
width: 208px;
|
width: 208px;
|
||||||
@ -213,10 +160,9 @@
|
|||||||
this.form.nurseStationItem.nurseStationName ==
|
this.form.nurseStationItem.nurseStationName ==
|
||||||
'请选择所属护理站'
|
'请选择所属护理站'
|
||||||
"
|
"
|
||||||
>{{ form.nurseStationItem.nurseStationName }}</el-button
|
>{{ form.nurseStationItem.nurseStationName }}</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type
|
||||||
@click="nurseStationshowclick"
|
@click="nurseStationshowclick"
|
||||||
v-else
|
v-else
|
||||||
style="
|
style="
|
||||||
@ -228,14 +174,13 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
"
|
"
|
||||||
>{{ form.nurseStationItem.nurseStationName }}</el-button
|
>{{ form.nurseStationItem.nurseStationName }}</el-button>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="所属护理站" required v-else>
|
<el-form-item label="所属护理站" required v-else>
|
||||||
<template>
|
<template>
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type
|
||||||
disabled
|
disabled
|
||||||
style="
|
style="
|
||||||
width: 208px;
|
width: 208px;
|
||||||
@ -245,14 +190,13 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
"
|
"
|
||||||
>{{ form.nurseStationItem.nurseStationName }}</el-button
|
>{{ form.nurseStationItem.nurseStationName }}</el-button>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理项目分类" >
|
<el-form-item label="护理项目分类">
|
||||||
<template>
|
<template>
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type
|
||||||
style="
|
style="
|
||||||
width: 208px;
|
width: 208px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -264,10 +208,9 @@
|
|||||||
"
|
"
|
||||||
@click="clickClassifyshow"
|
@click="clickClassifyshow"
|
||||||
v-if="form.nurseStationItem.classifyName == '请选择护理项目分类'"
|
v-if="form.nurseStationItem.classifyName == '请选择护理项目分类'"
|
||||||
>{{ form.nurseStationItem.classifyName }}</el-button
|
>{{ form.nurseStationItem.classifyName }}</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type
|
||||||
style="
|
style="
|
||||||
width: 208px;
|
width: 208px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -278,14 +221,10 @@
|
|||||||
"
|
"
|
||||||
@click="clickClassifyshow"
|
@click="clickClassifyshow"
|
||||||
v-else
|
v-else
|
||||||
>{{ form.nurseStationItem.classifyName }}</el-button
|
>{{ form.nurseStationItem.classifyName }}</el-button>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item label="护理项目名称" prop="nurseStationItem.nurseItemName">
|
||||||
label="护理项目名称"
|
|
||||||
prop="nurseStationItem.nurseItemName"
|
|
||||||
>
|
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.nurseStationItem.nurseItemName"
|
v-model="form.nurseStationItem.nurseItemName"
|
||||||
placeholder="请输入护理项目名称"
|
placeholder="请输入护理项目名称"
|
||||||
@ -293,56 +232,52 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="提前预约时长" prop="nurseStationItem.advanceAppointDuration">
|
<el-form-item label="提前预约时长" prop="nurseStationItem.advanceAppointDuration">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.nurseStationItem.advanceAppointDuration"
|
v-model="form.nurseStationItem.advanceAppointDuration"
|
||||||
placeholder="请选择提前预约时长"
|
placeholder="请选择提前预约时长"
|
||||||
|
style="width:208px"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
style="width:208px"
|
style="width:208px"
|
||||||
clearable
|
v-for="item in optionlist"
|
||||||
>
|
:key="item.value"
|
||||||
<el-option
|
:label="item.label"
|
||||||
style="width:208px"
|
:value="item.value"
|
||||||
v-for="item in optionlist"
|
></el-option>
|
||||||
:key="item.value"
|
</el-select>
|
||||||
:label="item.label"
|
</el-form-item>
|
||||||
:value="item.value"
|
|
||||||
>
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
|
|
||||||
<el-form-item label="预约人数上限" prop="nurseStationItem.appointmentLimitCount">
|
<el-form-item label="预约人数上限" prop="nurseStationItem.appointmentLimitCount">
|
||||||
<el-input
|
<el-input
|
||||||
placeholder="请输入预约人数上限"
|
placeholder="请输入预约人数上限"
|
||||||
v-model="form.nurseStationItem.appointmentLimitCount"
|
v-model.number="form.nurseStationItem.appointmentLimitCount"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="8"
|
maxlength="8"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="预约时间间隔" prop="nurseStationItem.appointmentTimeInterval">
|
<el-form-item label="预约时间间隔" prop="nurseStationItem.appointmentTimeInterval">
|
||||||
<el-select
|
<el-select
|
||||||
style="width:208px"
|
style="width:208px"
|
||||||
v-model="form.nurseStationItem.appointmentTimeInterval"
|
v-model="form.nurseStationItem.appointmentTimeInterval"
|
||||||
placeholder="请选择预约时间间隔"
|
placeholder="请选择预约时间间隔"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in options"
|
v-for="item in options"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
>
|
></el-option>
|
||||||
</el-option>
|
</el-select>
|
||||||
</el-select>
|
</el-form-item>
|
||||||
</el-form-item>
|
<el-form-item label="排序" prop="nurseStationItem.sort">
|
||||||
<el-form-item label="排序" prop="nurseStationItem.sort">
|
|
||||||
<el-input
|
<el-input
|
||||||
placeholder="请输入排序"
|
placeholder="请输入排序"
|
||||||
v-model="form.nurseStationItem.sort"
|
v-model="form.nurseStationItem.sort"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="5"
|
maxlength="5"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="项目头像" prop="nurseStationItem.itemPictureUrl">
|
<el-form-item label="项目头像" prop="nurseStationItem.itemPictureUrl">
|
||||||
<stationAcatar
|
<stationAcatar
|
||||||
style="width: 208px"
|
style="width: 208px"
|
||||||
@imgUrl="imgUrl"
|
@imgUrl="imgUrl"
|
||||||
@ -350,11 +285,7 @@
|
|||||||
:type="'itemPictureUrl'"
|
:type="'itemPictureUrl'"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item label="项目内容简介" prop="nurseStationItem.nurseItemContent">
|
||||||
label="项目内容简介"
|
|
||||||
prop="nurseStationItem.nurseItemContent"
|
|
||||||
>
|
|
||||||
|
|
||||||
<editor
|
<editor
|
||||||
@imgs="imgs"
|
@imgs="imgs"
|
||||||
maxlength="300"
|
maxlength="300"
|
||||||
@ -370,16 +301,9 @@
|
|||||||
:data="form.nurseStationItemPrices"
|
:data="form.nurseStationItemPrices"
|
||||||
style="margin-top: 20px; width: 900px"
|
style="margin-top: 20px; width: 900px"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column property="serveDurationUnit" label="服务时长和单位" align="center">
|
||||||
property="serveDurationUnit"
|
|
||||||
label="服务时长和单位"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input v-model="scope.row.serveDurationUnit" maxlength="6"></el-input>
|
||||||
v-model="scope.row.serveDurationUnit"
|
|
||||||
maxlength="6"
|
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column property="price" label="价格" align="center">
|
<el-table-column property="price" label="价格" align="center">
|
||||||
@ -395,92 +319,46 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column property="description" label="描述" align="center">
|
<el-table-column property="description" label="描述" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input v-model="scope.row.description" maxlength="300"></el-input>
|
||||||
v-model="scope.row.description"
|
|
||||||
maxlength="300"
|
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center">
|
<el-table-column label="操作" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button size="mini" type="text" @click="addnurseStationItemPrices">新增</el-button>
|
||||||
size="mini"
|
<el-button size="mini" type="text" @click="delnurseStationItemPrices(scope.row)">删除</el-button>
|
||||||
type="text"
|
|
||||||
@click="addnurseStationItemPrices"
|
|
||||||
>新增</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="text"
|
|
||||||
@click="delnurseStationItemPrices(scope.row)"
|
|
||||||
>删除</el-button
|
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理项目耗材">
|
<el-form-item label="护理项目耗材">
|
||||||
<el-button
|
<el-button type="primary" size="small" plain @click="listStationConsumableinfo">添加护理项目耗材</el-button>
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
plain
|
|
||||||
@click="listStationConsumableinfo"
|
|
||||||
>添加护理项目耗材</el-button
|
|
||||||
>
|
|
||||||
<el-table
|
<el-table
|
||||||
ref="singleTable"
|
ref="singleTable"
|
||||||
:data="form.nurseStationItemConsumables"
|
:data="form.nurseStationItemConsumables"
|
||||||
style="margin-top: 20px; width: 900px"
|
style="margin-top: 20px; width: 900px"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column property="nurseStationConsumableId" label="耗材包名称" align="center">
|
||||||
property="nurseStationConsumableId"
|
<template slot-scope="scope">{{ scope.row.consumableDetail }}</template>
|
||||||
label="耗材包名称"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.consumableDetail }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column property="consumableCount" label="耗材包数量" align="center">
|
||||||
property="consumableCount"
|
|
||||||
label="耗材包数量"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="scope.row.consumableCount"
|
v-model="scope.row.consumableCount"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="9"
|
maxlength="9"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column property="consumablePrice" label="耗材包单位" align="center">
|
||||||
property="consumablePrice"
|
<template slot-scope="scope">{{ scope.row.consumableUnit }}</template>
|
||||||
label="耗材包单位"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.consumableUnit }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column property="consumablePrice" label="耗材包单价" align="center">
|
||||||
property="consumablePrice"
|
<template slot-scope="scope">{{ scope.row.consumablePrice }}</template>
|
||||||
label="耗材包单价"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.consumablePrice }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center">
|
<el-table-column label="操作" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button size="mini" type="text" @click="delConsumable(scope.row)">删除</el-button>
|
||||||
size="mini"
|
|
||||||
type="text"
|
|
||||||
@click="delConsumable(scope.row)"
|
|
||||||
>删除</el-button
|
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -501,38 +379,17 @@
|
|||||||
>
|
>
|
||||||
<el-form :model="classifyquery" label-width="150px" :inline="true">
|
<el-form :model="classifyquery" label-width="150px" :inline="true">
|
||||||
<el-form-item label="护理项目分类编码" prop="classifyCode">
|
<el-form-item label="护理项目分类编码" prop="classifyCode">
|
||||||
<el-input
|
<el-input v-model="classifyquery.classifyCode" placeholder="请输入护理项目分类编码" />
|
||||||
v-model="classifyquery.classifyCode"
|
|
||||||
placeholder="请输入护理项目分类编码"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理项目分类名称" prop="classifyName">
|
<el-form-item label="护理项目分类名称" prop="classifyName">
|
||||||
<el-input
|
<el-input v-model="classifyquery.classifyName" placeholder="请输入护理项目分类名称" />
|
||||||
v-model="classifyquery.classifyName"
|
|
||||||
placeholder="请输入护理项目分类名称"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="classifylistInfo">搜索</el-button>
|
||||||
type="primary"
|
<el-button icon="el-icon-refresh" size="mini" @click="classifylistcancel">重置</el-button>
|
||||||
icon="el-icon-search"
|
|
||||||
size="mini"
|
|
||||||
@click="classifylistInfo"
|
|
||||||
>搜索</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
icon="el-icon-refresh"
|
|
||||||
size="mini"
|
|
||||||
@click="classifylistcancel"
|
|
||||||
>重置</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table
|
<el-table v-loading="loading" :data="classifylist" @cell-dblclick="choiceclassify">
|
||||||
v-loading="loading"
|
|
||||||
:data="classifylist"
|
|
||||||
@cell-dblclick="choiceclassify"
|
|
||||||
>
|
|
||||||
<el-table-column label="请选择" width="70" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -548,22 +405,11 @@
|
|||||||
circle
|
circle
|
||||||
v-else
|
v-else
|
||||||
@click="choiceclassify(scope.row)"
|
@click="choiceclassify(scope.row)"
|
||||||
>
|
></el-button>
|
||||||
</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column property="classifyCode" label="护理项目分类编码" align="center"></el-table-column>
|
||||||
property="classifyCode"
|
<el-table-column property="classifyName" label="护理项目分类名称" align="center"></el-table-column>
|
||||||
label="护理项目分类编码"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
property="classifyName"
|
|
||||||
label="护理项目分类名称"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<pagination
|
||||||
v-show="classifytotal > 0"
|
v-show="classifytotal > 0"
|
||||||
@ -581,42 +427,19 @@
|
|||||||
append-to-body
|
append-to-body
|
||||||
:before-close="clicknurseStationshow"
|
:before-close="clicknurseStationshow"
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form ref="form" :model="getListByUserquery" label-width="110px" :inline="true">
|
||||||
ref="form"
|
|
||||||
:model="getListByUserquery"
|
|
||||||
label-width="110px"
|
|
||||||
:inline="true"
|
|
||||||
>
|
|
||||||
<el-form-item label="护理站编码" prop="nurseStationCode">
|
<el-form-item label="护理站编码" prop="nurseStationCode">
|
||||||
<el-input
|
<el-input v-model="getListByUserquery.nurseStationCode" placeholder="请输入护理站编码" />
|
||||||
v-model="getListByUserquery.nurseStationCode"
|
|
||||||
placeholder="请输入护理站编码"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理站名称" prop="nurseStationName">
|
<el-form-item label="护理站名称" prop="nurseStationName">
|
||||||
<el-input
|
<el-input v-model="getListByUserquery.nurseStationName" placeholder="请输入护理站名称" />
|
||||||
v-model="getListByUserquery.nurseStationName"
|
|
||||||
placeholder="请输入护理站名称"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="info">搜索</el-button>
|
||||||
type="primary"
|
<el-button icon="el-icon-refresh" size="mini" @click="stationcancel">重置</el-button>
|
||||||
icon="el-icon-search"
|
|
||||||
size="mini"
|
|
||||||
@click="info"
|
|
||||||
>搜索</el-button
|
|
||||||
>
|
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="stationcancel"
|
|
||||||
>重置</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table
|
<el-table v-loading="loading" :data="nurseStationlist" @cell-dblclick="choicestationid">
|
||||||
v-loading="loading"
|
|
||||||
:data="nurseStationlist"
|
|
||||||
@cell-dblclick="choicestationid"
|
|
||||||
>
|
|
||||||
<el-table-column label="请选择" width="70" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -632,31 +455,18 @@
|
|||||||
circle
|
circle
|
||||||
v-else
|
v-else
|
||||||
@click="choicestationid(scope.row)"
|
@click="choicestationid(scope.row)"
|
||||||
>
|
></el-button>
|
||||||
</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column property="nurseStationCode" label="护理站编码" align="center"></el-table-column>
|
||||||
property="nurseStationCode"
|
<el-table-column property="nurseStationName" label="护理站名称" align="center"></el-table-column>
|
||||||
label="护理站编码"
|
<el-table-column property="phone" label="联系电话" align="center"></el-table-column>
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
property="nurseStationName"
|
|
||||||
label="护理站名称"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column property="phone" label="联系电话" align="center">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="address"
|
property="address"
|
||||||
label="护理站地址"
|
label="护理站地址"
|
||||||
align="center"
|
align="center"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
>
|
></el-table-column>
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
@ -675,17 +485,9 @@
|
|||||||
append-to-body
|
append-to-body
|
||||||
:before-close="clickstationConsumableshow"
|
:before-close="clickstationConsumableshow"
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form ref="form" :model="StationConsumablequeryParams" label-width="110px" :inline="true">
|
||||||
ref="form"
|
|
||||||
:model="StationConsumablequeryParams"
|
|
||||||
label-width="110px"
|
|
||||||
:inline="true"
|
|
||||||
>
|
|
||||||
<el-form-item label="耗材包名称" prop="nurseStationId">
|
<el-form-item label="耗材包名称" prop="nurseStationId">
|
||||||
<el-input
|
<el-input v-model="StationConsumablequeryParams.consumableDetail" placeholder="请输入耗材包名称" />
|
||||||
v-model="StationConsumablequeryParams.consumableDetail"
|
|
||||||
placeholder="请输入耗材包名称"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
@ -693,14 +495,8 @@
|
|||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="listStationConsumableinfo"
|
@click="listStationConsumableinfo"
|
||||||
>搜索</el-button
|
>搜索</el-button>
|
||||||
>
|
<el-button icon="el-icon-refresh" size="mini" @click="listStationConsumableinfocancel">重置</el-button>
|
||||||
<el-button
|
|
||||||
icon="el-icon-refresh"
|
|
||||||
size="mini"
|
|
||||||
@click="listStationConsumableinfocancel"
|
|
||||||
>重置</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table
|
<el-table
|
||||||
@ -729,31 +525,11 @@
|
|||||||
></el-button>
|
></el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="护理站名称" align="center" prop="nurseStationName" />
|
||||||
label="护理站名称"
|
<el-table-column label="耗材包编号" align="center" prop="consumableCode" />
|
||||||
align="center"
|
<el-table-column label="耗材包名称" align="center" prop="consumableDetail" />
|
||||||
prop="nurseStationName"
|
<el-table-column label="耗材包单位" align="center" prop="consumableUnit" />
|
||||||
/>
|
<el-table-column label="耗材包价格" align="center" prop="consumablePrice" />
|
||||||
<el-table-column
|
|
||||||
label="耗材包编号"
|
|
||||||
align="center"
|
|
||||||
prop="consumableCode"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="耗材包名称"
|
|
||||||
align="center"
|
|
||||||
prop="consumableDetail"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="耗材包单位"
|
|
||||||
align="center"
|
|
||||||
prop="consumableUnit"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="耗材包价格"
|
|
||||||
align="center"
|
|
||||||
prop="consumablePrice"
|
|
||||||
/>
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -766,8 +542,7 @@
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
"
|
"
|
||||||
>选择完成</el-button
|
>选择完成</el-button>
|
||||||
>
|
|
||||||
<pagination
|
<pagination
|
||||||
v-show="total3 > 0"
|
v-show="total3 > 0"
|
||||||
:total="total3"
|
:total="total3"
|
||||||
@ -777,12 +552,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- //导入 -->
|
<!-- //导入 -->
|
||||||
<el-dialog
|
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
||||||
:title="upload.title"
|
|
||||||
:visible.sync="upload.open"
|
|
||||||
width="400px"
|
|
||||||
append-to-body
|
|
||||||
>
|
|
||||||
<el-upload
|
<el-upload
|
||||||
ref="upload"
|
ref="upload"
|
||||||
:limit="1"
|
:limit="1"
|
||||||
@ -796,7 +566,10 @@
|
|||||||
drag
|
drag
|
||||||
>
|
>
|
||||||
<i class="el-icon-upload"></i>
|
<i class="el-icon-upload"></i>
|
||||||
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
<div class="el-upload__text">
|
||||||
|
将文件拖到此处,或
|
||||||
|
<em>点击上传</em>
|
||||||
|
</div>
|
||||||
<div class="el-upload__tip text-center" slot="tip">
|
<div class="el-upload__tip text-center" slot="tip">
|
||||||
<span>仅允许导入xls、xlsx格式文件。</span>
|
<span>仅允许导入xls、xlsx格式文件。</span>
|
||||||
<el-link
|
<el-link
|
||||||
@ -804,8 +577,7 @@
|
|||||||
:underline="false"
|
:underline="false"
|
||||||
style="font-size: 12px; vertical-align: baseline"
|
style="font-size: 12px; vertical-align: baseline"
|
||||||
@click="importTemplate"
|
@click="importTemplate"
|
||||||
>下载模板</el-link
|
>下载模板</el-link>
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
|
|||||||
@ -19,8 +19,8 @@ export default {
|
|||||||
name: "NurseItem",
|
name: "NurseItem",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 弹出层判断新增还是修改
|
// 弹出层判断新增还是修改
|
||||||
isEditFlag: false,
|
isEditFlag: false,
|
||||||
imgsurl: { pictureUrlList: [] },
|
imgsurl: { pictureUrlList: [] },
|
||||||
imageUrl: "",
|
imageUrl: "",
|
||||||
imgone: "",
|
imgone: "",
|
||||||
@ -127,25 +127,21 @@ export default {
|
|||||||
nurseItemContent: "",
|
nurseItemContent: "",
|
||||||
advanceAppointDuration: "",
|
advanceAppointDuration: "",
|
||||||
itemPictureUrl: "",
|
itemPictureUrl: "",
|
||||||
sort: "",
|
sort: null,
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择所属护理站",
|
||||||
classifyName: '请选择护理项目分类',
|
classifyName: '请选择护理项目分类',
|
||||||
nurseClassifyId: '',
|
nurseClassifyId: '',
|
||||||
appointmentLimitCount: "",
|
appointmentLimitCount: null,
|
||||||
appointmentTimeInterval: "",
|
appointmentTimeInterval: "",
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
idd: 1,
|
idd: 1,
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
nurseStationId: [
|
"nurseStationItem.classifyName": [
|
||||||
{ required: true, message: "所属护理站不能为空", trigger: "blur" },
|
|
||||||
],
|
|
||||||
"nurseStationItem.classifyName":[
|
|
||||||
{ required: true, message: "护理项目分类不能为空", trigger: "blur" },
|
{ required: true, message: "护理项目分类不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
"nurseStationItem.nurseStationName":[
|
"nurseStationItem.nurseStationName": [
|
||||||
{ required: true, message: "护理项目分类不能为空", trigger: "blur" },
|
{ required: true, message: "护理项目分类不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
"nurseStationItem.nurseItemContent": [
|
"nurseStationItem.nurseItemContent": [
|
||||||
@ -157,8 +153,8 @@ export default {
|
|||||||
// "nurseStationItem.advanceAppointDuration": [
|
// "nurseStationItem.advanceAppointDuration": [
|
||||||
// { required: true, message: "提前预约时长不能为空", trigger: "blur" },
|
// { required: true, message: "提前预约时长不能为空", trigger: "blur" },
|
||||||
// ],
|
// ],
|
||||||
// }, ],
|
// }, ],
|
||||||
"nurseStationItem.appointmentTimeInterval": [{
|
"nurseStationItem.appointmentTimeInterval": [{
|
||||||
required: true,
|
required: true,
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
message: "请选择预约时间点间隔",
|
message: "请选择预约时间点间隔",
|
||||||
@ -447,7 +443,8 @@ export default {
|
|||||||
sort: null,
|
sort: null,
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择所属护理站",
|
||||||
classifyName: '请选择护理项目分类',
|
classifyName: '请选择护理项目分类',
|
||||||
nurseClassifyId: ''
|
nurseClassifyId: '',
|
||||||
|
appointmentLimitCount: null,
|
||||||
},
|
},
|
||||||
nurseStationItemConsumables: [
|
nurseStationItemConsumables: [
|
||||||
// {
|
// {
|
||||||
@ -562,11 +559,6 @@ export default {
|
|||||||
this.form.nurseStationItem.nurseTypeId = this.form.nurseTypeId;
|
this.form.nurseStationItem.nurseTypeId = this.form.nurseTypeId;
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if( this.form.nurseStationItem.appointmentLimitCount==""){
|
|
||||||
this.form.nurseStationItem.appointmentLimitCount=null
|
|
||||||
}else{
|
|
||||||
this.form.nurseStationItem.appointmentLimitCount=parseInt(this.form.nurseStationItem.appointmentLimitCount)
|
|
||||||
}
|
|
||||||
if (this.form.nurseStationItem.id != null) {
|
if (this.form.nurseStationItem.id != null) {
|
||||||
this.form.nurseStationItemPrices.forEach((e) => {
|
this.form.nurseStationItemPrices.forEach((e) => {
|
||||||
e.nurseStationItemId = this.form.nurseStationItem.id;
|
e.nurseStationItemId = this.form.nurseStationItem.id;
|
||||||
@ -589,11 +581,9 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
this.form.nurseStationItemPrices.forEach(e => {
|
this.form.nurseStationItemPrices.forEach(e => {
|
||||||
e.price = Number(e.price)
|
e.price = Number(e.price)
|
||||||
})
|
})
|
||||||
|
|
||||||
addNurseItem(this.form).then((response) => {
|
addNurseItem(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
@ -628,4 +618,3 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user