|
|
|
@ -121,7 +121,7 @@
|
|
|
|
|
@selection="selectionChange" |
|
|
|
|
> |
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<template v-if="slotProps.scope.column.label === '操作'"> |
|
|
|
|
<template v-if="item.name !== 1 && slotProps.scope.column.label === '操作'"> |
|
|
|
|
<el-text @click="() => handleComputedPrice(slotProps.scope)">计算费用</el-text> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
@ -226,6 +226,8 @@ import {
|
|
|
|
|
postReal, |
|
|
|
|
postOrderInfoListExport, |
|
|
|
|
postCreateReconciliationOrder, |
|
|
|
|
postCreateFinishWaybillId, |
|
|
|
|
postCreateReconciliationwWaybillId, |
|
|
|
|
postCalculateRealCostByWaybillId |
|
|
|
|
} from '@/api/finance/ReconciliationDepositSlip'; |
|
|
|
|
import { |
|
|
|
@ -601,10 +603,35 @@ const handleConfirm = async () => {
|
|
|
|
|
setNodeHeight(_node, details.popUpShow.confirmVisited ? '' : '500px', true); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const handleJiesuan= async () => { |
|
|
|
|
/** toB 批量结算完成 */ |
|
|
|
|
const handleJiesuan = async () => { |
|
|
|
|
if (details.selectionList.length === 0) return ElMessage.warning('请选择需要确认的数据'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ElMessageBox.confirm('是否确认对账单?', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}).then(async () => { |
|
|
|
|
try { |
|
|
|
|
details.loadingObj.pageLoading = true; |
|
|
|
|
|
|
|
|
|
const submitData = { |
|
|
|
|
waybillIds: details.selectionList.map(val => val.waybillId), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const res = await postCreateFinishWaybillId(submitData); |
|
|
|
|
const { code, msg } = res.data; |
|
|
|
|
|
|
|
|
|
if (code !== 200) return msg && ElMessage.warning(msg); |
|
|
|
|
if (msg) ElMessage.success(msg); |
|
|
|
|
} catch (error) { |
|
|
|
|
console.log('error :>> ', error); |
|
|
|
|
} finally { |
|
|
|
|
onLoad(); |
|
|
|
|
details.loadingObj.pageLoading = false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const handleSubmitConfrim = () => { |
|
|
|
|
ElMessageBox.confirm('是否确认对账单?', '提示', { |
|
|
|
|