From 0379390fee165ea7532d2dd4a19e275d547619c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Thu, 17 Nov 2022 13:15:25 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=8A=A4=E7=90=86=E7=AB=99=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/stationItem/index.vue | 56 +++++++++----------------- 1 file changed, 20 insertions(+), 36 deletions(-) diff --git a/src/views/system/stationItem/index.vue b/src/views/system/stationItem/index.vue index 1e17c4f..4cb61bf 100644 --- a/src/views/system/stationItem/index.vue +++ b/src/views/system/stationItem/index.vue @@ -18,6 +18,7 @@ v-model="queryParams.nurseStationId" clearable placeholder="请选择护理站" + > - + diff --git a/src/views/system/goodsOrder/index.vue b/src/views/system/goodsOrder/index.vue index 69c7060..8387b1a 100644 --- a/src/views/system/goodsOrder/index.vue +++ b/src/views/system/goodsOrder/index.vue @@ -8,7 +8,7 @@ v-show="showSearch" label-width="90px" > - + - + - 重置 - 刷新 @@ -78,17 +81,12 @@ label="订单编号" align="center" prop="orderNo" - width="190" - /> - + - + @@ -262,7 +255,6 @@ export default { userId: null, nurseTypeCode: null, nurseTypeName: null, - }, // 表单参数 form: {}, @@ -278,12 +270,12 @@ export default { ], }, nurseTypeName: [ - { - required: true, - message: "请输入护理类型名称", - trigger: "blur", - }, - ], + { + required: true, + message: "请输入护理类型名称", + trigger: "blur", + }, + ], }, }; }, @@ -291,8 +283,8 @@ export default { this.getList(); }, methods: { - //删除deldisease - deldisease(index) { + //删除deldisease + deldisease(index) { this.form.nurseTypeList.splice(index, 1); console.log(this.form.nurseTypeList); }, @@ -306,7 +298,6 @@ export default { this.form.nurseTypeList.push(obj); } }, - /** 查询护理类型信息列表 */ getList() { this.loading = true; @@ -325,13 +316,11 @@ export default { // 表单重置 reset() { this.form = { - - nurseTypeList:[ + nurseTypeList: [ { - nurseTypeName:"", - } - ] - + nurseTypeName: "", + }, + ], }; this.resetForm("form"); }, @@ -391,7 +380,7 @@ export default { handleDelete(row) { const ids = row.id || this.ids; this.$modal - .confirm('是否确认删除护理类型信息的数据项?') + .confirm("是否确认删除护理类型信息的数据项?") .then(function () { return delNurseType(ids); }) diff --git a/src/views/system/order/index.vue b/src/views/system/order/index.vue index 8134b8c..bd65493 100644 --- a/src/views/system/order/index.vue +++ b/src/views/system/order/index.vue @@ -21,7 +21,6 @@ > - 重置 - 刷新 已取消 - @@ -151,15 +142,6 @@ v-if="scope.row.orderStatus == 'WAIT_DISPATCH'" >派单 - 派单 取消预约 - 取消预约 导入 @@ -100,7 +100,7 @@ prop="nurseStationName" :show-overflow-tooltip="true" /> - + @@ -381,6 +382,7 @@ @@ -530,10 +532,10 @@ label-width="110px" :inline="true" > - + @@ -590,7 +592,7 @@ prop="consumableCode" /> @@ -800,7 +802,7 @@ export default { created() { this.info(); this.infos(); - this.getList(); + // this.getList(); }, methods: { imgUrl(imgUrl) { @@ -964,19 +966,21 @@ export default { } }, delnurseStationItemPrices(item) { - if (item.ids && !item.id) { + if (item.ids && !item.nurseItemPriceId) { if (this.form.nurseStationItemPrices.length == 1) { this.$message.error("最后一条不可删除"); } else { this.form.nurseStationItemPrices = this.form.nurseStationItemPrices.filter((e) => e.ids != item.ids); } - } else if (!item.ids && item.id) { + } else if (!item.ids && item.nurseItemPriceId) { if (this.form.nurseStationItemPrices.length == 1) { this.$message.error("最后一条不可删除"); } else { this.form.nurseStationItemPrices = - this.form.nurseStationItemPrices.filter((e) => e.id != item.id); + this.form.nurseStationItemPrices.filter( + (e) => e.nurseItemPriceId != item.nurseItemPriceId + ); } } }, @@ -994,19 +998,23 @@ export default { sort: null, nurseStationName: "请选择所属护理站", }, - - // nurseStationItemConsumables: [], - // nurseStationItemPrices: [ - // { - // serveDurationUnit: null, - // price: null, - // description: null, - // ids: this.ids, - // }, - // ], + nurseStationItemConsumables: [ + // { + // nurseStationConsumableId: "", + // consumableCount: "", + // consumablePrice: "", + // }, + ], + nurseStationItemPrices: [ + { + serveDurationUnit: null, + price: null, + description: null, + ids: this.ids, + }, + ], }; this.resetForm("form"); - console.log(this.form); }, /** 搜索按钮操作 */ handleQuery() { @@ -1042,6 +1050,13 @@ export default { this.StationConsumablequeryParams.nurseStationId = null; const id = row.id || this.ids; getNurseItem(id).then((response) => { + if (response.data.nurseStationItemConsumables) { + response.data.nurseStationItemConsumables.forEach((e) => { + e.id = e.nurseStationConsumableId; + }); + } else { + response.data.nurseStationItemConsumables = []; + } this.form = response.data; this.StationConsumablequeryParams.nurseStationId = response.data.nurseStationItem.nurseStationId; @@ -1084,14 +1099,17 @@ export default { this.$refs["form"].validate((valid) => { if (valid) { if (this.form.nurseStationItem.id != null) { + this.form.nurseStationItemPrices.forEach((e) => { + e.nurseStationItemId = this.form.nurseStationItem.id; + }); + var obj = { pictureUrlList: [] }; + if (this.imgone != this.form.nurseStationItem.itemPictureUrl) { + obj.pictureUrlList.push(this.imgone); + } + if (obj.pictureUrlList.length > 0) { + updatePicture(obj).then((res) => {}); + } updateNurseItem(this.form).then((response) => { - var obj = { pictureUrlList: [] }; - if (this.imgone != this.form.nurseStationItem.itemPictureUrl) { - obj.pictureUrlList.push(this.imgone); - } - if (obj.pictureUrlList.length > 0) { - updatePicture(obj).then((res) => {}); - } this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); @@ -1106,7 +1124,6 @@ export default { } } }); - totaln; }, infos() { var queryFor = { @@ -1115,9 +1132,10 @@ export default { }; getListByUser(queryFor).then((res) => { this.handstationlist = res.rows; + this.queryParams.nurseStationId = res.rows[0].id; + this.getList(); }); }, - /** 删除按钮操作 */ handleDelete(row) { const ids = row.id || this.ids; @@ -1143,13 +1161,9 @@ export default { //权限列表 info() { - //station /list //运维端 - //getListByUser //不在做if // nurseStationlist 重置 --if getListByUser(this.getListByUserquery).then((res) => { this.total4 = res.total; this.nurseStationlist = res.rows; - this.queryParams.nurseStationId = res.rows[0].id; - this.getList(); }); }, }, From 87e1c601dfecf4862da0a2af1273303fcaff20fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Fri, 18 Nov 2022 14:27:42 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/nurseType/index.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/system/nurseType/index.vue b/src/views/system/nurseType/index.vue index c3430c6..277171e 100644 --- a/src/views/system/nurseType/index.vue +++ b/src/views/system/nurseType/index.vue @@ -143,8 +143,7 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> - - + 取 消 - + @@ -238,7 +237,6 @@ export default { multiple: true, // 显示搜索条件 showSearch: true, - // 总条数 total: 0, // 护理类型信息表格数据