应付邮编调整和订单应付计费的附加费调整

This commit is contained in:
liuminghui
2026-11-19 11:09:44 +08:00
parent a0b9b58291
commit ad7cf3c18c
23 changed files with 752 additions and 70 deletions
@@ -5,7 +5,7 @@
:closable="false"
show-icon
class="mb16"
title="每个国家一行。点「分区」维护分区和邮编。偏远分区按目的国家参与应付偏远附加费;某个产品的报价表自己已经挂了偏远名单时,仍只用那一份。"
title="每个国家一行,多个渠道用顿号分隔。点「分区」后,各渠道的分区分开显示。订单计费只拿本渠道的邮编对分区。"
/>
<basic-table
@@ -56,11 +56,11 @@
<el-form-item label="销售产品">
<el-input v-model="form.productName" maxlength="200" />
</el-form-item>
<el-form-item label="渠道名称">
<el-input v-model="form.channelName" maxlength="100" placeholder="如 Royal Mail、EVRI" />
<el-form-item label="渠道">
<span>{{ form.channelName || '-' }}</span>
</el-form-item>
</el-form>
<p class="import-tip">保存后,这个国家下的分区都使用这里的服务类型、销售产品和渠道。报价表保持不变。偏远附加费按目的国家的偏远邮编匹配,再用价卡上的分区或邮编前缀选定费用档。</p>
<p class="import-tip">保存后,这个国家下各渠道的服务类型和销售产品一起更新。渠道仍留在各自的分区上,不在这里改。</p>
<template #footer>
<el-button type="primary" @click="submitEdit">确定</el-button>
<el-button @click="editOpen = false">取消</el-button>
@@ -167,7 +167,7 @@ function handleUpdate(row) {
countryName: row.countryName,
serviceType: firstPart(row.serviceType),
productName: firstPart(row.productName),
channelName: firstPart(row.channelName)
channelName: row.channelName || ''
}
editOpen.value = true
}
@@ -183,7 +183,7 @@ function submitEdit() {
function handleClear(row) {
const name = row.countryName || row.countryCode
proxy.$modal.confirm('清空「' + name + '」下的全部分区和邮编?计费将不再使用这些邮编。').then(() => {
return delPayPostcodeCountry({ countryCode: row.countryCode, countryName: row.countryName })
return delPayPostcodeCountry({ countryCode: row.countryCode, countryName: row.countryName, allChannels: true })
}).then(() => {
proxy.$modal.msgSuccess('已清空')
reload()