|
@@ -223,11 +223,11 @@ const serviceList = [
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
const allPackages = [
|
|
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([])
|
|
const currentPets = ref([])
|
|
@@ -249,7 +249,7 @@ const form = reactive({
|
|
|
// Sub Forms Data
|
|
// Sub Forms Data
|
|
|
transport: {
|
|
transport: {
|
|
|
pkgId: '',
|
|
pkgId: '',
|
|
|
- price: 0,
|
|
|
|
|
|
|
+ fulfillmentCommission: 0,
|
|
|
pickPrice: 35,
|
|
pickPrice: 35,
|
|
|
dropPrice: 35,
|
|
dropPrice: 35,
|
|
|
subType: 'round',
|
|
subType: 'round',
|
|
@@ -257,13 +257,13 @@ const form = reactive({
|
|
|
dropStartRegion: [], dropStartDetail: '', dropEndRegion: [], dropEndDetail: '', dropContact: '', dropPhone: '', dropTime: ''
|
|
dropStartRegion: [], dropStartDetail: '', dropEndRegion: [], dropEndDetail: '', dropContact: '', dropPhone: '', dropTime: ''
|
|
|
},
|
|
},
|
|
|
feeding: {
|
|
feeding: {
|
|
|
- pkgId: '', price: 68,
|
|
|
|
|
|
|
+ pkgId: '', fulfillmentCommission: 68,
|
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
|
region: [], addressDetail: '',
|
|
region: [], addressDetail: '',
|
|
|
count: 1, dates: [], area: '', itemLoc: '', cleanLoc: '', foodAmount: '', other: ''
|
|
count: 1, dates: [], area: '', itemLoc: '', cleanLoc: '', foodAmount: '', other: ''
|
|
|
},
|
|
},
|
|
|
washing: {
|
|
washing: {
|
|
|
- pkgId: '', price: 88,
|
|
|
|
|
|
|
+ pkgId: '', fulfillmentCommission: 88,
|
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
|
region: [], addressDetail: '',
|
|
region: [], addressDetail: '',
|
|
|
time: '', petStatus: '', cleanLoc: '', toolLoc: '', other: ''
|
|
time: '', petStatus: '', cleanLoc: '', toolLoc: '', other: ''
|
|
@@ -403,9 +403,9 @@ const calcPrice = (type) => {
|
|
|
data.dropPrice = base
|
|
data.dropPrice = base
|
|
|
}
|
|
}
|
|
|
} else if (type === 'feeding') {
|
|
} else if (type === 'feeding') {
|
|
|
- data.price = base * data.count
|
|
|
|
|
|
|
+ data.fulfillmentCommission = base * data.count
|
|
|
} else if (type === 'washing') {
|
|
} else if (type === 'washing') {
|
|
|
- data.price = base
|
|
|
|
|
|
|
+ data.fulfillmentCommission = base
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -565,7 +565,7 @@ const resetForm = () => {
|
|
|
|
|
|
|
|
form.transport = {
|
|
form.transport = {
|
|
|
pkgId: '',
|
|
pkgId: '',
|
|
|
- price: 0,
|
|
|
|
|
|
|
+ fulfillmentCommission: 0,
|
|
|
pickPrice: 35,
|
|
pickPrice: 35,
|
|
|
dropPrice: 35,
|
|
dropPrice: 35,
|
|
|
subType: 'round',
|
|
subType: 'round',
|
|
@@ -573,13 +573,13 @@ const resetForm = () => {
|
|
|
dropStartRegion: [], dropStartDetail: '', dropEndRegion: [], dropEndDetail: '', dropContact: '', dropPhone: '', dropTime: ''
|
|
dropStartRegion: [], dropStartDetail: '', dropEndRegion: [], dropEndDetail: '', dropContact: '', dropPhone: '', dropTime: ''
|
|
|
}
|
|
}
|
|
|
form.feeding = {
|
|
form.feeding = {
|
|
|
- pkgId: '', price: 68,
|
|
|
|
|
|
|
+ pkgId: '', fulfillmentCommission: 68,
|
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
|
region: [], addressDetail: '',
|
|
region: [], addressDetail: '',
|
|
|
count: 1, dates: [], area: '', itemLoc: '', cleanLoc: '', foodAmount: '', other: ''
|
|
count: 1, dates: [], area: '', itemLoc: '', cleanLoc: '', foodAmount: '', other: ''
|
|
|
}
|
|
}
|
|
|
form.washing = {
|
|
form.washing = {
|
|
|
- pkgId: '', price: 88,
|
|
|
|
|
|
|
+ pkgId: '', fulfillmentCommission: 88,
|
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
appointments: [{ startTime: '', endTime: '' }],
|
|
|
region: [], addressDetail: '',
|
|
region: [], addressDetail: '',
|
|
|
time: '', petStatus: '', cleanLoc: '', toolLoc: '', other: ''
|
|
time: '', petStatus: '', cleanLoc: '', toolLoc: '', other: ''
|