Commit f4688db1 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 商品名称重复提交按钮异常

parent 5d08a772
...@@ -292,8 +292,9 @@ const AddProducts: React.FC<{}> = (props) => { ...@@ -292,8 +292,9 @@ const AddProducts: React.FC<{}> = (props) => {
PublicApi.postProductCommoditySaveOrUpdateCommodity(_params).then(res => { PublicApi.postProductCommoditySaveOrUpdateCommodity(_params).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
setIsEnableCheck(false) setIsEnableCheck(false)
// setIsDisableSaveBtn(false)
setReponseId(res.data) setReponseId(res.data)
} else {
setIsDisableSaveBtn(false)
} }
}) })
}).then(e => { }).then(e => {
......
...@@ -7,16 +7,14 @@ import { ...@@ -7,16 +7,14 @@ import {
MinusOutlined, MinusOutlined,
} from '@ant-design/icons' } from '@ant-design/icons'
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import {
GetProductCustomerGetCustomerCategoryTreeResponse,
GetManageAreaAllResponse
} from '@/services';
import { inject, observer } from 'mobx-react' import { inject, observer } from 'mobx-react'
// import { IProductModule } from '@/module/productModule' // import { IProductModule } from '@/module/productModule'
// import { IStore } from '@/store'; // import { IStore } from '@/store';
import { store } from '@/store' import { store } from '@/store'
import { validatorByte } from '@/utils/regExp'; import { validatorByte } from '@/utils/regExp';
import { GetProductCustomerGetCustomerCategoryTreeResponse } from '@/services/ProductApi';
import { GetManageAreaAllResponse } from '@/services/PassApi';
const { Option } = Select const { Option } = Select
const layout = { const layout = {
...@@ -66,7 +64,7 @@ const BasicInfoForm: React.FC<Iprops> = (props) => { ...@@ -66,7 +64,7 @@ const BasicInfoForm: React.FC<Iprops> = (props) => {
productInfoByEdit, productInfoByEdit,
getBasicFormParamsByEdit, getBasicFormParamsByEdit,
setAttributeLists, setAttributeLists,
setProductName, setProductName,
setSelectCategoryId, setSelectCategoryId,
setSelectBrandId, setSelectBrandId,
} = ProductStore } = ProductStore
......
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