支付
This commit is contained in:
parent
c7708dd718
commit
1e4b7c5935
@ -51,3 +51,13 @@ export function exportOrderInfoExcel(params) {
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function toPay(params) {
|
||||
return request({
|
||||
url: '/admin-api/pay/toPay',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user