This commit is contained in:
PQZ 2024-09-23 23:17:38 +08:00
parent c7708dd718
commit 1e4b7c5935
2 changed files with 73 additions and 53 deletions

View File

@ -1,53 +1,63 @@
import request from '@/utils/request'
// 创建维修模块 订单
export function createOrderInfo(data) {
return request({
url: '/repair/order-info/create',
method: 'post',
data: data
})
}
// 更新维修模块 订单
export function updateOrderInfo(data) {
return request({
url: '/repair/order-info/update',
method: 'put',
data: data
})
}
// 删除维修模块 订单
export function deleteOrderInfo(id) {
return request({
url: '/repair/order-info/delete?id=' + id,
method: 'delete'
})
}
// 获得维修模块 订单
export function getOrderInfo(id) {
return request({
url: '/repair/order-info/get?id=' + id,
method: 'get'
})
}
// 获得维修模块 订单分页
export function getOrderInfoPage(params) {
return request({
url: '/repair/order-info/page',
method: 'get',
params
})
}
// 导出维修模块 订单 Excel
export function exportOrderInfoExcel(params) {
return request({
url: '/repair/order-info/export-excel',
method: 'get',
params,
responseType: 'blob'
})
}
import request from '@/utils/request'
// 创建维修模块 订单
export function createOrderInfo(data) {
return request({
url: '/repair/order-info/create',
method: 'post',
data: data
})
}
// 更新维修模块 订单
export function updateOrderInfo(data) {
return request({
url: '/repair/order-info/update',
method: 'put',
data: data
})
}
// 删除维修模块 订单
export function deleteOrderInfo(id) {
return request({
url: '/repair/order-info/delete?id=' + id,
method: 'delete'
})
}
// 获得维修模块 订单
export function getOrderInfo(id) {
return request({
url: '/repair/order-info/get?id=' + id,
method: 'get'
})
}
// 获得维修模块 订单分页
export function getOrderInfoPage(params) {
return request({
url: '/repair/order-info/page',
method: 'get',
params
})
}
// 导出维修模块 订单 Excel
export function exportOrderInfoExcel(params) {
return request({
url: '/repair/order-info/export-excel',
method: 'get',
params,
responseType: 'blob'
})
}
export function toPay(params) {
return request({
url: '/admin-api/pay/toPay',
method: 'get',
params
})
}

View File

@ -78,6 +78,9 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template v-slot="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="toPay(scope.row.id)"
v-hasPermi="['repair:order-info:update']">支付
</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
v-hasPermi="['repair:order-info:update']">修改
</el-button>
@ -186,6 +189,13 @@ export default {
this.resetForm("queryForm");
this.handleQuery();
},
async toPay(orderId){
let data = {
orderId:orderId
}
const res = await OrderInfoApi.toPay(data);
},
/** 添加/修改操作 */
openForm(id) {
this.$refs["formRef"].open(id);