소스 검색

发运明细-新增问题

jbb 2 년 전
부모
커밋
4183919d95
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/views/shipment-details/shipmentList.vue

+ 3 - 3
src/views/shipment-details/shipmentList.vue

@@ -1031,13 +1031,13 @@ export default {
     },
 
     //关闭新增弹窗
-    async closeAdd(data,id,range){   
+    async closeAdd(data,id,range){  
       this.queryParam ={}
       this.queryParam.flourOrGarment = data
       this.queryParam.id = id
       this.preDeliveryDate=range
-      this.queryParam.preDeliveryDateB = this.preDeliveryDate[0].format('YYYY-MM-DD'); 
-      this.queryParam.preDeliveryDateE = this.preDeliveryDate[1].format('YYYY-MM-DD'); 
+      this.queryParam.preDeliveryDateB =(this.preDeliveryDate[0]&&this.preDeliveryDate[0]!=='')? this.preDeliveryDate[0].format('YYYY-MM-DD'):''; 
+      this.queryParam.preDeliveryDateE =(this.preDeliveryDate[1]&&this.preDeliveryDate[1]!=='')? this.preDeliveryDate[1].format('YYYY-MM-DD'):''; 
       //其他地方使用
       this.returnId = id
       this.returnFlourOrGarment = data