ttk-app-core
Version:
enterprise develop framework
18 lines (15 loc) • 831 B
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import { fetch } from 'edf-utils'
export default {
inventory: {
initSummaryRpt: (option) => fetch.post('/v1/biz/scm/st/rptservice/initSummaryRpt', option),
getInventory: (option) => fetch.post('/v1/biz/scm/st/rptservice/inventorySummary', option),
query: (option) => fetch.post('/v1/biz/scm/st/rdrecord/queryenabletime', option),
export: (option) => fetch.formPost('/v1/biz/scm/st/rptservice/exportInventorySummary', option),
print: (option) => fetch.printPost('/v1/biz/scm/st/rptservice/printInventorySummary', option),
reCalcCost: (option) => fetch.post('/v1/biz/scm/st/rdrecord/reCalcCost', option)
}
}