Commit aa35c0ed authored by XieZhiXiong's avatar XieZhiXiong

fix: 去掉 过滤未支付的订单

parent e3d25b88
...@@ -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-01-21 15:26:30 * @LastEditTime: 2021-01-26 18:06:04
* @Description: 维修商品抽屉组件 * @Description: 维修商品抽屉组件
*/ */
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
...@@ -485,7 +485,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> { ...@@ -485,7 +485,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
} = item; } = item;
return { return {
payAmount: payPrice, payAmount: payPrice,
payTime: payTime ? moment(payTime).format('YYYY-MM-DD HH:mm:ss') : '', payTime: payTime ? moment(payTime).format('YYYY-MM-DD HH:mm:ss') : null,
payWay, payWay,
channel, channel,
payWayName: PAYWAY[payWay], payWayName: PAYWAY[payWay],
...@@ -494,8 +494,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> { ...@@ -494,8 +494,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
payRuleId: ruleConfigurationId, payRuleId: ruleConfigurationId,
...rest, ...rest,
} }
}) }) :
.filter(item => item.payTime) :
[] []
, ,
// 计算已支付金额,采购单价 * 支付比例 累加 // 计算已支付金额,采购单价 * 支付比例 累加
......
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