فهرست منبع

feat: 库存台账搜索组件新增结束时间字段并优化搜索逻辑

yusheng 9 ماه پیش
والد
کامیت
676f512ba3
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      src/views/warehouseManagement/stockLedger/components/item-search.vue

+ 5 - 2
src/views/warehouseManagement/stockLedger/components/item-search.vue

@@ -204,6 +204,7 @@
 <script>
   import { getWarehouseList } from '@/api/classifyManage/itemInformation';
   import warehouseDefinition from '@/api/warehouseManagement/warehouseDefinition';
+  import en from '@/i18n/lang/en';
   export default {
     data() {
       // 默认表单数据
@@ -224,7 +225,8 @@
         keyWord: '',
         deptIds: '',
         warehouseId: '',
-        startTime: ''
+        startTime: '',
+        endTime: ''
       };
       return {
         // 表单数据
@@ -307,7 +309,8 @@
       },
       /* 搜索 */
       search() {
-        console.log(this.current);
+        this.params.endTime = this.params.startTime;
+
         this.$emit('search', {
           ...this.params
         });