From 4f5e30304216934650c7f3e0c1f406a2eba1260b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Wed, 22 Feb 2023 11:39:10 +0800 Subject: [PATCH 1/2] =?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/InformationCategory/index.vue | 9 +++------ src/views/system/classifyItem/index.vue | 14 +++++--------- src/views/system/stationClassify/index.vue | 16 ++++++++-------- src/views/system/stationItem/index.vue | 2 +- 4 files changed, 17 insertions(+), 24 deletions(-) diff --git a/src/views/system/InformationCategory/index.vue b/src/views/system/InformationCategory/index.vue index b6eefb2..eeae849 100644 --- a/src/views/system/InformationCategory/index.vue +++ b/src/views/system/InformationCategory/index.vue @@ -201,7 +201,7 @@ :prop="`informationCategoryList.${index}.sort`" > { this.$modal.msgSuccess("新增成功"); this.addopen = false; diff --git a/src/views/system/classifyItem/index.vue b/src/views/system/classifyItem/index.vue index d1ce5f4..08a20c7 100644 --- a/src/views/system/classifyItem/index.vue +++ b/src/views/system/classifyItem/index.vue @@ -156,7 +156,7 @@ > { this.$modal.msgSuccess("新增成功"); this.open = false; diff --git a/src/views/system/stationClassify/index.vue b/src/views/system/stationClassify/index.vue index 222d44c..901f8c7 100644 --- a/src/views/system/stationClassify/index.vue +++ b/src/views/system/stationClassify/index.vue @@ -173,7 +173,7 @@ > { if (valid) { - + if (this.form.id != null) { updateStationClassify(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); @@ -507,10 +507,10 @@ export default { this.getList(); }); } else { - if(this.form.nurseClassifyInfoList[0].classifySort){ - this.form.nurseClassifyInfoList[0].classifySort=parseInt(this.form.nurseClassifyInfoList[0].classifySort) - } - + // if(this.form.nurseClassifyInfoList[0].classifySort){ + // this.form.nurseClassifyInfoList[0].classifySort=parseInt(this.form.nurseClassifyInfoList[0].classifySort) + // } + addStationClassify(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); this.open = false; diff --git a/src/views/system/stationItem/index.vue b/src/views/system/stationItem/index.vue index 506c907..f1bf577 100644 --- a/src/views/system/stationItem/index.vue +++ b/src/views/system/stationItem/index.vue @@ -272,7 +272,7 @@ From 349158d2aed27ba88f94aeb5f1a3b8b66ea476b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Wed, 22 Feb 2023 11:49:34 +0800 Subject: [PATCH 2/2] =?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/stationItem/stationItemjs.js | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/views/system/stationItem/stationItemjs.js b/src/views/system/stationItem/stationItemjs.js index 8f2ad07..2747b7b 100644 --- a/src/views/system/stationItem/stationItemjs.js +++ b/src/views/system/stationItem/stationItemjs.js @@ -517,10 +517,27 @@ export default { } else { response.data.nurseStationItemConsumables = [] } + this.StationConsumablequeryParams.nurseStationId = response.data.nurseStationItem.nurseStationId; this.imgone = this.form.nurseStationItem.itemPictureUrl; - if (this.form.nurseStationItemPrices.length > 0) { + if (this.form.nurseStationItemPrices == []) { + var obj = { + serveDurationUnit: "", + price: "", + description: "", + idd: this.idd, + }; + this.form.nurseStationItemPrices.push(obj); + } else if (this.form.nurseStationItemPrices.length == 0) { + var obj = { + serveDurationUnit: "", + price: "", + description: "", + idd: this.idd, + }; + this.form.nurseStationItemPrices.push(obj); + } else if (this.form.nurseStationItemPrices == null) { var obj = { serveDurationUnit: "", price: "", @@ -529,6 +546,7 @@ export default { }; this.form.nurseStationItemPrices.push(obj); } + console.log(this.form) this.open = true; this.title = "修改护理站护理项目"; }); @@ -556,6 +574,7 @@ export default { this.form.nurseStationItemPrices.forEach(e => { e.price = Number(e.price) }) + updateNurseItem(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); this.open = false; @@ -598,4 +617,4 @@ export default { this.upload.open = true; }, }, -}; \ No newline at end of file +};