ttk-app-core
Version:
enterprise develop framework
42 lines (35 loc) • 1.65 kB
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import {
fetch
} from 'edf-utils'
const mockData = fetch.mockData
function initMockData() {
}
export default {
auxBalanceSumRpt: {
queryRptList: (option) => fetch.post('/v1/gl/report/balanceauxrpt/query', option),//获取列表数据
queryAccountList: (option) => fetch.post('/v1/gl/account/query', option), //获取档案列表
queryAccountDepth: () => {
return {
result: true,
values: [
{ key: '1', value: '1' },
{ key: '2', value: '2' },
{ key: '3', value: '3' },
{ key: '4', value: '4' },
{ key: '5', value: '5' }
]
}
},
export: (option) => fetch.formPost('/v1/gl/report/balanceauxrpt/export', option),//导出
print: (option) => fetch.printPost('/v1/gl/report/balanceauxrpt/print', option),//打印
query: (option) => fetch.post('/v1/gl/report/glauxsumrpt/query', option),
getDocVoucherDate: () => fetch.post('/v1/gl/doc/findMaxDocVoucherDate', {}), //获取年月
queryBaseArchives: (option) => fetch.post('/v1/ba/basearchive/queryBaseArchives', option), //获取不同档案下的数据列表
share: (option) => fetch.post('/v1/gl/report/balanceauxrpt/share', option),
getPrintConfig: () => fetch.post('v1/gl/docManage/printConfig', {})
}
}