Browse Source

显示不下

hella_online_20240829
wangyufei 4 months ago
parent
commit
b9e0218d24
  1. 13
      src/components/Search/src/Search.vue
  2. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  3. 1
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

13
src/components/Search/src/Search.vue

@ -57,7 +57,12 @@ const props = defineProps({
type: Array, type: Array,
required: false, required: false,
default: [] default: []
} },
formClassNames:{
type: Array,
required: false,
default: []
},
}) })
const emit = defineEmits(['search', 'reset','onInput','onChange','searchTableSuccess']) const emit = defineEmits(['search', 'reset','onInput','onChange','searchTableSuccess'])
@ -280,6 +285,7 @@ defineExpose({setFormValues}) // 提供 open 方法,用于打开弹窗
:label-width="labelWidth" :label-width="labelWidth"
:schema="newSchema" :schema="newSchema"
class="-mb-15px search" class="-mb-15px search"
:class="formClassNames"
hide-required-asterisk hide-required-asterisk
@register="register" @register="register"
@onInput="onInput" @onInput="onInput"
@ -338,6 +344,11 @@ defineExpose({setFormValues}) // 提供 open 方法,用于打开弹窗
margin-right: 1%; margin-right: 1%;
width: 20%; width: 20%;
} }
.dateSearch ::v-deep(.el-form-item) {
margin-right: 1%;
min-width: 20%;
width: auto;
}
.search ::v-deep(.el-form-item:nth-last-child(1)) { .search ::v-deep(.el-form-item:nth-last-child(1)) {
margin-right: 0px; margin-right: 0px;
width: auto; width: auto;

2
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -1,7 +1,7 @@
<template> <template>
<ContentWrap v-if="visibleSearch"> <ContentWrap v-if="visibleSearch">
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<Search ref="seachRef" :schema="[...PurchasePlanMain.allSchemas.searchSchema,...PurchasePlanDetail.allSchemas.searchSchema]" @search="searchList" @reset="searchList" @searchTableSuccess="searchQueryTableSuccess" @onChange="onSearchChange" @foldUpClick="foldUpClick"/> <Search ref="seachRef" :schema="[...PurchasePlanMain.allSchemas.searchSchema,...PurchasePlanDetail.allSchemas.searchSchema]" :formClassNames="['dateSearch']" @search="searchList" @reset="searchList" @searchTableSuccess="searchQueryTableSuccess" @onChange="onSearchChange" @foldUpClick="foldUpClick"/>
</ContentWrap> </ContentWrap>
<!-- 列表头部 --> <!-- 列表头部 -->

1
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

@ -162,7 +162,6 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width: '100%'},
type: 'date', type: 'date',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',

Loading…
Cancel
Save