ttk-app-core
Version:
enterprise develop framework
16 lines (13 loc) • 616 B
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import { fetch } from 'edf-utils'
export default {
handleRule: {
getMatchingRule: (option) => fetch.post('/v1/biz/scm/invoice/getMatchingRule', option),
updateMatchingRule: (option) => fetch.post('/v1/biz/scm/invoice/updateMatchingRule', option),
inventory: (option) => fetch.post('/v1/ba/inventory/queryList', {}),
queryInventory: (option) => fetch.post('/v1/biz/scm/pu/arrival/queryInventory', option),
}
}