Commit efa6be34 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改已支付金额字段

parent 9418cd57
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-11-04 15:09:09 * @Date: 2020-11-04 15:09:09
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-10 11:29:44 * @LastEditTime: 2021-08-11 11:44:19
* @Description: 维修商品抽屉组件 * @Description: 维修商品抽屉组件
*/ */
import React from 'react'; import React from 'react';
...@@ -432,7 +432,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> { ...@@ -432,7 +432,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
? product.payInfoList.reduce((prev, now) => { ? product.payInfoList.reduce((prev, now) => {
return now.externalState === PayOutWorkState.CONFIRM_ACCOUNT ? +(new BigNumber(+product.purchaseCount).multipliedBy(product.price).multipliedBy(new BigNumber(now.payRatio).dividedBy(100))).toFixed(2) + prev : prev; return now.externalState === PayOutWorkState.CONFIRM_ACCOUNT ? +(new BigNumber(+product.purchaseCount).multipliedBy(product.price).multipliedBy(new BigNumber(now.payRatio).dividedBy(100))).toFixed(2) + prev : prev;
}, 0) }, 0)
: product.amount, : product.paidAmount,
}); });
} }
}); });
......
...@@ -137,8 +137,8 @@ const ReturnForm: React.FC<BillsFormProps> = ({ ...@@ -137,8 +137,8 @@ const ReturnForm: React.FC<BillsFormProps> = ({
}, },
{ {
title: '订单摘要', title: '订单摘要',
dataIndex: 'digest', dataIndex: 'digest',
align: 'center', ellipsis: true,
}, },
{ {
title: '供应会员', title: '供应会员',
...@@ -178,31 +178,31 @@ const ReturnForm: React.FC<BillsFormProps> = ({ ...@@ -178,31 +178,31 @@ const ReturnForm: React.FC<BillsFormProps> = ({
const childTableColumn: ColumnType<any>[] = [ const childTableColumn: ColumnType<any>[] = [
!isMateriel ?{ !isMateriel ?{
title: '商品ID', title: '商品ID',
dataIndex: 'productId', dataIndex: 'productNo',
align: 'center', align: 'center',
} : { } : {
title: '物料编号', title: '物料编号',
dataIndex: 'materialCode', dataIndex: 'productNo',
align: 'center', align: 'center',
}, },
!isMateriel ? { !isMateriel ? {
title: '商品名称', title: '商品名称',
dataIndex: 'name', dataIndex: 'name',
align: 'center', ellipsis: true,
} : { } : {
title: '物料名称、规格', title: '物料名称、规格',
dataIndex: 'materialName', dataIndex: 'name',
align: 'center', align: 'center',
render: (text, record) => `${text}/${record.materialType}`, render: (text, record) => `${text}/${record.materialType}`,
}, },
{ {
title: '品类', title: '品类',
dataIndex: !isMateriel ? 'category' : 'materialCategory', dataIndex: !isMateriel ? 'category' : 'quotedCategory',
align: 'center', align: 'center',
}, },
{ {
title: '品牌', title: '品牌',
dataIndex: !isMateriel ? 'brand' : 'materialBrand', dataIndex: !isMateriel ? 'brand' : 'quotedBrand',
align: 'center', align: 'center',
}, },
{ {
...@@ -223,7 +223,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({ ...@@ -223,7 +223,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({
}, },
{ {
title: '金额', title: '金额',
dataIndex: 'amount', dataIndex: 'paidAmount',
align: 'center', align: 'center',
render: (text) => ${text}`, render: (text) => ${text}`,
}, },
...@@ -623,7 +623,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({ ...@@ -623,7 +623,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({
purchasePrice: item.price, purchasePrice: item.price,
purchaseCount: item.quantity, purchaseCount: item.quantity,
purchaseAmount: +(item.price * item.quantity).toFixed(2), purchaseAmount: +(item.price * item.quantity).toFixed(2),
payAmount: item.payAmount, payAmount: item.paidAmount,
returnCount: '', returnCount: '',
refundAmount: '', refundAmount: '',
extraData: { extraData: {
......
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