wanggang 1 year ago
parent
commit
162e09bd09
  1. 6
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/commerce.js
  2. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js
  3. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/commerce.js
  4. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/finance.js

6
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/commerce.js

@ -64,7 +64,8 @@ export default function (businessType, type) {
service = "invoice_service"; service = "invoice_service";
} }
const queryUrl = `settleaccount/${service}/main-query`; const queryUrl = `settleaccount/${service}/main-query`;
const exportUrl = `settleaccount/invoice_service/export-detail`; const exportUrl = `settleaccount/invoice_service/export`;
const exportGroupUrl = `settleaccount/invoice_service/export-detail`;
const invoiceUrl = `settleaccount/${service}/generate-invoice`; const invoiceUrl = `settleaccount/${service}/generate-invoice`;
const receivedUrl = `settleaccount/${service}/received`; const receivedUrl = `settleaccount/${service}/received`;
const rejectUrl = `settleaccount/${service}/reject`; const rejectUrl = `settleaccount/${service}/reject`;
@ -73,6 +74,7 @@ export default function (businessType, type) {
const importUrl = `settleaccount/${service}/excel-import`; const importUrl = `settleaccount/${service}/excel-import`;
const queryMethod = "POST"; const queryMethod = "POST";
const exportMethod = "POST"; const exportMethod = "POST";
const exportGroupMethod = "POST";
const invoiceMethod = "POST"; const invoiceMethod = "POST";
const receivedMethod = "POST"; const receivedMethod = "POST";
const rejectMethod = "POST"; const rejectMethod = "POST";
@ -150,6 +152,7 @@ export default function (businessType, type) {
}, },
edit: { edit: {
exportUrl, exportUrl,
exportGroupUrl,
invoiceUrl, invoiceUrl,
receivedUrl, receivedUrl,
rejectUrl, rejectUrl,
@ -157,6 +160,7 @@ export default function (businessType, type) {
approvalUrl, approvalUrl,
importUrl, importUrl,
exportMethod, exportMethod,
exportGroupMethod,
invoiceMethod, invoiceMethod,
receivedMethod, receivedMethod,
rejectMethod, rejectMethod,

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js

@ -90,6 +90,7 @@ function createCommerceCheckList(path, business, client, title = "商务审批")
component: "/settle/commerce", component: "/settle/commerce",
children: [ children: [
createButton("query", "title=查询&isTop=true"), createButton("query", "title=查询&isTop=true"),
createButton("export", "title=导出&isTop=true&pattern=paged"),
createButton( createButton(
"approval", "approval",
"title=商务审核通过&isTop=true", "title=商务审核通过&isTop=true",
@ -360,6 +361,7 @@ export default [
component: "/settle/finance", component: "/settle/finance",
children: [ children: [
createButton("query", "title=查询&isTop=true"), createButton("query", "title=查询&isTop=true"),
createButton("export", "title=导出&isTop=true&pattern=paged"),
createButton( createButton(
"import", "import",
"title=导入开票文件&isTop=true", "title=导入开票文件&isTop=true",

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/commerce.js

@ -32,8 +32,8 @@ export default {
await appListRef.value.onClick(async () => await request(url, data, { method: "POST" }), message, true); await appListRef.value.onClick(async () => await request(url, data, { method: "POST" }), message, true);
} }
} else if (item.path === "export-group") { } else if (item.path === "export-group") {
const url = config.edit.exportUrl; const url = config.edit.exportGroupUrl;
const method = config.edit.exportMethod; const method = config.edit.exportGroupMethod;
const postData = { const postData = {
filters: [ filters: [
{ {

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/finance.js

@ -32,7 +32,7 @@ export default {
await appListRef.value.onClick(async () => await request(url, data, { method: "POST" }), message, true); await appListRef.value.onClick(async () => await request(url, data, { method: "POST" }), message, true);
} }
} else if (item.path === "export-group") { } else if (item.path === "export-group") {
const url = config.edit.exportUrl; const url = config.edit.exportGroupUrl;
const method = config.edit.exportMethod; const method = config.edit.exportMethod;
const postData = { const postData = {
filters: [ filters: [

Loading…
Cancel
Save