|
|
@@ -1,62 +1,65 @@
|
|
|
<!-- 搜索表单 -->
|
|
|
<template>
|
|
|
- <ele-card :body-style="{ paddingBottom: '8px' }">
|
|
|
- <ProSearch
|
|
|
- :items="formItems"
|
|
|
- ref="searchRef"
|
|
|
- @search="search"
|
|
|
- :initKeys="initKeys"
|
|
|
- :offset="1"
|
|
|
- ></ProSearch>
|
|
|
- </ele-card>
|
|
|
+ <ele-card :body-style="{ paddingBottom: '8px' }">
|
|
|
+ <ProSearch
|
|
|
+ :items="formItems"
|
|
|
+ ref="searchRef"
|
|
|
+ @search="search"
|
|
|
+ :initKeys="initKeys"
|
|
|
+ :offset="1"
|
|
|
+ ></ProSearch>
|
|
|
+ </ele-card>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
- import { reactive, ref, defineEmits } from 'vue';
|
|
|
- import ProSearch from '@/components/CommonPage/ProSearch2.vue';
|
|
|
+ import { reactive, ref, defineEmits } from 'vue';
|
|
|
+ import ProSearch from '@/components/CommonPage/ProSearch2.vue';
|
|
|
|
|
|
- let { proxy } = getCurrentInstance();
|
|
|
- const emit = defineEmits(['search']);
|
|
|
+ const emit = defineEmits(['search']);
|
|
|
|
|
|
- const godownList = ref([]);
|
|
|
- const formItems = computed(() => {
|
|
|
- return [
|
|
|
- {
|
|
|
- type: 'input',
|
|
|
- label: '签收员',
|
|
|
- prop: 'signUserId'
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'daterange',
|
|
|
- label: ' ',
|
|
|
- prop: 'time',
|
|
|
- props: {
|
|
|
- format: 'YYYY-MM-DD',
|
|
|
- valueFormat: 'YYYY-MM-DD',
|
|
|
- onChange: (value) => {
|
|
|
- initKeys.statDateStart = value ? value[0] : '';
|
|
|
- initKeys.statDateEnd = value ? value[1] : '';
|
|
|
- searchRef.value?.setData(initKeys);
|
|
|
- }
|
|
|
- },
|
|
|
- colProps: {
|
|
|
- span: 6
|
|
|
- }
|
|
|
- }
|
|
|
- ];
|
|
|
- });
|
|
|
+ const formItems = computed(() => {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ type: 'input',
|
|
|
+ label: 'ISBN',
|
|
|
+ prop: 'isbn'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'input',
|
|
|
+ label: '操作员',
|
|
|
+ prop: 'createId'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'daterange',
|
|
|
+ label: '创建时间',
|
|
|
+ prop: 'time',
|
|
|
+ props: {
|
|
|
+ format: 'YYYY-MM-DD',
|
|
|
+ valueFormat: 'YYYY-MM-DD',
|
|
|
+ onChange: (value) => {
|
|
|
+ initKeys.createTimeStart = value ? value[0] : '';
|
|
|
+ initKeys.createTimeEnd = value ? value[1] : '';
|
|
|
+ searchRef.value?.setData(initKeys);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ colProps: {
|
|
|
+ span: 6
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ });
|
|
|
|
|
|
- const initKeys = reactive({
|
|
|
- statDateStart: '',
|
|
|
- statDateEnd: '',
|
|
|
- signUserId: ''
|
|
|
- });
|
|
|
+ const initKeys = reactive({
|
|
|
+ createTimeStart: '',
|
|
|
+ createTimeEnd: '',
|
|
|
+ createId: '',
|
|
|
+ isbn: ''
|
|
|
+ });
|
|
|
|
|
|
-
|
|
|
- const searchRef = ref(null);
|
|
|
- /** 搜索 */
|
|
|
- const search = (data) => {
|
|
|
- delete data.time;
|
|
|
- emit('search', { ...data});
|
|
|
- };
|
|
|
+ const searchRef = ref(null);
|
|
|
+ /** 搜索 */
|
|
|
+ const search = (data) => {
|
|
|
+ delete data.time;
|
|
|
+ emit('search', { ...data });
|
|
|
+ };
|
|
|
</script>
|