ttk-app-core
Version:
enterprise develop framework
72 lines (65 loc) • 3.38 kB
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import { fetch } from 'edf-utils'
const mockData = fetch.mockData
function initMockData() {
}
export default {
assetClassRpt: {
date: (option) => fetch.post('/v1/gl/asset/getIncludeDate', option),
init: (option) => fetch.post('/v1/gl/assetClassSumRpt/init', option),
query: (option) => fetch.post('/v1/gl/assetClassSumRpt/query', option),
export: (option) => fetch.formPost('/v1/gl/assetClassSumRpt/export', option),
print: (option) => fetch.printPost('/v1/gl/assetClassSumRpt/print', option),
findByParam: (option) => fetch.post('/v1/edf/column/findByParam', option),
updateWithDetail: (option) => fetch.post('/v1/edf/column/updateWithDetail', option),
batchUpdate: (option) => fetch.post('/v1/edf/columnDetail/save', option), //批量保存栏目明细
reInitByUser: (option) => fetch.post('/v1/edf/column/reInitByUser', option),//栏目重新初始化,恢复成预置数据
}
}
// init: (option) => {
// return {
// value: {
// assetList: [{
// "orgId": 3890187647552512,
// "assetTypeId": 200002,
// "assetClassId": 25,
// "assetClassName": "专利权",
// "origValue": 3333.0,
// "queryPeriodDepreciation": 27.78,
// "accuDepreciation": 27.78,
// "netWorth": 3305.22,
// "origValueStr": "3,333.00",
// "queryPeriodDepreciationStr": "27.78",
// "accuDepreciationStr": "27.78",
// "netWorthStr": "3,305.22",
// "yearBeginingToThePeriodDepreciation": 27.78,
// "yearBeginingToThePeriodDepreciationStr": "27.78"
// }],
// assetTypeList: [{
// "orgId": 0,
// "enumItemId": 200001,
// "enumItemName": "固定资产",
// "enumItemCode": "0001",
// "assetTypeId": 200001
// },
// {
// "orgId": 0,
// "enumItemId": 200002,
// "enumItemName": "无形资产",
// "enumItemCode": "0001",
// "assetTypeId": 200002
// },
// {
// "orgId": 0,
// "enumItemId": 200004,
// "enumItemName": "长期待摊费用",
// "enumItemCode": "0001",
// "assetTypeId": 200004
// }
// ]
// }
// }
// }