feat: 线下登记延期先传凭证自动识别交易单号,弹窗显示套餐名称
Some checks failed
构建并部署前端到测试环境 / deploy (push) Has been cancelled

- 登记线下付款时收款凭证放到最前,上传后自动识别交易单号预填(复用凭证识别,需人工核对,不覆盖手填)
- 试算后自动带入实收金额
- 延期弹窗显示套餐名称(及资产),不再显示套餐记录 ID
This commit is contained in:
邹进
2026-11-07 22:26:38 +09:00
parent c907d6e21f
commit 0d094a0537
5 changed files with 136 additions and 7 deletions

View File

@@ -71,7 +71,7 @@
v-if="row.silence.extendable && (hasAuth(P.extend) || hasAuth(P.offline))"
link
type="primary"
@click="extendId = row.package_usage_id"
@click="openExtension(row)"
>延期</ElButton
>
</template>
@@ -140,6 +140,8 @@
<SilenceExtendDialog
v-if="extendId || batchVisible"
:usage-id="extendId"
:package-name="extendRow?.package_name"
:asset-identifier="extendRow?.asset_identifier"
:batch-mode="batchVisible"
:allowed="allowed"
@close="closeExtension"
@@ -232,6 +234,7 @@
changing = ref(false)
const recordsId = ref<number>(),
extendId = ref<number>(),
extendRow = ref<Record<string, any>>(),
batchVisible = ref(false),
policyVisible = ref(false),
policyId = ref<number>(),
@@ -533,6 +536,10 @@
actionError.value = gatewayError(e)
}
}
function openExtension(row: Record<string, any>) {
extendRow.value = row
extendId.value = row.package_usage_id
}
async function matchPolicy() {
if (!canManagePolicy.value || !matchPackage.value || matching.value) return
const scope = pollingScope(user),