diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue index f5745626b..b89fe91d3 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue @@ -104,9 +104,11 @@ const openFormByCreate = async ( data ) => { // 设置计划到货时间 let beginTime = data['endTime'] - let deliveryDate = formatDate(data['deliveryDate'],'YYYY-MM-DD') - planArriveTimeStr.value = deliveryDate + ' '+ beginTime+":00" - setV['planArriveTime']= new Date(planArriveTimeStr.value).valueOf(); + if(data['deliveryDate']){ + let deliveryDate = formatDate(data['deliveryDate'],'YYYY-MM-DD') + planArriveTimeStr.value = deliveryDate + ' '+ beginTime+":00" + setV['planArriveTime']= new Date(planArriveTimeStr.value).valueOf(); + } formRef.value.open('create', null) // 根据供应商代码获取联系人信息