UNPKG

ttk-app-core

Version:
26 lines (23 loc) 1.23 kB
/** * 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), }, bookkeeping: { query: (option) => fetch.post('/v1/biz/scm/invoice/queryKeepAccount', option), update: (option) => fetch.post('/v1/biz/scm/invoice/updateKeepAccount', option), bankAccount: (option) => fetch.post('/v1/ba/bankAccount/queryList', option), initKeepAccount: (option) => fetch.post('/v1/biz/scm/invoice/initKeepAccount', option), }, handleType: { queryCollectParam: (option) => fetch.post('/v1/biz/scm/invoice/queryCollectParam', option), saveCollectParam: (option) => fetch.post('/v1/biz/scm/invoice/saveCollectParam', option), } }