| | |
| | | // 生产核算页面接口 |
| | | import request from "@/utils/request"; |
| | | |
| | | // 分页查询 |
| | | export function productionAccountingListPage(query) { |
| | | /* ===================== 核算查询 ===================== */ |
| | | |
| | | // 按员工汇总(产量、月时间合计、折合倍数) |
| | | export function costingSummary(query) { |
| | | return request({ |
| | | url: "/salesLedger/productionAccounting/listPage", |
| | | url: "/productionCosting/summary", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | // 左边表格的接口 |
| | | // salesLedger/productionAccounting/page |
| | | export function salesLedgerProductionAccountingList(query) { |
| | | // 明细(白盒:工序+型号;成品:工序) |
| | | export function costingDetail(query) { |
| | | return request({ |
| | | url: "/productionAccount/listPage", |
| | | url: "/productionCosting/detail", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | // 右边表格的接口 |
| | | // |
| | | export function salesLedgerProductionAccountingListProductionDetails(query) { |
| | | // 月份工作日信息 |
| | | export function costingWorkday(yearMonth) { |
| | | return request({ |
| | | url: "/productionAccount/listProductionDetails", |
| | | url: "/productionCosting/workday", |
| | | method: "get", |
| | | params: query, |
| | | params: { yearMonth }, |
| | | }); |
| | | } |
| | | |
| | | // 批量核算 |
| | | export function productionAccountingBatchAccounting(data) { |
| | | // 导出明细 |
| | | export function costingExport(query) { |
| | | return request({ |
| | | url: "/productionAccount/batchAccounting", |
| | | url: "/productionCosting/export", |
| | | method: "post", |
| | | data, |
| | | params: query, |
| | | responseType: "blob", |
| | | }); |
| | | } |
| | | |
| | | // 单个修正 |
| | | export function productionAccountingSingleAdjust(data) { |
| | | /* ===================== 部门类型配置 ===================== */ |
| | | |
| | | export function costingDeptList() { |
| | | return request({ url: "/productionCosting/dept/list", method: "get" }); |
| | | } |
| | | |
| | | export function costingDeptAdd(data) { |
| | | return request({ url: "/productionCosting/dept", method: "post", data }); |
| | | } |
| | | |
| | | export function costingDeptUpdate(data) { |
| | | return request({ url: "/productionCosting/dept", method: "put", data }); |
| | | } |
| | | |
| | | export function costingDeptDel(id) { |
| | | return request({ url: "/productionCosting/dept/" + id, method: "delete" }); |
| | | } |
| | | |
| | | /* ===================== 标准数量配置 ===================== */ |
| | | |
| | | export function costingStandardList(query) { |
| | | return request({ |
| | | url: "/productionAccount/singleAdjust", |
| | | method: "post", |
| | | data, |
| | | url: "/productionCosting/standard/list", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | export function costingStandardAdd(data) { |
| | | return request({ url: "/productionCosting/standard", method: "post", data }); |
| | | } |
| | | |
| | | export function costingStandardUpdate(data) { |
| | | return request({ url: "/productionCosting/standard", method: "put", data }); |
| | | } |
| | | |
| | | export function costingStandardDel(id) { |
| | | return request({ url: "/productionCosting/standard/" + id, method: "delete" }); |
| | | } |
| | | |
| | | /* ===================== 折算率配置 ===================== */ |
| | | |
| | | export function costingFactorList(query) { |
| | | return request({ |
| | | url: "/productionCosting/factor/list", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | export function costingFactorAdd(data) { |
| | | return request({ url: "/productionCosting/factor", method: "post", data }); |
| | | } |
| | | |
| | | export function costingFactorUpdate(data) { |
| | | return request({ url: "/productionCosting/factor", method: "put", data }); |
| | | } |
| | | |
| | | export function costingFactorDel(id) { |
| | | return request({ url: "/productionCosting/factor/" + id, method: "delete" }); |
| | | } |
| | | |
| | | /* ===================== 月度工作日配置 ===================== */ |
| | | |
| | | export function costingWorkdayList(query) { |
| | | return request({ |
| | | url: "/productionCosting/workdayConfig/list", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | export function costingWorkdayAdd(data) { |
| | | return request({ url: "/productionCosting/workdayConfig", method: "post", data }); |
| | | } |
| | | |
| | | export function costingWorkdayUpdate(data) { |
| | | return request({ url: "/productionCosting/workdayConfig", method: "put", data }); |
| | | } |
| | | |
| | | export function costingWorkdayDel(id) { |
| | | return request({ url: "/productionCosting/workdayConfig/" + id, method: "delete" }); |
| | | } |
| | | |
| | | /* ===================== 下拉数据源 ===================== */ |
| | | |
| | | // 工序下拉 |
| | | export function costingProcessOptions(query) { |
| | | return request({ |
| | | url: "/technologyOperation/listPage", |
| | | method: "get", |
| | | params: { current: 1, size: 1000, ...query }, |
| | | }); |
| | | } |
| | | |
| | | // 型号下拉 |
| | | export function costingModelOptions(query) { |
| | | return request({ |
| | | url: "/basic/product/pageModel", |
| | | method: "get", |
| | | params: { current: 1, size: 1000, ...query }, |
| | | }); |
| | | } |
| | | |
| | | // 部门下拉 |
| | | export function costingDeptOptions(query) { |
| | | return request({ |
| | | url: "/system/dept/list", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |