增加模版
This commit is contained in:
@@ -170,6 +170,7 @@
|
||||
title="批量修改计费重"
|
||||
width="520px"
|
||||
action="/price/billing/bill/chargeWeight/importData"
|
||||
template-file-code="CHARGE_WEIGHT"
|
||||
template-file-name="批量修改计费重导入模板"
|
||||
:show-update-support="false"
|
||||
:import-desc="chargeWeightImportDesc"
|
||||
@@ -641,10 +642,16 @@ function buildChargeWeightTemplateQuery() {
|
||||
|
||||
async function downloadChargeWeightImportTemplate() {
|
||||
const payload = buildChargeWeightTemplateQuery()
|
||||
if (payload.fillByFilter && !hasBatchFeeQuery(tableRef.value?.getQueryParams?.() || {})) {
|
||||
throw new Error('请先设置列表筛选条件')
|
||||
// Checked: backend fills orderNos from list filters. Unchecked: OSS template CHARGE_WEIGHT.
|
||||
if (payload.fillByFilter) {
|
||||
if (!hasBatchFeeQuery(tableRef.value?.getQueryParams?.() || {})) {
|
||||
throw new Error('请先设置列表筛选条件')
|
||||
}
|
||||
await downloadChargeWeightTemplate(payload)
|
||||
return
|
||||
}
|
||||
await downloadChargeWeightTemplate(payload)
|
||||
const { downloadFileTemplate } = await import('@/api/system/fileTemplate')
|
||||
await downloadFileTemplate('CHARGE_WEIGHT', '批量修改计费重导入模板')
|
||||
}
|
||||
|
||||
function openChargeWeightImportAttach() {
|
||||
|
||||
Reference in New Issue
Block a user