Commit 89be6161 authored by shenshaokai's avatar shenshaokai

fix: 修改物料审核流程规则-获取物料流程规则配置的逻辑

parent 0daea864
......@@ -79,9 +79,10 @@ const Add = () => {
if (code !== 1000) {
return;
}
if (data.isDefault === 1) {
getProcessBaseList({ processType: data.baseProcess?.processType })
}
// 产品说,默认和非默认都可以修改 时间 2022/11/08
// if (data.isDefault === 1) {
getProcessBaseList({ processType: data.baseProcess?.processType })
// }
const listData = await getProductPlatformMaterialProcessMemberPage({ processId: id } as any);
setInitialValue({
...data,
......@@ -110,15 +111,15 @@ const Add = () => {
const handleSubmit = async (values: SubmitDataType) => {
if (values.isDefault && isEdit) {
const params: any = {
processId: values.baseProcessId,
processId: values.baseProcessId,
}
postProductPlatformMaterialProcessSaveDefault(params).then(res => {
if (res.code !== 1000) {
setLoading?.(false)
return
}
postProductPlatformMaterialProcessSaveDefault(params).then(res => {
if (res.code !== 1000) {
setLoading?.(false)
return
}
history.goBack()
})
history.goBack()
})
} else {
const defaultPostData = {
...values,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment