|
@@ -1,5 +1,6 @@
|
|
|
import { SimpleParameters } from './base'
|
|
|
import { getCommonParams } from "./common";
|
|
|
+import { dateFormatter } from '@/utils/globalFun'
|
|
|
import { mul } from '@/utils/number'
|
|
|
import { productTypeMap, productKeyMap, productGroupKeyMap } from '@/views/create-order/data'
|
|
|
|
|
@@ -31,6 +32,15 @@ export class MarketingGroup extends SimpleParameters {
|
|
|
num: productForm.giftNum - 0 || undefined,
|
|
|
}
|
|
|
|
|
|
+ if (productForm.validityPeriod) {
|
|
|
+ const periodStart = productForm.validityPeriod?.start
|
|
|
+ const periodEnd = productForm.validityPeriod?.end
|
|
|
+ Object.assign(p.filter, {
|
|
|
+ service_start_time: periodStart ? dateFormatter(periodStart) : undefined,
|
|
|
+ service_end_time: periodEnd ? dateFormatter(periodEnd) : undefined,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
if (this.isXSFY) {
|
|
|
p.filter.num = mul(p.filter.num || 0, 100)
|
|
|
}
|