This commit is contained in:
曹辉 2023-05-26 09:50:05 +08:00
parent 814c53ed78
commit 9ecafc2dbd
3 changed files with 34 additions and 2 deletions

View File

@ -87,3 +87,11 @@ export function edit(data) {
data data
}) })
} }
//确认完成
export function updateCompanionStatus(orderStatus, orderNo) {
return request({
url: `/system/appointmentOrder/updateCompanionStatus?orderStatus=${orderStatus}&orderNo=${orderNo}`,
method: "post"
})
}

View File

@ -98,9 +98,16 @@
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
v-if="scope.row.orderType=='COMPANION_IN_HOSPITAL'" v-if="scope.row.orderType=='COMPANION_IN_HOSPITAL'&&scope.row.orderStatus == 'WAIT_DISPATCH'"
@click="seeedit(scope.row)" @click="seeedit(scope.row)"
>编辑</el-button> >编辑</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-edit"
v-if="scope.row.orderType=='COMPANION_IN_HOSPITAL'&&scope.row.orderStatus == 'WAIT_DISPATCH'"
@click="Confirmcompletion(scope.row)"
>确认完成</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"

View File

@ -7,7 +7,8 @@ import {
xylWeChatRefundNotify, xylWeChatRefundNotify,
appointmentOrderDetails, appointmentOrderDetails,
getPersonInfo, getPersonInfo,
edit edit,
updateCompanionStatus
} from "@/api/system/order"; } from "@/api/system/order";
import { getListByUser } from "@/api/system/userlist.js"; import { getListByUser } from "@/api/system/userlist.js";
export default { export default {
@ -269,6 +270,22 @@ export default {
d = d < 10 ? "0" + d : d; d = d < 10 ? "0" + d : d;
return y + "-" + MM + "-" + d; return y + "-" + MM + "-" + d;
}, },
//确认完成
Confirmcompletion(row) {
this.$confirm("确认完成此陪诊陪护订单?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
updateCompanionStatus(row.orderStatus, row.orderNo).then(res => {
this.$modal.msgSuccess("订单已完成");
this.getList()
})
})
.catch(() => { });
},
//编辑 //编辑
seeedit(row) { seeedit(row) {
this.loading = true; this.loading = true;