From ed1fa18055a5596afadf9e1bb1fa5ba55161e29d Mon Sep 17 00:00:00 2001 From: zhangds Date: Tue, 20 Feb 2024 18:23:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90=E5=85=91=E6=8D=A2?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/exchangecodeAdd/index.jsx | 4 +++- src/pages/order/settlementList/list.jsx | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pages/exchangecode/exchangecodeAdd/index.jsx b/src/pages/exchangecode/exchangecodeAdd/index.jsx index 16e4e113..ce058d9a 100644 --- a/src/pages/exchangecode/exchangecodeAdd/index.jsx +++ b/src/pages/exchangecode/exchangecodeAdd/index.jsx @@ -74,7 +74,9 @@ export default class exchangeAdd extends React.Component { handelResponse( res, (req, msg) => { - const select = req.map((o) => { + // 包码增加 1.过滤包码的计划 + let new_plan_list = req.filter((item) => item.settlement_type <= 0) + const select = new_plan_list.map((o) => { return { key: o.id, text: o.title, ...o } }) this.setState({ planSelectData: select }) diff --git a/src/pages/order/settlementList/list.jsx b/src/pages/order/settlementList/list.jsx index 21fcfdc6..8c8d314c 100644 --- a/src/pages/order/settlementList/list.jsx +++ b/src/pages/order/settlementList/list.jsx @@ -81,7 +81,8 @@ export default class settlementList extends React.Component { handelResponse( res, (req, msg) => { - const planOptions = req.map((item) => ({ + let new_planOptions = req.filter((item) => item.settlement_type > 0) + const planOptions = new_planOptions.map((item) => ({ key: item.id, text: item.title }))