Merge remote-tracking branch 'origin/dev'

This commit is contained in:
纪寒 2023-02-23 14:55:54 +08:00
commit faa610bb0f
19 changed files with 3586 additions and 1028 deletions

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询护理机构和护理项目分类信息列表
export function listInfo(query) {
return request({
url: '/classifyItem/info/list',
method: 'get',
params: query
})
}
// 查询护理机构和护理项目分类信息详细
export function getInfo(id) {
return request({
url: '/classifyItem/info/' + id,
method: 'get'
})
}
// 新增护理机构和护理项目分类信息
export function addInfo(data) {
return request({
url: '/classifyItem/info/add',
method: 'post',
data: data
})
}
// 修改护理机构和护理项目分类信息
export function updateInfo(data) {
return request({
url: '/classifyItem/info/edit',
method: 'post',
data: data
})
}
// 删除护理机构和护理项目分类信息
export function delInfo(id) {
return request({
url: '/classifyItem/info/' + id,
method: 'delete'
})
}

74
src/api/system/poser.js Normal file
View File

@ -0,0 +1,74 @@
import request from '@/utils/request'
// 查询泉医到家系统海报模块信息(包含咨询简介信息)列表
export function listPoser(query) {
return request({
url: '/system/poser/list',
method: 'get',
params: query
})
}
//取消
export function updatePicture(data) {
return request({
url: '/system/patientArchives/updatePicture',
method: 'post',
data: data
})
}
// 查询护理机构和护理项目分类信息列表
export function listInfo(query) {
return request({
url: '/classifyItem/info/list',
method: 'get',
params: query
})
}
// 查询泉医到家系统海报模块信息(包含咨询简介信息)详细
export function getPoser(moduleType, nurseStationId, nurseItemId) {
return request({
url: `/system/poser/getModuleType?moduleType=${moduleType}&nurseStationId=${nurseStationId}&nurseItemId=${nurseItemId}`,
method: 'get'
})
}
// 新增泉医到家系统海报模块信息(包含咨询简介信息)
export function addPoser(data) {
return request({
url: 'system/poser/add',
method: 'post',
data: data
})
}
export function getListByUser(query) {
return request({
url: '/system/station/list',
method: 'GET',
params: query
})
}
export function getListBy(query) {
return request({
url: '/system/user/getListByUser',
method: 'GET',
params: query
})
}
// 修改泉医到家系统海报模块信息(包含咨询简介信息)
export function updatePoser(data) {
return request({
url: 'system/poser/edit',
method: 'post',
data: data
})
}
// 删除泉医到家系统海报模块信息(包含咨询简介信息)
export function delPoser(nurseStationId, moduleType, nurseItemId) {
return request({
url: `/system/poser/deletePoserInfo?moduleType=${moduleType}&nurseStationId=${nurseStationId}&nurseItemId=${nurseItemId}`,
method: 'delete'
})
}

View File

