zhangjiaqing
2026-03-29 f7c9441a14ff1e6eca4db398ed507b6e9e3b4e67
小区信息添加页面修复市不显示问题情况,修复采购导入不稳定情况
3个文件已修改
155 ■■■■ 已修改文件
app.js 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/pages/common/communityManage/add/add.js 140 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/pages/common/purchaseApplyManage/purchaseApplyManage.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app.js
@@ -88,10 +88,17 @@
// app.use('/app', proxy('http://192.168.100.109:8008', opts));
// todo 本机 开发用,生产环境请用nginx带来
 app.use('/ws', proxy('http://192.168.31.222:8008', opts));
app.use('/callComponent', proxy('http://192.168.31.222:8008', opts));
 app.use('/app', proxy('http://192.168.31.222:8008', opts));
//  app.use('/ws', proxy('http://192.168.31.222:8008', opts));
// app.use('/callComponent', proxy('http://192.168.31.222:8008', opts));
//  app.use('/app', proxy('http://192.168.31.222:8008', opts));
app.use('/ws', createProxyMiddleware({
    target: 'http://192.168.31.179:8008',
    changeOrigin: true,
    ws: true
}));
app.use('/callComponent', proxy('http://192.168.31.179:8008', opts));
app.use('/app', proxy('http://192.168.31.179:8008', opts));
// .split(' ')[0]
// todo 本机 开发用,生产环境请用nginx带来
public/pages/common/communityManage/add/add.js
@@ -144,23 +144,6 @@
        _initMethod: function () {
            // 初始化省份列表
            vc.component._initArea('101', '0');
            // 确保 vc.component 已完全初始化后再调用
            let retryCount = 0;
            const maxRetries = 20; // 最多重试20次(约1秒)
            const loadData = function () {
                if (vc.component && typeof vc.component._loadCommunityDetail === 'function') {
                    vc.component._loadCommunityDetail();
                } else {
                    retryCount++;
                    if (retryCount >= maxRetries) {
                        console.error('无法找到 _loadCommunityDetail 方法,已重试', maxRetries, '次');
                        return;
                    }
                    // 如果还未初始化,等待一下再试
                    setTimeout(loadData, 50);
                }
            };
            loadData();
        },
        /**
         * 初始化事件监听
@@ -168,16 +151,15 @@
         */
        _initEvent: function () {
            // 初始化时添加输入事件监听,自动移除错误样式
            const $that = this;
            setTimeout(function () {
                // 为所有输入框和选择框添加输入事件监听
                const inputs = document.querySelectorAll('.community-add input, .community-add select');
                inputs.forEach(function (input) {
                    input.addEventListener('input', function () {
                        $that.removeError(input.id);
                        vc.component.removeError(input.id);
                    });
                    input.addEventListener('change', function () {
                        $that.removeError(input.id);
                        vc.component.removeError(input.id);
                    });
                });
            }, 100);
@@ -798,8 +780,122 @@
             * 重置表单
             */
            reset: function () {
                // 重新加载数据
                vc.component._loadCommunityDetail();
                // 重置表单
                vc.component.formData = {
                    communityId: '',
                    statusCd: '1',
                    newBId: '',
                    feePrice: '',
                    projectAddressProvince: '',
                    projectAddressCity: '',
                    projectAddressDistrict: '',
                    address: '',
                    projectAddressTown: '',
                    projectAddressRoad: '',
                    houseCompletionDate: '',
                    projectNature: '',
                    projectType: '',
                    projectLandArea: '',
                    totalConstructionArea: '',
                    chargeableTotalArea: '',
                    chargeableAreaMultilayer: '',
                    chargeableAreaHighRise1: '',
                    chargeableAreaHighRiseUp: '',
                    chargeableAreaShop: '',
                    chargeableAreaVilla: '',
                    chargeableAreaOffice: '',
                    chargeableAreaCommercialHouse: '',
                    greenArea: '',
                    areaDetails: '',
                    propertyManagementAddress: '',
                    propertyManagerName: '',
                    propertyManagerPhone: '',
                    propertyRoomArea: '',
                    publicArea: '',
                    dayRepairPhone: '',
                    nightRepairPhone: '',
                    projectManager: '',
                    hasManagerCertificate: '',
                    certificateName: '',
                    managerCertificateNo: '',
                    managerPhone: '',
                    neighborhoodCommitteeName: '',
                    neighborhoodCommitteeAddress: '',
                    neighborhoodSecretary: '',
                    neighborhoodOfficePhone: '',
                    secretaryPhone: '',
                    ownersCommitteeAddress: '',
                    ownersCommitteeChairman: '',
                    chairmanPhone: '',
                    fireHydrantCount: '',
                    fireChannelCount: '',
                    waterTankCount: '',
                    reservoirCount: '',
                    totalMotorVehicleSpaces: '',
                    groundMotorVehicleSpaces: '',
                    undergroundMotorVehicleSpaces: '',
                    newEnergyChargingPiles: '',
                    nonMotorVehicleChargingPoints: '',
                    groundNonMotorVehicleArea: '',
                    undergroundNonMotorVehicleArea: '',
                    clubhouseArea: '',
                    hasDecorationRubbishPoint: '',
                    securityEntranceCount: '',
                    elevatorCount: '',
                    elevatorType: '',
                    elevatorInstallDate: '',
                    elevatorServiceLife: '',
                    elevatorBrand1: '',
                    elevatorBrand2: '',
                    monitorCount: '',
                    monitorMaintenanceCompany: '',
                    barrierGateCount: '',
                    barrierGateBrand: '',
                    barrierSupplierContact: '',
                    barrierSupplierPhone: '',
                    waterPumpCount: '',
                    groundParkingSpaces: '',
                    undergroundParkingSpaces: '',
                    groundNonMechanicalFee: '',
                    garageNonMechanicalFee: '',
                    temporaryHourlyFee: '',
                    temporaryDailyFee: '',
                    temporaryPerTimeFee: '',
                    totalBuildingCount: '',
                    buildingUnitCount: '',
                    highRiseBuildingCount: '',
                    multilayerVillaBuildingCount: '',
                    residentialHouseholdCount: '',
                    shopHouseholdCount: '',
                    entryDate: '',
                    exitDate: '',
                    name: '',
                    communityCode: '',
                    cityCode: '',
                    areaAddress: '',
                    tel: '',
                    tmpAddress: '',
                    nearbyLandmarks: '',
                    mapX: '',
                    mapY: '',
                    payFeeMonth: 12,
                    takeTime: '',
                    outTime: '',
                    state: '1100',
                    communityArea: '',
                    attrs: []
                };
                // 重置地区选择
                vc.component.selectProv = '';
                vc.component.selectCity = '';
                vc.component.selectArea = '';
                vc.component.selectProvName = '';
                vc.component.selectCityName = '';
                vc.component.selectAreaName = '';
                vc.component.citys = [];
                vc.component.areas = [];
                // 重新初始化省份列表
                vc.component._initArea('101', '0');
            }
        }
    });
public/pages/common/purchaseApplyManage/purchaseApplyManage.html
@@ -87,7 +87,7 @@
                            <div class="ibox-tools" style="top:10px;">
                                <button type="button" class="btn btn-primary btn-sm" v-on:click="_importExcel()">
                                    <i class="fa fa-sign-in"></i>
                                    <vc:i18n name="导入" namespace="purchaseApplyManage"></vc:i18n>
                                    <span><vc:i18n name="导入" namespace="purchaseApplyManage"></vc:i18n></span>
                                </button>
                                <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddPurchaseApplyModal()">
                                    <i class="fa fa-plus"></i>