提交 594d095b authored 作者: 钟是志's avatar 钟是志

心理健康咨询预约填报 参数修改

上级 dd89de67
......@@ -15,19 +15,14 @@ const must = (
color: '#FF5350',
marginLeft: 5,
marginRight: 5,
}}
>
}}>
*
</span>
);
// 检查是否启用表单校验
const checkNeedFormValidateFieldsAndScroll = ({
btns,
btnValue,
}) => {
let btnInfo = btns.find(g => g.value + '' === btnValue + '');
const checkNeedFormValidateFieldsAndScroll = ({ btns, btnValue }) => {
let btnInfo = btns.find((g) => g.value + '' === btnValue + '');
let checkSumbitInfo = true;
if (btnInfo && btnInfo.isValidateForm === false) {
checkSumbitInfo = false; // 23425 学生事务/学生违纪管理/违纪上报/审核,2013010255 学生处干事选择驳回 这些字段不用填
......@@ -36,11 +31,8 @@ const checkNeedFormValidateFieldsAndScroll = ({
};
// 校验是否该按钮需要填写审批意见
const checkNeedWriteAuditInfo = ({
btns,
btnValue,
}) => {
let btnInfo = btns.find(g => g.value + '' === btnValue + '');
const checkNeedWriteAuditInfo = ({ btns, btnValue }) => {
let btnInfo = btns.find((g) => g.value + '' === btnValue + '');
let needWrite = false;
if (btnInfo && isJSON(btnInfo?.documentation)) {
let documentation = JSON.parse(btnInfo.documentation);
......@@ -51,7 +43,6 @@ const checkNeedWriteAuditInfo = ({
return needWrite;
};
const submitValues = ({
values,
isCloseFlowPath,
......@@ -70,7 +61,7 @@ const submitValues = ({
dispatch,
that,
handleUser,
}) => {
}) => {
if (isCloseFlowPath) {
} else if (!radiovalue && isSecond) {
openToast('success', '请选择紧急度');
......@@ -105,13 +96,25 @@ const submitValues = ({
apiData: data,
taskFormKey: data.taskFormKey,
userNowInfo: userInfo,
buttonInfo: btns && btns.length ? btns.find(x => x.value === btnValue) : {},
buttonInfo: btns && btns.length ? btns.find((x) => x.value === btnValue) : {},
token: getToken(),
};
payload = callbackSubmitData(payload);
beforeAuditSubmit(payload)
.then(resParams => {
/**
* 29943 北电]违纪-违纪上报辅导员,驳回修改的处分不生效
*
* */
const taskInfo = that.state?.data?.taskInfo;
if(Array.isArray(taskInfo) &&
taskInfo.length >= 2 &&
taskInfo[0].taskDefKey &&
taskInfo[0].taskDefKey === taskInfo[taskInfo.length - 1].taskDefKey){
console.log('驳回到发起人了');
}
beforeAuditSubmit(payload).then((resParams) => {
if (!resParams) {
that.setState({
isSumbitLoading: false,
......@@ -121,7 +124,7 @@ const submitValues = ({
dispatch({
type: 'affair/getExamineProcess',
payload: resParams,
callback: val => {
callback: (val) => {
if (val) {
// that.getInit();
that.setState({
......@@ -148,8 +151,6 @@ const submitValues = ({
});
}
});
},
);
};
......
/**
* 审核回调函数.callbackSubmitInfoZhiYong;
* */
export function callbackSubmitData(infoData) {
// console.log(infoData);
if (window.callbackSubmitInfoZhiYong && typeof window.callbackSubmitInfoZhiYong === 'function') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论