From 2e7d4dcbb5c31acd57ea1eb3ec64a670c11e17e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 9 Feb 2023 14:28:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/classifyItem/index.vue | 32 +---- src/views/system/stationItem/index.vue | 180 ++++++++++++++++++++++-- 2 files changed, 170 insertions(+), 42 deletions(-) diff --git a/src/views/system/classifyItem/index.vue b/src/views/system/classifyItem/index.vue index 8988798..bd3349a 100644 --- a/src/views/system/classifyItem/index.vue +++ b/src/views/system/classifyItem/index.vue @@ -24,17 +24,6 @@ @keyup.enter.native="handleQuery" /> - 新增 @@ -77,7 +66,7 @@ size="mini" :disabled="single" @click="handleUpdate" - v-hasPermi="['classify:info:edit']" + v-hasPermi="['system:classifyItem:edit']" >修改 @@ -89,7 +78,7 @@ size="mini" :disabled="multiple" @click="handleDelete" - v-hasPermi="['classify:info:remove']" + v-hasPermi="['system:classifyItem:remove']" >删除 @@ -136,7 +125,7 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['classify:info:edit']" + v-hasPermi="['system:classifyItem:edit']" >修改 删除 @@ -326,17 +315,6 @@ export default { classifyPictureUrl: null, classifySort: null, }, - //分类所属类型 - options: [ - { - value: "NURSE_AGNECY", - label: "护理机构分类", - }, - { - value: "NURSE_ITEM", - label: "护理项目分类", - }, - ], // 表单参数 form: { nurseClassifyInfoList: [], diff --git a/src/views/system/stationItem/index.vue b/src/views/system/stationItem/index.vue index b333cfb..f93109e 100644 --- a/src/views/system/stationItem/index.vue +++ b/src/views/system/stationItem/index.vue @@ -232,7 +232,6 @@ width: 208px; text-align: left; height: 36px; - padding-left: -10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -251,19 +250,41 @@ maxlength="50" /> - - + + + 取 消 + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + import { listStationConsumable } from "@/api/system/stationConsumable"; import stationAcatar from "../stationAvatar/index.vue"; - +import { listInfo } from "@/api/system/classifyItem.js"; import { list, getNurseItem, @@ -705,6 +808,7 @@ export default { loading: true, stationConsumableshow: false, nurseStationshow: false, + Classifyshow: false, // 选中数组 ids: [], idd: 99999999, @@ -764,6 +868,8 @@ export default { itemPictureUrl: "", sort: "", nurseStationName: "请选择所属护理站", + nurseClassifyName: "请选择护理项目分类", + nurseClassifyId: "", }, }, idd: 1, @@ -795,14 +901,56 @@ export default { { required: true, message: "请选择护理类型", trigger: "blur" }, ], }, + classifyquery: { + pageNum: 1, + pageSize: 10, + classifyCode: null, + classifyName: null, + }, + classifylist: [], + classifytotal: 0, }; }, created() { this.info(); this.infos(); // 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); }, @@ -1001,6 +1149,8 @@ export default { itemPictureUrl: null, sort: null, nurseStationName: "请选择所属护理站", + nurseClassifyName: "请选择护理项目分类", + nurseClassifyId: "", }, nurseStationItemConsumables: [ // {