Procházet zdrojové kódy

发运明细-新增问题

jbb před 2 roky
rodič
revize
4183919d95
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  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