更改订单信息页面的删除
This commit is contained in:
parent
98de6eb141
commit
9aa3335264
@ -2,23 +2,25 @@ import request from '@/utils/request'
|
|||||||
// 查询护理类型信息列表
|
// 查询护理类型信息列表
|
||||||
export function appointmentOrderDetailsList(query) {
|
export function appointmentOrderDetailsList(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/appointmentOrderDetails/appointmentOrderDetailsList',
|
url: 'system/appointmentOrder/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function Detailed(id) {
|
export function Detailed(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/system/appointmentOrderDetails/Detailed`+`?orderNo=${id}`,
|
url: `/system/appointmentOrderDetails/Detailed`+`?orderNo=${id}`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//删除
|
//删除
|
||||||
export function deldetailed(id) {
|
export function deldetailed(appointmentOrderId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/appointmentOrderDetails/' + id,
|
url: '/system/appointmentOrder/'+appointmentOrderId,
|
||||||
method: 'delete'
|
method: 'post',
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -318,7 +318,6 @@ export default {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
seeLook(row) {
|
seeLook(row) {
|
||||||
this.innerVisible4 = true;
|
this.innerVisible4 = true;
|
||||||
const id = row.orderNo;
|
const id = row.orderNo;
|
||||||
@ -371,8 +370,9 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
// console.log('row :>> ', row);
|
||||||
this.$confirm(
|
this.$confirm(
|
||||||
'是否确认删除订单编号为"' + row.orderNo + '"的数据项?',
|
'是否确认删除订单信息的数据项?',
|
||||||
"提示",
|
"提示",
|
||||||
{
|
{
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
@ -381,9 +381,10 @@ export default {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
deldetailed(row.appointOrderDetailsId).then((res) => {
|
deldetailed(row.appointmentOrderId).then((res) => {
|
||||||
this.$message.success("删除成功");
|
this.$message.success("删除成功");
|
||||||
this.getList();
|
this.getList();
|
||||||
|
// console.log('this.OrderDetailsList :>> ', this.OrderDetailsList);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
@ -406,4 +407,4 @@ export default {
|
|||||||
height: 500px;
|
height: 500px;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user