jialh
2025-09-11 80a0215a773c2419757e7a1f2254410a0c48b016
更新
4个文件已修改
119 ■■■■■ 已修改文件
public/components/common/editCommunity/editCommunity.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/components/common/editCommunity/editCommunity.js 69 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/pages/property/oldRoomFeeImport/oldRoomFeeImport.html 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/pages/property/oldRoomFeeImport/oldRoomFeeImport.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/components/common/editCommunity/editCommunity.html
@@ -41,7 +41,7 @@
                                <div class="col-sm-10">
                                    <input v-model="editCommunityInfo.takeTime" type="text"
                                        :placeholder="vc.i18n('必填,请填写入驻日期','editCommunity')"
                                        class="form-control carCreateFeeStartTime">
                                        class="form-control editCommunityStartTime">
                                </div>
                            </div>
                            <div class="form-group row">
public/components/common/editCommunity/editCommunity.js
@@ -18,7 +18,7 @@
        },
        _initMethod: function () {
            $that._loadEditCommunityAttrSpec();
            $that._initEditCommunityDateInfo();
            // $that._initEditCommunityDateInfo();
        },
        _initEvent: function () {
            vc.on('editCommunity', 'openEditCommunityModal',
@@ -37,14 +37,20 @@
                            })
                        })
                    }
                    setTimeout(function () {
                        vc.initDate('editCommunityStartTime', function (_value) {
                            $that.editCommunityInfo.takeTime = _value;
                        })
                    }, 1000)
                });
        },
        methods: {
            _initEditCommunityDateInfo: function() {
                vc.initDate('carCreateFeeStartTime', function(_takeTime) {
            _initEditCommunityDateInfo: function () {
                vc.initDate('carCreateFeeStartTime', function (_takeTime) {
                    console.log(_takeTime)
                    $that.editCommunityInfo.takeTime = _takeTime;
                });
                function myfunc(e) {
                    e.currentTarget.blur();
                }
@@ -53,8 +59,7 @@
                return vc.validate.validate({
                    editCommunityInfo: vc.component.editCommunityInfo
                }, {
                    'editCommunityInfo.name': [
                        {
                    'editCommunityInfo.name': [{
                            limit: "required",
                            param: "",
                            errInfo: "小区名称不能为空"
@@ -65,8 +70,7 @@
                            errInfo: "小区名称必须在1至20字符之间"
                        }
                    ],
                    'editCommunityInfo.address': [
                        {
                    'editCommunityInfo.address': [{
                            limit: "required",
                            param: "",
                            errInfo: "小区地址不能为空"
@@ -77,8 +81,7 @@
                            errInfo: "小区地址不能大于200个字符"
                        }
                    ],
                    'editCommunityInfo.nearbyLandmarks': [
                        {
                    'editCommunityInfo.nearbyLandmarks': [{
                            limit: "required",
                            param: "",
                            errInfo: "附近地标不能为空"
@@ -89,34 +92,26 @@
                            errInfo: "小区附近地标不能大于50个字符"
                        }
                    ],
                    'editCommunityInfo.cityCode': [
                        {
                            limit: "maxLength",
                            param: "12",
                            errInfo: "小区城市编码不能大于4个字符"
                        }
                    ],
                    'editCommunityInfo.mapX': [
                        {
                            limit: "maxLength",
                            param: "20",
                            errInfo: "小区城市编码不能大于4个字符"
                        }
                    ],
                    'editCommunityInfo.mapY': [
                        {
                            limit: "maxLength",
                            param: "20",
                            errInfo: "小区城市编码不能大于4个字符"
                        }
                    ],
                    'editCommunityInfo.communityId': [
                        {
                            limit: "required",
                            param: "",
                            errInfo: "小区ID不能为空"
                        }
                    ]
                    'editCommunityInfo.cityCode': [{
                        limit: "maxLength",
                        param: "12",
                        errInfo: "小区城市编码不能大于4个字符"
                    }],
                    'editCommunityInfo.mapX': [{
                        limit: "maxLength",
                        param: "20",
                        errInfo: "小区城市编码不能大于4个字符"
                    }],
                    'editCommunityInfo.mapY': [{
                        limit: "maxLength",
                        param: "20",
                        errInfo: "小区城市编码不能大于4个字符"
                    }],
                    'editCommunityInfo.communityId': [{
                        limit: "required",
                        param: "",
                        errInfo: "小区ID不能为空"
                    }]
                });
            },
            editCommunity: function () {
public/pages/property/oldRoomFeeImport/oldRoomFeeImport.html
@@ -48,10 +48,15 @@
                <vc:i18n name="费用导入" namespace="oldRoomFeeImport"></vc:i18n>
            </h5>
            <div class="ibox-tools" style="top:10px;">
                <!-- <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                    v-on:click="_initialData(null,true)">
                    <vc:i18n name="费用初始化" namespace="oldRoomFeeImport"></vc:i18n>
                </button> -->
                <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                v-on:click="_initialData(null,true)">
                <vc:i18n name="费用初始化" namespace="oldRoomFeeImport"></vc:i18n>
            </button>
                    v-on:click="openInitializeFeeModal">
                    <vc:i18n name="费用初始化" namespace="oldRoomFeeImport"></vc:i18n>
                </button>
                <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                    v-on:click="_openOldRoomFeeImport(null,true)">
                    <vc:i18n name="费用导入" namespace="oldRoomFeeImport"></vc:i18n>
@@ -159,7 +164,7 @@
                            <td class="text-center">{{ fee.category22 || '-' }}</td> <!-- 22 项分类 -->
                            <td class="text-center">{{ fee.chargeStart || '-' }}</td> <!-- 收费起 -->
                            <td class="text-center">{{ fee.chargeEnd || '-' }}</td> <!-- 收费止 -->
                        </tr>
                    </tbody>
                </table>
@@ -176,6 +181,34 @@
            <!-- <vc:create path="frame/pagination"></vc:create> -->
        </div>
    </div>
    <div class="modal fade" id="initializeFeeModal" tabindex="-1" role="dialog"
        aria-labelledby="initializeFeeModalLabel" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="initializeFeeModalLabel">
                        <vc:i18n name="请确认您的操作!" namespace="oldRoomFeeImport"></vc:i18n>
                    </h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body text-center">
                    <vc:i18n name="确认进行费用初始化吗?此操作不可逆,请谨慎操作!" namespace="oldRoomFeeImport"></vc:i18n>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">
                        <vc:i18n name="点错了" namespace="oldRoomFeeImport"></vc:i18n>
                    </button>
                    <button type="button" class="btn btn-primary" v-on:click="_confirmInitialize()">
                        <vc:i18n name="确认初始化" namespace="oldRoomFeeImport"></vc:i18n>
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>
<vc:create path="property/importOldRoomFee"></vc:create>
public/pages/property/oldRoomFeeImport/oldRoomFeeImport.js
@@ -90,6 +90,13 @@
            _openOldRoomFeeImport: function () {
                vc.emit('importOldRoomFee', 'openimportOldRoomFeeModal', {});
            },
            openInitializeFeeModal: function() {
                $('#initializeFeeModal').modal('show'); // 显示模态框
            },
            _confirmInitialize: function() {
                $('#initializeFeeModal').modal('hide'); // 关闭模态框
                this._initialData(); // 点击确认后调用初始化方法
            },
            _initialData: function () {
                let param = new FormData();