| | |
| | | </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> |
| | |
| | | _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; |