diff --git a/src/views/system/OperateGoodsInfo/index.vue b/src/views/system/OperateGoodsInfo/index.vue index 13422d1..e2e4c19 100644 --- a/src/views/system/OperateGoodsInfo/index.vue +++ b/src/views/system/OperateGoodsInfo/index.vue @@ -426,7 +426,11 @@ > - + @@ -304,6 +304,7 @@ @@ -464,8 +465,8 @@ diff --git a/src/views/system/goodsOrder/index.vue b/src/views/system/goodsOrder/index.vue index 8387b1a..9bfeea8 100644 --- a/src/views/system/goodsOrder/index.vue +++ b/src/views/system/goodsOrder/index.vue @@ -56,13 +56,6 @@ 重置 - 刷新 @@ -180,15 +173,6 @@ v-hasPermi="['system:goodsOrder:editExpressNo']" >录入物流单号 - - - - - - - + + + - +
- + - + - - -
+ + +
- - + + - - + - - @@ -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(); }); }, },