浏览代码

发运明细-新增问题

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