修改
This commit is contained in:
parent
ad48843a87
commit
45daf04233
@ -88,3 +88,10 @@ export function edit(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//确认完成
|
||||||
|
export function updateCompanionStatus(orderStatus, orderNo) {
|
||||||
|
return request({
|
||||||
|
url: `/system/appointmentOrder/updateCompanionStatus?orderStatus=${orderStatus}&orderNo=${orderNo}`,
|
||||||
|
method: "post"
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -101,9 +101,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"
|
||||||
@ -569,7 +576,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";
|
||||||
|
|
||||||
@ -832,6 +840,21 @@ export default {
|
|||||||
this.query.companionStartDate = this.formatDate(new Date(e[0]).getTime());
|
this.query.companionStartDate = this.formatDate(new Date(e[0]).getTime());
|
||||||
this.query.companionEndDate = this.formatDate(new Date(e[1]).getTime());
|
this.query.companionEndDate = this.formatDate(new Date(e[1]).getTime());
|
||||||
},
|
},
|
||||||
|
//确认完成
|
||||||
|
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;
|
||||||
|
|||||||
@ -222,7 +222,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-button
|
<el-button
|
||||||
@click="clickinnerVisible()"
|
@click="clickinnerVisible()"
|
||||||
type
|
|
||||||
style="
|
style="
|
||||||
width: 208px;
|
width: 208px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -237,7 +236,6 @@
|
|||||||
>{{ form.classifyNameList }}</el-button>
|
>{{ form.classifyNameList }}</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
@click="clickinnerVisible()"
|
@click="clickinnerVisible()"
|
||||||
type
|
|
||||||
style="
|
style="
|
||||||
width: 208px;
|
width: 208px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user