修改
This commit is contained in:
parent
814c53ed78
commit
9ecafc2dbd
@ -86,4 +86,12 @@ export function edit(data) {
|
||||
method: "post",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//确认完成
|
||||
export function updateCompanionStatus(orderStatus, orderNo) {
|
||||
return request({
|
||||
url: `/system/appointmentOrder/updateCompanionStatus?orderStatus=${orderStatus}&orderNo=${orderNo}`,
|
||||
method: "post"
|
||||
})
|
||||
}
|
||||
@ -98,9 +98,16 @@
|
||||
size="mini"
|
||||
type="text"
|
||||
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)"
|
||||
>编辑</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
|
||||
size="mini"
|
||||
type="text"
|
||||
|
||||
@ -7,7 +7,8 @@ import {
|
||||
xylWeChatRefundNotify,
|
||||
appointmentOrderDetails,
|
||||
getPersonInfo,
|
||||
edit
|
||||
edit,
|
||||
updateCompanionStatus
|
||||
} from "@/api/system/order";
|
||||
import { getListByUser } from "@/api/system/userlist.js";
|
||||
export default {
|
||||
@ -269,6 +270,22 @@ export default {
|
||||
d = d < 10 ? "0" + d : 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) {
|
||||
this.loading = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user