jialh
2025-08-08 1be3a1d1570d20c61e7bcee9065fca45299c8712
更新
2个文件已修改
38 ■■■■■ 已修改文件
public/pages/property/oldRoomFeeImport/oldRoomFeeImport.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/pages/property/oldRoomFeeImport/oldRoomFeeImport.js 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/pages/property/oldRoomFeeImport/oldRoomFeeImport.html
@@ -46,6 +46,10 @@
            </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="_openOldRoomFeeImport(null,true)">
                    <vc:i18n name="费用导入" namespace="oldRoomFeeImport"></vc:i18n>
                </button>
public/pages/property/oldRoomFeeImport/oldRoomFeeImport.js
@@ -84,6 +84,40 @@
            _openOldRoomFeeImport: function () {
                vc.emit('importOldRoomFee', 'openimportOldRoomFeeModal', {});
            },
            _initialData: function () {
                let param = new FormData();
                param.append('communityId', vc.getCurrentCommunity().communityId);
                param.append('userId', vc.getData('/nav/getUserInfo').userId)
                param.append('importAdapt', "importHistoryFeeDetail");
                vc.http.upload(
                    'assetImport',
                    'importData',
                    param, {
                        emulateJSON: true,
                        //添加请求头
                        headers: {
                            "Content-Type": "multipart/form-data"
                        }
                    },
                    function (json, res) {
                        //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
                        let _json = JSON.parse(json);
                        if (_json.code == 0) {
                            //关闭model
                            vc.toast("处理成功");
                            // $('#importOldRoomFeeModel').modal('hide');
                            vc.jumpToPage('/#/pages/property/assetImportLogDetail?logId=' + _json.data.logId + '&logType=importOldRoomFee');
                            return;
                        }
                        vc.toast(_json.msg, 10000);
                    },
                    function (errInfo, error) {
                        console.log('请求失败处理');
                        vc.toast(errInfo, 10000);
                    });
            },
            _moreCondition: function () {
                if (vc.component.oldRoomFeeImport.moreCondition) {
                    vc.component.oldRoomFeeImport.moreCondition = false;