250108
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
<a-radio-button :value="2">VIP卡发票</a-radio-button>
|
||||
<a-radio-button :value="3">IC卡发票</a-radio-button>
|
||||
</a-radio-group>
|
||||
<a-select placeholder="开票状态" v-model:value="where.isOpen" @change="search" allow-clear>
|
||||
<a-select-option :value="1">已开</a-select-option>
|
||||
<a-select-option :value="2">未开</a-select-option>
|
||||
</a-select>
|
||||
<a-input-search
|
||||
allow-clear
|
||||
placeholder="订单号"
|
||||
@@ -19,38 +23,41 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { watch } from 'vue';
|
||||
import useSearch from '@/utils/use-search';
|
||||
import { ThinkInvoiceParam } from '@/api/think/thinkInvoice/model';
|
||||
import { watch } from "vue";
|
||||
import useSearch from "@/utils/use-search";
|
||||
import { ThinkInvoiceParam } from "@/api/think/thinkInvoice/model";
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
// 选中的角色
|
||||
selection?: [];
|
||||
}>(),
|
||||
{}
|
||||
);
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
// 选中的角色
|
||||
selection?: [];
|
||||
}>(),
|
||||
{}
|
||||
);
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'search', where?: ThinkInvoiceParam): void;
|
||||
(e: 'add'): void;
|
||||
(e: 'remove'): void;
|
||||
(e: 'batchMove'): void;
|
||||
}>();
|
||||
const emit = defineEmits<{
|
||||
(e: "search", where?: ThinkInvoiceParam): void;
|
||||
(e: "add"): void;
|
||||
(e: "remove"): void;
|
||||
(e: "batchMove"): void;
|
||||
}>();
|
||||
|
||||
// 表单数据
|
||||
const { where } = useSearch<ThinkInvoiceParam>({
|
||||
oid: undefined,
|
||||
keywords: undefined
|
||||
});
|
||||
// 表单数据
|
||||
const { where } = useSearch<ThinkInvoiceParam>({
|
||||
oid: undefined,
|
||||
itype: undefined,
|
||||
isOpen: undefined,
|
||||
keywords: undefined
|
||||
});
|
||||
|
||||
// 新增
|
||||
const search = () => {
|
||||
emit('search', where);
|
||||
};
|
||||
// 新增
|
||||
const search = () => {
|
||||
emit("search", where);
|
||||
};
|
||||
|
||||
watch(
|
||||
() => props.selection,
|
||||
() => {}
|
||||
);
|
||||
watch(
|
||||
() => props.selection,
|
||||
() => {
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user