diff --git a/.env.development b/.env.development index b88adc2..5b271b6 100644 --- a/.env.development +++ b/.env.development @@ -1,10 +1,10 @@ # 页面标题 -VUE_APP_TITLE = 全医通护理站管理平台 +VUE_APP_TITLE = 泉医到家运营管理平台 # 开发环境配置 ENV = 'development' -# 全医通护理站管理平台/开发环境 +# 泉医到家运营管理平台/开发环境 # VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = 'http://192.168.16.30:8080' diff --git a/.env.production b/.env.production index efbafa1..6e694c4 100644 --- a/.env.production +++ b/.env.production @@ -1,8 +1,8 @@ # 页面标题 -VUE_APP_TITLE = 全医通护理站管理平台 +VUE_APP_TITLE = 泉医到家运营管理平台 # 生产环境配置 ENV = 'production' -# 全医通护理站管理平台/生产环境 +# 泉医到家运营管理平台/生产环境 VUE_APP_BASE_API = '/prod-api' diff --git a/.env.staging b/.env.staging index af99706..ce50471 100644 --- a/.env.staging +++ b/.env.staging @@ -1,10 +1,10 @@ # 页面标题 -VUE_APP_TITLE = 全医通护理站管理平台 +VUE_APP_TITLE = 泉医到家运营管理平台 NODE_ENV = production # 测试环境配置 ENV = 'staging' -# 全医通护理站管理平台/测试环境 +# 泉医到家运营管理平台/测试环境 VUE_APP_BASE_API = '/stage-api' diff --git a/public/favicon.ico b/public/favicon.ico index e263760..b48860d 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/api/baseurl.js b/src/api/baseurl.js index 6dfdae9..c4f3e01 100644 --- a/src/api/baseurl.js +++ b/src/api/baseurl.js @@ -1,3 +1,3 @@ -var baseurl = "http://192.168.16.49:8080"; +var baseurl = "http://192.168.16.76:8080"; -export default baseurl +export default baseurl \ No newline at end of file diff --git a/src/api/system/OperateGoodsInfo.js b/src/api/system/OperateGoodsInfo.js new file mode 100644 index 0000000..9585cec --- /dev/null +++ b/src/api/system/OperateGoodsInfo.js @@ -0,0 +1,76 @@ +import request from '@/utils/request' + +// 查询商品基本信息列表 +export function goodsInfoList(query) { + return request({ + url: '/system/operateGoodInfo/goodsInfoList', + method: 'get', + params: query + }) +} +//所属护理站 +export function stationList(query) { + return request({ + url: '/system/station/list', + 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..8e823a2 100644 --- a/src/api/system/goodsInfo.js +++ b/src/api/system/goodsInfo.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询商品基本信息列表 export function listGoodsInfo(query) { return request({ - url: '/system/goodsInfo/list', + url: '/system/goodsCategory/getStationCategoryList', method: 'get', params: query }) @@ -46,7 +46,7 @@ export function listStation(query) { // 查询商品分类列表 export function goodsCategory(query) { return request({ - url: '/system/goodsCategory/list ', + url: '/system/goodsCategory/getStationCategoryList ', method: 'get', params: query }) @@ -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 15a3e99..ff75b7f 100644 --- a/src/api/system/order.js +++ b/src/api/system/order.js @@ -11,15 +11,33 @@ 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', }) @@ -45,10 +63,9 @@ export function dispatchsubmit(data) { // 确认取消订单 -export function confirmCancel(data) { +export function confirmCancel(appointmentOrderId) { return request({ - url: '/system/appointmentOrder/confirmCancel', - method: 'post', - data: data + url: `/system/appointmentOrder/confirmCancel?appointmentOrderId=${appointmentOrderId}`, + method: 'post' }) } 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/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/assets/images/bg2.png b/src/assets/images/bg2.png new file mode 100644 index 0000000..1875913 Binary files /dev/null and b/src/assets/images/bg2.png differ diff --git a/src/assets/images/bg3.png b/src/assets/images/bg3.png new file mode 100644 index 0000000..098718c Binary files /dev/null and b/src/assets/images/bg3.png differ diff --git a/src/assets/images/body.png b/src/assets/images/body.png new file mode 100644 index 0000000..87b323e Binary files /dev/null and b/src/assets/images/body.png differ diff --git a/src/assets/logo/lg.png b/src/assets/logo/lg.png new file mode 100644 index 0000000..b48860d Binary files /dev/null and b/src/assets/logo/lg.png differ diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index 46e0b3b..012267a 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -14,7 +14,7 @@ - + diff --git a/src/views/system/StationDepartment/index.vue b/src/views/system/StationDepartment/index.vue index f45476b..47393f3 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 +334,107 @@ 取 消 + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue index 482c0e3..7d077fa 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" > + + + + + + - - - + - + 修改 - - + - - - + + 修改 - 删除 - @@ -236,32 +206,27 @@ ref="form" :model="form" :rules="rules" - label-width="100px" + label-width="120px" :inline="true" > - - - - - + + + - @@ -339,16 +300,17 @@ @@ -395,173 +357,132 @@ 取 消 - + diff --git a/src/views/system/goodsOrder/index.vue b/src/views/system/goodsOrder/index.vue index 7dc884f..18613a4 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" > + + + + + + - - - - + + 重置 + 刷新商品订单 @@ -58,22 +69,67 @@ @selection-change="handleSelectionChange" > + - + + + + - - + + + 查看商品信息订单详情 - 录入物流单号 - + 确认退款 - - - - - - - - - + - + - + - + - + + + + + + + - + + + + + + + + + - - 确认 - 取消 - + @@ -416,60 +503,29 @@ v-model="refundlist.dictLabel" placeholder="" clearable - @keyup.enter.native="handleQuery" disabled /> - - + - - - - - + + + + + + + + + + + + + + + + + + + - - - + 搜索 - 重置 - + - + /> @@ -415,8 +516,10 @@ import { deldetailed, getPerson, dispatchsubmit, - confirmCancel + xylWeChatRefundNotify, + appointmentOrderDetails, } from "@/api/system/order"; +import { getListByUser } from "@/api/system/userlist.js"; export default { name: "order", data() { @@ -426,23 +529,42 @@ export default { value: "WAIT_PAY", label: "待付款", }, + { + value: "PAY", + label: "已付款", + }, + { + value: "CANCEL", + label: "已取消", + }, { value: "WAIT_DISPATCH", label: "待派单", }, { - value: "NOT_FINISH", - label: "未完成", + value: "REFUNDED", + label: "已退款", + }, + + { + value: "WAIT_REFUND", + label: "退款中", }, { value: "COMPLETE", label: "服务完成", }, + + { + value: "NOT_FINISH", + label: "未完成", + }, ], value: "", // 遮罩层 loading: true, innerVisible4: false, + innerrefund: false, // 派单弹框 innerdispatch: false, // 姓名弹框 @@ -460,14 +582,16 @@ export default { total: 0, // 护理类型信息表格数据 OrderDetailsList: [], - OrderDetailsLists: [], dispatchlist: [], nurseName: "请选择护理员", nursePersonid: "", - querynursecencel:{ - appointmentOrderId:"", - }, - // total2: 0, + // querynursecencel:{ + // appointmentOrderId:"", + // }, + appointmentOrderId: "", + nurseStationPersonId: "", + total2: 0, + nurseStationlist: [], // 弹出层标题 title: "", // 是否显示弹出层 @@ -477,27 +601,21 @@ export default { queryParams: { patientName: null, orderNo: null, + nurseStationId: null, // orderStatus: null, orderStatus: "", pageNum: 1, pageSize: 10, }, - querynursePerson: { - nursePersonName: null, - phone: null, - pageNum: 1, - pageSize: 10, - }, querynursePersonname: { - detailsId: "", + orderNo: "", nursePersonName: null, nursePersonType: null, departmentName: null, - + pageNum: 1, + pageSize: 10, }, - query: [], - // 表单参数 form: {}, // 表单校验 @@ -506,8 +624,29 @@ export default { }, created() { this.getList(); + this.info(); }, methods: { + //取消预约确定按钮 + ordercacenl() { + var obj = { + orderNo: this.query.orderNo, + refundPrice: this.query.totalPrice, + refundReason: this.query.cancelAppointmentReason, + }; + xylWeChatRefundNotify(obj).then((res) => { + 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": @@ -518,103 +657,77 @@ export default { return "未完成"; case "COMPLETE": return "服务完成"; + case "PAY": + return "已付款"; + case "WAIT_REFUND": + return "退款中"; + case "CANCEL": + return "已取消"; + case "REFUNDED": + return "已退款"; default: break; } }, // 查看 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; + }); + this.query = res.data[0]; + this.innerVisible4 = true; console.log(this.query); }); }, - // 派单 dispatch(row) { - console.log(row) - this.querynursePersonname.detailsId = row.detailsId - console.log(this.querynursePersonname.detailsId); - // console.log(row) + console.log(row); + this.querynursePersonname.orderNo = row.orderNo; this.nurseName = "请选择护理员"; this.innerdispatch = true; + this.nursePersonid = ""; }, // 姓名弹框 clicknursePersonName() { - // console.log(this.dispatchlist); getPerson(this.querynursePersonname).then((res) => { this.dispatchlist = res.rows; - // this.total2 = res.total; - console.log(this.dispatchlist); + this.total2 = res.total; this.nursePersonNameinfo = true; }); }, // 姓名弹框确定按钮 submitForm() { - console.log(this.dispatchlist) - var obj = {} - obj.id = this.nursePersonid - obj.nurseStationPersonId = this.querynursePersonname.detailsId - dispatchsubmit(obj).then((res) => { - this.nurseName = "请选择护理员"; + let params = { + nurseStationPersonId: this.nursePersonid, + orderNo: this.querynursePersonname.orderNo, + }; + dispatchsubmit(params).then((res) => { + if (res.code == 200) { + this.$modal.msgSuccess("派单成功"); + } this.innerdispatch = false; - - }) + this.getList(); + this.nurseName = "请选择护理员"; + }); }, // 选择姓名按钮 nursePersonclick(row) { - this.nursePersonid = row.id - this.nurseName = row.nursePersonName + this.nursePersonid = row.nurseStationPersonId; + this.nurseName = row.nursePersonName; this.nursePersonNameinfo = false; - console.log(row) - + console.log(row); }, // 确认取消预约 - // cencel(appointmentOrderId) { - // confirmCancel(appointmentOrderId).then((res) => { - // // this.nurseName="请选择护理员"; - // // this.innerdispatch = false; - - // }) - // console.log(appointmentOrderId) - // }, - cencel(row) { - console.log('row :>> ', this.querynursecencel.appointmentOrderId); - this.querynursecencel.appointmentOrderId = row.appointmentOrderId - // obj.appointmentOrderId=row.appointmentOrderId - this.$confirm( - '是否确认取消订单', - "提示", - { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning", - } - ) - .then(() => { - - confirmCancel(this.querynursecencel).then((res) => { - this.$message.success("取消成功"); - this.getList(); - // console.log('this.OrderDetailsList :>> ', this.OrderDetailsList); - }); - }) - .catch(() => { }); + Detailed(row.orderNo).then((res) => { + this.query = res.data; + this.innerrefund = true; + }); }, /** 查询护理类型信息列表 */ getList() { @@ -646,17 +759,63 @@ export default { this.getList(); }, handleQuery2() { - getPerson(this.querynursePerson).then((res) => { - this.dispatchlist = res.data; - console.log(this.dispatchlist); - this.innerdispatch = true; + getPerson(this.querynursePersonname).then((res) => { + this.dispatchlist = res.rows; + console.log(this.querynursePersonname); + // this.innerdispatch = true; }); }, /** 重置按钮操作 */ 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.queryParams.orderNo = null + this.queryParams.orderStatus = null + this.queryParams.patientName=null + } this.handleQuery(); }, + //权限列表 + 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(); + }, // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map((item) => item.id); @@ -666,20 +825,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(() => {}); @@ -697,9 +851,11 @@ export default { }, }; + + diff --git a/src/views/system/patientArchives/index.vue b/src/views/system/patientArchives/index.vue index 139e803..5162d49 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 @@ > - - + +