From 51ee630c8ab58786e1c32d471ef3613c48ad7b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Wed, 8 Feb 2023 16:19:01 +0800 Subject: [PATCH] =?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/api/system/classifyItem.js | 44 ++ src/views/system/OperateGoodsInfo/indexjs.js | 23 +- src/views/system/classifyItem/index.vue | 578 +++++++++++++++++++ src/views/system/goodsInfo/goodsInfojs.js | 26 +- src/views/system/station/index.vue | 12 +- src/views/system/stationItem/index.vue | 23 +- 6 files changed, 665 insertions(+), 41 deletions(-) create mode 100644 src/api/system/classifyItem.js create mode 100644 src/views/system/classifyItem/index.vue diff --git a/src/api/system/classifyItem.js b/src/api/system/classifyItem.js new file mode 100644 index 0000000..426939e --- /dev/null +++ b/src/api/system/classifyItem.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询护理机构和护理项目分类信息列表 +export function listInfo(query) { + return request({ + url: '/classifyItem/info/list', + method: 'get', + params: query + }) +} + +// 查询护理机构和护理项目分类信息详细 +export function getInfo(id) { + return request({ + url: '/classifyItem/info/' + id, + method: 'get' + }) +} + +// 新增护理机构和护理项目分类信息 +export function addInfo(data) { + return request({ + url: '/classifyItem/info/add', + method: 'post', + data: data + }) +} + +// 修改护理机构和护理项目分类信息 +export function updateInfo(data) { + return request({ + url: '/classifyItem/info/edit', + method: 'post', + data: data + }) +} + +// 删除护理机构和护理项目分类信息 +export function delInfo(id) { + return request({ + url: '/classifyItem/info/' + id, + method: 'delete' + }) +} \ No newline at end of file diff --git a/src/views/system/OperateGoodsInfo/indexjs.js b/src/views/system/OperateGoodsInfo/indexjs.js index fc4ac65..767978a 100644 --- a/src/views/system/OperateGoodsInfo/indexjs.js +++ b/src/views/system/OperateGoodsInfo/indexjs.js @@ -73,7 +73,8 @@ export default { ], // goodAttributeDetailsLists:[], goodDetailsLists: [], - ids: 9999999, + idd: 9999999, + ids: [], // 查询参数 shangjia: { id: null, @@ -201,28 +202,28 @@ export default { // if (this.goodDetailsLists.length == 5) { // this.$message.error("最多只能5条"); // } else { - this.ids++; + this.idd++; var obj = { attributePitureUrl: "", goodsPrice: "", goodsStock: "", attributeDetailsSort: null, - ids: this.ids, + idd: this.idd, }; this.goodDetailsLists.push(obj); // } }, // 删除 delgoodAttributeDetail(item) { - if (item.ids && !item.attributeDetailsId) { + if (item.idd && !item.attributeDetailsId) { if (this.goodDetailsLists.length == 1) { this.$message.error("最后一条不可删除"); } else { this.goodDetailsLists = this.goodDetailsLists.filter( - (e) => e.ids != item.ids + (e) => e.idd != item.idd ); } - } else if (!item.ids && item.attributeDetailsId) { + } else if (!item.idd && item.attributeDetailsId) { if (this.goodDetailsLists.length == 1) { this.$message.error("最后一条不可删除"); } else { @@ -321,7 +322,7 @@ export default { goodsPrice: "", goodsStock: "", attributeDetailsSort: null, - ids: 9999999, + idd: 9999999, }, ]; this.resetForm("form"); }, @@ -362,7 +363,7 @@ export default { goodsPrice: "", goodsStock: "", sort: null, - ids: 9999999, + idd: 9999999, }, ]; this.open = true; }, @@ -461,13 +462,13 @@ export default { }, attributePitureitem(item) { let items = JSON.parse(item); - if (items.ids && !items.id) { + if (items.idd && !items.id) { this.goodDetailsLists.forEach((e) => { - if (e.ids == items.ids) { + if (e.idd == items.idd) { e.attributePitureUrl = items.attributePitureUrl; } }); - } else if (!items.ids && items.attributeDetailsId) { + } else if (!items.idd && items.attributeDetailsId) { this.goodDetailsLists.forEach((e) => { if (e.attributeDetailsId == items.attributeDetailsId) { e.attributePitureUrl = items.attributePitureUrl; diff --git a/src/views/system/classifyItem/index.vue b/src/views/system/classifyItem/index.vue new file mode 100644 index 0000000..7750701 --- /dev/null +++ b/src/views/system/classifyItem/index.vue @@ -0,0 +1,578 @@ + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + + + + + + + + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/system/goodsInfo/goodsInfojs.js b/src/views/system/goodsInfo/goodsInfojs.js index f58ba20..c48f50e 100644 --- a/src/views/system/goodsInfo/goodsInfojs.js +++ b/src/views/system/goodsInfo/goodsInfojs.js @@ -75,7 +75,8 @@ export default { ], // goodAttributeDetailsLists:[], goodDetailsLists: [], - ids: 9999999, + ids: [], + idd: 9999999, // 查询参数 shangjia: { id: null, @@ -210,29 +211,28 @@ export default { if (this.goodDetailsLists.length == 5) { this.$message.error("最多只能5条"); } else { - this.ids++; + this.idd++; var obj = { attributePitureUrl: "", goodsPrice: "", goodsStock: "", sort: null, - ids: this.ids, + idd: this.idd, }; this.goodDetailsLists.push(obj); } }, // 删除 delgoodAttributeDetail(item) { - console.log(item); - if (item.ids && !item.attributeDetailsId) { + if (item.idd && !item.attributeDetailsId) { if (this.goodDetailsLists.length == 1) { this.$message.error("最后一条不可删除"); } else { this.goodDetailsLists = this.goodDetailsLists.filter( - (e) => e.ids != item.ids + (e) => e.idd != item.idd ); } - } else if (!item.ids && item.attributeDetailsId) { + } else if (!item.idd && item.attributeDetailsId) { if (this.goodDetailsLists.length == 1) { this.$message.error("最后一条不可删除"); } else { @@ -318,7 +318,7 @@ export default { goodsPrice: "", goodsStock: "", sort: null, - ids: 9999999, + idd: 9999999, }, ]; this.resetForm("form"); }, @@ -361,7 +361,7 @@ export default { goodsPrice: "", goodsStock: "", sort: null, - ids: 9999999, + idd: 9999999, }, ]; this.open = true; }, @@ -482,13 +482,13 @@ export default { }, attributePitureitem(item) { let items = JSON.parse(item); - if (items.ids && !items.id) { + if (items.idd && !items.id) { this.goodDetailsLists.forEach((e) => { - if (e.ids == items.ids) { + if (e.idd == items.idd) { e.attributePitureUrl = items.attributePitureUrl; } }); - } else if (!items.ids && items.attributeDetailsId) { + } else if (!items.idd && items.attributeDetailsId) { this.goodDetailsLists.forEach((e) => { if (e.attributeDetailsId == items.attributeDetailsId) { e.attributePitureUrl = items.attributePitureUrl; @@ -527,4 +527,4 @@ export default { }); }, }, -}; +}; \ No newline at end of file diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue index c9bab5c..ec76220 100644 --- a/src/views/system/station/index.vue +++ b/src/views/system/station/index.vue @@ -514,7 +514,7 @@ export default { { labelDescription: "", sort: "", - ids: 1, + idd: 1, }, ], // 护理站信息表格数据 @@ -544,7 +544,7 @@ export default { // 查询参数 // 表单参数 form: {}, - ids: 1, + idd: 1, provincelist: [], arealist: [], citylist: [], @@ -624,7 +624,7 @@ export default { { labelDescription: "", sort: "", - ids: 1, + idd: 1, }, ]; } else { @@ -637,11 +637,11 @@ export default { if (this.looknurseStationLabel.length == 5) { this.$message.error("最多只能5条"); } else { - this.ids++; + this.idd++; var obj = { labelDescription: "", sort: "", - ids: this.ids, + idd: this.idd, }; this.looknurseStationLabel.push(obj); } @@ -782,7 +782,7 @@ export default { { labelDescription: "", sort: "", - ids: 1, + idd: 1, }, ]; this.title = "添加护理站信息"; diff --git a/src/views/system/stationItem/index.vue b/src/views/system/stationItem/index.vue index 7ac329a..b333cfb 100644 --- a/src/views/system/stationItem/index.vue +++ b/src/views/system/stationItem/index.vue @@ -285,7 +285,7 @@ prop="nurseStationItem.nurseItemContent" > e.ids != item.ids); + this.form.nurseStationItemPrices.filter((e) => e.idd != item.idd); } - } else if (!item.ids && item.nurseItemPriceId) { + } else if (!item.idd && item.nurseItemPriceId) { if (this.form.nurseStationItemPrices.length == 1) { this.$message.error("最后一条不可删除"); } else { @@ -1013,7 +1014,7 @@ export default { serveDurationUnit: null, price: null, description: null, - ids: this.ids, + idd: this.idd, }, ], }; @@ -1069,7 +1070,7 @@ export default { serveDurationUnit: "", price: "", description: "", - ids: this.ids, + idd: this.idd, }; this.form.nurseStationItemPrices.push(obj); } else if (this.form.nurseStationItemPrices.length == 0) { @@ -1077,7 +1078,7 @@ export default { serveDurationUnit: "", price: "", description: "", - ids: this.ids, + idd: this.idd, }; this.form.nurseStationItemPrices.push(obj); } else if (this.form.nurseStationItemPrices == null) { @@ -1085,7 +1086,7 @@ export default { serveDurationUnit: "", price: "", description: "", - ids: this.ids, + idd: this.idd, }; this.form.nurseStationItemPrices.push(obj); }