|
|
@ -205,10 +205,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
getSearchTableData(val[0]['number'],formField,searchField) |
|
|
|
|
|
|
|
// 设置计划到货时间 |
|
|
|
let beginTime = val[0]['endTime'] |
|
|
|
let deliveryDate = formatDate(val[0]['deliveryDate'],'YYYY-MM-DD') |
|
|
|
planArriveTimeStr.value = deliveryDate + ' '+ beginTime+":00" |
|
|
|
setV['planArriveTime']= new Date(planArriveTimeStr.value).valueOf(); |
|
|
|
|
|
|
|
if(val[0]['deliveryDate']){ |
|
|
|
let beginTime = val[0]['endTime'] || '00:00' |
|
|
|
let deliveryDate = formatDate(val[0]['deliveryDate'],'YYYY-MM-DD') |
|
|
|
planArriveTimeStr.value = deliveryDate + ' '+ beginTime+":00" |
|
|
|
setV['planArriveTime']= new Date(planArriveTimeStr.value).valueOf(); |
|
|
|
} |
|
|
|
// 清空子表数据 |
|
|
|
tableData.value = [] |
|
|
|
} |
|
|
@ -280,7 +283,7 @@ const submitForm = async (formType, data) => { |
|
|
|
let planArriveStr = formatDate(data.planArriveTime); |
|
|
|
if(planArriveStr > planArriveTimeStr.value){ |
|
|
|
let confirmFlag = false; |
|
|
|
await message.confirm(t('ts.计划到货时间大于要货计划送达日期是否继续?')).then(() => { |
|
|
|
await message.confirm(`${t('ts.计划到货时间大于')}${planArriveTimeStr.value}${t('ts.是否继续?')}`).then(() => { |
|
|
|
console.log("选择了OK") |
|
|
|
//选择OK |
|
|
|
}).catch(() => { |
|
|
|