Commit 205fec1b by Jony.L

发票功能1.0

parent 381016e6
...@@ -9,6 +9,15 @@ export function listOrder (query) { ...@@ -9,6 +9,15 @@ export function listOrder (query) {
}) })
} }
export function appInvoiceRequest (data){
return request({
url: '/trade/order/invoiceRequest',
method: 'post',
data: data
})
}
// 查询订单管理-需求单管理详细 // 查询订单管理-需求单管理详细
export function getOrder (id) { export function getOrder (id) {
return request({ return request({
......
...@@ -127,6 +127,12 @@ ...@@ -127,6 +127,12 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="订单状态" align="center" prop="statusName"/> <el-table-column label="订单状态" align="center" prop="statusName"/>
<el-table-column label="发票链接" align="center" prop="invoiceUrl"/>
<el-table-column label="开票状态" align="center" prop="invoiceStatus">
<template #default="scope">
<!-- <dict-tag :type="invoice_status" :value="scope.row.invoiceStatus" />-->
</template>
</el-table-column>
<el-table-column label="下单时间" align="center" prop="createTime" width="180"> <el-table-column label="下单时间" align="center" prop="createTime" width="180">
<template #default="scope"> <template #default="scope">
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
...@@ -145,6 +151,13 @@ ...@@ -145,6 +151,13 @@
> >
详情 详情
</el-button> </el-button>
<el-button
link
type="primary"
@click="invoiceRequest(scope.row)"
>
申请开票
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -212,11 +225,12 @@ ...@@ -212,11 +225,12 @@
import { import {
listOrder listOrder
} from '@/api/computility/order' } from '@/api/computility/order'
import {appInvoiceRequest} from '@/api/computility/order'
import {parseTime} from "../../utils/ruoyi.js"; import {parseTime} from "../../utils/ruoyi.js";
import {getResources} from "@/api/computility/resources.js"; import {getResources} from "@/api/computility/resources.js";
import {ElMessage} from "element-plus";
const {proxy} = getCurrentInstance() const {proxy} = getCurrentInstance()
const orderList = ref([]) const orderList = ref([])
const open = ref(false) const open = ref(false)
const sOpen = ref(false) const sOpen = ref(false)
...@@ -342,6 +356,15 @@ function handleDetails(row) { ...@@ -342,6 +356,15 @@ function handleDetails(row) {
// }) // })
} }
function invoiceRequest(row) {
appInvoiceRequest(row).then((response) => {
getList();
proxy.$modal.msgSuccess("已成功申请");
}).catch((r) => {
}
)
}
getList() getList()
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment