Parcourir la source

预装箱单参照数据增加筛选条件

jbb il y a 2 ans
Parent
commit
0f236451c6
1 fichiers modifiés avec 38 ajouts et 5 suppressions
  1. 38 5
      src/views/advance-packingList/referShipmentDetailsModal.vue

+ 38 - 5
src/views/advance-packingList/referShipmentDetailsModal.vue

@@ -37,6 +37,31 @@
                </a-select>
               </a-form-item>
             </a-col>
+            <template v-if="toggleSearchStatus">
+              <a-col :md="6" :sm="8">
+               <a-form-item label="Po">
+                 <a-input placeholder="请输入Po" v-model="queryParam.smallPo"></a-input>
+               </a-form-item>
+              </a-col>
+              <a-col :md="6" :sm="8">
+               <a-form-item label="分销点">
+                 <a-input placeholder="请输入分销点" v-model="queryParam.distributionPoint"></a-input>
+               </a-form-item>
+              </a-col>
+              <a-col :md="6" :sm="8">
+               <a-form-item label="预发货日期">
+                 <a-range-picker
+                  :placeholder="['开始时间', '结束时间']"
+                  format="YYYY-MM-DD"
+                  style="width: 100%"
+                  v-model="preDeliveryDate"
+                  @change="onDateChange"
+                />
+               </a-form-item>
+              </a-col>
+
+            </template>
+
 
             <a-col :md="6" :sm="8">
               <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
@@ -89,6 +114,7 @@ export default {
       selectedRowKeys: [], // 勾选行
       selectedRows: {}, // 勾选项
       loading: false, // 表格加载
+      preDeliveryDate: [], //预发货日期
       // 表头
       columns: [
         {
@@ -273,6 +299,10 @@ export default {
         documentNo: '',
         customer: '',
         status:'',
+        smallPo:'',
+        distributionPoint:'',
+        startDate:'',
+        endDate:'',
         pageNo: ''
       },
       // 分页
@@ -343,10 +373,8 @@ export default {
     },
     // 重置
     searchReset() {
-      this.queryParam.documentNo = ''
-      this.queryParam.customer = ''
-      this.queryParam.status = ''
-      this.queryParam.pageNo = ''
+      this.queryParam = {}
+      this.preDeliveryDate = []
       this.getShipData()
     },
 
@@ -356,6 +384,7 @@ export default {
       this.selectedRowKeys = []
       this.data = []
       this.queryParam = {}
+      this.preDeliveryDate = []
       this.getShipData()
     },
     handleCancel() {
@@ -373,7 +402,11 @@ export default {
     handleTableChange(pagination, filters, sorter) {
       this.queryParam.pageNo = pagination.current
       this.getShipData()
-    }
+    },
+    onDateChange(value, dateString) {
+      this.queryParam.startDate = dateString[0]
+      this.queryParam.endDate = dateString[1]
+    },
   },
   computed: {
     // 选中项