|
|
@ -40,6 +40,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="jsx">
|
|
|
|
<script setup lang="jsx">
|
|
|
|
import ElButton from '@/components/extra/ElButton.vue';
|
|
|
|
import ElButton from '@/components/extra/ElButton.vue';
|
|
|
|
|
|
|
|
import ElIcon from '@/components/extra/ElIcon.vue';
|
|
|
|
|
|
|
|
import ElImage from '@/components/extra/ElImage.vue';
|
|
|
|
import ProductPicker from '@/views/sales/product/picker.vue';
|
|
|
|
import ProductPicker from '@/views/sales/product/picker.vue';
|
|
|
|
import ProductSku from './sku.vue';
|
|
|
|
import ProductSku from './sku.vue';
|
|
|
|
const store = useStore();
|
|
|
|
const store = useStore();
|
|
|
@ -69,6 +71,7 @@
|
|
|
|
const handleSearch = async () => {
|
|
|
|
const handleSearch = async () => {
|
|
|
|
if (state.condition.activityTimeId) {
|
|
|
|
if (state.condition.activityTimeId) {
|
|
|
|
loading.value = true;
|
|
|
|
loading.value = true;
|
|
|
|
|
|
|
|
await store.dispatch('limitProduct/load', route.params.id);
|
|
|
|
await store.dispatch('limitProduct/search');
|
|
|
|
await store.dispatch('limitProduct/search');
|
|
|
|
loading.value = false;
|
|
|
|
loading.value = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -91,7 +94,12 @@
|
|
|
|
watch(
|
|
|
|
watch(
|
|
|
|
() => unref(opts).timeRange,
|
|
|
|
() => unref(opts).timeRange,
|
|
|
|
() => {
|
|
|
|
() => {
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
!state.condition.activityTimeId ||
|
|
|
|
|
|
|
|
unref(opts).timeRange.findIndex((item) => item.id === state.condition.activityTimeId) === -1
|
|
|
|
|
|
|
|
) {
|
|
|
|
state.condition.activityTimeId = unref(opts).timeRange[0]?.id;
|
|
|
|
state.condition.activityTimeId = unref(opts).timeRange[0]?.id;
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{ deep: true }
|
|
|
|
{ deep: true }
|
|
|
|
);
|
|
|
|
);
|
|
|
|