This commit is contained in:
aaron 2025-03-14 08:47:40 +08:00
parent ca224c7291
commit a093ca4766

View File

@ -45,6 +45,9 @@
<div>
<span style="color: #1890ff; font-weight: bold;">{{ record.extra_package_threshold }}</span> 加收 <span style="color: #1890ff; font-weight: bold;">{{ record.extra_package_price }}</span> /
</div>
<div>
多驿站费<span style="color: #1890ff; font-weight: bold;">{{ record.more_station_price || 0 }}</span> /
</div>
</div>
</template>
<template v-if="column.key === 'profit_sharing'">
@ -236,6 +239,22 @@
/>
<div class="form-item-tip">超过临界数后每件商品额外收取的费用</div>
</a-form-item>
<a-form-item
label="多驿站费(元/站)"
required
:rules="[{ required: true, message: '请输入多驿站费' }]"
>
<a-input-number
v-model:value="deliveryPriceForm.more_station_price"
:min="0"
:precision="2"
:step="0.5"
style="width: 100%"
placeholder="请输入多驿站费"
/>
<div class="form-item-tip">订单包含多个驿站时每增加一个驿站额外收取的费用</div>
</a-form-item>
</a-form>
</a-modal>
@ -864,7 +883,8 @@ export default defineComponent({
const deliveryPriceForm = ref({
base_price: 0,
extra_package_threshold: 1,
extra_package_price: 0
extra_package_price: 0,
more_station_price: 0
})
const currentCommunityId = ref(null)
@ -874,7 +894,8 @@ export default defineComponent({
deliveryPriceForm.value = {
base_price: record.base_price || 0,
extra_package_threshold: record.extra_package_threshold || 1,
extra_package_price: record.extra_package_price || 0
extra_package_price: record.extra_package_price || 0,
more_station_price: record.more_station_price || 0
}
deliveryPriceModalVisible.value = true
}
@ -886,7 +907,8 @@ export default defineComponent({
const res = await request.put(`/api/community/${currentCommunityId.value}`, {
base_price: deliveryPriceForm.value.base_price,
extra_package_threshold: deliveryPriceForm.value.extra_package_threshold,
extra_package_price: deliveryPriceForm.value.extra_package_price
extra_package_price: deliveryPriceForm.value.extra_package_price,
more_station_price: deliveryPriceForm.value.more_station_price
})
if (res.code === 200) {
@ -911,7 +933,8 @@ export default defineComponent({
deliveryPriceForm.value = {
base_price: 0,
extra_package_threshold: 1,
extra_package_price: 0
extra_package_price: 0,
more_station_price: 0
}
}