Commit f18d4579 by wuqian

Merge branch 'dev'

parents ac424b99 29c497c4
......@@ -37,7 +37,7 @@ export function getSubOrderBySubOrderNumber(thirdSubOrderNumber: string) {
)
}
export function getSubOrderBySubOrder(factorySubOrderNumber: string,orderFrom:string) {
export function getSubOrderBySubOrder(factorySubOrderNumber: string, orderFrom: string) {
return axios.get<never, BaseRespData<PodProductList>>(
'factory/podJomallOrderProductCnUs/getSubOrderBySubOrderNumber',
{
......@@ -259,9 +259,13 @@ export function completeDeliveryApi(
{ productIdList, ...data },
)
}
export function exportStatementApi(data: SearchForm, status: string) {
export function exportStatementApi(
data: SearchForm,
status: string,
currentPage: number,
pageSize: number) {
return axios.post<never, BaseRespData<never>>(
'factory/podJomallOrder/exportPodJomallReconciliation',
{ ...data, status },
{ ...data, status, currentPage, pageSize },
)
}
......@@ -220,7 +220,7 @@
申请补胚</ElButton
>
</ElFormItem>
<ElFormItem v-if="['TO_BE_RECEIPT','COMPLETE'].includes(status)">
<ElFormItem v-if="['TO_BE_RECEIPT', 'COMPLETE'].includes(status)">
<ElButton type="success" @click="toExport"> 导出对账单</ElButton>
</ElFormItem>
<ElFormItem
......@@ -1529,7 +1529,12 @@ const exportData = async () => {
// tagIds: searchForm.value.tagIds.length > 0 ? searchForm.value.tagIds : null,
}
try {
const res = await exportStatementApi(params, status.value)
const res = await exportStatementApi(
params,
status.value,
currentPage.value,
pageSize.value,
)
if (res.code !== 200) return
ElMessage.success('导出成功')
window.open(filePath + res.message)
......
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 to comment