|
@@ -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
|