@ -36,7 +36,14 @@ export function updateStation(data) {
data: data
})
}
// 查询护理机构分类信息列表
export function listStationClassify(query) {
return request({
url: '/system/stationClassify/list',
method: 'get',
params: query
})
}
// 删除护理站信息
export function delStation(id) {
return request({

View File

@ -9,8 +9,16 @@ export function updateNurseStationHeads(data) {
})
}
//海报视频上传
export function updatePoserHeads(data) {
return request({
url: '/system/poser/updatePoserHeads',
method: 'post',
data: data
})
}
export function posts(data) {
return request({

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询护理机构分类信息列表
export function listStationClassify(query) {
return request({
url: '/system/stationClassify/list',
method: 'get',
params: query
})
}
// 查询护理机构分类信息详细
export function getStationClassify(id) {
return request({
url: '/system/stationClassify/' + id,
method: 'get'
})
}
// 新增护理机构分类信息
export function addStationClassify(data) {
return request({
url: '/system/stationClassify/add',
method: 'post',
data: data
})
}
// 修改护理机构分类信息
export function updateStationClassify(data) {
return request({
url: '/system/stationClassify/edit',
method: 'post',
data: data
})
}
// 删除护理机构分类信息
export function delStationClassify(id) {
return request({
url: '/system/stationClassify/' + id,
method: 'delete'
})
}

View File

@ -73,7 +73,8 @@ export default {
],
// goodAttributeDetailsLists:[],
goodDetailsLists: [],
ids: 9999999,
idd: 9999999,
ids: [],
// 查询参数
shangjia: {
id: null,
@ -201,28 +202,28 @@ export default {
// if (this.goodDetailsLists.length == 5) {
// this.$message.error("最多只能5条");
// } else {
this.ids++;
this.idd++;
var obj = {
attributePitureUrl: "",
goodsPrice: "",
goodsStock: "",
attributeDetailsSort: null,
ids: this.ids,
idd: this.idd,
};
this.goodDetailsLists.push(obj);
// }
},
// 删除
delgoodAttributeDetail(item) {
if (item.ids && !item.attributeDetailsId) {
if (item.idd && !item.attributeDetailsId) {
if (this.goodDetailsLists.length == 1) {
this.$message.error("最后一条不可删除");
} else {
this.goodDetailsLists = this.goodDetailsLists.filter(
(e) => e.ids != item.ids
(e) => e.idd != item.idd
);
}
} else if (!item.ids && item.attributeDetailsId) {
} else if (!item.idd && item.attributeDetailsId) {
if (this.goodDetailsLists.length == 1) {
this.$message.error("最后一条不可删除");
} else {
@ -321,7 +322,7 @@ export default {
goodsPrice: "",
goodsStock: "",
attributeDetailsSort: null,
ids: 9999999,
idd: 9999999,
}, ];
this.resetForm("form");
},
@ -362,7 +363,7 @@ export default {
goodsPrice: "",
goodsStock: "",
sort: null,
ids: 9999999,
idd: 9999999,
}, ];
this.open = true;
},
@ -461,13 +462,13 @@ export default {
},
attributePitureitem(item) {
let items = JSON.parse(item);
if (items.ids && !items.id) {
if (items.idd && !items.id) {
this.goodDetailsLists.forEach((e) => {
if (e.ids == items.ids) {
if (e.idd == items.idd) {
e.attributePitureUrl = items.attributePitureUrl;
}
});
} else if (!items.ids && items.attributeDetailsId) {
} else if (!items.idd && items.attributeDetailsId) {
this.goodDetailsLists.forEach((e) => {
if (e.attributeDetailsId == items.attributeDetailsId) {
e.attributePitureUrl = items.attributePitureUrl;

View File

@ -13,6 +13,7 @@
v-model="queryParams.nurseStationId"
placeholder="请选择护理站"
@keyup.enter.native="handleQuery"
@change="handleQuery"
>
<el-option
v-for="item in handstationlist"

View File

@ -0,0 +1,562 @@
<template>
<div class="app-container">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="68px"
>
<el-form-item label="分类编码" prop="classifyCode">
<el-input
v-model="queryParams.classifyCode"
placeholder="请输入分类编码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="分类名称" prop="classifyName">
<el-input
v-model="queryParams.classifyName"
placeholder="请输入分类名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="分类排序" prop="classifySort">
<el-input
v-model.number="queryParams.classifySort"
placeholder="请输入分类排序"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
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>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:classifyItem:add']"
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:classifyItem:edit']"
>修改</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:classifyItem:remove']"
>删除</el-button
>
</el-col>
<!-- <el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['classify:info:export']"
>导出</el-button
>
</el-col> -->
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="infoList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="分类编码" align="center" prop="classifyCode" />
<el-table-column label="分类名称" align="center" prop="classifyName" />
<!-- <el-table-column label="分类类型" align="center" prop="classifyType">
<template slot-scope="scope"
>{{ scope.row.classifyType == "NURSE_AGNECY" ? "护理机构分类" : "" }}
{{ scope.row.classifyType == "NURSE_ITEM" ? "护理项目分类" : "" }}
</template>
</el-table-column> -->
<el-table-column label="分类排序" align="center" prop="classifySort" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:classifyItem:edit']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:classifyItem:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加护理项目分类信息对话框 -->
<el-dialog
:title="title"
:visible.sync="open"
width="1000px"
append-to-body
:before-close="cancel"
>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="80px"
:inline="true"
:before-close="cancel"
>
<div
v-for="(item, index) in form.nurseClassifyInfoList"
:key="index"
style="margin-bottom: 30px"
>
<el-form-item
label="分类名称"
:rules="rules.nurseClassifyInfoList.classifyName"
:prop="`nurseClassifyInfoList.${index}.classifyName`"
>
<el-input
maxLength="30"
style="width: 200px"
v-model="item.classifyName"
placeholder="请输入分类名称"
/>
</el-form-item>
<el-form-item
label="分类排序"
:rules="rules.nurseClassifyInfoList.classifySort"
:prop="`nurseClassifyInfoList.${index}.classifySort`"
>
<el-input
style="width: 200px"
v-model.number="item.classifySort"
placeholder="请输入分类排序"
oninput="value=value.replace(/[^\d]/g,'')"
maxLength="10"
/>
</el-form-item>
<el-form-item
label="分类图标"
:rules="rules.nurseClassifyInfoList.classifyPictureUrl"
:prop="`nurseClassifyInfoList.${index}.classifyPictureUrl`"
>
<stationAcatar
style="margin-top: -25px"
@imgUrl="imgclassifyPictureUrl"
@item="imgclassifyPictureitem"
:img="item.classifyPictureUrl"
:type="'nurseItemClassifyUrl'"
:item="item"
/>
</el-form-item>
<el-button
type="primary"
plain
icon="el-icon-circle-plus-outline"
style="margin-top: 2px; margin-left: 50px"
v-if="index == 0"
@click="addnurseClassifyitem"
></el-button>
<!-- circle -->
<el-button
type="danger"
icon="el-icon-delete"
plain
style="margin-top: 2px; margin-left: 50px"
v-if="index != 0"
@click="delnurseClassifyitem(index)"
></el-button>
</div>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<!-- 修改护理项目分类信息对话框 -->
<el-dialog
:title="title"
:visible.sync="editopen"
width="500px"
append-to-body
:before-close="cancel"
>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="分类名称" prop="classifyName">
<el-input
v-model="form.classifyName"
placeholder="请输入分类名称"
maxLength="30"
/>
</el-form-item>
<el-form-item label="分类图标" prop="classifyPictureUrl">
<stationAcatar
@imgUrl="imgclassifyPictureUrl"
@item="imgclassifyPictureitem"
:img="form.classifyPictureUrl"
:type="'nurseItemClassifyUrl'"
:item="form"
/>
</el-form-item>
<el-form-item label="分类排序" prop="classifySort">
<el-input
v-model.number="form.classifySort"
placeholder="请输入分类排序"
oninput="value=value.replace(/[^\d]/g,'')"
maxLength="10"
/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import stationAcatar from "../stationAvatar/index.vue";
import {
listInfo,
getInfo,
delInfo,
addInfo,
updateInfo,
} from "@/api/system/classifyItem.js";
import { updatePicture } from "@/api/system/station";
export default {
name: "classify",
components: { stationAcatar },
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
infoList: [],
//
title: "",
//
open: false,
editopen: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
parentId: null,
classifyCode: null,
classifyName: null,
classifyLevel: null,
classifyType: null,
classifyPictureUrl: null,
classifySort: null,
},
//
form: {
nurseClassifyInfoList: [],
},
idd: 0,
classifyPictureUrl: null,
//
rules: {
nurseClassifyInfoList: {
classifyName: [
{
required: true,
message: "请输入分类名称",
trigger: "blur",
},
],
classifyPictureUrl: [
{
required: true,
message: "请选择分类图标",
trigger: "blur",
},
],
classifySort: [
{
required: true,
message: "请输入分类排序",
trigger: "blur",
},
],
},
classifyName: [
{
required: true,
message: "请输入分类名称",
trigger: "blur",
},
],
classifyPictureUrl: [
{
required: true,
message: "请选择分类图标",
trigger: "blur",
},
],
classifySort: [
{
required: true,
message: "请输入分类排序",
trigger: "blur",
},
],
},
};
},
created() {
this.getList();
},
methods: {
//item
delnurseClassifyitem(index) {
this.form.nurseClassifyInfoList.splice(index, 1);
},
//item
addnurseClassifyitem() {
this.idd++;
var obj = {
classifyName: "",
classifyPictureUrl: "",
classifySort: null,
idd: this.idd,
};
if (this.form.nurseClassifyInfoList.length == 5) {
this.$message.error("最多批量添加5条");
} else {
this.form.nurseClassifyInfoList.push(obj);
}
},
//
imgclassifyPictureUrl(e) {},
//item
imgclassifyPictureitem(item) {
let items = JSON.parse(item);
if (items.idd && !items.id) {
this.form.nurseClassifyInfoList.forEach((e) => {
if (e.idd == items.idd) {
e.classifyPictureUrl = items.classifyPictureUrl;
}
});
} else if (!items.idd && items.id) {
this.form.classifyPictureUrl = items.classifyPictureUrl;
}
},
/** 查询护理机构和护理项目分类信息列表 */
getList() {
this.loading = true;
listInfo(this.queryParams).then((response) => {
this.infoList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
if (this.editopen) {
var obj = { pictureUrlList: [] };
if (this.form.classifyPictureUrl != this.classifyPictureUrl) {
obj.pictureUrlList.push(this.classifyPictureUrl);
}
updatePicture(obj).then((res) => {
this.editopen = false;
});
}
if (this.open) {
var obj = { pictureUrlList: [] };
if (this.form.nurseClassifyInfoList) {
this.form.nurseClassifyInfoList.forEach((e) => {
obj.pictureUrlList.push(e.classifyPictureUrl);
});
}
updatePicture(obj).then((res) => {
this.open = false;
});
}
this.reset();
},
//
reset() {
this.form = {
id: null,
parentId: null,
classifyCode: null,
classifyName: null,
classifyLevel: null,
classifyType: null,
classifyPictureUrl: null,
classifySort: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/** 新增按钮操作 */
handleAdd() {
this.form = {
nurseClassifyInfoList: [
{
classifyName: "",
classifyPictureUrl: "",
classifySort: null,
idd: this.idd,
},
],
};
this.open = true;
this.title = "添加护理项目分类信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getInfo(id).then((response) => {
this.form = response.data;
this.classifyPictureUrl = response.data.classifyPictureUrl;
this.editopen = true;
this.title = "修改护理项目分类信息";
});
},
/** 提交按钮 */
submitForm() {
this.form.classifySort = Number(this.form.classifySort);
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateInfo(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
if (this.form.classifyPictureUrl != this.classifyPictureUrl) {
var obj = { pictureUrlList: [] };
obj.pictureUrlList.push(this.classifyPictureUrl);
updatePicture(obj).then((res) => {});
}
this.editopen = false;
this.getList();
});
} else {
addInfo(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
console.log(row);
this.$modal
.confirm("是否确认删除?")
.then(function() {
return delInfo(ids);
})
.then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download(
"classify/info/export",
{
...this.queryParams
},
`info_${new Date().getTime()}.xlsx`
);
}
}
};
</script>

View File

@ -75,7 +75,8 @@ export default {
],
// goodAttributeDetailsLists:[],
goodDetailsLists: [],
ids: 9999999,
ids: [],
idd: 9999999,
// 查询参数
shangjia: {
id: null,
@ -210,29 +211,28 @@ export default {
if (this.goodDetailsLists.length == 5) {
this.$message.error("最多只能5条");
} else {
this.ids++;
this.idd++;
var obj = {
attributePitureUrl: "",
goodsPrice: "",
goodsStock: "",
sort: null,
ids: this.ids,
idd: this.idd,
};
this.goodDetailsLists.push(obj);
}
},
// 删除
delgoodAttributeDetail(item) {
console.log(item);
if (item.ids && !item.attributeDetailsId) {
if (item.idd && !item.attributeDetailsId) {
if (this.goodDetailsLists.length == 1) {
this.$message.error("最后一条不可删除");
} else {
this.goodDetailsLists = this.goodDetailsLists.filter(
(e) => e.ids != item.ids
(e) => e.idd != item.idd
);
}
} else if (!item.ids && item.attributeDetailsId) {
} else if (!item.idd && item.attributeDetailsId) {
if (this.goodDetailsLists.length == 1) {
this.$message.error("最后一条不可删除");
} else {
@ -318,7 +318,7 @@ export default {
goodsPrice: "",
goodsStock: "",
sort: null,
ids: 9999999,
idd: 9999999,
}, ];
this.resetForm("form");
},
@ -361,7 +361,7 @@ export default {
goodsPrice: "",
goodsStock: "",
sort: null,
ids: 9999999,
idd: 9999999,
}, ];
this.open = true;
},
@ -482,13 +482,13 @@ export default {
},
attributePitureitem(item) {
let items = JSON.parse(item);
if (items.ids && !items.id) {
if (items.idd && !items.id) {
this.goodDetailsLists.forEach((e) => {
if (e.ids == items.ids) {
if (e.idd == items.idd) {
e.attributePitureUrl = items.attributePitureUrl;
}
});
} else if (!items.ids && items.attributeDetailsId) {
} else if (!items.idd && items.attributeDetailsId) {
this.goodDetailsLists.forEach((e) => {
if (e.attributeDetailsId == items.attributeDetailsId) {
e.attributePitureUrl = items.attributePitureUrl;
@ -527,4 +527,4 @@ export default {
});
},
},
};
};

View File

@ -9,17 +9,13 @@
label-width="100px"
>
<el-form-item label="所属护理站" prop="nurseStationName">
<el-select
v-model="queryParams.nurseStationId"
placeholder="请选择护理站"
>
<el-select @change="handleQuery" v-model="queryParams.nurseStationId" placeholder="请选择护理站">
<el-option
v-for="item in handstationlist"
:key="item.id"
:label="item.nurseStationName"
:value="item.id"
>
</el-option>
></el-option>
</el-select>
</el-form-item>
<el-form-item label="商品名称" prop="goodsName">
@ -41,17 +37,13 @@
</el-form-item>
<el-form-item label="商品用途" prop="goodsPurpose">
<el-select
v-model="queryParams.goodsPurpose"
placeholder="请选择商品用途"
>
<el-select v-model="queryParams.goodsPurpose" placeholder="请选择商品用途">
<el-option
v-for="item in goods"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
></el-option>
</el-select>
</el-form-item>
@ -62,22 +54,13 @@
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
<el-button type="primary" 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>
<el-row :gutter="10" class="mb8">
@ -89,8 +72,7 @@
size="mini"
@click="handleAdd"
v-hasPermi="['system:goodsInfo:add']"
>新增</el-button
>
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -101,38 +83,17 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:goodsInfo:edit']"
>修改</el-button
>
>修改</el-button>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="goodsInfoList"
@selection-change="handleSelectionChange"
>
<el-table v-loading="loading" :data="goodsInfoList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column
label="所属护理站"
align="center"
prop="nurseStationName"
/>
<el-table-column label="所属护理站" align="center" prop="nurseStationName" />
<el-table-column label="商品编码" align="center" prop="goodsCode" />
<el-table-column
label="商品名称"
align="center"
prop="goodsName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="商品分类名称"
align="center"
prop="goodsCategoryName"
/>
<el-table-column label="商品名称" align="center" prop="goodsName" :show-overflow-tooltip="true" />
<el-table-column label="商品分类名称" align="center" prop="goodsCategoryName" />
<el-table-column label="商品用途" align="center" prop="goodsPurpose">
<template slot-scope="scope">
@ -147,16 +108,10 @@
active-color="#13ce66"
inactive-color="#ff4949"
@change="upwhetherShelf(scope.row)"
>
</el-switch>
></el-switch>
</template>
</el-table-column>
<el-table-column
label="上架时间"
align="center"
prop="shelfTime"
width="180"
>
<el-table-column label="上架时间" align="center" prop="shelfTime" width="180">
<template slot-scope="scope">
<div v-if="scope.row.whetherShelf">{{ scope.row.shelfTime }}</div>
<div v-else></div>
@ -165,11 +120,8 @@
<el-table-column label="创建时间" align="center" prop="createTime" />
<el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>chaxun
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
chaxun
<template slot-scope="scope">
<el-button
size="mini"
@ -177,16 +129,14 @@
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:goodsInfo:edit']"
>修改</el-button
>
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:goodsInfo:remove']"
>删除</el-button
>
>删除</el-button>
</template>
</el-table-column>
</el-table>
@ -205,13 +155,7 @@
append-to-body
:before-close="cancel"
>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="120px"
:inline="true"
>
<el-form ref="form" :model="form" :rules="rules" label-width="120px" :inline="true">
<el-form-item label="护理站名称" prop="nurseStationName">
<el-input
v-model="form.nurseStationName"
@ -239,8 +183,7 @@
:key="isResouceShow"
ref="cascader"
:placeholder="form.goodsCategoryName ? form.goodsCategoryName : ''"
>
</el-cascader>
></el-cascader>
<!-- <el-select
style="width: 210px"
v-model="form.goodsCategoryId"
@ -254,43 +197,26 @@
:value="item.id"
>
</el-option>
</el-select> -->
</el-select>-->
</el-form-item>
<el-form-item label="商品用途" prop="goodsPurpose">
<el-select
v-model="form.goodsPurpose"
placeholder="请选择商品用途"
style="width: 210px"
>
<el-select v-model="form.goodsPurpose" placeholder="请选择商品用途" style="width: 210px">
<el-option
v-for="item in goods"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
></el-option>
</el-select>
</el-form-item>
<el-form-item label="商品度量单位" prop="goodsUnit">
<el-input
v-model="form.goodsUnit"
placeholder="请输入商品度量单位"
style="width: 210px"
/>
<el-input v-model="form.goodsUnit" placeholder="请输入商品度量单位" style="width: 210px" />
</el-form-item>
<el-form-item label="商品顺序" prop="sort">
<el-input
v-model.number="form.sort"
placeholder="值越大排名越靠前"
style="width: 210px"
/>
<el-input v-model.number="form.sort" placeholder="值越大排名越靠前" style="width: 210px" />
</el-form-item>
<el-form-item label="商品图片" prop="goodsPictureUrl">
<stationAcatar
@imgUrl="imgUrl"
:img="form.goodsPictureUrl"
:type="'goodsPictureUrl'"
/>
<stationAcatar @imgUrl="imgUrl" :img="form.goodsPictureUrl" :type="'goodsPictureUrl'" />
</el-form-item>
<el-table
@ -301,10 +227,7 @@
>
<el-table-column label="商品属性名称" align="center">
<template slot-scope="scope">
<el-input
v-model="scope.row.attributeName"
maxlength="40"
></el-input>
<el-input v-model="scope.row.attributeName" maxlength="40"></el-input>
</template>
</el-table-column>
<el-table-column label="商品单价" align="center">
@ -350,23 +273,12 @@
</el-table-column>
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<el-button size="mini" type="text" @click="addgoodAttributeDetail"
>新增</el-button
>
<el-button
size="mini"
type="text"
@click="delgoodAttributeDetail(scope.row)"
>删除</el-button
>
<el-button size="mini" type="text" @click="addgoodAttributeDetail">新增</el-button>
<el-button size="mini" type="text" @click="delgoodAttributeDetail(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-form-item
label="商品概述"
prop="goodsRemark"
style="margin-top: 20px"
>
<el-form-item label="商品概述" prop="goodsRemark" style="margin-top: 20px">
<editor
@imgs="imgs"
:min-height="100"
@ -480,7 +392,7 @@
:limit.sync="getListByUserquery.pageSize"
@pagination="handleQuery2"
/>
</el-dialog> -->
</el-dialog>-->
</div>
</template>

View File

@ -12,6 +12,7 @@
<el-select
v-model="queryParams.nurseStationId"
placeholder="请选择护理站"
@change="handleQuery"
>
<el-option
v-for="item in handstationlist"

View File

@ -12,6 +12,7 @@
<el-select
v-model="queryParams.nurseStationId"
placeholder="请选择护理站"
@change="handleQuery"
>
<el-option
v-for="item in handstationlist"

View File

@ -13,6 +13,7 @@
v-model="queryParams.nurseStationId"
placeholder="请选择护理站"
@keyup.enter.native="handleQuery"
@change='handleQuery'
>
<el-option
v-for="item in handstationlist"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -2,9 +2,18 @@
<div>
<div
class="user-info-head"
:class="video.VideoPath ? 'wihi' : ''"
@click="editCropper()"
style="width: 100px; height: 100px"
>
<video
style="width: 208px; height: 208px"
v-if="video.VideoPath"
v-bind:src="video.VideoPath"
class="avatar video-avatar"
controls="controls"
>
您的浏览器不支持视频播放
</video>
<img
v-if="options.img"
v-bind:src="options.img"
@ -12,7 +21,7 @@
style="width: 100px; height: 100px; line-height: 200px"
/>
<i
v-else
v-else-if="!options.img && !video.VideoPath"
class="el-icon-plus avatar-uploader-icon"
style="
position: absolute;
@ -24,7 +33,7 @@
</div>
<el-dialog
title="上传图片"
:title="title"
:visible.sync="openimg"
width="950px"
append-to-body
@ -47,6 +56,15 @@
</el-col>
<el-col :xs="24" :md="12" :style="{ height: '350px' }">
<div class="avatar-upload-preview">
<video
style="width: 100%; height: 100%"
v-if="videoForm.showVideoPath"
v-bind:src="videoForm.showVideoPath"
class="avatar video-avatar"
controls="controls"
>
您的浏览器不支持视频播放
</video>
<img
style="width: 100%; height: 100%"
v-if="previews.url"
@ -54,6 +72,9 @@
/>
<div v-else></div>
</div>
<div class="title" v-if="types != 'posterVideoUrl'&&types!='posterPictureUrl'">
请上传图片为800x800px的正方形
</div>
</el-col>
</el-row>
<br />
@ -71,7 +92,7 @@
</el-button>
</el-upload>
</el-col>
<el-col :lg="{ span: 1, offset: 2 }" :md="2">
<!-- <el-col :lg="{ span: 1, offset: 2 }" :md="2">
<el-button
icon="el-icon-plus"
size="small"
@ -98,8 +119,8 @@
size="small"
@click="rotateRight()"
></el-button>
</el-col>
<el-col :lg="{ span: 2, offset: 6 }" :md="2">
</el-col> -->
<el-col :lg="{ span: 2, offset: 20 }" :md="2">
<el-button type="primary" size="small" @click="uploadImg()"
> </el-button
>
@ -112,12 +133,16 @@
<script>
import { VueCropper } from "vue-cropper";
import baseurl from "@/api/baseurl.js";
import { updateNurseStationHeads, posts } from "@/api/system/stationAvatar.js";
import {
updateNurseStationHeads,
posts,
updatePoserHeads,
} from "@/api/system/stationAvatar.js";
export default {
components: { VueCropper },
props: ["img", "type", "item"],
props: ["img", "type", "item", "tovideo"],
data() {
return {
imageUrl: "",
@ -127,7 +152,7 @@ export default {
// cropper
visible: false,
//
title: "上传头像",
title: "上传图片/视频",
options: {
img: null, //
autoCrop: true, //
@ -137,11 +162,26 @@ export default {
},
previews: {},
items: {},
//
videoForm: {
showVideoPath: null, //
},
video: {
VideoPath: null, //
},
};
},
created() {
this.types = this.type;
this.items = this.item;
if (this.tovideo == null) {
this.video.VideoPath = null;
} else if (this.tovideo == "") {
this.video.VideoPath = null;
} else {
this.video.VideoPath = baseurl + this.tovideo;
}
console.log(this.video);
if (this.img == null) {
this.options.img = null;
} else if (this.img == "") {
@ -149,8 +189,16 @@ export default {
} else {
this.options.img = baseurl + this.img;
}
if (this.types == "posterVideoUrl") {
this.title = "上传视频";
} else {
this.title = "上传图片";
}
},
watch: {
tovideo: {
handler(newimg, oldimg) {},
},
item: {
handler(newimg, oldimg) {
this.items = this.item;
@ -199,40 +247,72 @@ export default {
},
//
beforeUpload(file) {
if (file.type.indexOf("image/") == -1) {
this.$modal.msgError(
"文件格式错误,请上传图片类型,如:JPG,PNG后缀的文件。"
);
} else {
if (this.types == "posterVideoUrl") {
const reader = new FileReader();
this.previews.data = file;
this.previews.url = URL.createObjectURL(file);
this.videoForm.showVideoPath = URL.createObjectURL(file);
reader.readAsDataURL(file);
reader.onload = () => {
// this.options.img = reader.result;
};
} else {
if (file.type.indexOf("image/") == -1) {
this.$modal.msgError(
"文件格式错误,请上传图片类型,如:JPG,PNG后缀的文件。"
);
} else {
const reader = new FileReader();
this.previews.data = file;
this.previews.url = URL.createObjectURL(file);
reader.readAsDataURL(file);
reader.onload = () => {
// this.options.img = reader.result;
};
}
}
},
//
uploadImg() {
let formData = new FormData();
formData.append("file", this.previews.data);
formData.append("type", this.types);
updateNurseStationHeads(formData).then((response) => {
this.options.img = baseurl + response.imgUrl;
this.$emit("imgUrl", response.imgUrl);
console.log(this.items);
console.log(this.types);
if (this.types == "attributePitureUrl") {
this.items.attributePitureUrl = response.imgUrl;
this.$emit("item", JSON.stringify(this.items));
if (this.previews.data) {
formData.append("file", this.previews.data);
formData.append("type", this.types);
if (this.types == "posterVideoUrl") {
updatePoserHeads(formData).then((response) => {
this.video.VideoPath = baseurl + response.imgUrl;
this.$emit("imgUrl", response.imgUrl);
this.openimg = false;
});
} else {
updateNurseStationHeads(formData).then((response) => {
this.options.img = baseurl + response.imgUrl;
this.$emit("imgUrl", response.imgUrl);
if (this.types == "attributePitureUrl") {
this.items.attributePitureUrl = response.imgUrl;
this.$emit("item", JSON.stringify(this.items));
}
if (this.types == "nurseItemClassifyUrl") {
this.items.classifyPictureUrl = response.imgUrl;
this.$emit("item", JSON.stringify(this.items));
}
if (this.types == "nurseStationClassifyUrl") {
this.items.classifyPictureUrl = response.imgUrl;
this.$emit("item", JSON.stringify(this.items));
}
if (this.types == "posterPictureUrl") {
this.items.posterPictureUrl = response.imgUrl;
this.$emit("item", JSON.stringify(this.items));
}
this.openimg = false;
});
}
} else {
this.openimg = false;
});
}
},
//
realTime(data) {
console.log(data);
this.previews = data;
},
//
@ -244,6 +324,12 @@ export default {
};
</script>
<style scoped lang="scss">
.title {
position: absolute;
bottom: 5%;
left: 50%;
transform: translate(-50%, 0%);
}
.avatar-upload-preview {
position: absolute;
top: 0%;
@ -258,8 +344,9 @@ export default {
.user-info-head {
position: relative;
display: inline-block;
height: 120px;
background: #fafafa;
width: 100px;
height: 100px;
}
.user-info-head:hover:after {
@ -279,4 +366,12 @@ export default {
line-height: 110px;
border-radius: 50%;
}
</style>
.wihi {
background-color: #fff;
width: 100px;
height: 100px;
}
.wihi:hover:after {
transform: translate(50%, 50%);
}
</style>

View File

@ -0,0 +1,551 @@
<template>
<div class="app-container">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="68px"
>
<el-form-item label="分类编码" prop="classifyCode">
<el-input
v-model="queryParams.classifyCode"
placeholder="请输入分类编码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="分类名称" prop="classifyName">
<el-input
v-model="queryParams.classifyName"
placeholder="请输入分类名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="分类排序" prop="classifySort">
<el-input
v-model.number="queryParams.classifySort"
placeholder="请输入分类排序"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
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>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:stationClassify:add']"
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:stationClassify:edit']"
>修改</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:stationClassify:remove']"
>删除</el-button
>
</el-col>
<!-- <el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['system:stationClassify:export']"
>导出</el-button
>
</el-col> -->
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="stationClassifyList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="分类编码" align="center" prop="classifyCode" />
<el-table-column label="分类名称" align="center" prop="classifyName" />
<el-table-column label="分类排序" align="center" prop="classifySort" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:stationClassify:edit']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:stationClassify:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加护理项目分类信息对话框 -->
<el-dialog
:title="title"
:visible.sync="open"
width="800px"
append-to-body
:before-close="cancel"
>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="80px"
:inline="true"
:before-close="cancel"
>
<div
v-for="(item, index) in form.nurseClassifyInfoList"
:key="index"
style="margin-bottom: 30px"
>
<el-form-item
label="分类名称"
:rules="rules.nurseClassifyInfoList.classifyName"
:prop="`nurseClassifyInfoList.${index}.classifyName`"
>
<el-input
maxLength="30"
style="width: 200px"
v-model="item.classifyName"
placeholder="请输入分类名称"
/>
</el-form-item>
<el-form-item
label="分类排序"
:rules="rules.nurseClassifyInfoList.classifySort"
:prop="`nurseClassifyInfoList.${index}.classifySort`"
>
<el-input
style="width: 200px"
v-model.number="item.classifySort"
placeholder="请输入分类排序"
oninput="value=value.replace(/[^\d]/g,'')"
maxLength="10"
/>
</el-form-item>
<!-- <el-form-item
label="分类图标"
:rules="rules.nurseClassifyInfoList.classifyPictureUrl"
:prop="`nurseClassifyInfoList.${index}.classifyPictureUrl`"
>
<stationAcatar
style="margin-top: -25px"
@imgUrl="imgclassifyPictureUrl"
@item="imgclassifyPictureitem"
:img="item.classifyPictureUrl"
:type="'nurseStationClassifyUrl'"
:item="item"
/>
</el-form-item> -->
<el-button
type="primary"
plain
icon="el-icon-circle-plus-outline"
style="margin-top: 2px; margin-left: 50px"
v-if="index == 0"
@click="addnurseClassifyitem"
></el-button>
<!-- circle -->
<el-button
type="danger"
icon="el-icon-delete"
plain
style="margin-top: 2px; margin-left: 50px"
v-if="index != 0"
@click="delnurseClassifyitem(index)"
></el-button>
</div>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<!-- 修改护理项目分类信息对话框 -->
<el-dialog
:title="title"
:visible.sync="editopen"
width="500px"
append-to-body
:before-close="cancel"
>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="分类名称" prop="classifyName">
<el-input
v-model="form.classifyName"
placeholder="请输入分类名称"
maxLength="30"
/>
</el-form-item>
<!-- <el-form-item label="分类图标" prop="classifyPictureUrl">
<stationAcatar
@imgUrl="imgclassifyPictureUrl"
@item="imgclassifyPictureitem"
:img="form.classifyPictureUrl"
:type="'nurseStationClassifyUrl'"
:item="form"
/>
</el-form-item> -->
<el-form-item label="分类排序" prop="classifySort">
<el-input
v-model.number="form.classifySort"
placeholder="请输入分类排序"
oninput="value=value.replace(/[^\d]/g,'')"
maxLength="10"
/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import {
listStationClassify,
getStationClassify,
delStationClassify,
addStationClassify,
updateStationClassify,
} from "@/api/system/stationClassify";
import stationAcatar from "../stationAvatar/index.vue";
import { updatePicture } from "@/api/system/station";
export default {
name: "StationClassify",
components: { stationAcatar },
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
stationClassifyList: [],
//
title: "",
//
open: false,
editopen: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
classifyCode: null,
classifyName: null,
classifySort: null,
},
//
form: {},
classifyPictureUrl: null,
idd: 0,
//
rules: {
nurseClassifyInfoList: {
classifyName: [
{
required: true,
message: "请输入分类名称",
trigger: "blur",
},
],
classifyPictureUrl: [
{
required: true,
message: "请选择分类图标",
trigger: "blur",
},
],
classifySort: [
{
required: true,
message: "请输入分类排序",
trigger: "blur",
},
],
},
classifyName: [
{
required: true,
message: "请输入分类名称",
trigger: "blur",
},
],
classifyPictureUrl: [
{
required: true,
message: "请选择分类图标",
trigger: "blur",
},
],
classifySort: [
{
required: true,
message: "请输入分类排序",
trigger: "blur",
},
],
},
};
},
created() {
this.getList();
},
methods: {
//
imgclassifyPictureUrl(e) {},
//item
imgclassifyPictureitem(item) {
let items = JSON.parse(item);
if (items.idd && !items.id) {
this.form.nurseClassifyInfoList.forEach((e) => {
if (e.idd == items.idd) {
e.classifyPictureUrl = items.classifyPictureUrl;
}
});
} else if (!items.idd && items.id) {
this.form.classifyPictureUrl = items.classifyPictureUrl;
}
},
//item
delnurseClassifyitem(index) {
this.form.nurseClassifyInfoList.splice(index, 1);
},
//item
addnurseClassifyitem() {
this.idd++;
var obj = {
classifyName: "",
classifyPictureUrl: "",
classifySort: "",
idd: this.idd,
};
if (this.form.nurseClassifyInfoList.length == 5) {
this.$message.error("最多批量添加5条");
} else {
this.form.nurseClassifyInfoList.push(obj);
}
},
/** 查询护理机构分类信息列表 */
getList() {
this.loading = true;
listStationClassify(this.queryParams).then((response) => {
this.stationClassifyList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
if (this.editopen) {
var obj = { pictureUrlList: [] };
if (this.form.classifyPictureUrl != this.classifyPictureUrl) {
obj.pictureUrlList.push(this.classifyPictureUrl);
}
updatePicture(obj).then((res) => {
this.editopen = false;
});
}
if (this.open) {
var obj = { pictureUrlList: [] };
if (this.form.nurseClassifyInfoList) {
this.form.nurseClassifyInfoList.forEach((e) => {
obj.pictureUrlList.push(e.classifyPictureUrl);
});
}
updatePicture(obj).then((res) => {
this.open = false;
});
}
this.reset();
},
//
reset() {
this.form = {
id: null,
parentId: null,
classifyCode: null,
classifyName: null,
classifyLevel: null,
classifyType: null,
classifyPictureUrl: null,
classifySort: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/** 新增按钮操作 */
handleAdd() {
this.form = {
nurseClassifyInfoList: [
{
classifyName: "",
classifyPictureUrl: "",
classifySort: "",
idd: this.idd,
},
],
};
this.open = true;
this.title = "添加护理机构分类信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getStationClassify(id).then((response) => {
this.form = response.data;
this.classifyPictureUrl = response.data.classifyPictureUrl;
this.editopen = true;
this.title = "修改护理机构分类信息";
});
},
/** 提交按钮 */
submitForm() {
console.log(this.form);
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateStationClassify(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
if (this.form.classifyPictureUrl != this.classifyPictureUrl) {
var obj = { pictureUrlList: [] };
obj.pictureUrlList.push(this.classifyPictureUrl);
updatePicture(obj).then((res) => {});
}
this.editopen = false;
this.getList();
});
} else {
addStationClassify(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal
.confirm('是否确认删除护理机构分类信息编号为"' + ids + '"的数据项?')
.then(function () {
return delStationClassify(ids);
})
.then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download(
"system/stationClassify/export",
{
...this.queryParams,
},
`stationClassify_${new Date().getTime()}.xlsx`
);
},
},
};
</script>

View File

@ -10,6 +10,7 @@
>
<el-form-item label="护理站名称" prop="">
<el-select
@change="handleQuery"
v-model="queryParams.nurseStationId"
placeholder="请选择护理站"
>

File diff suppressed because it is too large Load Diff