From 87dcbe77daef6f77952571dee98c75370ae231be Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Tue, 14 Jun 2022 10:42:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E3=80=90=E5=85=91?= =?UTF-8?q?=E6=8D=A2=E7=A0=81=E7=AE=A1=E7=90=86=E3=80=91=E7=AB=8B=E5=87=8F?= =?UTF-8?q?=E9=87=91=E5=95=86=E5=93=81=EF=BC=8C=E2=80=9C=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=88=90=E6=9C=AC=E4=BB=B7=E2=80=9D=3D=E2=80=9C=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=AE=98=E6=96=B9=E4=BB=B7=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/add/add.js | 11 ++++++++++- src/pages/exchangecode/edit/edit.js | 11 ++++++++++- src/pages/plan/add/step2.js | 11 ++++++++++- src/pages/plan/key/edit.js | 11 ++++++++++- 4 files changed, 40 insertions(+), 4 deletions(-) diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index 2a3782b8..5ec659b9 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -1159,7 +1159,7 @@ export default class acclist extends React.Component { prop: 'cost_price', name: 'cost_price', width: '250px', - type: 'normal' + type: 'slot' }, { title: '合同价', @@ -1628,6 +1628,15 @@ export default class acclist extends React.Component { if (com == 'type') { return <>{rowData.type === 2 ? '立减金' : '商品'} } + if (com == 'cost_price') { + return ( + <> + {rowData.type === 2 + ? rowData.official_price + : rowData.cost_price} + + ) + } if (com == 'edit') { return ( {rowData.type === 2 ? '立减金' : '商品'} } + if (com == 'cost_price') { + return ( + <> + {rowData.type === 2 + ? rowData.official_price + : rowData.cost_price} + + ) + } if (com == 'edit') { return ( {rowData.type === 2 ? '立减金' : '商品'} } + if (com == 'cost_price') { + return ( + <> + {rowData.type === 2 + ? rowData.official_price + : rowData.cost_price} + + ) + } if (com == 'edit') { return ( {rowData.type === 2 ? '立减金' : '商品'} } + if (com == 'cost_price') { + return ( + <> + {rowData.type === 2 + ? rowData.official_price + : rowData.cost_price} + + ) + } if (com == 'edit') { return (