Commit 23fda018 authored by 前端-许冠华's avatar 前端-许冠华

Merge branch 'fix-jinfa-0518' into 'jinfa-0518'

fix: 修复编辑、查看物料编码调用获取物料编码接口bug See merge request project/jinfa-platform!304
parents 0437e922 9113071f
......@@ -566,7 +566,7 @@ const MaterialAdd: React.FC<IProps> = (props) => {
useAsyncSelect('chargeUserId', fetchUserPage, ["name", "userId"])
/* 获取物料编码 */
onFormInit$().subscribe(async () => {
if (id) {
if (!id) {
const { data } = await getProductGoodsGetGoodsNo()
formActions.setFieldValue('code', data)
}
......
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