Ver código fonte

发送明细列表页面增加类型判断

jbb 2 anos atrás
pai
commit
30ca719027

+ 6 - 2
src/views/shipment-details/referOrderDataModal.vue

@@ -441,7 +441,7 @@ export default {
   // props: {},
 
   created() {
-    this.getOrderList()
+    // this.getOrderList()
   },
   methods: {
     // 参照订单数据 查询
@@ -497,8 +497,12 @@ export default {
     },
 
     searchQuery() {
-      this.queryParam.pageNo = '';
+      if(this.queryParam.flourOrGarment === ''){
+        this.$message.error('请选择查询类型!');
+      }else {
+           this.queryParam.pageNo = '';
       this.getOrderList();
+      }
     },
 
     // 重置

+ 19 - 2
src/views/shipment-details/shipmentList.vue

@@ -60,6 +60,17 @@
                   </a-select>
                 </a-form-item>
               </a-col>
+
+              <a-col :md="6" :sm="8">
+                <a-form-model-item label="类型">
+                  <a-select v-model="queryParam.flourOrGarment">
+                    <a-select-option value="">请选择</a-select-option>
+                    <a-select-option value="1">成衣</a-select-option>
+                    <a-select-option value="0">面辅料</a-select-option>
+                  </a-select>
+                </a-form-model-item>
+              </a-col>
+
             </template>
 
             <a-col :md="6" :sm="8">
@@ -496,6 +507,7 @@ export default {
         salesman: '',
         itemNumber: '', // 款号
         refer: '',
+        flourOrGarment: '', //类型
         pageNo: '' // 点击的页数
       },
 
@@ -509,7 +521,7 @@ export default {
     }
   },
   created() {
-    this.getShipmentList() // 渲染 发运明细列表
+    // this.getShipmentList() // 渲染 发运明细列表
   },
   methods: {
     // 分页查询 发运明细
@@ -557,6 +569,7 @@ export default {
         })
       }
     },
+
     //  维护款号成分
     itemNumberElement(record) {
       this.$refs.itemNumEleModal.itemNumEleModVis = true
@@ -704,8 +717,12 @@ export default {
     },
 
     searchQuery() {
+      if(this.queryParam.flourOrGarment === ''){
+       this.$message.error('请选择查询类型!');
+      }else {
       this.queryParam.pageNo = ''
-      this.getShipmentList()
+      this.getShipmentList()        
+      }
     },
 
     searchReset() {