|
|
@@ -84,7 +84,7 @@
|
|
|
import { getRegionTree } from "@/api/fcbi/survey.js";
|
|
|
import { reactive, ref, onMounted, getCurrentInstance, watch, toRefs } from 'vue';
|
|
|
import PublicRange from '../../../components/PublicRange.vue';
|
|
|
-import { useSurveyStore, F } from '@/store/surveyStore';
|
|
|
+import { useSurveyStore, useSurveySalesStore } from '@/store/surveyStore';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { AGGREGATION_TYPE, TARGET_PERIOD_TYPE } from '@/constants';
|
|
|
|
|
|
@@ -123,7 +123,7 @@ const data = reactive({
|
|
|
queryParams: {
|
|
|
brandCode: [],
|
|
|
businessTypeCode: [],
|
|
|
- targetPeriodType: TARGET_PERIOD_TYPE.MONTHLY,
|
|
|
+ targetPeriodType: TARGET_PERIOD_TYPE.MONTHLY,
|
|
|
aggregationType: AGGREGATION_TYPE.FC,
|
|
|
monthYear: null,
|
|
|
startMonth: null,
|
|
|
@@ -298,10 +298,14 @@ const handleConfirm = () => {
|
|
|
const hasArea = queryParams.value.regions && queryParams.value.regions.length > 0;
|
|
|
salesFlag = isMonth ? (hasArea ? 1 : 2) : (hasArea ? 3 : 4);
|
|
|
break;
|
|
|
+ case AGGREGATION_TYPE.AREA:
|
|
|
+ salesFlag = isMonth ? 7 : 8;
|
|
|
+ break;
|
|
|
case AGGREGATION_TYPE.STORE:
|
|
|
salesFlag = isMonth ? 5 : 6;
|
|
|
break;
|
|
|
default:
|
|
|
+ proxy.$message.warning('集計種別を選択してください');
|
|
|
return;
|
|
|
}
|
|
|
|