Commit af7536b0 authored by shenshaokai's avatar shenshaokai

Merge branch 'jinfa-20221102' into 'jinfa-20221102'

fix: 修改物料审核流程规则-获取物料流程规则配置的逻辑 See merge request project/jinfa-admin!25
parents b62dd558 4255bb31
......@@ -79,9 +79,12 @@ 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 +113,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