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

@ -51,3 +51,13 @@ export function exportOrderInfoExcel(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);