Commit 7eeb371d authored by XieZhiXiong's avatar XieZhiXiong

chore: 过滤掉未支付的订单商品

parent 56c37d33
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 15:09:09
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-21 14:50:59
* @LastEditTime: 2021-01-21 15:26:30
* @Description: 维修商品抽屉组件
*/
import React, { useState, useEffect } from 'react';
......@@ -485,7 +485,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
} = item;
return {
payAmount: payPrice,
payTime: moment(payTime).format('YYYY-MM-DD HH:mm:ss'),
payTime: payTime ? moment(payTime).format('YYYY-MM-DD HH:mm:ss') : '',
payWay,
channel,
payWayName: PAYWAY[payWay],
......@@ -494,7 +494,8 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
payRuleId: ruleConfigurationId,
...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