Commit ab47bcc5 authored by GuanHua's avatar GuanHua
parents 5e98e174 eefcd27a
......@@ -371,7 +371,7 @@ const Products: React.FC<{}> = () => {
memberRoleId: getAuth().memberRoleId
}).then(res => {
if(res.data?.id){
setShopId(res.data.id)
setShopId(res.data)
setCheckedValues(values)
}else{
message.error('您还还未创建店铺,请先创建店铺!')
......@@ -407,7 +407,7 @@ const Products: React.FC<{}> = () => {
if(isUp) {
if(checkedValues.length > 0){
const fn = isBatch ? PublicApi.postProductCommodityPublishCommodityBatch : PublicApi.postProductCommodityPublishCommodity
fn(isBatch ? {storeId: shopId, shopList: checkedValues, idList: currentRef.current} : {storeId: shopId, ...params}).then(res => {
fn(isBatch ? {storeId: shopId['id'], storeName: shopId['name'], shopList: checkedValues, idList: currentRef.current} : {storeId: shopId['id'], storeName: shopId['name'], ...params}).then(res => {
setUpDownModal(false)
ref.current.reload()
setIsDisabledOKbtn(false)
......
......@@ -219,7 +219,7 @@ const ApprovedOrderModal:React.FC<ApprovedOrderModalProps> = (props) => {
}
})
// 上级审核不通过
if(data && (data.innerStatusName === '提交审核不通过')) {
if(data && (data.innerStatusName === '提交审核不通过' || data.innerStatusName === '审核不通过(一级)' || data.innerStatusName === '审核不通过(二级)')) {
ctx.setFieldValue("agree", 0)
ctx.setFieldState("agree", state => {
state.props["x-component-props"] = {
......
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