修改
This commit is contained in:
parent
a24820e864
commit
949833165c
@ -241,7 +241,6 @@
|
||||
width: 208px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
padding-left: -10px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@ -250,6 +249,41 @@
|
||||
>
|
||||
</template>
|
||||
</el-form-item>
|
||||
<el-form-item label="护理项目分类" required>
|
||||
<template>
|
||||
<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-button
|
||||
type=""
|
||||
style="
|
||||
width: 208px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
overflow: hidden;
|
||||
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.nurseItemName"
|
||||
@ -272,7 +306,7 @@
|
||||
min="0"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="排序" prop="nurseStationItem.sort">
|
||||
<el-form-item label="排序" prop="nurseStationItem.sort">
|
||||
<el-input
|
||||
placeholder="请输入排序"
|
||||
v-model="form.nurseStationItem.sort"
|
||||
@ -302,12 +336,12 @@
|
||||
>
|
||||
</el-input> -->
|
||||
<editor
|
||||
@imgs="imgs"
|
||||
maxlength="300"
|
||||
@imgs="imgs"
|
||||
maxlength="300"
|
||||
:min-height="82"
|
||||
placeholder="请输入内容"
|
||||
placeholder="请输入内容"
|
||||
style="width: 90%"
|
||||
v-model="form.nurseStationItem.nurseItemContent"
|
||||
v-model="form.nurseStationItem.nurseItemContent"
|
||||
></editor>
|
||||
</el-form-item>
|
||||
<el-form-item label="项目时长和价格" required>
|
||||
@ -331,7 +365,6 @@
|
||||
<el-table-column property="price" label="价格" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
|
||||
v-model="scope.row.price"
|
||||
placeholder="小数点后两位(元)"
|
||||
type="number"
|
||||
@ -438,6 +471,88 @@
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</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
|
||||
title="选择护理站"
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
import { listStationConsumable } from "@/api/system/stationConsumable";
|
||||
import stationAcatar from "../stationAvatar/index.vue";
|
||||
|
||||
import {
|
||||
listInfo,
|
||||
} from "@/api/system/classifyItem.js";
|
||||
import {
|
||||
list,
|
||||
getNurseItem,
|
||||
@ -37,6 +39,7 @@ export default {
|
||||
loading: true,
|
||||
stationConsumableshow: false,
|
||||
nurseStationshow: false,
|
||||
Classifyshow: false,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
@ -98,6 +101,8 @@ export default {
|
||||
itemPictureUrl: "",
|
||||
sort: "",
|
||||
nurseStationName: "请选择所属护理站",
|
||||
nurseClassifyName: '请选择护理项目分类',
|
||||
nurseClassifyId: ''
|
||||
},
|
||||
},
|
||||
idd: 1,
|
||||
@ -130,12 +135,54 @@ export default {
|
||||
homenumber: null,
|
||||
stationid: null,
|
||||
addxg: null,
|
||||
classifyquery: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
classifyCode: null,
|
||||
classifyName: null,
|
||||
},
|
||||
classifylist: [],
|
||||
classifytotal: 0,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
this.classifylistInfo();
|
||||
},
|
||||
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) {
|
||||
this.imgsurl.pictureUrlList.push(item);
|
||||
},
|
||||
@ -351,6 +398,8 @@ export default {
|
||||
itemPictureUrl: null,
|
||||
sort: null,
|
||||
nurseStationName: "请选择所属护理站",
|
||||
nurseClassifyName: '请选择护理项目分类',
|
||||
nurseClassifyId: ''
|
||||
},
|
||||
nurseStationItemConsumables: [
|
||||
// {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user