| | |
| | | }); |
| | | } |
| | | |
| | | /* ===================== 部门类型配置 ===================== */ |
| | | /* ===================== 工序类型配置 ===================== */ |
| | | |
| | | export function costingDeptList() { |
| | | return request({ url: "/productionCosting/dept/list", method: "get" }); |
| | | export function costingProcessList(query) { |
| | | return request({ |
| | | url: "/productionCosting/process/list", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | export function costingDeptAdd(data) { |
| | | return request({ url: "/productionCosting/dept", method: "post", data }); |
| | | export function costingProcessAdd(data) { |
| | | return request({ url: "/productionCosting/process", method: "post", data }); |
| | | } |
| | | |
| | | export function costingDeptUpdate(data) { |
| | | return request({ url: "/productionCosting/dept", method: "put", data }); |
| | | export function costingProcessUpdate(data) { |
| | | return request({ url: "/productionCosting/process", method: "put", data }); |
| | | } |
| | | |
| | | export function costingDeptDel(id) { |
| | | return request({ url: "/productionCosting/dept/" + id, method: "delete" }); |
| | | export function costingProcessDel(id) { |
| | | return request({ url: "/productionCosting/process/" + id, method: "delete" }); |
| | | } |
| | | |
| | | /* ===================== 标准数量配置 ===================== */ |
| | |
| | | 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, |
| | | }); |
| | | } |