ttk-app-core
Version:
enterprise develop framework
22 lines (20 loc) • 1.17 kB
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import { fetch } from 'edf-utils'
export default {
asset: {
date: (option) => fetch.post('/v1/gl/asset/getIncludeDate', option),
depreciationList: (option) => fetch.post('/v1/gl/asset/depreciationList', option),
depreciation: (option) => fetch.post('/v1/gl/asset/depreciation', option),
voucher: (option) => fetch.post('/v1/gl/asset/depreciationToDoc', option),
exports: (option) => fetch.formPost('/v1/gl/asset/exportDepreciationList', option),
print: (option) => fetch.printPost('/v1/gl/asset/printDepreciationList', 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),//栏目重新初始化,恢复成预置数据
isDispatch: () => fetch.post('/v1/gl/asset/isDispatch'),
}
}