mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 22:27:55 +08:00
v1.9 优化水电抄表费用类型bug
This commit is contained in:
parent
d3ed0e863d
commit
d6b4c771fd
@ -87,7 +87,7 @@
|
||||
<script>
|
||||
import { saveMeterWater, queryPreMeterWater } from '@/api/fee/meterWaterManageApi'
|
||||
import { listFeeConfigs, listMeterTypes } from '@/api/fee/meterWaterManageApi'
|
||||
import { getDict } from '@/api/community/communityApi'
|
||||
//import { getDict } from '@/api/community/communityApi'
|
||||
import FloorSelect2 from '@/components/fee/floorSelect2'
|
||||
import UnitSelect2 from '@/components/fee/unitSelect2'
|
||||
import RoomSelect2 from '@/components/fee/roomSelect2'
|
||||
@ -207,15 +207,20 @@ export default {
|
||||
this.resetForm()
|
||||
},
|
||||
async loadFeeTypes() {
|
||||
try {
|
||||
const data = await getDict('pay_fee_config', 'fee_type_cd')
|
||||
this.feeTypeOptions = data.map(item => ({
|
||||
value: item.statusCd,
|
||||
label: item.name
|
||||
}))
|
||||
} catch (error) {
|
||||
console.error('Failed to load fee types:', error)
|
||||
}
|
||||
// try {
|
||||
// const data = await getDict('pay_fee_config', 'fee_type_cd')
|
||||
// this.feeTypeOptions = data.map(item => ({
|
||||
// value: item.statusCd,
|
||||
// label: item.name
|
||||
// }))
|
||||
// } catch (error) {
|
||||
// console.error('Failed to load fee types:', error)
|
||||
// }
|
||||
this.feeTypeOptions = [
|
||||
{ value: '888800010015', label: '水费' },
|
||||
{ value: '888800010016', label: '电费' },
|
||||
{ value: '888800010009', label: '煤气费' }
|
||||
]
|
||||
},
|
||||
async loadMeterTypes() {
|
||||
try {
|
||||
|
||||
@ -44,8 +44,8 @@ export default {
|
||||
logo: '',
|
||||
companyName:'',
|
||||
loginForm: {
|
||||
username: 'wuxw',
|
||||
passwd: 'admin',
|
||||
username: '',
|
||||
passwd: '',
|
||||
validateCode: ''
|
||||
},
|
||||
captchaUrl: '',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user