Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
0ced79cd
提交
0ced79cd
authored
9月 13, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
功能:商城商品添加显示价格字段,商城订单买家信息
上级
4c9774d3
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
45 行增加
和
18 行删除
+45
-18
orderManageType.ts
src/api/interface/orderManageType.ts
+2
-0
index.tsx
...oods/goodsAddOrEditOrDetail/components/baseInfo/index.tsx
+7
-1
index.tsx
...e/productOrder/orderDetail/comp/detailPurchaser/index.tsx
+4
-4
index.tsx
src/pages/orderManage/productOrder/orderList/index.tsx
+32
-13
没有找到文件。
src/api/interface/orderManageType.ts
浏览文件 @
0ced79cd
...
@@ -1123,6 +1123,8 @@ type mallOrderType = {
...
@@ -1123,6 +1123,8 @@ type mallOrderType = {
*/
*/
walletAmount
?:
number
;
walletAmount
?:
number
;
userName
:
string
;
userName
:
string
;
phoneNum
:
string
;
nickname
:
string
;
contractInfoDTO
?:
{
contractInfoDTO
?:
{
id
:
number
;
id
:
number
;
unionId
:
string
;
unionId
:
string
;
...
...
src/pages/mallManage/mallGoods/goodsAddOrEditOrDetail/components/baseInfo/index.tsx
浏览文件 @
0ced79cd
...
@@ -139,7 +139,7 @@ const BaseInfo = forwardRef<any, selfProps>((_props, ref) => {
...
@@ -139,7 +139,7 @@ const BaseInfo = forwardRef<any, selfProps>((_props, ref) => {
labelCol=
{
{
span
:
2
}
}
labelCol=
{
{
span
:
2
}
}
wrapperCol=
{
{
span
:
8
}
}
wrapperCol=
{
{
span
:
8
}
}
form=
{
baseInfoForm
}
form=
{
baseInfoForm
}
initialValues=
{
{
labelShow
:
0
,
shelfStatus
:
1
}
}
initialValues=
{
{
labelShow
:
0
,
shelfStatus
:
1
,
priceShow
:
1
}
}
>
>
<
Form
.
Item
<
Form
.
Item
label=
'商品名称'
label=
'商品名称'
...
@@ -224,6 +224,12 @@ const BaseInfo = forwardRef<any, selfProps>((_props, ref) => {
...
@@ -224,6 +224,12 @@ const BaseInfo = forwardRef<any, selfProps>((_props, ref) => {
<
Select
.
Option
value=
{
0
}
>
下架
</
Select
.
Option
>
<
Select
.
Option
value=
{
0
}
>
下架
</
Select
.
Option
>
</
Select
>
</
Select
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
'显示价格'
name=
'priceShow'
>
<
Radio
.
Group
>
<
Radio
value=
{
1
}
>
显示
</
Radio
>
<
Radio
value=
{
0
}
>
不显示
</
Radio
>
</
Radio
.
Group
>
</
Form
.
Item
>
<
Form
.
Item
label=
'显示标签'
name=
'labelShow'
>
<
Form
.
Item
label=
'显示标签'
name=
'labelShow'
>
<
Radio
.
Group
onChange=
{
labelRadioChange
}
>
<
Radio
.
Group
onChange=
{
labelRadioChange
}
>
<
Radio
value=
{
1
}
>
显示
</
Radio
>
<
Radio
value=
{
1
}
>
显示
</
Radio
>
...
...
src/pages/orderManage/productOrder/orderDetail/comp/detailPurchaser/index.tsx
浏览文件 @
0ced79cd
...
@@ -39,10 +39,10 @@ const DetailPurchaser: React.FC<PropsType> = ({ detail }) => {
...
@@ -39,10 +39,10 @@ const DetailPurchaser: React.FC<PropsType> = ({ detail }) => {
return (
return (
<div className='detail-purchaser detail-half'>
<div className='detail-purchaser detail-half'>
<div className='detail-title'>买家信息</div>
<div className='detail-title'>买家信息</div>
<div className='detail-text'>UID:</div>
<div className='detail-text'>UID:
{detail?.userAccountId}
</div>
<div className='detail-text'>姓名: </div>
<div className='detail-text'>姓名:
{detail?.userName || detail?.nickname}
</div>
<div className='detail-text'>手机号: </div>
<div className='detail-text'>手机号:
{detail?.phoneNum}
</div>
<div className='detail-text'>备注:</div>
<div className='detail-text'>备注:
{detail?.userRemark}
</div>
{detail?.contractInfoDTO ? (
{detail?.contractInfoDTO ? (
<div>
<div>
<div className='detail-title'>合同信息</div>
<div className='detail-title'>合同信息</div>
...
...
src/pages/orderManage/productOrder/orderList/index.tsx
浏览文件 @
0ced79cd
import
{
useEffect
,
useState
}
from
'react'
;
import
{
useEffect
,
useState
}
from
'react'
;
import
SearchBox
from
'~/components/search-box'
;
import
SearchBox
from
'~/components/search-box'
;
import
{
Button
,
Table
,
Image
}
from
'antd'
;
import
{
Button
,
Table
,
Image
,
Tooltip
}
from
'antd'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
import
{
useNavigate
}
from
'react-router-dom'
;
import
{
useNavigate
}
from
'react-router-dom'
;
import
qs
from
'query-string'
;
import
qs
from
'query-string'
;
...
@@ -13,6 +13,7 @@ import ShipmentsOrder from './components/shipmentsOrder';
...
@@ -13,6 +13,7 @@ import ShipmentsOrder from './components/shipmentsOrder';
import
'./index.scss'
;
import
'./index.scss'
;
import
{
filterObjAttr
}
from
'~/utils'
;
import
{
filterObjAttr
}
from
'~/utils'
;
import
RemarkModal
from
'~/pages/orderManage/productOrder/orderList/components/remarkModal'
;
import
RemarkModal
from
'~/pages/orderManage/productOrder/orderList/components/remarkModal'
;
import
{
CommentOutlined
}
from
'@ant-design/icons'
;
// 表格数据类型
// 表格数据类型
type
TableType
=
InterListType
<
mallOrderListType
>
;
type
TableType
=
InterListType
<
mallOrderListType
>
;
...
@@ -284,7 +285,7 @@ function ProductOrderView() {
...
@@ -284,7 +285,7 @@ function ProductOrderView() {
),
),
},
},
{
{
title
:
'抵扣云享金
/余额
'
,
title
:
'抵扣云享金'
,
dataIndex
:
'shareAmount'
,
dataIndex
:
'shareAmount'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
text
)
=>
(
render
:
(
text
)
=>
(
...
@@ -292,19 +293,37 @@ function ProductOrderView() {
...
@@ -292,19 +293,37 @@ function ProductOrderView() {
),
),
},
},
{
{
title
:
'抵扣佣金'
,
dataIndex
:
'salaryAmount'
,
align
:
'center'
,
render
:
(
text
)
=>
(
<
TableItem
tr=
{
<
div
className=
'goods-text'
>
¥
{
text
?.
toLocaleString
()
}
</
div
>
}
/>
),
},
{
title
:
'买家'
,
title
:
'买家'
,
dataIndex
:
'uid'
,
dataIndex
:
'uid'
,
align
:
'center'
,
align
:
'center'
,
width
:
'1
5
%'
,
width
:
'1
0
%'
,
render
:
(
_text
:
any
,
record
)
=>
(
render
:
(
_text
:
any
,
record
)
=>
(
<
TableItem
<
TableItem
tr=
{
tr=
{
<>
<>
<
div
className=
'goods-text'
>
<
div
>
<
div
>
{
record
.
userName
}
</
div
>
<
div
>
{
record
.
userName
||
record
.
nickname
}
(
{
record
.
userAccountId
}
)
</
div
>
<
div
>
{
record
.
phoneNum
}
</
div
>
{
record
.
userRemark
?
(
<
div
>
<
Tooltip
placement=
'top'
title=
{
record
.
userRemark
}
>
<
Button
icon=
{
<
CommentOutlined
/>
}
></
Button
>
</
Tooltip
>
</
div
>
)
:
(
''
)
}
</
div
>
</
div
>
{
/*<div>{record.entName}</div>*/
}
</>
</>
}
}
/>
/>
...
@@ -330,12 +349,12 @@ function ProductOrderView() {
...
@@ -330,12 +349,12 @@ function ProductOrderView() {
align
:
'center'
,
align
:
'center'
,
render
:
(
_text
)
=>
<
TableItem
tr=
{
<
div
className=
'goods-text'
>
--
</
div
>
}
/>,
render
:
(
_text
)
=>
<
TableItem
tr=
{
<
div
className=
'goods-text'
>
--
</
div
>
}
/>,
},
},
//
{
{
//
title: '订单交期',
title
:
'订单交期'
,
//
dataIndex: 'deliveryTime',
dataIndex
:
'deliveryTime'
,
//
align: 'center',
align
:
'center'
,
// render: (_text) => <TableItem tr={<div className='goods-text'>--
</div>} />,
render
:
(
text
:
string
)
=>
<
TableItem
tr=
{
<
div
className=
'goods-text'
>
{
text
}
</
div
>
}
/>,
//
},
},
{
{
title
:
'备注'
,
title
:
'备注'
,
dataIndex
:
'sellerRemark'
,
dataIndex
:
'sellerRemark'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论