商品订单 预约订单 登录 修改

This commit is contained in:
shidongli 2022-11-08 09:59:53 +08:00
parent b648465c51
commit 8ff22e4fc6
3 changed files with 118 additions and 62 deletions

View File

@ -6,7 +6,7 @@
:rules="loginRules" :rules="loginRules"
class="login-form" class="login-form"
> >
<h3 class="title">欢迎登录</h3> <h3 class="title">泉医到家运营管理平台</h3>
<el-form-item prop="username"> <el-form-item prop="username">
<el-input <el-input
v-model="loginForm.username" v-model="loginForm.username"

View File

@ -16,15 +16,15 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="收货人" prop="receiver"> <!-- <el-form-item label="收货人" prop="receiver">
<el-input <el-input
v-model="queryParams.receiver" v-model="queryParams.receiver"
placeholder="请输入收货人" placeholder="请输入收货人"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item> -->
<el-form-item label="订单状态" prop="orderStatusinfo"> <el-form-item label="订单状态" prop="orderStatus">
<el-select <el-select
v-model="queryParams.orderStatus" v-model="queryParams.orderStatus"
placeholder="请选择订单状态" placeholder="请选择订单状态"
@ -167,7 +167,7 @@
/> />
<!-- 查看商品信息弹框 --> <!-- 查看商品信息弹框 -->
<el-dialog <el-dialog
title="查看订单信息" title="查看商品信息"
:visible.sync="innerorder" :visible.sync="innerorder"
append-to-body append-to-body
width="1200px" width="1200px"
@ -339,7 +339,7 @@
<!-- 查看物流信息弹框 --> <!-- 查看物流信息弹框 -->
<el-dialog <el-dialog
title="查看物流信息" title="录入物流单号"
:visible.sync="innerlogistics" :visible.sync="innerlogistics"
append-to-body append-to-body
width="500px" width="500px"
@ -729,6 +729,9 @@ seelogistics(id) {
searchlogistics() { searchlogistics() {
console.log(this.queryexpressNo) console.log(this.queryexpressNo)
editExpressNo(this.queryexpressNo).then(res => { editExpressNo(this.queryexpressNo).then(res => {
if(res.code == 200){
this.$modal.msgSuccess("录入成功");
}
this.queryexpressNo.expressNo = "" this.queryexpressNo.expressNo = ""
this.innerlogistics = false this.innerlogistics = false
console.log(res) console.log(res)
@ -759,6 +762,9 @@ submitRefundOrder() {
obj.remark = this.refundlist.refundReasonRemark obj.remark = this.refundlist.refundReasonRemark
obj.goodsStatus = this.refundlist.orderStatus obj.goodsStatus = this.refundlist.orderStatus
weChatRefundOrderApply(obj).then(res => { weChatRefundOrderApply(obj).then(res => {
if(res.code == 200){
this.$modal.msgSuccess("退款成功");
}
// console.log(obj) // console.log(obj)
this.innerrefund = false this.innerrefund = false
}) })
@ -800,12 +806,25 @@ refundcancel() {
}, },
// //
reset() { reset() {
this.queryParams={
pageNum: 1,
pageSize: 10,
nurseStationId: null,
patientId: null,
orderNo: null,
orderStatus: null,
totalPrice: null,
receiver: null,
receiveAddress: null,
phone: null,
orderTime: null,
orderChannel: null,
}
this.form = { this.form = {
id: null, id: null,
nurseStationId: null, nurseStationId: null,
patientId: null, patientId: null,
orderNo: null, orderNo: null,
orderStatus: "0",
totalPrice: null, totalPrice: null,
receiver: null, receiver: null,
receiveAddress: null, receiveAddress: null,
@ -817,9 +836,10 @@ reset() {
createBy: null, createBy: null,
createTime: null, createTime: null,
updateBy: null, updateBy: null,
updateTime: null updateTime: null,
orderStatus: "",
}; };
this.resetForm("form"); this.resetForm("queryParams");
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
@ -828,10 +848,11 @@ handleQuery() {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.reset();
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
// this.getList();
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map(item => item.id) this.ids = selection.map(item => item.id)

View File

@ -60,8 +60,13 @@
:data="OrderDetailsList" :data="OrderDetailsList"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column label="所属护理站" align="center" prop="nurseStationName" />
<el-table-column label="会员名称" align="center" prop="patientName" /> <el-table-column label="会员名称" align="center" prop="patientName" />
<el-table-column label="订单编号" align="center" prop="orderNo" /> <el-table-column label="订单编号" align="center" prop="orderNo" />
<el-table-column label="护理项目名称" align="center" prop="nurseItemName" />
<el-table-column label="订单总金额" align="center" prop="totalPrice" />
<el-table-column label="订单状态" align="center" prop="orderStatus"> <el-table-column label="订单状态" align="center" prop="orderStatus">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.orderStatus == "WAIT_PAY" ? "待付款" : "" }} {{ scope.row.orderStatus == "WAIT_PAY" ? "待付款" : "" }}
@ -80,7 +85,7 @@
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-zoom-in"
@click="seeLook(scope.row)" @click="seeLook(scope.row)"
v-hasPermi="['system:nurseType:edit']" v-hasPermi="['system:nurseType:edit']"
>查看</el-button >查看</el-button
@ -88,15 +93,16 @@
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-s-promotion"
@click="dispatch(scope.row)" @click="dispatch(scope.row)"
v-hasPermi="['system:nurseType:edit']" v-hasPermi="['system:nurseType:edit']"
v-if="scope.row.orderStatus=='WAIT_DISPATCH'"
>派单</el-button >派单</el-button
> >
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-error"
@click="cencel(scope.row.appointmentOrderId)" @click="cencel(scope.row.appointmentOrderId)"
v-hasPermi="['system:nurseType:edit']" v-hasPermi="['system:nurseType:edit']"
>取消预约</el-button >取消预约</el-button
@ -258,7 +264,7 @@
width="500px" width="500px"
height="100px" height="100px"
> >
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="90px">
<el-form-item label="护理员姓名" prop="nursePersonName"> <el-form-item label="护理员姓名" prop="nursePersonName">
<el-button <el-button
type="" type=""
@ -306,27 +312,27 @@
> >
<el-form <el-form
ref="queryForm" ref="queryForm"
:model="querynursePerson" :model="querynursePersonname"
:rules="rules" :rules="rules"
label-width="80px" label-width="80px"
:inline="true" :inline="true"
> >
<el-form-item label="姓名" prop="nursePersonName" label-width="120"> <el-form-item label="姓名" prop="nursePersonName" label-width="120">
<el-input <el-input
v-model="querynursePerson.nursePersonName" v-model="querynursePersonname.nursePersonName"
placeholder="请输入姓名" placeholder="请输入姓名"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="手机号" prop="phone" label-width="120"> <!-- <el-form-item label="手机号" prop="phone" label-width="120">
<el-input <el-input
v-model="querynursePerson.phone" v-model="querynursePersonname.phone"
placeholder="请输入手机号" placeholder="请输入手机号"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
@ -335,7 +341,7 @@
@click="handleQuery2" @click="handleQuery2"
>搜索</el-button >搜索</el-button
> >
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" <el-button icon="el-icon-refresh" size="mini" @click="resetQuery2"
>重置</el-button >重置</el-button
> >
</el-form-item> </el-form-item>
@ -344,9 +350,9 @@
<el-table-column label="请选择" width="70" align="center"> <el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="primary"
style="width: 15px; height: 15px; overflow: hidden" style="width: 15px; height: 15px; overflow: hidden"
v-if="nursePersonid == scope.row.id" v-if="nursePersonid == scope.row.nurseStationPersonId"
circle circle
@click="nursePersonclick(scope.row)" @click="nursePersonclick(scope.row)"
></el-button> ></el-button>
@ -367,7 +373,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
property="nursePersonName" property="nursePersonName"
label="员姓名" label="护理站人员姓名"
width="150" width="150"
align="center" align="center"
> >
@ -397,13 +403,13 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <pagination <pagination
v-show="total2 > 0" v-show="total2 > 0"
:total="total2" :total="total2"
:page.sync="querynursePerson.pageNum" :page.sync="querynursePersonname.pageNum"
:limit.sync="querynursePerson.pageSize" :limit.sync="querynursePersonname.pageSize"
@pagination="handleQuery2" @pagination="handleQuery2"
/> --> />
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -463,10 +469,12 @@ export default {
dispatchlist: [], dispatchlist: [],
nurseName: "请选择护理员", nurseName: "请选择护理员",
nursePersonid: "", nursePersonid: "",
querynursecencel:{ // querynursecencel:{
appointmentOrderId:"", // appointmentOrderId:"",
}, // },
// total2: 0, appointmentOrderId:"",
nurseStationPersonId :"",
total2: 0,
// //
title: "", title: "",
// //
@ -481,17 +489,24 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}, },
querynursePerson: { // querynursePerson: {
nursePersonName: null, // nursePersonName: null,
phone: null, // phone: null,
pageNum: 1, // pageNum: 1,
pageSize: 10, // pageSize: 10,
}, // },
querynursePersonname: { querynursePersonname: {
detailsId: "", orderNo:"",
nursePersonName: null, nursePersonName:null,
nursePersonType: null, nursePersonType: null,
departmentName: null, departmentName: null,
pageNum: 1,
pageSize: 10,
// detailsId: "",
// nursePersonName: null,
}, },
@ -523,7 +538,7 @@ export default {
}, },
// //
seeLook(row) { seeLook(row) {
this.innerVisible = true; this.innerVisible4 = true;
const id = row.orderNo; const id = row.orderNo;
// console.log(row); // console.log(row);
Detailed(id).then((res) => { Detailed(id).then((res) => {
@ -546,43 +561,52 @@ export default {
// //
dispatch(row) { dispatch(row) {
console.log(row) console.log(row)
this.querynursePersonname.detailsId = row.detailsId this.querynursePersonname.orderNo = row.orderNo
console.log(this.querynursePersonname.detailsId); console.log(this.querynursePersonname.orderNo);
// console.log(row) // console.log(row)
this.nurseName = "请选择护理员"; this.nurseName = "请选择护理员";
this.innerdispatch = true; this.innerdispatch = true;
this.nursePersonid =""
}, },
// //
clicknursePersonName() { clicknursePersonName() {
// console.log(this.dispatchlist); // console.log(this.dispatchlist);
getPerson(this.querynursePersonname).then((res) => { getPerson(this.querynursePersonname).then((res) => {
this.dispatchlist = res.rows; this.dispatchlist = res.rows;
// this.total2 = res.total; this.total2 = res.total;
console.log(this.dispatchlist); console.log(this.dispatchlist);
this.nursePersonNameinfo = true; this.nursePersonNameinfo = true;
}); });
}, },
// //
submitForm() { submitForm() {
console.log(this.dispatchlist) // console.log(this.querynursePersonname)
var obj = {} // var obj = {}
obj.id = this.nursePersonid // obj.nurseStationPersonId = nurseStationPersonId
obj.nurseStationPersonId = this.querynursePersonname.detailsId // obj.orderNo = this.querynursePersonname.orderNo
dispatchsubmit(obj).then((res) => { let params={
nurseStationPersonId:this.nursePersonid,
orderNo:this.querynursePersonname.orderNo
}
dispatchsubmit(params).then((res) => {
if(res.code == 200){
this.$modal.msgSuccess("派单成功");
}
this.nurseName = "请选择护理员"; this.nurseName = "请选择护理员";
this.innerdispatch = false; this.innerdispatch = false;
// this.nursePersonid =""
}) })
}, },
// //
nursePersonclick(row) { nursePersonclick(row) {
this.nursePersonid = row.id this.nursePersonid = row.nurseStationPersonId
this.nurseName = row.nursePersonName this.nurseName = row.nursePersonName
this.nursePersonNameinfo = false; this.nursePersonNameinfo = false;
console.log(row) console.log(row)
}, },
//
// cencel(appointmentOrderId) { // cencel(appointmentOrderId) {
// confirmCancel(appointmentOrderId).then((res) => { // confirmCancel(appointmentOrderId).then((res) => {
// // this.nurseName=""; // // this.nurseName="";
@ -591,11 +615,14 @@ export default {
// }) // })
// console.log(appointmentOrderId) // console.log(appointmentOrderId)
// }, // },
// console.log(row.appointmentOrderId)
cencel(row) { // this.appointmentOrderId = row.appointmentOrderId
console.log('row :>> ', this.querynursecencel.appointmentOrderId); // console.log('row :>> ', this.querynursecencel.appointmentOrderId);
this.querynursecencel.appointmentOrderId = row.appointmentOrderId
// obj.appointmentOrderId=row.appointmentOrderId // obj.appointmentOrderId=row.appointmentOrderId
//
cencel(appointmentOrderId) {
this.$confirm( this.$confirm(
'是否确认取消订单', '是否确认取消订单',
"提示", "提示",
@ -606,15 +633,19 @@ export default {
} }
) )
.then(() => { .then(() => {
console.log(appointmentOrderId)
confirmCancel(this.querynursecencel).then((res) => { let params={
appointmentOrderId:appointmentOrderId
}
confirmCancel(params).then((res) => {
this.$message.success("取消成功"); this.$message.success("取消成功");
this.getList(); // this.getList();
// console.log('this.OrderDetailsList :>> ', this.OrderDetailsList); // console.log('this.OrderDetailsList :>> ', this.OrderDetailsList);
}); });
}) })
.catch(() => { }); .catch(() => { });
}, },
/** 查询护理类型信息列表 */ /** 查询护理类型信息列表 */
getList() { getList() {
this.loading = true; this.loading = true;
@ -645,16 +676,20 @@ export default {
this.getList(); this.getList();
}, },
handleQuery2() { handleQuery2() {
getPerson(this.querynursePerson).then((res) => { getPerson(this.querynursePersonname).then((res) => {
this.dispatchlist = res.data; this.dispatchlist = res.rows;
console.log(this.dispatchlist); console.log(this.querynursePersonname);
this.innerdispatch = true; // this.innerdispatch = true;
}); });
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
},
resetQuery2() {
this.resetForm("queryForm");
this.handleQuery2();
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {