1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| import request from "@/utils/request";
|
| // 无形资产分页查询(current/size)
| export function listIntangibleAssetPage(params) {
| return request({
| url: "/financial/intangibleAsset/page",
| method: "get",
| params,
| });
| }
|
| // 新增无形资产
| export function addIntangibleAsset(data) {
| return request({
| url: "/financial/intangibleAsset/add",
| method: "post",
| data,
| });
| }
|
| // 修改无形资产
| export function updateIntangibleAsset(data) {
| return request({
| url: "/financial/intangibleAsset/update",
| method: "put",
| data,
| });
| }
|
| // 删除无形资产(后端要求 ids=1&ids=2 形式)
| export function deleteIntangibleAsset(ids) {
| const idList = Array.isArray(ids) ? ids : [ids];
| const query = idList
| .filter(id => id !== undefined && id !== null && id !== "")
| .map(id => `ids=${encodeURIComponent(id)}`)
| .join("&");
| return request({
| url: `/financial/intangibleAsset/delete?${query}`,
| method: "delete",
| });
| }
|
| // 摊销计提({} 表示全部在用资产)
| export function amortizeIntangibleAsset(data = {}) {
| return request({
| url: "/financial/intangibleAsset/amortize",
| method: "post",
| data,
| });
| }
|
|