|
|
@ -90,10 +90,27 @@ function createCommerceCheckList(path, business, client, title = "商务审批") |
|
|
|
component: "/settle/commerce", |
|
|
|
children: [ |
|
|
|
createButton("query", "title=查询&isTop=true"), |
|
|
|
createButton("approval", "title=商务审核通过&isTop=true"), |
|
|
|
createButton("reject", "title=退回"), |
|
|
|
createButton( |
|
|
|
"approval", |
|
|
|
"title=商务审核通过&isTop=true", |
|
|
|
(_, q) => q.filters.some((o) => o.column === "state" && o.value === 1) && q.filters.some((o) => o.column === "invoiceState" && o.value === 1) |
|
|
|
), |
|
|
|
createButton( |
|
|
|
"reject", |
|
|
|
"title=退回", |
|
|
|
(_, q) => q.filters.some((o) => o.column === "state" && o.value === 1) && q.filters.some((o) => o.column === "invoiceState" && o.value === 1) |
|
|
|
), |
|
|
|
createButton("export-group", "title=导出发票分组&pattern=paged"), |
|
|
|
createButton("receive", "title=客户已收票&isTop=true"), |
|
|
|
createButton( |
|
|
|
"receive", |
|
|
|
"title=客户已收票&isTop=true", |
|
|
|
(_, q) => q.filters.some((o) => o.column === "state" && o.value === 3) && q.filters.some((o) => o.column === "invoiceState" && o.value === 1) |
|
|
|
), |
|
|
|
createButton( |
|
|
|
"bao-fei", |
|
|
|
"title=报废&isTop=true", |
|
|
|
(_, q) => q.filters.some((o) => o.column === "state" && (o.value === 3 || o.value === 4)) && q.filters.some((o) => o.column === "invoiceState" && o.value === 1) |
|
|
|
), |
|
|
|
], |
|
|
|
}; |
|
|
|
} |
|
|
@ -343,11 +360,23 @@ export default [ |
|
|
|
component: "/settle/finance", |
|
|
|
children: [ |
|
|
|
createButton("query", "title=查询&isTop=true"), |
|
|
|
createButton("import", "title=导入开票文件&isTop=true", "(a, b) => false"), |
|
|
|
createButton("approval", "title=财务审核通过&isTop=true"), |
|
|
|
createButton( |
|
|
|
"import", |
|
|
|
"title=导入开票文件&isTop=true", |
|
|
|
(_, q) => q.filters.some((o) => o.column === "state" && o.value === 3) && q.filters.some((o) => o.column === "invoiceState" && o.value === 1) |
|
|
|
), |
|
|
|
createButton( |
|
|
|
"approval", |
|
|
|
"title=财务审核通过&isTop=true", |
|
|
|
(_, q) => q.filters.some((o) => o.column === "state" && o.value === 2) && q.filters.some((o) => o.column === "invoiceState" && o.value === 1) |
|
|
|
), |
|
|
|
createButton("export-group", "title=导出发票分组&pattern=paged"), |
|
|
|
createButton("approval", "title=发票重开"), |
|
|
|
createButton("reject", "title=退回&isTop=true"), |
|
|
|
createButton( |
|
|
|
"reject", |
|
|
|
"title=退回&isTop=true", |
|
|
|
(_, q) => q.filters.some((o) => o.column === "state" && o.value === 2) && q.filters.some((o) => o.column === "invoiceState" && o.value === 1) |
|
|
|
), |
|
|
|
createButton("sync", "title=同步到QAD&isTop=true"), |
|
|
|
], |
|
|
|
}, |
|
|
|