|
|
@@ -232,11 +232,11 @@ const serviceList = [
|
|
|
];
|
|
|
|
|
|
const allPackages = [
|
|
|
- { id: 10, type: 'transport', name: '包月接送套餐', price: 0 },
|
|
|
- { id: 11, type: 'feeding', name: '基础喂猫套餐', price: 0 },
|
|
|
- { id: 12, type: 'feeding', name: '深度陪玩套餐', price: 0 },
|
|
|
- { id: 13, type: 'washing', name: '精致洗护+美容', price: 0 },
|
|
|
- { id: 14, type: 'washing', name: '除菌药浴套餐', price: 0 }
|
|
|
+ { id: 10, type: 'transport', name: '包月接送套餐', fulfillmentCommission: 0 },
|
|
|
+ { id: 11, type: 'feeding', name: '基础喂猫套餐', fulfillmentCommission: 0 },
|
|
|
+ { id: 12, type: 'feeding', name: '深度陪玩套餐', fulfillmentCommission: 0 },
|
|
|
+ { id: 13, type: 'washing', name: '精致洗护+美容', fulfillmentCommission: 0 },
|
|
|
+ { id: 14, type: 'washing', name: '除菌药浴套餐', fulfillmentCommission: 0 }
|
|
|
];
|
|
|
|
|
|
const currentPets = ref([]);
|
|
|
@@ -258,7 +258,7 @@ const form = reactive({
|
|
|
// Sub Forms Data
|
|
|
transport: {
|
|
|
pkgId: '',
|
|
|
- price: 0,
|
|
|
+ fulfillmentCommission: 0,
|
|
|
pickPrice: 35,
|
|
|
dropPrice: 35,
|
|
|
subType: 'round',
|
|
|
@@ -279,7 +279,7 @@ const form = reactive({
|
|
|
},
|
|
|
feeding: {
|
|
|
pkgId: '',
|
|
|
- price: 68,
|
|
|
+ fulfillmentCommission: 68,
|
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
|
region: [],
|
|
|
addressDetail: '',
|
|
|
@@ -293,7 +293,7 @@ const form = reactive({
|
|
|
},
|
|
|
washing: {
|
|
|
pkgId: '',
|
|
|
- price: 88,
|
|
|
+ fulfillmentCommission: 88,
|
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
|
region: [],
|
|
|
addressDetail: '',
|
|
|
@@ -406,7 +406,7 @@ const currentPackages = computed(() => {
|
|
|
|
|
|
const handlePkgSelect = (id) => {
|
|
|
activeData.value.pkgId = id;
|
|
|
- // Price calculation should remain same (base price), just payable changes
|
|
|
+ // Price calculation should remain same (base fulfillmentCommission), just payable changes
|
|
|
calcPrice(form.type);
|
|
|
};
|
|
|
|
|
|
@@ -427,9 +427,9 @@ const calcPrice = (type) => {
|
|
|
data.dropPrice = base;
|
|
|
}
|
|
|
} else if (type === 'feeding') {
|
|
|
- data.price = base * data.count;
|
|
|
+ data.fulfillmentCommission = base * data.count;
|
|
|
} else if (type === 'washing') {
|
|
|
- data.price = base;
|
|
|
+ data.fulfillmentCommission = base;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -574,7 +574,7 @@ const resetForm = () => {
|
|
|
|
|
|
form.transport = {
|
|
|
pkgId: '',
|
|
|
- price: 0,
|
|
|
+ fulfillmentCommission: 0,
|
|
|
pickPrice: 35,
|
|
|
dropPrice: 35,
|
|
|
subType: 'round',
|
|
|
@@ -595,7 +595,7 @@ const resetForm = () => {
|
|
|
};
|
|
|
form.feeding = {
|
|
|
pkgId: '',
|
|
|
- price: 68,
|
|
|
+ fulfillmentCommission: 68,
|
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
|
region: [],
|
|
|
addressDetail: '',
|
|
|
@@ -609,7 +609,7 @@ const resetForm = () => {
|
|
|
};
|
|
|
form.washing = {
|
|
|
pkgId: '',
|
|
|
- price: 88,
|
|
|
+ fulfillmentCommission: 88,
|
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
|
region: [],
|
|
|
addressDetail: '',
|
|
|
@@ -979,7 +979,7 @@ onMounted(() => {
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
-.type-price {
|
|
|
+.type-fulfillmentCommission {
|
|
|
font-size: 14px;
|
|
|
color: #f56c6c;
|
|
|
font-weight: bold;
|