|
|
@ -2,16 +2,21 @@ import createRoute, { createPage, createButton } from "./utils.js"; |
|
|
|
|
|
|
|
// #region 数据输入
|
|
|
|
function createInputJieSuanShuju(path, business, client, title = "结算数据") { |
|
|
|
return { |
|
|
|
const routes = { |
|
|
|
...createPage(path, `title=${title}&businessType=${business}&client=${client}`), |
|
|
|
component: "/input/jie-suan", |
|
|
|
children: [ |
|
|
|
createButton("query", "title=查询&isTop=true"), |
|
|
|
createButton("import", "title=导入&isTop=true"), |
|
|
|
//createButton("import", "title=导入&isTop=true"),
|
|
|
|
createButton("export", "title=导出&pattern=row&key=billNum"), |
|
|
|
createButton("delete", "title=删除&isTop=true"), |
|
|
|
//createButton("delete", "title=删除&isTop=true"),
|
|
|
|
], |
|
|
|
}; |
|
|
|
if (business !== "MaiDanJianBBAC" && business !== "MaiDanJianHBPO") { |
|
|
|
routes.children.push(createButton("import", "title=导入&isTop=true")); |
|
|
|
routes.children.push(createButton("delete", "title=删除&isTop=true")); |
|
|
|
} |
|
|
|
return routes; |
|
|
|
} |
|
|
|
|
|
|
|
function createInputFaYunShuJu(path, business, client, title = "发运数据") { |
|
|
@ -341,6 +346,7 @@ export default [ |
|
|
|
createButton("import", "title=导入开票文件&isTop=true"), |
|
|
|
createButton("approval", "title=财务审核通过&isTop=true"), |
|
|
|
createButton("export-group", "title=导出发票分组&pattern=paged"), |
|
|
|
createButton("approval", "title=发票重开"), |
|
|
|
createButton("reject", "title=退回&isTop=true"), |
|
|
|
createButton("sync", "title=同步到QAD&isTop=true"), |
|
|
|
], |
|
|
|