|
|
|
@ -1105,6 +1105,8 @@ const handleConfirmStartCar = async () => {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const _deliveryType = details.selectionList[0].deliveryType + ''; |
|
|
|
|
|
|
|
|
|
const res = await postTripartiteTransferStartCarsBefore({ |
|
|
|
|
loadId: details.selectionList[0].id, |
|
|
|
|
}); |
|
|
|
@ -1114,12 +1116,13 @@ const handleConfirmStartCar = async () => {
|
|
|
|
|
if (code !== 200 || getObjType(data) !== 'object') return; |
|
|
|
|
|
|
|
|
|
if (!data.loadingNum) return ElMessage.warning('未存在装车数据,无法发车'); |
|
|
|
|
if (!data.unloadNum) return ElMessage.warning('未存在卸车数据,无法发车'); |
|
|
|
|
if (_deliveryType !== '1' && !data.unloadNum) |
|
|
|
|
return ElMessage.warning('未存在卸车数据,无法发车'); |
|
|
|
|
|
|
|
|
|
details.abnormalInfo = data || {}; |
|
|
|
|
|
|
|
|
|
// 装车和卸车数据一致, 正常发车 |
|
|
|
|
if (data.loadingNum <= data.unloadNum) { |
|
|
|
|
if (_deliveryType === '1' || data.loadingNum <= data.unloadNum) { |
|
|
|
|
ElMessageBox.confirm('确认发车吗?', '提示', { |
|
|
|
|
confirmButtonText: '确认', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|