You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.7 KiB
91 lines
2.7 KiB
'use strict';
|
|
|
|
import { ApiTable, basicAction } from '$utils'
|
|
|
|
//回款明细表
|
|
export function getReceivedDetail(query) {
|
|
return (dispatch) => basicAction({
|
|
type: "get",
|
|
dispatch: dispatch,
|
|
actionType: "GET_RECEIVED_DETAIL",
|
|
query: query,
|
|
url: `${ApiTable.getReceivedDetail}`,
|
|
msg: { option: "查询回款明细表" },
|
|
reducer: { name: "ReceivedDetail", params: { noClear: true } },
|
|
});
|
|
}
|
|
|
|
//业绩明细表
|
|
export function getAchievementDetail(query) {
|
|
return (dispatch) => basicAction({
|
|
type: "get",
|
|
dispatch: dispatch,
|
|
actionType: "GET_ACHIEVEMENT_DETAIL",
|
|
query: query,
|
|
url: `${ApiTable.getAchievementDetail}`,
|
|
msg: { option: "查询业绩明细表" },
|
|
reducer: { name: "AchievementDetail", params: { noClear: true } },
|
|
});
|
|
}
|
|
|
|
//回款明细 编号集合
|
|
export function getReceivedNumbers(query = {}) {
|
|
return (dispatch) => basicAction({
|
|
type: "get",
|
|
dispatch: dispatch,
|
|
query: query,
|
|
actionType: "GET_RECEIVED_DETAIL_NUMBERS",
|
|
url: `${ApiTable.getReceivedNumbers}`,
|
|
msg: { option: "查询回款明细编号集合" },
|
|
reducer: { name: "ReceivedDetailNumbers", params: { noClear: true } },
|
|
});
|
|
}
|
|
//导入回款明细
|
|
export function importBackDetails(values, query = {}) {
|
|
return dispatch => basicAction({
|
|
type: 'post',
|
|
dispatch: dispatch,
|
|
query: query,
|
|
actionType: 'RECEIVED_DETAIL_BULK_ADD',
|
|
url: ApiTable.importBackDetails,
|
|
data: values,
|
|
msg: { option: '导入回款明细' },
|
|
});
|
|
}
|
|
|
|
//导入业绩明细
|
|
export function importAchieveDetails(values) {
|
|
return dispatch => basicAction({
|
|
type: 'post',
|
|
dispatch: dispatch,
|
|
actionType: 'ACHIEVEMENT_DETAIL_BULK_ADD',
|
|
url: ApiTable.importAchieveDetails,
|
|
data: values,
|
|
msg: { option: '导入业绩明细' },
|
|
});
|
|
}
|
|
//查询合同明细表
|
|
export function getContractDetail(query) {
|
|
return (dispatch) => basicAction({
|
|
type: "get",
|
|
dispatch: dispatch,
|
|
actionType: "GET_CONTRACT_DETAIL",
|
|
query: query,
|
|
url: `${ApiTable.getContractDetail}`,
|
|
msg: { option: "查询合同明细表" },
|
|
reducer: { name: "ContractDetail", params: { noClear: true } },
|
|
});
|
|
}
|
|
|
|
//查询开票明细表
|
|
export function getInvoicingDetail(query) {
|
|
return (dispatch) => basicAction({
|
|
type: "get",
|
|
dispatch: dispatch,
|
|
actionType: "GET_INVOICING_DETAIL",
|
|
query: query,
|
|
url: `${ApiTable.getInvoicingDetail}`,
|
|
msg: { option: "查询开票明细表" },
|
|
reducer: { name: "InvoicingDetail", params: { noClear: true } },
|
|
});
|
|
}
|