ttk-app-core
Version:
enterprise develop framework
45 lines (42 loc) • 3.52 kB
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import { fetch, fetchCors } from 'edf-utils'
export default {
init: (option) => fetch.post('/v1/biz/scm/sa/deliveryList/init', option), //列表初始化
auditAndExportBatch: (option) => fetch.formPost('/v1/biz/scm/sa/delivery/auditAndExportBatch', option), //生成凭证并导出到T+
auditAndExportBatchU8: (option) => fetch.formPost('/v1/biz/scm/sa/delivery/auditAndExportBatchU8', option), //生成凭证并导出到U8
deleteBatch: (option) => fetch.post('/v1/biz/scm/sa/delivery/deleteBatch', option),//批量删除
delete: (option) => fetch.post('/v1/biz/scm/sa/delivery/delete', option), //删除
checkAccountInfo: (option) => fetch.post('/v1/biz/scm/invoice/checkAccountInfo', option),
queryInvoiceSum: (option) => fetch.post('/v1/biz/scm/invoice/queryInvoiceSum', option),//发票汇总
import: (option) => fetch.post('/v1/biz/invoice/import', option),//导入excel
bankAccount: (option) => fetch.post('/v1/ba/bankAccount/queryList', option),//账户列表
collecteData: (option) => fetch.post('/v1/biz/scm/invoice/collecteDataNew', option),//采集发票
generateDocument: (option) => fetch.post('/v1/biz/scm/invoice/generateDocument', option),//生单
settlement: (option) => fetch.post('/v1/biz/scm/invoice/settlement', option),//批量结算
saveInvoice: (option) => fetch.post('/v1/biz/scm/invoice/saveInvoice', option),//保存
getDisplayDate: (option) => fetch.post('/v1/biz/scm/invoice/queryTimeRange', option), //初始化时间
getPrintConfig: () => fetch.post('v1/gl/docManage/printConfig', {}), //打印初始化
getAudit: (option) => fetch.post('/v1/biz/scm/sa/delivery/auditBatch', option), // 生成凭证(审核)
delAudit: (option) => fetch.post('/v1/biz/scm/sa/delivery/unauditBatch', option), // 删除凭证(批量反审核)
inventory: (option) => fetch.post('/v1/ba/inventory/queryList', {}), //存货名称
customer: (option) => fetch.post('/v1/ba/customer/queryList', option), //客户
findByParam: (option) => fetch.post('/v1/edf/column/findByParam', option), //查询栏目
updateWithDetail: (option) => fetch.post('/v1/edf/column/updateWithDetail', option), //更新栏目
initData: (option) => fetch.post('/v1/edf/column/initData', option),//初始化栏目数据
reInitByUser: (option) => fetch.post('/v1/edf/column/reInitByUser', option),//栏目重新初始化,恢复成预置数据
batchUpdate: (option) => fetch.post('/v1/edf/columnDetail/save', option), //批量保存栏目明细
export: (option) => fetch.formPost('/v1/biz/scm/sa/deliveryList/export', option), //导出
hasReadSJInfo: (option) => fetch.post('/v1/edf/dlxx/hasReadSJInfo', option),
audit: (option) => fetch.post('/v1/biz/scm/sa/delivery/audit', option),//审核
unaudit: (option) => fetch.post('/v1/biz/scm/sa/delivery/unaudit', option),//反审核
settleBatch: (option) => fetch.post('/v1/biz/scm/sa/delivery/settleBatch', option),//现结
completeBatch: (option) => fetch.post('/v1/biz/scm/sa/delivery/completeBatch', option),//批量补充
auditBatchForTPlus: (option) => fetch.post('/v1/biz/scm/sa/delivery/auditBatchForTPlus', option),//
tplus: {
configQuery: (option) => fetch.post('/v1/edf/linkConfig/query', option),//查询配置
configExist: (option) => fetch.post('/v1/edf/linkConfig/exist', option),//是否有配置
}
}