|
|
|
@ -66,7 +66,7 @@ const open = async (val, id, index) => {
|
|
|
|
|
item.owner == e.owner ? (e.id = item.id) : undefined
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
dialogVisible.value = true
|
|
|
|
|
dialogTitle.value = t('设置联合工时')
|
|
|
|
|
}
|
|
|
|
@ -90,6 +90,17 @@ const submitForm = async () => {
|
|
|
|
|
message.error('请输入全部员工预计工时')
|
|
|
|
|
return // 立即返回,阻止后续代码执行
|
|
|
|
|
}
|
|
|
|
|
const allamount = ref(0)
|
|
|
|
|
formData.value.ratioSettingss.forEach((item) => {
|
|
|
|
|
item.ratio = Number(item.ratio)
|
|
|
|
|
allamount.value += item.ratio
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if (allamount.value !== 100) {
|
|
|
|
|
message.error('全部员工占比之和必须等于100%')
|
|
|
|
|
return // 立即返回,阻止后续代码执行
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// console.log(formData.value.ratioSettingss, 'formData.value.ratioResults')
|
|
|
|
|
// // 提交请求
|
|
|
|
|
formLoading.value = true
|
|
|
|
|