|
|
|
@ -44,6 +44,7 @@
|
|
|
|
|
import ProductSku from './sku.vue';
|
|
|
|
|
const store = useStore();
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
const loading = ref(false);
|
|
|
|
|
const code = computed(() => store.state.limitProduct.code);
|
|
|
|
|
const list = computed(() => store.state.limitProduct.list);
|
|
|
|
@ -98,7 +99,11 @@
|
|
|
|
|
|
|
|
|
|
const refsPicker = ref(null);
|
|
|
|
|
const handleCreate = async () => {
|
|
|
|
|
if (unref(opts).timeRange.length) {
|
|
|
|
|
unref(refsPicker).show();
|
|
|
|
|
} else {
|
|
|
|
|
proxy.$message.error('没有时间段无法添加商品');
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const handlePick = async (rows) => {
|
|
|
|
|
loading.value = true;
|
|
|
|
|