提交 0ced79cd 作者: 龚洪江

功能:商城商品添加显示价格字段,商城订单买家信息

上级 4c9774d3
...@@ -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;
......
...@@ -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>
......
...@@ -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>
......
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: '15%', width: '10%',
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论