Commit d6b4c771fd7cfb865eab0666912d7bcf99343076
1 parent
d3ed0e86
v1.9 优化水电抄表费用类型bug
Showing
2 changed files
with
17 additions
and
12 deletions
src/components/fee/addMeterWater.vue
| ... | ... | @@ -87,7 +87,7 @@ |
| 87 | 87 | <script> |
| 88 | 88 | import { saveMeterWater, queryPreMeterWater } from '@/api/fee/meterWaterManageApi' |
| 89 | 89 | import { listFeeConfigs, listMeterTypes } from '@/api/fee/meterWaterManageApi' |
| 90 | -import { getDict } from '@/api/community/communityApi' | |
| 90 | +//import { getDict } from '@/api/community/communityApi' | |
| 91 | 91 | import FloorSelect2 from '@/components/fee/floorSelect2' |
| 92 | 92 | import UnitSelect2 from '@/components/fee/unitSelect2' |
| 93 | 93 | import RoomSelect2 from '@/components/fee/roomSelect2' |
| ... | ... | @@ -207,15 +207,20 @@ export default { |
| 207 | 207 | this.resetForm() |
| 208 | 208 | }, |
| 209 | 209 | async loadFeeTypes() { |
| 210 | - try { | |
| 211 | - const data = await getDict('pay_fee_config', 'fee_type_cd') | |
| 212 | - this.feeTypeOptions = data.map(item => ({ | |
| 213 | - value: item.statusCd, | |
| 214 | - label: item.name | |
| 215 | - })) | |
| 216 | - } catch (error) { | |
| 217 | - console.error('Failed to load fee types:', error) | |
| 218 | - } | |
| 210 | + // try { | |
| 211 | + // const data = await getDict('pay_fee_config', 'fee_type_cd') | |
| 212 | + // this.feeTypeOptions = data.map(item => ({ | |
| 213 | + // value: item.statusCd, | |
| 214 | + // label: item.name | |
| 215 | + // })) | |
| 216 | + // } catch (error) { | |
| 217 | + // console.error('Failed to load fee types:', error) | |
| 218 | + // } | |
| 219 | + this.feeTypeOptions = [ | |
| 220 | + { value: '888800010015', label: '水费' }, | |
| 221 | + { value: '888800010016', label: '电费' }, | |
| 222 | + { value: '888800010009', label: '煤气费' } | |
| 223 | + ] | |
| 219 | 224 | }, |
| 220 | 225 | async loadMeterTypes() { |
| 221 | 226 | try { | ... | ... |