From e294a214201fa1c1426bfad769f8d3e19f9334ac Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Thu, 12 May 2022 14:51:36 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activityInfo/components/CreateForm.jsx | 85 ++++++++++++++++--- src/pages/activity/activityInfo/index.jsx | 7 +- 2 files changed, 78 insertions(+), 14 deletions(-) diff --git a/src/pages/activity/activityInfo/components/CreateForm.jsx b/src/pages/activity/activityInfo/components/CreateForm.jsx index d7bf698..c1aab09 100644 --- a/src/pages/activity/activityInfo/components/CreateForm.jsx +++ b/src/pages/activity/activityInfo/components/CreateForm.jsx @@ -3,6 +3,7 @@ import { InputNumber, Row, Col, + Switch, Checkbox, Space, Steps, @@ -252,25 +253,89 @@ const CreateForm = (props) => { {'买满赠送(商品)'} + prevValues.activityType !== currentValues.activityType - } - > + } > {({ getFieldValue }) => + (getFieldValue('activityType') == '6' || getFieldValue('activityType') == '7') ? ( + + + + + + + + + + ) : null + } + + + + prevValues.activityType !== currentValues.activityType + } > + {({ getFieldValue }) => // (getFieldValue('activityType') == '6' || getFieldValue('activityType') == '7') ? ( // @@ -376,12 +441,12 @@ const CreateForm = (props) => { })} ) : (getFieldValue('activityType') == '5' || getFieldValue('activityType') == '8') ? ( - + option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0 + } > {goodsInfo.map((item, index) => { return ( From a81f08e57096201f86e76995acef95796d6249fe Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Thu, 12 May 2022 18:01:59 +0800 Subject: [PATCH 3/3] =?UTF-8?q?bug=20=E9=A1=B5=E9=9D=A2=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/activity/activityInfo/index.jsx | 4 ++-- src/pages/crm/coupon/coupon-Batch/index.jsx | 10 ---------- .../crm/coupon/couponInfo/components/CreateForm.jsx | 10 +++++----- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/pages/activity/activityInfo/index.jsx b/src/pages/activity/activityInfo/index.jsx index 2ca8369..a28169b 100644 --- a/src/pages/activity/activityInfo/index.jsx +++ b/src/pages/activity/activityInfo/index.jsx @@ -202,8 +202,8 @@ const activityInfManage = () => { title: '是否后台计算', dataIndex: 'isAutoSend', valueEnum: { - 0: { text: '不显示', status: 'Processing' }, - 1: { text: '显示', status: 'Error' }, + 0: { text: '点击参与', status: 'Processing' }, + 1: { text: '后台计算', status: 'Error' }, }, render: (_, record) => ( <> diff --git a/src/pages/crm/coupon/coupon-Batch/index.jsx b/src/pages/crm/coupon/coupon-Batch/index.jsx index 2adbd34..2cfa22f 100644 --- a/src/pages/crm/coupon/coupon-Batch/index.jsx +++ b/src/pages/crm/coupon/coupon-Batch/index.jsx @@ -33,16 +33,6 @@ const CouponBatch = () => { dataIndex: 'couponTitle', valueType: 'textarea', }, - { - title: '使用范围', - key: 'rangeType', - dataIndex: 'rangeType', - valueEnum: { - 1: { text: '店铺' }, - 2: { text: '加盟商' }, - 3: { text: '区域' }, - }, - }, { title: '发放数量', dataIndex: 'sendNum', diff --git a/src/pages/crm/coupon/couponInfo/components/CreateForm.jsx b/src/pages/crm/coupon/couponInfo/components/CreateForm.jsx index 23a68fe..29249c6 100644 --- a/src/pages/crm/coupon/couponInfo/components/CreateForm.jsx +++ b/src/pages/crm/coupon/couponInfo/components/CreateForm.jsx @@ -77,9 +77,9 @@ const CreateForm = (props) => { - + - + { rules={[{ required: true }]} > - + { rules={[{ required: true }]} > - + 0 为不限制 @@ -120,7 +120,7 @@ const CreateForm = (props) => { getFieldValue('timeType') == '2' ? ( - + ) : (