|
|
@ -63,6 +63,19 @@ function createCompareVmi(path, business, client, title = "库存余额任务") |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
function createCompareDiff(path, business, client, title = "BBAC 全表核对差异") { |
|
|
|
return { |
|
|
|
...createPage(path, `title=${title}&businessType=${business}&client=${client}`), |
|
|
|
component: "/compare/vmi", |
|
|
|
children: [ |
|
|
|
createButton("query", "title=查询&isTop=true"), |
|
|
|
createButton("compare", "title=生成数据&isTop=true"), |
|
|
|
createButton("delete", "title=删除&isTop=true"), |
|
|
|
createButton("export", "title=下载&pattern=file&disabled=o=>o.stateName!='Succeeded'"), |
|
|
|
], |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
function createCompareJieSuan(path, business, client, title = "EDI、发运与结算比对") { |
|
|
|
return { |
|
|
|
...createPage(path, `title=${title}&businessType=${business}&client=${client}`), |
|
|
@ -173,6 +186,7 @@ export default [ |
|
|
|
children: [ |
|
|
|
createCompareFaYun("bbac_sa_detail_jobservice", "JisBBAC", "bbac", "JIS-BBAC EDI与发运对比"), |
|
|
|
createCompareJieSuan("first_bbac_sa_detail_jobservice", "JisBBAC", "bbac", "JIS-BBAC EDI、发运与结算对比"), |
|
|
|
createCompareDiff("bbacwms_edi_diff", "BBACDiff", "bbac", "BBAC 全表核对差异") |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
@ -202,6 +216,7 @@ export default [ |
|
|
|
children: [ |
|
|
|
createCompareFaYun("hbpo_sa_detail_jobservice", "JisHBPO", "hbpo", "JIS-HBPO EDI与发运对比"), |
|
|
|
createCompareJieSuan("first_hbpo_sa_detail_jobservice", "JisHBPO", "hbpo", "JIS-HBPO EDI、发运与结算对比"), |
|
|
|
createCompareDiff("hbpowms_edi_diff", "HBPODiff", "hbpo", "HBPO 全表核对差异") |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
@ -376,6 +391,7 @@ export default [ |
|
|
|
children: [ |
|
|
|
createButton("query", "title=查询&isTop=true"), |
|
|
|
createButton("export", "title=导出&isTop=true&pattern=paged"), |
|
|
|
createButton("remark", "title=备注&isTop=true&pattern=paged"), |
|
|
|
createButton( |
|
|
|
"import", |
|
|
|
"title=导入开票文件&isTop=true", |
|
|
@ -386,7 +402,9 @@ export default [ |
|
|
|
"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("remark", "title=编辑&pattern=paged", (r, _) => r.invoiceState !== 2), |
|
|
|
createButton("export-group", "title=导出发票分组&pattern=paged", (r, _) => r.invoiceState !== 2), |
|
|
|
|
|
|
|
//createButton("approval", "title=发票重开"),
|
|
|
|
createButton( |
|
|
|
"reject", |
|
|
@ -398,6 +416,7 @@ export default [ |
|
|
|
"title=同步到QAD&isTop=true", |
|
|
|
(_, q) => q.filters.some((o) => o.column === "state" && o.value === 5) && q.filters.some((o) => o.column === "invoiceState" && o.value === 1) |
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|