ttk-app-core
Version:
enterprise develop framework
18 lines (16 loc) • 907 B
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import {fetch, tree} from 'edf-utils'
export default {
financeinit: {
enum: (enumId) => fetch.post('/v1/edf/enumDetail/batchQuery', enumId),
query: () => fetch.post('/v1/edf/org/queryOrgAboutPeriodAndProperty'),
getModifyStatus: () => fetch.post('/v1/edf/org/canModifyEnterpriseProperty'),
downloadTemplate: () => fetch.formPost('/v1/gl/accountPeriodBegin/exportTemplate'), // 下载模板
updatePeriodAndProperty: (option) => fetch.post('/v1/edf/org/updatePeriodAndProperty', option),
importAccountBalance: (option) => fetch.post('/v1/gl/accountBalance/import', option),
queryExcelCheckedInfo: () => fetch.post('/v1/gl/accountBalance/queryImportExcelSuccessInfo')
}
}