From b711159df6608d726b19b97e410dc8ac692fb19d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Fri, 11 Nov 2022 15:34:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/OperateGoodsInfo.js | 69 ++ src/api/system/goodsCategory.js | 52 + src/api/system/goodsInfo.js | 9 + src/api/system/goodsOrder.js | 7 +- src/api/system/nurseItem.js | 10 +- src/api/system/order.js | 45 +- src/api/system/patientArchives.js | 8 + src/api/system/person.js | 8 - src/api/system/station.js | 10 +- src/views/system/OperateGoodsInfo/index.vue | 989 +++++++++++++++++++ src/views/system/StationDepartment/index.vue | 329 +++--- src/views/system/diseaseInfo/index.vue | 1 - src/views/system/goodsCategory/index.vue | 408 ++++++++ src/views/system/goodsInfo/index.vue | 578 +++++------ src/views/system/goodsOrder/index.vue | 771 ++++++++------- src/views/system/order/index.vue | 623 +++++++----- src/views/system/patientArchives/index.vue | 85 +- src/views/system/person/index.vue | 456 +++------ src/views/system/station/index.vue | 186 ++-- src/views/system/stationConsumable/index.vue | 152 +-- src/views/system/stationItem/index.vue | 187 ++-- src/views/system/user/index.vue | 36 +- 22 files changed, 3320 insertions(+), 1699 deletions(-) create mode 100644 src/api/system/OperateGoodsInfo.js create mode 100644 src/api/system/goodsCategory.js create mode 100644 src/views/system/OperateGoodsInfo/index.vue create mode 100644 src/views/system/goodsCategory/index.vue diff --git a/src/api/system/OperateGoodsInfo.js b/src/api/system/OperateGoodsInfo.js new file mode 100644 index 0000000..c648a1b --- /dev/null +++ b/src/api/system/OperateGoodsInfo.js @@ -0,0 +1,69 @@ +import request from '@/utils/request' + +// 查询商品基本信息列表 +export function goodsInfoList(query) { + return request({ + url: '/system/operateGoodInfo/goodsInfoList', + method: 'get', + params: query + }) +} + +// 查询商品基本信息详细 +export function getGoodsInfo(id) { + return request({ + url: `/system/operateGoodInfo/goodsDetails?` + `goodsInfoId=${id}`, + method: 'get' + }) +} +//取消 +export function updatePicture(data) { + return request({ + url: '/system/patientArchives/updatePicture', + method: 'post', + data: data + }) +} + +// 新增商品基本信息 +export function addGoodsInfo(data) { + return request({ + url: '/system/operateGoodInfo/add', + method: 'post', + data: data + }) +} + +// 查询商品分类列表 +export function goodsCategory(query) { + return request({ + url: '/system/goodsCategory/list ', + method: 'get', + params: query + }) +} +// 修改商品基本信息 +export function updateGoodsInfo(data) { + return request({ + url: '/system/operateGoodInfo/edit', + method: 'POST', + data: data + }) +} +// 修改上架下架状态 +// system/goodsInfo/editGoodsWhetherShelf +export function editGoodsWhetherShelf(data) { + return request({ + url: '/system/operateGoodInfo/editGoodsWhetherShelf', + method: 'post', + data: data + + }) +} +// 删除商品基本信息 +export function delGoodsInfo(goodsInfoId) { + return request({ + url: '/system/operateGoodInfo/' + goodsInfoId, + method: 'delete' + }) +} diff --git a/src/api/system/goodsCategory.js b/src/api/system/goodsCategory.js new file mode 100644 index 0000000..e32248e --- /dev/null +++ b/src/api/system/goodsCategory.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +// 查询商品分类信息列表 +export function listGoodsCategory(query) { + return request({ + url: '/system/goodsCategory/list', + method: 'get', + params: query + }) +} + +// 查询商品分类信息详细 +export function getGoodsCategory(id) { + return request({ + url: '/system/goodsCategory/' + id, + method: 'get' + }) +} +//取消 +export function updatePicture(data) { + return request({ + url: '/system/patientArchives/updatePicture', + method: 'post', + data: data + }) +} + +// 新增商品分类信息 +export function addGoodsCategory(data) { + return request({ + url: '/system/goodsCategory/add', + method: 'post', + data: data + }) +} + +// 修改商品分类信息 +export function updateGoodsCategory(data) { + return request({ + url: '/system/goodsCategory/edit', + method: 'POST', + data: data + }) +} + +// 删除商品分类信息 +export function delGoodsCategory(id) { + return request({ + url: '/system/goodsCategory/' + id, + method: 'POST' + }) +} \ No newline at end of file diff --git a/src/api/system/goodsInfo.js b/src/api/system/goodsInfo.js index 8ebd782..f71ee9e 100644 --- a/src/api/system/goodsInfo.js +++ b/src/api/system/goodsInfo.js @@ -76,3 +76,12 @@ export function delGoodsInfo(goodsInfoId) { method: 'delete' }) } +//取消 +export function updatePicture(data) { + return request({ + url: '/system/patientArchives/updatePicture', + method: 'post', + data: data + }) +} + diff --git a/src/api/system/goodsOrder.js b/src/api/system/goodsOrder.js index 17ab35b..cd126aa 100644 --- a/src/api/system/goodsOrder.js +++ b/src/api/system/goodsOrder.js @@ -19,14 +19,14 @@ export function getGoodsOrder(id) { // 查看商品详细信息 export function getGoodsOrderlist(id) { return request({ - url: `/system/goodsOrder/goodsOrderByOrder`+`?orderNo=${id}`, + url: `/system/goodsOrder/goodsOrderByOrder` + `?orderNo=${id}`, method: 'get' }) } // 退款 export function goodsOrderRefundinfo(id) { return request({ - url: `/system/goodsOrder/goodsOrderRefund`+`?goodsOrderId=${id}`, + url: `/system/goodsOrder/goodsOrderRefund` + `?goodsOrderId=${id}`, method: 'get', }) } @@ -41,7 +41,6 @@ export function editExpressNo(data) { } // 退款确定按钮 - export function weChatRefundOrderApply(data) { return request({ url: '/nurseApp/weChatPayment/weChatRefundOrderApply', @@ -74,4 +73,4 @@ export function delGoodsOrder(id) { url: '/system/goodsOrder/' + id, method: 'delete' }) -} +} \ No newline at end of file diff --git a/src/api/system/nurseItem.js b/src/api/system/nurseItem.js index 384f02e..49ad1da 100644 --- a/src/api/system/nurseItem.js +++ b/src/api/system/nurseItem.js @@ -59,4 +59,12 @@ export function delNurseItem(id) { url: '/system/stationItem/' + id, method: 'delete' }) -} \ No newline at end of file +} +// 删除图片 +export function updatePicture(data) { + return request({ + url: '/system/patientArchives/updatePicture', + method: 'post', + data: data + }) +} diff --git a/src/api/system/order.js b/src/api/system/order.js index e4bd74c..b6b3568 100644 --- a/src/api/system/order.js +++ b/src/api/system/order.js @@ -11,40 +11,61 @@ export function appointmentOrderDetailsList(query) { export function Detailed(id) { return request({ - url: `/system/appointmentOrderDetails/Detailed`+`?orderNo=${id}`, + url: `/system/appointmentOrderDetails/getCancelOrderInfo` + `?orderNo=${id}`, + method: 'get', + + }) +} + +export function appointmentOrderDetails(id) { + return request({ + url: `/system/appointmentOrderDetails/Detailed` + `?orderNo=${id}`, method: 'get', }) } + +// 确定按钮 +export function xylWeChatRefundNotify(data) { + return request({ + + url: '/nurseApp/weChatPayment/weChatRefundOrderApply', + method: 'post', + data: data + }) +} //删除 export function deldetailed(appointmentOrderId) { return request({ - url: '/system/appointmentOrder/'+appointmentOrderId, + url: '/system/appointmentOrder/' + appointmentOrderId, method: 'post', - } ) - } + + }) +} // 派单 export function getPerson(query) { return request({ url: '/system/appointmentOrder/getPerson', method: 'get', params: query + }) } // 确认派单 -export function dispatchsubmit(params) { +export function dispatchsubmit(data) { return request({ url: '/system/appointmentOrder/dispatch', method: 'post', - params + data: data }) } -// 认取消订单 -export function confirmCancel(params) { + + +// 确认取消订单 +export function confirmCancel(appointmentOrderId) { return request({ - url: '/system/appointmentOrder/confirmCancel', - method: 'post', - params + url: `/system/appointmentOrder/confirmCancel?appointmentOrderId=${appointmentOrderId}`, + method: 'post' }) -} \ No newline at end of file +} diff --git a/src/api/system/patientArchives.js b/src/api/system/patientArchives.js index f984aa4..56a1dec 100644 --- a/src/api/system/patientArchives.js +++ b/src/api/system/patientArchives.js @@ -63,3 +63,11 @@ export function delPatientArchives(id) { method: 'delete' }) } +// 重置密码 +export function updatePassword(params) { + return request({ + url: '/system/patientArchives/updatePassword', + method: 'post', + params: params + }) +} diff --git a/src/api/system/person.js b/src/api/system/person.js index 81f897d..c046256 100644 --- a/src/api/system/person.js +++ b/src/api/system/person.js @@ -16,14 +16,6 @@ export function stationList(query) { params: query }) } -//查看所属护理类型 - -export function getInfoLists(Code) { - return request({ - url: `/system/station/getNurseStationType?nurseTypeCode=${Code}`, - method: 'get' - }) -} // 查询所属科室 export function StationDepartmentList(query) { diff --git a/src/api/system/station.js b/src/api/system/station.js index e881784..418a9ec 100644 --- a/src/api/system/station.js +++ b/src/api/system/station.js @@ -95,4 +95,12 @@ export function getLabelList(id) { url: `/system/nurseStationlabel/getLabelList?nurseStationId=${id}`, method: 'get' }) -} \ No newline at end of file +} +//取消 +export function updatePicture(data) { + return request({ + url: '/system/patientArchives/updatePicture', + method: 'post', + data: data + }) +} diff --git a/src/views/system/OperateGoodsInfo/index.vue b/src/views/system/OperateGoodsInfo/index.vue new file mode 100644 index 0000000..538de19 --- /dev/null +++ b/src/views/system/OperateGoodsInfo/index.vue @@ -0,0 +1,989 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + 新增 + + + 修改 + + + + + + + + + + + + + + {{ scope.row.goodsPurpose == "BUSINESS" ? "买卖" : "" }} + {{ scope.row.goodsPurpose == "LEASE" ? "租赁" : "" }} + + + + + + + + + + + {{ scope.row.shelfTime }} + + + + + + + chaxun + + 修改 + 删除 + + + + + + + + + + + + {{ StationName }} + {{ StationName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 新增 + 删除 + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/system/StationDepartment/index.vue b/src/views/system/StationDepartment/index.vue index f45476b..d8e8ca3 100644 --- a/src/views/system/StationDepartment/index.vue +++ b/src/views/system/StationDepartment/index.vue @@ -8,8 +8,11 @@ v-show="showSearch" label-width="68px" > - + - + - - - - - + + @@ -218,7 +190,34 @@ :rules="rules.nurseStationDepartmentList.nurseStationId" :prop="`nurseStationDepartmentList.${index}.nurseStationId`" > - {{ item.nurseStationName }} + + {{ item.nurseStationName }} + - - - - - + - - - + /> + @@ -350,6 +333,107 @@ 取 消 + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue index 0962026..620ea83 100644 --- a/src/views/system/goodsInfo/index.vue +++ b/src/views/system/goodsInfo/index.vue @@ -8,6 +8,21 @@ v-show="showSearch" label-width="100px" > + + + + + + - + - - - + - + 新增 @@ -90,33 +98,11 @@ size="mini" :disabled="single" @click="handleUpdate" - v-hasPermi="['system:goodsInfo:edit']" + v-hasPermi="['system:operateGoodInfo:edit']" >修改 - - + - - - + + 修改 - 删除 - @@ -236,33 +206,28 @@ ref="form" :model="form" :rules="rules" - label-width="100px" + label-width="120px" :inline="true" > - - - - - + + - + + - - + @@ -339,7 +300,8 @@ @@ -347,7 +309,8 @@ @@ -394,173 +357,132 @@ 取 消 - + diff --git a/src/views/system/goodsOrder/index.vue b/src/views/system/goodsOrder/index.vue index ebbb4fe..0832727 100644 --- a/src/views/system/goodsOrder/index.vue +++ b/src/views/system/goodsOrder/index.vue @@ -6,8 +6,23 @@ size="small" :inline="true" v-show="showSearch" - label-width="68px" + label-width="90px" > + + + + + + - + + - - {{ orderStatus(scope.row.orderStatus) }} + + 待付款 + 已付款 + 已取消 + 待收货 + 已收货 + 服务完成 + 退款中 + 待退货 + 退款成功 + 已退货 - + + + + 修改物流单号 + 录入物流单号 + 录入物流单号 + 不可录入物流单号 + + 查看商品信息 - 录入物流单号 - + 确认退款 - - + icon="el-icon-edit" + disabled + v-hasPermi="['system:goodsOrder:goodsOrderRefund']" + >确认退款 - - + --> - + + + + + + + + + - - 确认 - 取消 - + @@ -416,60 +485,30 @@ v-model="refundlist.dictLabel" placeholder="" clearable - @keyup.enter.native="handleQuery" disabled /> - - + - - - - - + + + + + + + + + + + + + + + + + + + - + - + { + if (res.code == 200) { + this.$modal.msgSuccess("退款有延迟,请耐心等待"); + } + this.getList(); + this.innerrefund=false + console.log(res); + }); + + }, + // 取消按钮 + cencelbtn(){ + this.innerrefund = false; + }, switchOrderStatus(orderStatus) { switch (orderStatus) { case "WAIT_PAY": @@ -534,39 +679,32 @@ export default { }, // 查看 seeLook(row) { - this.innerVisible4 = true; const id = row.orderNo; // console.log(row); - Detailed(id).then((res) => { + appointmentOrderDetails(id).then((res) => { res.data.forEach((e) => { if (e.serviceDate) { e.time = - e.serviceDate + - "-" + - e.serviceStartTime + - "-" + - e.serviceEndTime + e.serviceDate + "-" + e.serviceStartTime + "-" + e.serviceEndTime; } - } ); - // this.OrderDetailsLists = res.data; + }); this.query = res.data[0]; + this.innerVisible4 = true; console.log(this.query); }); }, - // 派单 dispatch(row) { - console.log(row) - this.querynursePersonname.orderNo = row.orderNo + console.log(row); + this.querynursePersonname.orderNo = row.orderNo; console.log(this.querynursePersonname.orderNo); // console.log(row) this.nurseName = "请选择护理员"; this.innerdispatch = true; - this.nursePersonid ="" + this.nursePersonid = ""; }, // 姓名弹框 clicknursePersonName() { - // console.log(this.dispatchlist); getPerson(this.querynursePersonname).then((res) => { this.dispatchlist = res.rows; this.total2 = res.total; @@ -576,72 +714,33 @@ export default { }, // 姓名弹框确定按钮 submitForm() { - // console.log(this.querynursePersonname) - // var obj = {} - // obj.nurseStationPersonId = nurseStationPersonId - // obj.orderNo = this.querynursePersonname.orderNo - let params={ - nurseStationPersonId:this.nursePersonid, - orderNo:this.querynursePersonname.orderNo - } + let params = { + nurseStationPersonId: this.nursePersonid, + orderNo: this.querynursePersonname.orderNo, + }; dispatchsubmit(params).then((res) => { - if(res.code == 200){ + if (res.code == 200) { this.$modal.msgSuccess("派单成功"); } - this.nurseName = "请选择护理员"; this.innerdispatch = false; - // this.nursePersonid ="" - - }) + this.getList(); + this.nurseName = "请选择护理员"; + }); }, // 选择姓名按钮 nursePersonclick(row) { - this.nursePersonid = row.nurseStationPersonId - this.nurseName = row.nursePersonName + this.nursePersonid = row.nurseStationPersonId; + this.nurseName = row.nursePersonName; this.nursePersonNameinfo = false; - console.log(row) - + console.log(row); + }, + // 确认取消预约 + cencel(row) { + Detailed(row.orderNo).then((res) => { + this.query = res.data; + this.innerrefund = true; + }); }, - - // cencel(appointmentOrderId) { - // confirmCancel(appointmentOrderId).then((res) => { - // // this.nurseName="请选择护理员"; - // // this.innerdispatch = false; - - // }) - // console.log(appointmentOrderId) - // }, - // console.log(row.appointmentOrderId) - // this.appointmentOrderId = row.appointmentOrderId - // console.log('row :>> ', this.querynursecencel.appointmentOrderId); - // obj.appointmentOrderId=row.appointmentOrderId - - - // 确认取消预约 - cencel(appointmentOrderId) { - this.$confirm( - '是否确认取消订单', - "提示", - { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning", - } - ) - .then(() => { - console.log(appointmentOrderId) - let params={ - appointmentOrderId:appointmentOrderId - } - confirmCancel(params).then((res) => { - this.$message.success("取消成功"); - // this.getList(); - // console.log('this.OrderDetailsList :>> ', this.OrderDetailsList); - }); - - }) - .catch(() => { }); - }, /** 查询护理类型信息列表 */ getList() { this.loading = true; @@ -680,10 +779,49 @@ export default { }, /** 重置按钮操作 */ resetQuery() { - this.resetForm("queryForm"); + if (this.nurseStationlist[0].isAdmin == '1') { + this.resetForm("queryForm"); + this.queryParams = { + pageNum: 1, + pageSize: 10 + } + } else { + this.queryParams.pageNum = 1; + this.queryParams.pageSize = 10 + } this.handleQuery(); }, - resetQuery2() { + //权限列表 + info() { + getListByUser(this.queryParams).then((res) => { + if (res.rows[0].isAdmin == "1") { + this.nurseStationlist = res.rows; + this.total = res.total; + } else { + this.total = res.total; + this.nurseStationlist = res.rows; + this.queryParams.nurseStationId = res.rows[0].id; + this.handleQuery(); + } + }); + }, + //滑动下拉框 + loadMore() { + var a = Math.ceil(this.total / 10); + if (this.nurseStationlist.length + 1 >= this.total) { + } else { + if (this.queryParams.pageNum >= a) { + } else { + this.queryParams.pageNum++; + getListByUser(this.queryParams).then((res) => { + res.rows.forEach((e) => { + this.nurseStationlist.push(e); + }); + }); + } + } + }, + resetQuery2() { this.resetForm("queryForm"); this.handleQuery2(); }, @@ -696,20 +834,15 @@ export default { /** 删除按钮操作 */ handleDelete(row) { // console.log('row :>> ', row); - this.$confirm( - '是否确认删除订单信息的数据项?', - "提示", - { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning", - } - ) + this.$confirm("是否确认删除订单信息的数据项?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) .then(() => { deldetailed(row.appointmentOrderId).then((res) => { this.$message.success("删除成功"); this.getList(); - // console.log('this.OrderDetailsList :>> ', this.OrderDetailsList); }); }) .catch(() => {}); @@ -727,9 +860,11 @@ export default { }, }; + + diff --git a/src/views/system/patientArchives/index.vue b/src/views/system/patientArchives/index.vue index 139e803..0f049b9 100644 --- a/src/views/system/patientArchives/index.vue +++ b/src/views/system/patientArchives/index.vue @@ -71,18 +71,18 @@ - + + @@ -158,18 +158,18 @@ @selection-change="handleSelectionChange" > - + - + /> --> @@ -197,6 +197,14 @@ v-hasPermi="['system:patientArchives:remove']" >删除 + 重置密码 @@ -223,20 +231,16 @@ label-width="110px" :inline="true" > - + - + - - - - - - + - + - - - @@ -457,8 +436,8 @@ > - - + + - - - {{ - scope.row.nurseStationType == "LX202209140018" ? "生活护理" : "" - }} - {{ - scope.row.nurseStationType == "LX202209140019" ? "医疗护理" : "" - }} - - - + @@ -535,32 +492,24 @@ :visible.sync="innerVisiblexg" width="1000px" append-to-body + :before-close="addcancel" > - @@ -580,16 +528,16 @@ type="primary" icon="el-icon-search" size="mini" - @click="handleQuery2" + @click="handleQuery4" >搜索 - 重置 - - + + - - - {{ - scope.row.nurseStationType == "LX202209140018" ? "生活护理" : "" - }} - {{ - scope.row.nurseStationType == "LX202209140019" ? "医疗护理" : "" - }} - + - - - - + @@ -664,6 +585,7 @@ :visible.sync="innerVisible2" width="1000px" append-to-body + :before-close="departcancel" > @@ -685,7 +606,6 @@ v-model="queryParams3.departmentName" placeholder="请输入科室名称" clearable - @keyup.enter.native="handleQuery" /> @@ -705,7 +625,7 @@ :data="StationDepartmentLists" @cell-dblclick="StationDepartmentclick" > - + @@ -740,24 +658,18 @@ - + @@ -766,6 +678,7 @@ :visible.sync="innerVisiblexg2" width="1000px" append-to-body + :before-close="departcancel" > - @@ -795,7 +699,6 @@ v-model="queryParams3.departmentName" placeholder="请输入科室名称" clearable - @keyup.enter.native="handleQuery" /> @@ -815,7 +718,7 @@ :data="StationDepartmentLists" @cell-dblclick="StationDepartmentclick2" > - + @@ -850,27 +751,20 @@ - + - @@ -881,17 +775,15 @@ style="margin-left: -20px" > {{ nurseStationName }} + - + { - this.StationDepartmentLists = res.rows; - this.total3 = res.total; - this.loading = false; - }); - // console.log(item); + this.getList3(); this.departid2 = this.form.departmentCode; this.innerVisiblexg2 = true; // this.index = index; }, + //修改护理站按钮 + departclickxg() { + this.getList2(); + this.stationid2 = this.form.nurseStationId; + this.innerVisiblexg = true; + this.index = index; + }, // 新增护理站按钮 clickinnerVisible(item, index) { - // console.log(item); + this.getList2(); this.stationid = item.nurseStationId; this.innerVisible = true; this.index = index; }, - // 修改护理站按钮 - clickinnerVisible2() { - stationList(this.queryParams2).then((res) => { - this.stationLists = res.rows; - this.total2 = res.total; - this.loading = false; - }); - // console.log(item); - this.stationid2 = this.form.nurseStationId; - this.innerVisiblexg = true; - // this.index = index; - }, - //xialakuang - // loadMore() { - // console.log("1"); - // var a = Math.ceil(this.total4 / 10); - // console.log(this.nurseStationlist.length); - // if (this.nurseStationlist.length + 1 >= this.total4) { - // } else { - // if (this.nurseStationqueryParams.pageNum >= a) { - // } else { - // this.nurseStationqueryParams.pageNum++; - // stationList(this.nurseStationqueryParams).then((res) => { - // console.log(res); - // res.rows.forEach((e) => { - // this.nurseStationlist.push(e); - // }); - // }); - // } - // } - // }, - nurselist() { - stationList(this.nurseStationqueryParams).then((res) => { - console.log(res); - this.nurseStationlist = res.rows; - this.total4 = res.total; - console.log(this.nurseStationlist); - }); + // 修改护理站 + nurseclick2(row) { + console.log(row); + this.nurseStationName = row.nurseStationName; + this.stationid2 = row.id; + this.form.nurseStationId = row.id; + this.innerVisiblexg = false; + this.form.nursename = row.nurseStationName; }, //删除deldisease deldisease(index) { @@ -1335,8 +1192,6 @@ export default { }, adddisease() { - // this.nurseStationName = "请选择护理站名称"; - // this.departmentName="" var obj = { nursePersonCode: "", nursePersonCode: "", @@ -1346,7 +1201,6 @@ export default { address: "", sex: "", nurseStationId: "", - departmentName: "请选择所属科室", // departname: "", nurseStationName: "请选择护理站名称", @@ -1370,16 +1224,7 @@ export default { row.nurseStationName; this.form.nurseStationPersonList[this.index].nurseStationId = row.id; }, - // 修改护理站 - nurseclick2(row) { - console.log(row); - this.nurseStationName = row.nurseStationName; - this.stationid2 = row.id; - this.form.nurseStationId = row.id; - console.log(this.form); - this.innerVisiblexg = false; - this.form.nursename = row.nurseStationName; - }, + // 所属科室 StationDepartmentclick(row) { console.log(row); @@ -1416,16 +1261,18 @@ export default { }); }, getList2() { - // 护理站名称 this.loading = true; - stationList(this.queryParams2).then((res) => { - this.stationLists = res.rows; - this.total2 = res.total; + getListByUser(this.StationqueryParams).then((res) => { + this.nursetotal = res.total; + this.nurseStationlist = res.rows; this.loading = false; }); + }, + getList3() { + this.loading = true; StationDepartmentList(this.queryParams3).then((res) => { this.StationDepartmentLists = res.rows; - this.total3 = res.total; + this.departtotal = res.total; this.loading = false; }); }, @@ -1433,7 +1280,7 @@ export default { cancel() { this.open = false; this.open2 = false; - this.nurseStationName = "请选择护理站名称"; + this.nurseStationName = "请选择所属护理站"; this.departmentName = "请选择所属科室"; // this.upload.open=false; this.reset(); @@ -1454,7 +1301,7 @@ export default { createTime: null, updateBy: null, updateTime: null, - nurseStationName: "请选择护理站名称", + nurseStationName: "请选择所属护理站", departmentName: "请选择所属科室", nurseStationPersonList: [ { @@ -1464,7 +1311,7 @@ export default { nursePersonCode: "", nursePersonName: "", nursePersonType: "", - nurseStationName: "请选择护理站名称", + nurseStationName: "请选择所属护理站", phone: "", address: "", sex: "", @@ -1474,54 +1321,52 @@ export default { }; this.resetForm("form"); }, - /** 搜索按钮操作 */ handleQuery2() { - this.queryParams.pageNum = 1; - stationList(this.queryParams2).then((res) => { - this.stationLists = res.rows; - this.total2 = res.total; - this.loading = false; - }); - this.innerVisible = true; + this.StationqueryParams.pageNum = 1; + this.getList2(); }, - + // 修改护理站弹框的搜索 + handleQuery4() { + this.StationqueryParams.pageNum = 1; + this.getList2(); + }, + //修改所属科室 handleQuery3() { - console.log(this.queryParams3); - StationDepartmentList(this.queryParams3).then((response) => { - this.StationDepartmentLists = response.rows; - this.total3 = response.total; - this.loading = false; - }); - this.queryParams.pageNum = 1; - this.getList(); + this.queryParams3.pageNum = 1; + this.getList3(); }, handleQuery() { - // stationList(this.nurseStationqueryParams).then((res) => { - // console.log(res); - // this.nurseStationlist = res.rows; - // this.total4 = res.total; - // console.log(this.nurseStationlist); - // }); this.queryParams.pageNum = 1; this.getList(); - // this.nurselist() - // this.stationList(); - // this.nurseStationlist() }, /** 重置按钮操作 */ + addcancel() { + this.innerVisible = false; + this.innerVisiblexg = false; + this.resetQuery2(); + }, + departcancel() { + this.innerVisible2 = false; + this.innerVisiblexg2 = false; + this.resetQuery3(); + }, resetQuery2() { - this.queryParams2 = { + this.resetForm("queryForm"); + this.StationqueryParams = { pageNum: 1, pageSize: 10, - nurseStationName: null, - id: null, - nurseStationId: null, + }; - stationList(this.queryParams2).then((res) => { - this.stationLists = res.rows; - this.total2 = res.total; - }); + this.handleQuery2(); + }, + resetQuery4() { + this.resetForm("queryForm"); + this.StationqueryParams = { + pageNum: 1, + pageSize: 10, + }; + this.handleQuery4(); }, resetQuery3() { this.queryParams3 = { @@ -1533,13 +1378,8 @@ export default { departmentName: null, nurseStationId: null, }; - StationDepartmentList(this.queryParams3).then((response) => { - this.StationDepartmentLists = response.rows; - this.total3 = response.total; - this.loading = false; - }); + this.handleQuery3(); }, - resetQuery() { if (this.nurseStationlist[0].isAdmin == "1") { this.resetForm("queryForm"); @@ -1555,7 +1395,6 @@ export default { phone: null, address: null, }; - this.handleQuery(); } else { console.log(1); @@ -1578,16 +1417,14 @@ export default { this.reset(); this.open2 = true; this.title = "添加护理站人员信息"; - this.title2 = "请选择护理站"; + this.title2 = "请选择所属护理站"; this.title3 = "请选择科室"; }, /** 修改按钮操作 */ handleUpdate(row) { - // this.reset(); const id = row.id || this.ids; getPerson(id).then((response) => { console.log(response); - // this.departmentName="请选择科室" this.departmentName = response.data.departmentName; this.nurseStationName = response.data.nurseStationName; this.form = response.data; @@ -1604,9 +1441,6 @@ export default { submitForm() { console.log(this.form); this.$refs["form"].validate((valid) => { - // this.form.nursename = null; - // this.form.nurseStationId = null; - if (valid) { if (this.form.id != null) { updatePerson(this.form).then((response) => { @@ -1619,7 +1453,7 @@ export default { this.$modal.msgSuccess("新增成功"); this.open2 = false; this.getList(); - this.nurseStationName = "请选择护理站名称"; + this.nurseStationName = "请选择所属护理站"; this.departmentName = "请选择所属科室"; }); } @@ -1695,9 +1529,9 @@ export default { if (res.rows[0].isAdmin == "1") { console.log(true); this.nurseStationlist = res.rows; - this.total5 = res.total; + this.nursetotal = res.total; } else { - this.total5 = res.total; + this.nursetotal = res.total; this.nurseStationlist = res.rows; this.queryParams.nurseStationId = res.rows[0].id; this.handleQuery(); @@ -1706,8 +1540,8 @@ export default { }, //滑动下拉框 loadMore() { - var a = Math.ceil(this.total5 / 10); - if (this.nurseStationlist.length + 1 >= this.total5) { + var a = Math.ceil(this.nursetotal / 10); + if (this.nurseStationlist.length + 1 >= this.nursetotal) { } else { if (this.nurseStationqueryParams.pageNum >= a) { } else { @@ -1722,24 +1556,6 @@ export default { } } }, - // loadMore() { - // console.log("1"); - // var a = Math.ceil(this.total4 / 10); - // console.log(this.nurseStationlist.length); - // if (this.nurseStationlist.length + 1 >= this.total4) { - // } else { - // if (this.nurseStationqueryParams.pageNum >= a) { - // } else { - // this.nurseStationqueryParams.pageNum++; - // stationList(this.nurseStationqueryParams).then((res) => { - // console.log(res); - // res.rows.forEach((e) => { - // this.nurseStationlist.push(e); - // }); - // }); - // } - // } - // }, }, }; diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue index cdc17e7..82e1c3a 100644 --- a/src/views/system/station/index.vue +++ b/src/views/system/station/index.vue @@ -59,7 +59,7 @@ @keyup.enter.native="handleQuery" /> - + + - + {{ @@ -225,18 +204,7 @@ prop="address" :show-overflow-tooltip="true" /> - + @@ -250,7 +218,6 @@ class-name="small-padding fixed-width" > - - - - - - - - - - + + + + - - - + 删除 @@ -629,6 +555,8 @@ import { getFirstLevelInfo, getSecondaryLevelInfo, getInfoLists, + updatePicture, + } from "@/api/system/station"; import { getInfoList } from "@/api/system/nurseItem"; import stationAcatar from "../stationAvatar/index.vue"; @@ -667,6 +595,8 @@ export default { return { imageUrl: "", imageUrl2: "", + imgtwo:"", + imgone:"", // 用户导入参数 upload: { // 是否显示弹出层(用户导入) @@ -710,7 +640,7 @@ export default { looknurseStationLabel: [ { labelDescription: "", - labelSort: "", + sort: "", ids: 1, }, ], @@ -739,6 +669,7 @@ export default { pageSize: 10, }, // 查询参数 + queryParams: { pageNum: 1, pageSize: 10, @@ -788,18 +719,14 @@ export default { trigger: "blur", message: "", }, - // { required: true, message: "联系电话不能为空", trigger: "blur" }, ], - // dutyPerson: [ - // { required: true, message: "负责人不能为空", trigger: "blur" }, - // ], + dutyPhone: [ { validator: checkMobile2, trigger: "blur", message: "", }, - // { required: false, message: "负责人电话不能为空", trigger: "blur" }, ], sort: [{ required: true, message: "排序不能为空", trigger: "blur" }], address: [{ required: true, message: "地址不能为空", trigger: "blur" }], @@ -834,20 +761,20 @@ export default { console.log(imgUrl); this.form.stationIntroducePcitureUrl = imgUrl; }, - delnurseStationLabelList(index,item) { - console.log(index,item); - console.log() + delnurseStationLabelList(index, item) { + console.log(index, item); + console.log(); // this.looknurseStationLabel.splice(index,1) - if(this.looknurseStationLabel.length===1){ - this.looknurseStationLabel = [ - { - labelDescription: "", - labelSort: "", - ids: 1, - }, - ]; - }else{ - this.looknurseStationLabel.splice(index,1) + if (this.looknurseStationLabel.length === 1) { + this.looknurseStationLabel = [ + { + labelDescription: "", + sort: "", + ids: 1, + }, + ]; + } else { + this.looknurseStationLabel.splice(index, 1); } console.log(this.form.nurseStationLabelList); @@ -856,27 +783,17 @@ export default { if (this.looknurseStationLabel.length == 5) { this.$message.error("最多只能5条"); } else { - this.ids+=1; + this.ids++; var obj = { labelDescription: "", - labelSort: "", + sort: "", ids: this.ids, }; - - this.looknurseStationLabel.push(obj); } console.log(this.looknurseStationLabel); }, - //查看标签 - // looknurseStationLabelList(item) { - // console.log(item); - // nurseStationlabel(item.id).then((res) => { - // this.looknurseStationLabel = res.rows; - // this.nurseStationLabelopen = true; - // console.log(this.looknurseStationLabel); - // }); - // }, + //查看类型 looktype(item) { // console.log(item); @@ -934,6 +851,19 @@ export default { }, // 取消按钮 cancel() { + console.log(this.form); + var obj = { pictureUrlList: [] }; + if(this.imgone!=this.form.stationIntroducePcitureUrl ){ + obj.pictureUrlList.push(this.form.stationIntroducePcitureUrl); + } + if(this.imgtwo!=this.form.stationPictureUrl ){ + obj.pictureUrlList.push(this.form.stationPictureUrl); + } + if (obj.pictureUrlList.length > 0) { + updatePicture(obj).then((res) => { + console.log(res); + }); + } this.open = false; this.reset(); this.value3 = ""; @@ -1029,7 +959,7 @@ export default { this.looknurseStationLabel = [ { labelDescription: "", - labeSort:"", + sort: "", ids: 1, }, ]; @@ -1044,8 +974,9 @@ export default { getStation(id).then((response) => { console.log(response); this.form = response.data; + this.imgone = this.form.stationIntroducePcitureUrl; + this.imgtwo = this.form.stationPictureUrl; this.looknurseStationLabel = response.data.nurseStationLabel; - this.nurseStationType2 = this.form.nurseStationType.split(","); console.log(this.list); this.open = true; this.loading = false; @@ -1061,7 +992,6 @@ export default { if (valid) { this.form.areaCode = Number(this.form.areaCode); this.form.nurseStationType = this.nurseStationType2.join(","); - if (this.form.id != null) { updateStation(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/system/stationConsumable/index.vue b/src/views/system/stationConsumable/index.vue index 6b97ed5..2f9e7cd 100644 --- a/src/views/system/stationConsumable/index.vue +++ b/src/views/system/stationConsumable/index.vue @@ -230,9 +230,9 @@ :before-close="cancel" > - + @@ -285,6 +285,7 @@ 取 消 + - ", "导入结果", { dangerouslyUseHTMLString: true } ); @@ -961,15 +917,10 @@ export default { this.open2 = false; this.open3 = false; this.reset2(); - list(this.nurseStationqueryParams).then((res) => { - console.log(res); - this.nurseStationlist = res.rows; - this.total2 = res.total; - }); }, // 表单重置 reset2() { - this.nurseStationqueryParams = { + this.getListByUserquery = { pageNum: 1, pageSize: 10, areaCode: null, @@ -1022,18 +973,20 @@ export default { this.listStationConsumableinfo(); }, //护理站分页 - listinfo() { - list(this.nurseStationqueryParams).then((res) => { - this.nurseStationlist2 = res.rows; - console.log(this.nurseStationlist2); - this.total2 = res.total; - }); - }, + // listinfo() { + // list(this.nurseStationqueryParams).then((res) => { + // this.nurseStationlist2 = res.rows; + // console.log(this.nurseStationlist2); + // this.total2 = res.total; + // }); + // }, //护理站搜索 handleQuery2() { - console.log(this.nurseStationqueryParams); - this.nurseStationqueryParams.pageNum = 1; - this.listinfo(); + this.getListByUserquery.pageNum = 1; + getListByUser(this.getListByUserquery).then((res) => { + this.nurseStationlist = res.rows; + this.total3 = res.total; + }); }, /** 重置按钮操作 */ sresetQuery() { @@ -1124,7 +1077,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => { }); + .catch(() => {}); }, /** 导出按钮操作 */ handleExport() { @@ -1141,7 +1094,6 @@ export default { this.upload.title = "护理站耗材导入"; this.upload.open = true; }, - //权限列表 info() { getListByUser(this.getListByUserquery).then((res) => { diff --git a/src/views/system/stationItem/index.vue b/src/views/system/stationItem/index.vue index 85f48e1..65c9d8c 100644 --- a/src/views/system/stationItem/index.vue +++ b/src/views/system/stationItem/index.vue @@ -95,7 +95,6 @@ > - - - + - - - - - + + - - - - - - - + + + - - + - + - + - - - - + + - + - + @@ -546,7 +502,7 @@ @@ -568,37 +524,37 @@ - + > + + > + + + - - - - + :show-overflow-tooltip="true" + > + - - " + - response.msg + - "", + response.msg + + "", "导入结果", { dangerouslyUseHTMLString: true } ); @@ -987,7 +945,7 @@ export default { }, //护理站重置 stationcancel() { - this.nurseStationqueryParams = { + this.getListByUserquery = { pageNum: 1, pageSize: 10, }; @@ -995,9 +953,9 @@ export default { }, //下拉框 stationlist() { - liststation(this.nurseStationqueryParams).then((res) => { - this.nurseStationlist2 = res.rows; - this.total2 = res.total; + getListByUser(this.getListByUserquery).then((res) => { + this.total4 = res.total; + this.nurseStationlist = res.rows; }); }, //护理类型 @@ -1046,7 +1004,17 @@ export default { }, // 取消按钮 cancel() { - // this.$refs["form"].clearValidate(); + console.log(this.form.nurseStationItem); + var obj = { pictureUrlList: [] }; + if (this.imgone!= this.form.nurseStationItem.itemPictureUrl) { + obj.pictureUrlList.push(this.form.nurseStationItem.itemPictureUrl); + } + if (obj.pictureUrlList.length > 0) { + updatePicture(obj).then((res) => { + console.log(res); + }); + } + this.open = false; this.reset(); }, @@ -1135,7 +1103,7 @@ export default { }; this.handleQuery(); } else { - this.queryParams.pageNu = 1; + this.queryParams.pageNum = 1; this.queryParams.nurseTypeId = null; this.queryParams.nurseItemCode = null; this.queryParams.nurseItemName = null; @@ -1161,6 +1129,7 @@ export default { getNurseItem(id).then((response) => { console.log(response); this.form = response.data; + this.imgone = this.form.nurseStationItem.itemPictureUrl; if (this.form.nurseStationItemPrices == []) { var obj = { serveDurationUnit: "", @@ -1211,7 +1180,7 @@ export default { } else { addNurseItem(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); - this.$forceUpdate() + this.$forceUpdate() this.open = false; this.getList(); }); @@ -1231,7 +1200,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导入按钮操作 */ handleExport() { diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index a3d6aef..9364937 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -364,10 +364,10 @@ + @@ -797,17 +797,18 @@ export default { const userId = row.userId || this.ids; getUser(userId).then((response) => { this.form = response.data; - if ( - !this.form.nurseStationIds || - this.form.nurseStationIds == null || - this.form.nurseStationIds.length == 0 - ) { - } else { - this.form.nurseStationIds = this.form.nurseStationIds.split(","); - this.form.nurseStationIds = this.form.nurseStationIds.map((e) => { - return (e = Number(e)); - }); - } + this.form.nurseStationIds = Number(this.form.nurseStationIds); + // if ( + // !this.form.nurseStationIds || + // this.form.nurseStationIds == null || + // this.form.nurseStationIds.length == 0 + // ) { + // } else { + // this.form.nurseStationIds = this.form.nurseStationIds.split(","); + // this.form.nurseStationIds = this.form.nurseStationIds.map((e) => { + // return (e = Number(e)); + // }); + // } console.log(this.form); this.postOptions = response.posts; @@ -821,6 +822,7 @@ export default { }, /** 重置密码按钮操作 */ handleResetPwd(row) { + this.$prompt('请输入"' + row.userName + '"的新密码', "提示", { confirmButtonText: "确定", cancelButtonText: "取消", @@ -845,7 +847,13 @@ export default { console.log(this.form); this.$refs["form"].validate((valid) => { if (valid) { - this.form.nurseStationIds = this.form.nurseStationIds.join(","); + // this.form.nurseStationIds = this.form.nurseStationIds.join(","); + // this.form.nurseStationIds = JSON.stringify(this.form.nurseStationIds); + // var obj = []; + // obj.push(this.form.nurseStationIds); + // console.log(obj) + // this.form.nurseStationIds = obj; + console.log(this.form); if (this.form.userId != undefined) { updateUser(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); @@ -923,4 +931,4 @@ export default { }, }, }; - \ No newline at end of file +