|
|
@@ -1,15 +1,9 @@
|
|
|
import http from '@/utils/http'
|
|
|
import { AppDispatch } from '@/store'
|
|
|
+import { APIbase } from '../layout'
|
|
|
|
|
|
/**
|
|
|
- * 流程中心-获取详情
|
|
|
- */
|
|
|
-export const API_getGoodsInfo = (id: number) => {
|
|
|
- return http.get(`cms/workVoucher/orderDetail/${id}`)
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 流程中心-获取分页列表
|
|
|
+ * 凭证中心-获取分页列表
|
|
|
*/
|
|
|
export const API_getGoodsList = (data: any): any => {
|
|
|
return async (dispatch: AppDispatch) => {
|
|
|
@@ -26,7 +20,7 @@ export const API_getGoodsList = (data: any): any => {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 流程中心-获取全部数据
|
|
|
+ * 凭证中心-获取全部数据
|
|
|
*/
|
|
|
export const API_getGoodsListAll = () => {
|
|
|
return http.post(`cms/workVoucher/pageList`, {
|
|
|
@@ -37,8 +31,19 @@ export const API_getGoodsListAll = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+export const A4API_obj = {
|
|
|
+ 创建订单: () => APIbase('get', 'cms/workVoucher/create'),
|
|
|
+ 获取详情: (id: number) => APIbase('get', `cms/workVoucher/orderDetail/${id}`),
|
|
|
+ 草稿: (data: any) => APIbase('post', `cms/workVoucher/saveDraft`, data),
|
|
|
+ 发起: (data: any) => APIbase('post', `cms/workVoucher/saveApply`, data),
|
|
|
+ 重新发起: (id: number) => APIbase('get', `cms/workVoucher/reissue/${id}`),
|
|
|
+ 审批: (data: any) => APIbase('post', `cms/workVoucher/audit`, data),
|
|
|
+ 撤回: (id: number) => APIbase('get', `cms/workVoucher/revocation/${id}`),
|
|
|
+ 删除: (id: number) => APIbase('get', `cms/workVoucher/remove/${id}`)
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
- * 流程中心-删除附件
|
|
|
+ * 凭证中心-删除附件
|
|
|
*/
|
|
|
// export const API_delFiles = (ids: number[]) => {
|
|
|
// return http.post(`cms/workVoucher/removes`, ids)
|