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

fix:

parent 7a784779
...@@ -89,10 +89,10 @@ export const ProductTableCell:React.FC<ProductTableCellProps> = ({ ...@@ -89,10 +89,10 @@ export const ProductTableCell:React.FC<ProductTableCellProps> = ({
pattern: /^\d+(\.\d{1,3})?$/, pattern: /^\d+(\.\d{1,3})?$/,
message: `数量仅限三位小数`, message: `数量仅限三位小数`,
}, },
{ // {
min: 0, // min: 0,
message: `数量大于等于0`, // message: `数量大于等于0`,
}, // },
]} ]}
> >
{chooseFormItem(formItem)} {chooseFormItem(formItem)}
......
...@@ -107,7 +107,7 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => { ...@@ -107,7 +107,7 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => {
<Col span={4} style={{fontSize: 12, color: "#909399"}}>纳税号:</Col><Col span={20}>{invoice?.taxNo}</Col> <Col span={4} style={{fontSize: 12, color: "#909399"}}>纳税号:</Col><Col span={20}>{invoice?.taxNo}</Col>
<Col span={4} style={{fontSize: 12, color: "#909399"}}>开户行:</Col><Col span={20}>{invoice?.bank}</Col> <Col span={4} style={{fontSize: 12, color: "#909399"}}>开户行:</Col><Col span={20}>{invoice?.bank}</Col>
<Col span={4} style={{fontSize: 12, color: "#909399"}}>账号:</Col><Col span={20}>{invoice?.account}</Col> <Col span={4} style={{fontSize: 12, color: "#909399"}}>账号:</Col><Col span={20}>{invoice?.account}</Col>
<Col span={4} style={{fontSize: 12, color: "#909399"}}>地址:</Col><Col span={20}>{invoice?.addres}</Col> <Col span={4} style={{fontSize: 12, color: "#909399"}}>地址:</Col><Col span={20}>{invoice?.address}</Col>
<Col span={4} style={{fontSize: 12, color: "#909399"}}>电话:</Col><Col span={20}>{invoice?.phone}</Col> <Col span={4} style={{fontSize: 12, color: "#909399"}}>电话:</Col><Col span={20}>{invoice?.phone}</Col>
</Row> </Row>
</Modal> </Modal>
......
...@@ -124,9 +124,9 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => { ...@@ -124,9 +124,9 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
}, },
{ {
title: '商品名称', title: '商品名称',
dataIndex: 'productName', dataIndex: 'name',
align: 'center', align: 'center',
key: 'productName', key: 'name',
}, },
{ {
title: '品类', title: '品类',
...@@ -148,50 +148,50 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => { ...@@ -148,50 +148,50 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
}, },
{ {
title: creditsCommodity ? '兑换数量' : '采购数量', title: creditsCommodity ? '兑换数量' : '采购数量',
dataIndex: 'purchaseCount', dataIndex: 'quantity',
align: 'center', align: 'center',
key: 'purchaseCount', key: 'quantity',
}, },
{ {
title: '发货数量', title: '发货数量',
dataIndex: 'deliverGoodsCount', dataIndex: 'delivered',
align: 'center', align: 'center',
key: 'deliverGoodsCount', key: 'delivered',
}, },
{ {
title: '入库数量', title: '收货数量',
dataIndex: 'storageCount', dataIndex: 'received',
align: 'center', align: 'center',
key: 'storageCount', key: 'received',
}, },
{ {
title: '差异数量', title: '差异数量',
dataIndex: 'differenceCount', dataIndex: 'differCount',
align: 'center', align: 'center',
key: 'differenceCount', key: 'differCount',
}, },
] ]
const sideOrderCols: any[] = [ const sideOrderCols: any[] = [
{ {
title: '发货批次', title: '发货批次',
dataIndex: 'deliveryBatch', dataIndex: 'batchNo',
align: 'center', align: 'center',
key: 'deliveryBatch' key: 'batchNo'
}, },
{ {
title: '发货单号', title: '发货单号',
dataIndex: 'deliveryNo', dataIndex: 'deliveryNo',
align: 'center', align: 'center',
key: 'deliveryNo', key: 'deliveryNo',
render: text => <a target="blank" href={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?invoicesNo=${text}`}>{text}</a> // render: text => <a target="blank" href={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?invoicesNo=${text}`}>{text}</a>
}, },
{ {
title: '发货时间', title: '发货时间',
dataIndex: 'deliveryTime', dataIndex: 'createTime',
align: 'center', align: 'center',
key: 'deliveryTime', key: 'createTime',
render: text => formatTimeString(text) // render: text => formatTimeString(text)
}, },
{ {
title: '物流单号', title: '物流单号',
...@@ -202,29 +202,29 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => { ...@@ -202,29 +202,29 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
}, },
{ {
title: '物流公司', title: '物流公司',
dataIndex: 'logisticsCompanyName', dataIndex: 'company',
align: 'center', align: 'center',
key: 'logisticsCompanyName' key: 'company'
}, },
{ {
title: '入库单号', title: '收货单号',
dataIndex: 'storageNo', dataIndex: 'receiptNo',
align: 'center', align: 'center',
key: 'storageNo', key: 'receiptNo',
}, },
{ {
title: '入库时间', title: '收货时间',
dataIndex: 'storageTime', dataIndex: 'receiptTime',
align: 'center', align: 'center',
key: 'storageTime', key: 'receiptTime',
render: text => formatTimeString(text) // render: text => formatTimeString(text)
}, },
{ {
title: '内部状态', title: '内部状态',
dataIndex: 'interiorState', dataIndex: 'innerStatusName',
align: 'center', align: 'center',
key: 'interiorState', key: 'innerStatusName',
render: text => <StatusColors type='deliveInside' status={text}/> // render: text => <StatusColors type='deliveInside' status={text}/>
}, },
{ {
title: '操作', title: '操作',
...@@ -232,8 +232,8 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => { ...@@ -232,8 +232,8 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
align: 'center', align: 'center',
key: 'ctl', key: 'ctl',
render: (text, record) => <> render: (text, record) => <>
{ !isPreview && isReturn && !dataRef.current.includes(record.id) && record.interiorState === DeliverySideState.CONFIRM_RECEIPT_ORDER && <Button type='link' disabled={disabled} onClick={() => handleReturn(record)}>确认回单</Button> } { !isPreview && isReturn && record.showReply && <Button type='link' disabled={disabled} onClick={() => handleReturn(record)}>确认回单</Button> }
{ !isPreview && isDeleved && !dataRef.current.includes(record.id) && record.interiorState === DeliverySideState.ADD_LOGISTICS_ORDER && <Button type='link' disabled={disabled} onClick={() => handleConfirm(record)}>确认发货</Button> } { !isPreview && isDeleved && record.showDelivery && <Button type='link' disabled={disabled} onClick={() => handleConfirm(record)}>确认发货</Button> }
</> </>
}, },
] ]
......
...@@ -74,7 +74,8 @@ const orderProductShopTypeMaps = { ...@@ -74,7 +74,8 @@ const orderProductShopTypeMaps = {
export const AddressPop = (props) => { export const AddressPop = (props) => {
const { pickInfo = null, children } = props const { pickInfo = null, children } = props
return pickInfo && pickInfo.deliveryType === 2 ? <Space> console.log(pickInfo)
return pickInfo && pickInfo.deliverType === 2 ? <Space>
<EnvironmentOutlined style={{marginRight: 8}}/> <EnvironmentOutlined style={{marginRight: 8}}/>
<Popover content={ <Popover content={
<Row> <Row>
......
...@@ -62,7 +62,7 @@ export const useSelfTable = () => { ...@@ -62,7 +62,7 @@ export const useSelfTable = () => {
align: 'center', align: 'center',
dataIndex: 'deliveryNo', dataIndex: 'deliveryNo',
key: 'deliveryNo', key: 'deliveryNo',
render: (text, record) => <Link to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.orderDeliveryDetailsId}&preview=1`}>{text}</Link> // render: (text, record) => <Link to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.orderDeliveryDetailsId}&preview=1`}>{text}</Link>
}, },
{ {
title: '订单类型', title: '订单类型',
......
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