Commit 74b1c69d0e4d4596f34ad0bd1ed119cf9a1dde32
Merge remote-tracking branch 'origin/bug_fix'
Showing
9 changed files
with
38 additions
and
11 deletions
src/pages/capital/ReceiveRules/component/AddAuthItems.tsx
... | ... | @@ -76,6 +76,7 @@ function CreateModal(props: Props) { |
76 | 76 | > |
77 | 77 | <Form |
78 | 78 | form={form} |
79 | + labelWrap | |
79 | 80 | onFinish={submit} |
80 | 81 | labelCol={{ span: 6 }} |
81 | 82 | wrapperCol={{ span: 15 }} |
... | ... | @@ -95,7 +96,7 @@ function CreateModal(props: Props) { |
95 | 96 | <PostSelectNew multiple={multiple} labelInValue disabled={disabled} /> |
96 | 97 | </FormItem> |
97 | 98 | ) : null} |
98 | - <FormItem name="maxNum" label="最大领用数量" rules={[{ required: true }]}> | |
99 | + <FormItem name="maxNum" label="最大免费领用数量" rules={[{ required: true }]}> | |
99 | 100 | <Input placeholder="请输入" /> |
100 | 101 | </FormItem> |
101 | 102 | <FormItem | ... | ... |
src/pages/capital/ReceiveRules/component/AuthCheckResult.tsx
... | ... | @@ -36,7 +36,7 @@ export default function AuthCheckResult({ data }: Props) { |
36 | 36 | /> |
37 | 37 | <Column title="门店" dataIndex="shopName" /> |
38 | 38 | <Column title="岗位" dataIndex="postName" /> |
39 | - <Column title="最大领用数量" dataIndex="maxNum" /> | |
39 | + <Column title="最大免费领用数量" dataIndex="maxNum" /> | |
40 | 40 | <Column |
41 | 41 | title="领用周期" |
42 | 42 | dataIndex="period" | ... | ... |
src/pages/capital/ReceiveRules/subPages/GoodsDimension/components/AuthTableList/index.tsx
... | ... | @@ -44,7 +44,7 @@ export default function AuthTableList({ onChange, value }: Props) { |
44 | 44 | > |
45 | 45 | <Column title="适用门店" dataIndex="shopIds" render={text => text.map((i: { label: any; }) => i.label).join(';')} /> |
46 | 46 | <Column title="适用岗位" dataIndex="postList" render={text => text.map((i: { label: any; }) => i.label).join(';')} /> |
47 | - <Column title="最大领用数量" dataIndex="maxNum" /> | |
47 | + <Column title="最大免费领用数量" dataIndex="maxNum" /> | |
48 | 48 | <Column |
49 | 49 | title="领用周期" |
50 | 50 | dataIndex="period" | ... | ... |
src/pages/capital/ReceiveRules/subPages/GoodsDimension/components/PageAuthEdit/index.tsx
... | ... | @@ -126,7 +126,7 @@ export default function SpecConfig(props: Props) { |
126 | 126 | render={(text, record) => <RenderGoodsSpec specList={text} />} |
127 | 127 | /> |
128 | 128 | <Column |
129 | - title="最大领用数量" | |
129 | + title="最大免费领用数量" | |
130 | 130 | dataIndex="maxNum" |
131 | 131 | render={(text, record: OdSetting.GoodsAuthList) => <span>{`${text}${record.unit}`}</span>} |
132 | 132 | /> | ... | ... |
src/pages/capital/ReceiveRules/subPages/PostDimension/AddItems.tsx
... | ... | @@ -60,7 +60,7 @@ function CreateModal(props: Props) { |
60 | 60 | <FormItem name="post" label="适用岗位" rules={[{ required: true }]}> |
61 | 61 | <PostSelectNew multiple labelInValue /> |
62 | 62 | </FormItem> |
63 | - <FormItem name="num" label="最大领用数量" rules={[{ required: true }]}> | |
63 | + <FormItem name="num" label="最大免费领用数量" rules={[{ required: true }]}> | |
64 | 64 | <Input placeholder="请输入" /> |
65 | 65 | </FormItem> |
66 | 66 | <FormItem name="times" label="领用周期" rules={[{ required: true }]}> | ... | ... |
src/pages/capital/ReceiveRules/subPages/PostDimension/AuthTableList.tsx
... | ... | @@ -23,7 +23,7 @@ export default function AuthTableList({ onChange, value }: Props) { |
23 | 23 | const onSureItem = (v) => { |
24 | 24 | const additem = { ...v, ...v.standardId }; |
25 | 25 | const newData: any = [...rowValue]; |
26 | - const index = rowValue.findIndex((i: any) => i.id === additem.id) | |
26 | + const index = rowValue.findIndex((i: any) => i.id === additem.id); | |
27 | 27 | if (index > -1) { |
28 | 28 | newData.splice(index, 1, additem); |
29 | 29 | message.info("该物品已添加,已保留最新数据"); |
... | ... | @@ -52,7 +52,7 @@ export default function AuthTableList({ onChange, value }: Props) { |
52 | 52 | dataIndex="specList" |
53 | 53 | render={(text, record) => <RenderGoodsSpec specList={text} />} |
54 | 54 | /> |
55 | - <Column title="最大领用数量" dataIndex="maxNum" /> | |
55 | + <Column title="最大免费领用数量" dataIndex="maxNum" /> | |
56 | 56 | <Column |
57 | 57 | title="领用周期" |
58 | 58 | dataIndex="period" | ... | ... |
src/pages/capital/ReceiveRules/subPages/PostDimension/index.tsx
... | ... | @@ -38,7 +38,7 @@ export default function EditModal(props: Props) { |
38 | 38 | })) |
39 | 39 | }; |
40 | 40 | setConfirmloading(true); |
41 | - api.savePostDimensionCheck({...params, pageSize: 1000}).then(res => { | |
41 | + api.savePostDimensionCheck({ ...params, pageSize: 1000 }).then(res => { | |
42 | 42 | if (res.data && res.data.total) { |
43 | 43 | Modal.confirm({ |
44 | 44 | title: '已有授权信息,继续提交将覆盖以下授权', | ... | ... |
src/pages/capital/ReceiveRules/subPages/ShopsDimension/index.tsx
... | ... | @@ -112,7 +112,7 @@ export default function SpecConfig() { |
112 | 112 | /> |
113 | 113 | <Column title="型号规格" dataIndex="specList" render={(text, record) => <RenderGoodsSpec specList={text} />} /> |
114 | 114 | <Column |
115 | - title="最大领用数量" | |
115 | + title="最大免费领用数量" | |
116 | 116 | dataIndex="maxNum" |
117 | 117 | render={(text, record: OdSetting.GoodsAuthList) => <span>{`${text}${record.unit}`}</span>} |
118 | 118 | /> | ... | ... |
src/pages/capital/StandardMange/components/Add/index.tsx
... | ... | @@ -211,7 +211,7 @@ export default function AddItem() { |
211 | 211 | ))} |
212 | 212 | </Select> |
213 | 213 | </Form.Item> |
214 | - <h1 style={{ marginBottom: 20 }}>4.领用条件</h1> | |
214 | + <h1 style={{ marginBottom: 20 }}>4.个人承担</h1> | |
215 | 215 | <Form.Item label="领用前提条件" name="premise" rules={[{ required: true, message: '请选择' }]}> |
216 | 216 | <Select disabled={!!editDisabled} placeholder="请选择"> |
217 | 217 | <Option value={0} key={0}>无限制</Option> |
... | ... | @@ -223,12 +223,38 @@ export default function AddItem() { |
223 | 223 | {({ getFieldValue }): any => { |
224 | 224 | const premise = getFieldValue("premise"); |
225 | 225 | return premise ? ( |
226 | - <Form.Item label={premise === 1 ? "入职后" : "转正后"} name="premiseValue" {...layout} rules={[{ required: true, message: '请输入' }]}> | |
226 | + <Form.Item label={`${premise === 1 ? "入职后" : "转正后"}(≤)`} name="premiseValue" {...layout} rules={[{ required: true, message: '请输入' }]}> | |
227 | 227 | <InputNumber disabled={!!editDisabled} style={{ width: '100%' }} addonAfter="月" min={0} placeholder="请输入领取前提条件值" /> |
228 | 228 | </Form.Item> |
229 | 229 | ) : null; |
230 | 230 | }} |
231 | 231 | </Form.Item> |
232 | + <Form.Item label="支付方式" name="gathering" rules={[{ required: true, message: '请选择' }]}> | |
233 | + <Select disabled={!!editDisabled} placeholder="请选择"> | |
234 | + <Option value={1} key={1}>单独收取</Option> | |
235 | + <Option value={2} key={2}>随工资收取</Option> | |
236 | + </Select> | |
237 | + </Form.Item> | |
238 | + <Form.Item label="支付时间" name="sequence" rules={[{ required: true, message: '请选择' }]}> | |
239 | + <Select disabled={!!editDisabled} placeholder="请选择"> | |
240 | + <Option value={1} key={1}>领用后 </Option> | |
241 | + <Option value={2} key={2}>申领后</Option> | |
242 | + </Select> | |
243 | + </Form.Item> | |
244 | + <Form.Item noStyle shouldUpdate={(prevValues, currentValues) => prevValues.sequence != currentValues.sequence}> | |
245 | + {({ getFieldValue }): any => { | |
246 | + const sequence = getFieldValue("sequence"); | |
247 | + return sequence === 2 ? ( | |
248 | + <Form.Item label="个人承担金额" name="assumeCost" {...layout} rules={[{ required: true, message: '请输入' }]}> | |
249 | + <InputNumber disabled={!!editDisabled} precision={2} style={{ width: '100%' }} addonAfter="元" min={0} placeholder="请输入" /> | |
250 | + </Form.Item> | |
251 | + ) : null; | |
252 | + }} | |
253 | + </Form.Item> | |
254 | + <h1 style={{ marginBottom: 20 }}>5.领用规则</h1> | |
255 | + <Form.Item label="最小单位领用数量" name="everyMinNum" {...layout}> | |
256 | + <InputNumber disabled={!!editDisabled} style={{ width: '100%' }} min={0} placeholder="请输入" /> | |
257 | + </Form.Item> | |
232 | 258 | <Row justify="center"> |
233 | 259 | <Button type="primary" onClick={() => { setBreadcrumbs([{ name: '列表', key: 'list' }]); setCurrentBreadcrumb({ name: '列表', key: 'list' }); }}>返回</Button> |
234 | 260 | <Button style={{ marginLeft: 25 }} type="primary" disabled={!!editDisabled} loading={saveConfig} onClick={() => form.submit()}>保存</Button> | ... | ... |