Commit 5eabad8cbb0c1ee81ad62837fc67ff54db0cdbec
1 parent
28f41719
fix:新增缴费标识计量单位判断逻辑
Showing
2 changed files
with
3 additions
and
2 deletions
src/pages/contract/BearCostSetting/components/SaveModal/index.tsx
... | ... | @@ -122,7 +122,7 @@ const SaveModal = ({visible, onCancel, onRefresh}:Props) => { |
122 | 122 | onSelect={(it:any) => { |
123 | 123 | const item = feetypeList.filter(i => it.value === i.typeValue); |
124 | 124 | const {compTypes, roleCodes} = item[0]; |
125 | - setData({...data, compTypes, roleCodes}); | |
125 | + setData({...data, compTypes, roleCodes, typeValue: it.value}); | |
126 | 126 | setDisabled(false); |
127 | 127 | }} |
128 | 128 | filterOption={(input, option: any) => option?.children.indexOf(input) >= 0} |
... | ... | @@ -210,7 +210,7 @@ const SaveModal = ({visible, onCancel, onRefresh}:Props) => { |
210 | 210 | </Select> |
211 | 211 | </Form.Item> |
212 | 212 | { |
213 | - paymentMode == 2 && ( | |
213 | + paymentMode == 2 && ['RP00000053', 'RP00000066', 'RP00000067'].includes(data.typeValue || '') && ( | |
214 | 214 | <Form.Item |
215 | 215 | label="计量单位:" |
216 | 216 | name="unit" | ... | ... |