From b00f11b5cb2886e03535fa3d3f1cec8a09a6eb77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Fri, 31 Mar 2023 09:06:58 +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/views/system/OperateGoodsInfo/indexjs.js | 78 ++- src/views/system/hospitalPerson/index.vue | 3 - src/views/system/person/index.vue | 680 +++---------------- src/views/system/person/indexjs.js | 172 ++--- src/views/system/stationAvatar/index.vue | 71 +- 5 files changed, 227 insertions(+), 777 deletions(-) diff --git a/src/views/system/OperateGoodsInfo/indexjs.js b/src/views/system/OperateGoodsInfo/indexjs.js index b596c5c..ff87499 100644 --- a/src/views/system/OperateGoodsInfo/indexjs.js +++ b/src/views/system/OperateGoodsInfo/indexjs.js @@ -54,29 +54,15 @@ export default { nursetotal: 0, nurseStationId: null, goods: [{ - value: "BUSINESS", - label: "买卖", - }, - // { - // value: "LEASE", - // label: "租赁", - // }, + value: "BUSINESS", + label: "买卖", + }, + // { + // value: "LEASE", + // label: "租赁", + // }, ], options: [{ - value: 0, - label: "否", - }, - { - value: 1, - label: "是", - }, - ], - // goodAttributeDetailsLists:[], - goodDetailsLists: [], - idd: 9999999, - ids: [], - integraloption: [ - { value: 0, label: "否", }, @@ -85,7 +71,19 @@ export default { label: "是", }, ], - value: "", + // goodAttributeDetailsLists:[], + goodDetailsLists: [], + idd: 9999999, + ids: [], + integraloption: [{ + value: 0, + label: "否", + }, + { + value: 1, + label: "是", + }, + ], // 查询参数 shangjia: { id: null, @@ -260,10 +258,10 @@ export default { obj.pictureUrlList.push(this.form.goodsPictureUrl); } if (obj.pictureUrlList.length > 0) { - updatePicture(obj).then((res) => { }); + updatePicture(obj).then((res) => {}); } if (this.imgsurl.pictureUrlList.length > 0) { - updatePicture(this.imgsurl).then((res) => { }); + updatePicture(this.imgsurl).then((res) => {}); } this.imgsurl = { pictureUrlList: [] }; this.open = false; @@ -279,8 +277,8 @@ export default { goodsPrice: "", goodsStock: "", attributeDetailsSort: null, - },], - },]; + }, ], + }, ]; ++this.isResouceShow }, //页面所属护理站 @@ -350,7 +348,7 @@ export default { integralExchangeFlag: null, integralExchangeSill: null, idd: 9999999, - },]; + }, ]; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -394,7 +392,7 @@ export default { integralExchangeSill: null, sort: null, idd: 9999999, - },]; + }, ]; this.open = true; }, /** 修改按钮操作 */ @@ -456,7 +454,7 @@ export default { } this.imgsurl = { pictureUrlList: [] }; if (obj.pictureUrlList.length > 0) { - updatePicture(obj).then((res) => { }); + updatePicture(obj).then((res) => {}); } this.$modal.msgSuccess("修改成功"); ++this.isResouceShow @@ -465,9 +463,9 @@ export default { }); } else { this.form.goodDetailsLists.forEach(e => { - e.goodsPrice = Number(e.goodsPrice) - }) - // this.nurseStationId=this.form.nurseStationId + e.goodsPrice = Number(e.goodsPrice) + }) + // this.nurseStationId=this.form.nurseStationId addGoodsInfo(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); this.StationName = "请选择所属护理站"; @@ -482,22 +480,22 @@ export default { /** 删除按钮操作 */ handleDelete(row) { this.$confirm("是否确认删除订单信息的数据项?", "提示", { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning", - }) + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) .then(() => { delGoodsInfo(row.goodsInfoId).then((res) => { var obj = { pictureUrlList: [] }; obj.pictureUrlList.push(row.goodsPictureUrl); if (obj.pictureUrlList.length > 0) { - updatePicture(obj).then((res) => { }); + updatePicture(obj).then((res) => {}); } this.$message.success("删除成功"); this.getList(); }); }) - .catch(() => { }); + .catch(() => {}); }, imgUrl(imgUrl) { this.form.goodsPictureUrl = imgUrl; @@ -507,7 +505,7 @@ export default { }, attributePitureitem(item) { let items = JSON.parse(item); - if (items.idd && !items.id) { + if (items.idd && !items.attributeDetailsId) { this.goodDetailsLists.forEach((e) => { if (e.idd == items.idd) { e.attributePitureUrl = items.attributePitureUrl; @@ -542,4 +540,4 @@ export default { }); }, }, -}; \ No newline at end of file +}; diff --git a/src/views/system/hospitalPerson/index.vue b/src/views/system/hospitalPerson/index.vue index 89f4093..002a6d6 100644 --- a/src/views/system/hospitalPerson/index.vue +++ b/src/views/system/hospitalPerson/index.vue @@ -350,7 +350,6 @@ 重置 -