修改1
This commit is contained in:
parent
04b8ba0516
commit
2e7d4dcbb5
@ -24,17 +24,6 @@
|
|||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="分类类型" prop="classifyType">
|
|
||||||
<el-select v-model="queryParams.classifyType" placeholder="请选择">
|
|
||||||
<el-option
|
|
||||||
v-for="item in options"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
>
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item> -->
|
|
||||||
<el-form-item label="分类排序" prop="classifySort">
|
<el-form-item label="分类排序" prop="classifySort">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.classifySort"
|
v-model="queryParams.classifySort"
|
||||||
@ -65,7 +54,7 @@
|
|||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['classify:info:add']"
|
v-hasPermi="['system:classifyItem:add']"
|
||||||
>新增</el-button
|
>新增</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -77,7 +66,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
:disabled="single"
|
:disabled="single"
|
||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['classify:info:edit']"
|
v-hasPermi="['system:classifyItem:edit']"
|
||||||
>修改</el-button
|
>修改</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -89,7 +78,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
v-hasPermi="['classify:info:remove']"
|
v-hasPermi="['system:classifyItem:remove']"
|
||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -136,7 +125,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['classify:info:edit']"
|
v-hasPermi="['system:classifyItem:edit']"
|
||||||
>修改</el-button
|
>修改</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
@ -144,7 +133,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['classify:info:remove']"
|
v-hasPermi="['system:classifyItem:remove']"
|
||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
@ -326,17 +315,6 @@ export default {
|
|||||||
classifyPictureUrl: null,
|
classifyPictureUrl: null,
|
||||||
classifySort: null,
|
classifySort: null,
|
||||||
},
|
},
|
||||||
//分类所属类型
|
|
||||||
options: [
|
|
||||||
{
|
|
||||||
value: "NURSE_AGNECY",
|
|
||||||
label: "护理机构分类",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "NURSE_ITEM",
|
|
||||||
label: "护理项目分类",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {
|
form: {
|
||||||
nurseClassifyInfoList: [],
|
nurseClassifyInfoList: [],
|
||||||
|
|||||||
@ -232,7 +232,6 @@
|
|||||||
width: 208px;
|
width: 208px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
padding-left: -10px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@ -251,19 +250,41 @@
|
|||||||
maxlength="50"
|
maxlength="50"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item
|
<el-form-item label="护理项目分类" required>
|
||||||
label="提前预约时长"
|
<template>
|
||||||
prop="nurseStationItem.advanceAppointDuration"
|
<el-button
|
||||||
|
type=""
|
||||||
|
style="
|
||||||
|
width: 208px;
|
||||||
|
text-align: left;
|
||||||
|
height: 36px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: #c0c4cc;
|
||||||
|
"
|
||||||
|
@click="clickClassifyshow"
|
||||||
|
v-if="
|
||||||
|
form.nurseStationItem.nurseClassifyName == '请选择护理项目分类'
|
||||||
|
"
|
||||||
|
>{{ form.nurseStationItem.nurseClassifyName }}</el-button
|
||||||
>
|
>
|
||||||
<el-input
|
<el-button
|
||||||
v-model="form.nurseStationItem.advanceAppointDuration"
|
type=""
|
||||||
placeholder="提前预约时长(单位小时)"
|
style="
|
||||||
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>5){value=value.slice(0,5)}"
|
width: 208px;
|
||||||
type="number"
|
text-align: left;
|
||||||
min="0"
|
height: 36px;
|
||||||
/>
|
overflow: hidden;
|
||||||
</el-form-item> -->
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
"
|
||||||
|
@click="clickClassifyshow"
|
||||||
|
v-else
|
||||||
|
>{{ form.nurseStationItem.nurseClassifyName }}</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="排序" prop="nurseStationItem.sort">
|
<el-form-item label="排序" prop="nurseStationItem.sort">
|
||||||
<el-input
|
<el-input
|
||||||
placeholder="请输入排序"
|
placeholder="请输入排序"
|
||||||
@ -420,6 +441,88 @@
|
|||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<!-- 护理项目分类 -->
|
||||||
|
<el-dialog
|
||||||
|
title="选择护理项目分类"
|
||||||
|
:visible.sync="Classifyshow"
|
||||||
|
width="1100px"
|
||||||
|
append-to-body
|
||||||
|
:before-close="cancelClassifyshow"
|
||||||
|
>
|
||||||
|
<el-form :model="classifyquery" label-width="150px" :inline="true">
|
||||||
|
<el-form-item label="护理项目分类编码" prop="classifyCode">
|
||||||
|
<el-input
|
||||||
|
v-model="classifyquery.classifyCode"
|
||||||
|
placeholder="请输入护理项目分类编码"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="护理项目分类名称" prop="classifyName">
|
||||||
|
<el-input
|
||||||
|
v-model="classifyquery.classifyName"
|
||||||
|
placeholder="请输入护理项目分类名称"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
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>
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="classifylist"
|
||||||
|
@cell-dblclick="choiceclassify"
|
||||||
|
>
|
||||||
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
style="width: 15px; height: 15px"
|
||||||
|
circle
|
||||||
|
@click="choiceclassify(scope.row)"
|
||||||
|
v-if="form.nurseStationItem.nurseClassifyId == scope.row.id"
|
||||||
|
></el-button>
|
||||||
|
|
||||||
|
<el-button
|
||||||
|
style="width: 15px; height: 15px"
|
||||||
|
circle
|
||||||
|
v-else
|
||||||
|
@click="choiceclassify(scope.row)"
|
||||||
|
>
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
property="classifyCode"
|
||||||
|
label="护理项目分类编码"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
property="classifyName"
|
||||||
|
label="护理项目分类名称"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="classifytotal > 0"
|
||||||
|
:total="classifytotal"
|
||||||
|
:page.sync="classifyquery.pageNum"
|
||||||
|
:limit.sync="classifyquery.pageSize"
|
||||||
|
@pagination="classifylistInfo"
|
||||||
|
/>
|
||||||
|
</el-dialog>
|
||||||
<!-- 护理站 -->
|
<!-- 护理站 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="选择护理站"
|
title="选择护理站"
|
||||||
@ -667,7 +770,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { listStationConsumable } from "@/api/system/stationConsumable";
|
import { listStationConsumable } from "@/api/system/stationConsumable";
|
||||||
import stationAcatar from "../stationAvatar/index.vue";
|
import stationAcatar from "../stationAvatar/index.vue";
|
||||||
|
import { listInfo } from "@/api/system/classifyItem.js";
|
||||||
import {
|
import {
|
||||||
list,
|
list,
|
||||||
getNurseItem,
|
getNurseItem,
|
||||||
@ -705,6 +808,7 @@ export default {
|
|||||||
loading: true,
|
loading: true,
|
||||||
stationConsumableshow: false,
|
stationConsumableshow: false,
|
||||||
nurseStationshow: false,
|
nurseStationshow: false,
|
||||||
|
Classifyshow: false,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
ids: [],
|
ids: [],
|
||||||
idd: 99999999,
|
idd: 99999999,
|
||||||
@ -764,6 +868,8 @@ export default {
|
|||||||
itemPictureUrl: "",
|
itemPictureUrl: "",
|
||||||
sort: "",
|
sort: "",
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择所属护理站",
|
||||||
|
nurseClassifyName: "请选择护理项目分类",
|
||||||
|
nurseClassifyId: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
idd: 1,
|
idd: 1,
|
||||||
@ -795,14 +901,56 @@ export default {
|
|||||||
{ required: true, message: "请选择护理类型", trigger: "blur" },
|
{ required: true, message: "请选择护理类型", trigger: "blur" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
classifyquery: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
classifyCode: null,
|
||||||
|
classifyName: null,
|
||||||
|
},
|
||||||
|
classifylist: [],
|
||||||
|
classifytotal: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.info();
|
this.info();
|
||||||
this.infos();
|
this.infos();
|
||||||
// this.getList();
|
// this.getList();
|
||||||
|
this.classifylistInfo();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//// //护理项目list
|
||||||
|
//打开遮罩层
|
||||||
|
clickClassifyshow() {
|
||||||
|
this.Classifyshow = true;
|
||||||
|
this.classifylistcancel();
|
||||||
|
},
|
||||||
|
//关闭遮罩层
|
||||||
|
cancelClassifyshow() {
|
||||||
|
this.Classifyshow = false;
|
||||||
|
},
|
||||||
|
//选中
|
||||||
|
choiceclassify(e) {
|
||||||
|
this.form.nurseStationItem.nurseClassifyId = e.id;
|
||||||
|
this.form.nurseStationItem.nurseClassifyName = e.classifyName;
|
||||||
|
this.Classifyshow = false;
|
||||||
|
},
|
||||||
|
//重置
|
||||||
|
classifylistcancel() {
|
||||||
|
this.classifyquery = {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
classifyCode: null,
|
||||||
|
classifyName: null,
|
||||||
|
};
|
||||||
|
this.classifylistInfo();
|
||||||
|
},
|
||||||
|
//搜索
|
||||||
|
classifylistInfo() {
|
||||||
|
listInfo(this.classifyquery).then((res) => {
|
||||||
|
this.classifylist = res.rows;
|
||||||
|
this.classifytotal = res.total;
|
||||||
|
});
|
||||||
|
},
|
||||||
imgs(item) {
|
imgs(item) {
|
||||||
this.imgsurl.pictureUrlList.push(item);
|
this.imgsurl.pictureUrlList.push(item);
|
||||||
},
|
},
|
||||||
@ -1001,6 +1149,8 @@ export default {
|
|||||||
itemPictureUrl: null,
|
itemPictureUrl: null,
|
||||||
sort: null,
|
sort: null,
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择所属护理站",
|
||||||
|
nurseClassifyName: "请选择护理项目分类",
|
||||||
|
nurseClassifyId: "",
|
||||||
},
|
},
|
||||||
nurseStationItemConsumables: [
|
nurseStationItemConsumables: [
|
||||||
// {
|
// {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user