You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
const [feedBackForm] = Form.useForm();
<Steps
progressDot
current={listObj?.nodeHis.length - (isFinished ? 1 : 2)}
direction="vertical"
items={listObj?.nodeHis.map((item, index) => {
return {
title: [${index + 1}]${item.taskName},
subTitle: ${item.assigneeName}提交,
subTitle: item.status == '已处理' && (
{item.assigneeName}提交
{parseDate(item.endTime)}
{/* 如果是未完成的工单并且历史节点的处理人是当前登陆用户,则该节点展示新增反馈按钮 */}
{!isFinished && userInfo.userName == item.assigneeId && (
<ModalForm
title="新增反馈"
trigger={feedBackBtn}
form={feedBackForm}
layout="horizontal"
onFinish={async (values) => {
console.log(values, '新增反馈 values');
const data = {
orderId: item.orderId,
nodeId: item.nodeId,
taskId: item.taskId,
...values,
};
console.log(data, '新增反馈 submit data');
const res = await addFeedBack(data);
if (res) {
message.success('提交成功');
feedBackForm.resetFields();
return true; // 关闭弹窗
}
}}
modalProps={{
afterClose: function () {
feedBackForm.resetFields();
},
}}
{item.variables?.components?.map((com) => {
// 新增反馈的表单项只能是文本框、附件、标签,与节点关联的表单组件取交集
if (['textarea', 'upload', 'checkbox'].includes(com.type)) {
return componentMap[com.type]({ item: com, values: {}, width: '', page: 'detail' });
}
})}
)}
),
};
})}
/>
Beta Was this translation helpful? Give feedback.
All reactions