Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
ff9a4444
提交
ff9a4444
authored
7月 29, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:库存必填,规格图片回显问题
上级
8a64ef79
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
29 行增加
和
10 行删除
+29
-10
systemManageType.ts
src/api/interface/systemManageType.ts
+2
-0
systemManage.ts
src/api/modules/systemManage.ts
+4
-0
index.tsx
...sAddOrEditOrDetail/components/skuAddOrEditModal/index.tsx
+11
-9
index.tsx
src/pages/systemManage/companyManage/companyDetail/index.tsx
+12
-1
没有找到文件。
src/api/interface/systemManageType.ts
浏览文件 @
ff9a4444
...
@@ -184,6 +184,8 @@ export type listCompanyRemove = InterFunction<
...
@@ -184,6 +184,8 @@ export type listCompanyRemove = InterFunction<
},
},
NonNullable
<
unknown
>
NonNullable
<
unknown
>
>
;
>
;
//单位-详情
export
type
getCompanyInfoByIdType
=
InterFunction
<
{
id
:
number
},
any
>
;
//账号权限-列表
//账号权限-列表
export
type
listRoleInfoPageType
=
InterItemFunction
<
export
type
listRoleInfoPageType
=
InterItemFunction
<
{
numberOrName
?:
string
},
{
numberOrName
?:
string
},
...
...
src/api/modules/systemManage.ts
浏览文件 @
ff9a4444
import
{
import
{
deleteRoleInfoType
,
deleteRoleInfoType
,
getCompanyInfoByIdType
,
getSecondDistrictInfo
,
getSecondDistrictInfo
,
insertBAccountType
,
insertBAccountType
,
insertRoleInfoType
,
insertRoleInfoType
,
...
@@ -58,6 +59,9 @@ export class SystemManageAPI {
...
@@ -58,6 +59,9 @@ export class SystemManageAPI {
// 单位-删除
// 单位-删除
static
listCompanyRemove
:
listCompanyRemove
=
(
params
)
=>
static
listCompanyRemove
:
listCompanyRemove
=
(
params
)
=>
axios
.
get
(
'/userapp/company/remove'
,
{
params
});
axios
.
get
(
'/userapp/company/remove'
,
{
params
});
//单位-详情
static
getCompanyInfoById
:
getCompanyInfoByIdType
=
(
params
)
=>
axios
.
get
(
'/userapp/company/getCompanyInfoById'
,
{
params
});
// 单位-区域
// 单位-区域
static
getSecondDistrictInfo
:
getSecondDistrictInfo
=
(
params
)
=>
static
getSecondDistrictInfo
:
getSecondDistrictInfo
=
(
params
)
=>
...
...
src/pages/mallManage/mallGoods/goodsAddOrEditOrDetail/components/skuAddOrEditModal/index.tsx
浏览文件 @
ff9a4444
...
@@ -70,7 +70,7 @@ const SkuAddOrEditModal: FC<ModalProps & selfProps> = ({
...
@@ -70,7 +70,7 @@ const SkuAddOrEditModal: FC<ModalProps & selfProps> = ({
return
Promise
.
reject
(
new
Error
(
'请输入正整数'
));
return
Promise
.
reject
(
new
Error
(
'请输入正整数'
));
}
}
}
else
{
}
else
{
return
Promise
.
re
solve
(
);
return
Promise
.
re
ject
(
new
Error
(
'请输入库存'
)
);
}
}
};
};
...
@@ -314,14 +314,16 @@ const SkuAddOrEditModal: FC<ModalProps & selfProps> = ({
...
@@ -314,14 +314,16 @@ const SkuAddOrEditModal: FC<ModalProps & selfProps> = ({
setTableData
(
setTableData
(
currentSku
.
goodsSpecValuesList
.
map
((
v
:
any
)
=>
({
currentSku
.
goodsSpecValuesList
.
map
((
v
:
any
)
=>
({
...
v
,
...
v
,
fileList
:
[
fileList
:
v
.
specValueImage
{
?
[
id
:
Math
.
random
(),
{
uid
:
Math
.
random
(),
id
:
Math
.
random
(),
url
:
v
.
specValueImage
,
uid
:
Math
.
random
(),
name
:
'specValueImage'
,
url
:
v
.
specValueImage
,
},
name
:
'specValueImage'
,
],
},
]
:
[],
})),
})),
);
);
const
goodsSpecValuesObj
=
currentSku
.
goodsSpecValuesList
.
reduce
((
pre
:
any
,
cur
:
any
)
=>
{
const
goodsSpecValuesObj
=
currentSku
.
goodsSpecValuesList
.
reduce
((
pre
:
any
,
cur
:
any
)
=>
{
...
...
src/pages/systemManage/companyManage/companyDetail/index.tsx
浏览文件 @
ff9a4444
import
{
useSearchParams
}
from
'react-router-dom'
;
import
{
useSearchParams
}
from
'react-router-dom'
;
import
{
useEffect
,
useState
}
from
'react'
;
import
{
useEffect
,
useState
}
from
'react'
;
import
{
SystemManageAPI
}
from
'~/api'
;
const
CompanyDetail
=
()
=>
{
const
CompanyDetail
=
()
=>
{
const
[
searchParams
]
=
useSearchParams
();
const
[
searchParams
]
=
useSearchParams
();
const
[
companyId
,
setCompanyId
]
=
useState
<
number
>
(
-
1
);
const
[
companyId
,
setCompanyId
]
=
useState
<
number
>
(
-
1
);
//单位详情
const
getCompanyDetailInfo
=
(
id
:
number
)
=>
{
SystemManageAPI
.
getCompanyInfoById
({
id
}).
then
(({
result
})
=>
{});
};
useEffect
(()
=>
{
useEffect
(()
=>
{
setCompanyId
(
Number
(
searchParams
.
get
(
'id'
)));
setCompanyId
(
Number
(
searchParams
.
get
(
'id'
)));
getCompanyDetailInfo
(
Number
(
searchParams
.
get
(
'id'
)));
},
[]);
},
[]);
return
<
div
className=
'company-detail'
>
单位详情
</
div
>;
return
(
<
div
className=
'company-detail'
>
<
div
className=
'company-detail-info'
></
div
>
</
div
>
);
};
};
export
default
CompanyDetail
;
export
default
CompanyDetail
;
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论