|
@ -47,6 +47,9 @@ |
|
|
:apiUpdate="CustomerSaleInvoiceDetailApi.updateCustomerSaleInvoiceDetail" |
|
|
:apiUpdate="CustomerSaleInvoiceDetailApi.updateCustomerSaleInvoiceDetail" |
|
|
:apiPage="CustomerSaleInvoiceDetailApi.getCustomerSaleInvoiceRecordDetailPage" |
|
|
:apiPage="CustomerSaleInvoiceDetailApi.getCustomerSaleInvoiceRecordDetailPage" |
|
|
:apiDelete="CustomerSaleInvoiceDetailApi.deleteCustomerSaleInvoiceDetail" |
|
|
:apiDelete="CustomerSaleInvoiceDetailApi.deleteCustomerSaleInvoiceDetail" |
|
|
|
|
|
:detailButtonIsShowAdd="false" |
|
|
|
|
|
:otherHeadButttonData = "[defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-record-main:export` })]" |
|
|
|
|
|
@buttonBaseClick="detailButtonBaseClick" |
|
|
:Echo="Echo" |
|
|
:Echo="Echo" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
/> |
|
|
/> |
|
@ -84,7 +87,28 @@ const { tableObject, tableMethods } = useTable({ |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|
} |
|
|
} |
|
|
|
|
|
// 点击子表按钮事件 |
|
|
|
|
|
const detailButtonBaseClick = async (val, item,tableObject) => { |
|
|
|
|
|
if (val == 'export') { |
|
|
|
|
|
// 子表导出 |
|
|
|
|
|
console.log('子表导出',val, tableObject) |
|
|
|
|
|
try { |
|
|
|
|
|
// 导出的二次确认 |
|
|
|
|
|
await message.exportConfirm() |
|
|
|
|
|
// 发起导出 |
|
|
|
|
|
loadStart() |
|
|
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
|
|
const data = await CustomerSaleInvoiceDetailApi.exportCustomerSaleInvoiceRecordDetail(tableObject.params) |
|
|
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
|
|
} catch { |
|
|
|
|
|
|
|
|
|
|
|
} finally { |
|
|
|
|
|
loadDone() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
// 查询页面返回——详情 |
|
|
// 查询页面返回——详情 |
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
@ -108,8 +132,8 @@ const Echo = [] |
|
|
const { getList, setSearchParams } = tableMethods |
|
|
const { getList, setSearchParams } = tableMethods |
|
|
// 列表头部按钮 |
|
|
// 列表头部按钮 |
|
|
const HeadButttondata = [ |
|
|
const HeadButttondata = [ |
|
|
defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-main:import` }), // 导入 |
|
|
defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-record-main:import` }), // 导入 |
|
|
defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-main:export` }), // 导出 |
|
|
defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-record-main:export` }), // 导出 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|