增加模版

This commit is contained in:
wuweihua
2026-10-22 14:46:52 +08:00
parent c064d925ca
commit f07386f4aa
16 changed files with 1129 additions and 26 deletions
+10 -3
View File
@@ -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() {