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