ttk-app-core
Version:
enterprise develop framework
29 lines (24 loc) • 1.35 kB
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import { fetch } from 'edf-utils'
let prefix = "/v1/biz/scm/sa/delivery/"
export default {
delivery: {
// init: (option) => fetch.post('/v1/web/biz/scm/sa/delivery/init', option),
init: (option) => fetch.post('/v1/biz/scm/sa/delivery/init', option),
previous: (code) => fetch.post(prefix + 'previous', code),
next: (code) => fetch.post(prefix + 'next', code),
create: (option) => fetch.post(prefix + 'create', option),
update: (option) => fetch.post(prefix + 'update', option),
del: (option) => fetch.post(prefix + 'delete', option),
audit: (option) => fetch.post(prefix + 'audit', option),
unaudit: (option) => fetch.post(prefix + 'unaudit', option),
queryByCustomer: (option) => fetch.post(prefix + 'queryByCustomer', option),
updateEnclosure: (option) => fetch.post(prefix + 'attachmentUpdate', option),
updateWithDetail: (option) => fetch.post('v1/edf/voucher/updateWithDetail', option),
reInitByUser: (option) => fetch.post('/v1/edf/voucher/reInitByUser', option),
revenueType: (option) => fetch.post('/v1/edf/enumDetail/findByEnumId',option),
}
}