支付
This commit is contained in:
parent
c7708dd718
commit
1e4b7c5935
@ -51,3 +51,13 @@ export function exportOrderInfoExcel(params) {
|
|||||||
responseType: 'blob'
|
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>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template v-slot="scope">
|
<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)"
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
|
||||||
v-hasPermi="['repair:order-info:update']">修改
|
v-hasPermi="['repair:order-info:update']">修改
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -186,6 +189,13 @@ export default {
|
|||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
|
async toPay(orderId){
|
||||||
|
let data = {
|
||||||
|
orderId:orderId
|
||||||
|
}
|
||||||
|
const res = await OrderInfoApi.toPay(data);
|
||||||
|
|
||||||
|
},
|
||||||
/** 添加/修改操作 */
|
/** 添加/修改操作 */
|
||||||
openForm(id) {
|
openForm(id) {
|
||||||
this.$refs["formRef"].open(id);
|
this.$refs["formRef"].open(id);
|
||||||
|
Loading…
Reference in New Issue
Block a user