tangjie 2026-08-05 19:34:40 +08:00
parent 8458ca95ed
commit 4b9393b355
2 changed files with 6 additions and 5 deletions

View File

@ -75,8 +75,8 @@ const ControlContent = ({ readOnly, ...props }) => {
setRows(next); setRows(next);
}; };
const isDispatched = const isDispatched = processControl?.reviewerSignatureTaskStatus !== "completed";
processControl?.reviewerSignatureTaskStatus !== "non_dispatched"; const isOrgHeadSignature = processControl?.orgHeadSignatureTaskStatus !== "completed";
// 过程控制签字提交confirm // 过程控制签字提交confirm
const handleConfirm = async (resultCode) => { const handleConfirm = async (resultCode) => {
@ -330,7 +330,7 @@ const ControlContent = ({ readOnly, ...props }) => {
size="small" size="small"
allowClear allowClear
style={{ width: 180 }} style={{ width: 180 }}
disabled={isDispatched || readOnly} disabled={isDispatched || isOrgHeadSignature || readOnly}
value={selectPeople?.value} value={selectPeople?.value}
onChange={(value, option) => { onChange={(value, option) => {
setSelectPeople(option); setSelectPeople(option);
@ -346,9 +346,9 @@ const ControlContent = ({ readOnly, ...props }) => {
loading={ loading={
props.safetyEvalBusiness?.processControlAssignLoading props.safetyEvalBusiness?.processControlAssignLoading
} }
disabled={isDispatched || !selectPeople?.value || readOnly} disabled={isDispatched || isOrgHeadSignature || !selectPeople?.value || readOnly}
> >
{isDispatched ? "已下发APP签字" : "下发APP签字"} {isDispatched ? "过程控制审核暂未完成" : isOrgHeadSignature ? "已下发APP签字" : "下发APP签字"}
</Button> </Button>
</Flex> </Flex>
</Flex> </Flex>

View File

@ -289,6 +289,7 @@ const SurveyContent = ({ readOnly, ...props }) => {
message.warning("文件上传中,请稍后再保存"); message.warning("文件上传中,请稍后再保存");
return; return;
} }
if(!validateSurveyStep()) return;
const payload = []; const payload = [];
for (const s of STAGES) { for (const s of STAGES) {
const fileList = values[s.key] || []; const fileList = values[s.key] || [];