Commit b148e410 authored by XieZhiXiong's avatar XieZhiXiong

fix: 更改字段名

parent 54b3f06e
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 15:09:09
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-29 11:32:18
* @LastEditTime: 2020-12-31 14:29:36
* @Description: 维修商品抽屉组件
*/
import React, { useState, useEffect } from 'react';
......@@ -472,7 +472,15 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
payList:
product.payInfoList ?
product.payInfoList.map(item => {
const { payPrice, payTime, payWay, channel, ...rest } = item;
const {
payPrice,
payTime,
payWay,
channel,
payCode,
ruleConfigurationId,
...rest
} = item;
return {
payAmount: payPrice,
payTime: moment(payTime).format('YYYY-MM-DD HH:mm:ss'),
......@@ -480,6 +488,8 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
channel,
payWayName: PAYWAY[payWay],
channelName: PAY_CHANNEL[channel],
transactionPayId: payCode,
payRuleId: ruleConfigurationId,
...rest,
}
}) :
......
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