From 2ab1ca4cdca109aaa3ba0c3b2d375c5efb6056c0 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Fri, 18 Aug 2023 13:30:16 +0800 Subject: [PATCH] update --- .../host/SettleAccount.HttpApi.Host/Startup.cs | 1 - .../wwwroot/models/_options.js | 14 +++++++------- .../wwwroot/models/input/jie-suan-detail.js | 14 +++++++++++--- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs index 342581b7..d717a9c7 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs @@ -21,7 +21,6 @@ public class Startup { public void ConfigureServices(IServiceCollection services) { - services.AddRequestTimeouts(); services.Configure(options => options.Level = CompressionLevel.Fastest); services.AddResponseCompression(options => { diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/_options.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/_options.js index cac0d10f..2cbfcc14 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/_options.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/_options.js @@ -9,14 +9,14 @@ const version = { }; const stateOptions = [ - { value: "0", label: "未结状态" }, - { value: "1", label: "已开票" }, - { value: "2", label: "商务已审核" }, - { value: "3", label: "财务已审核" }, - { value: "4", label: "客户已收票" }, - { value: "5", label: "已扣减" }, + { value: 0, label: "未结状态" }, + { value: 1, label: "已开票" }, + { value: 2, label: "商务已审核" }, + { value: 3, label: "财务已审核" }, + { value: 4, label: "客户已收票" }, + { value: 5, label: "已扣减" }, ]; -const state = { title: "状态", type: "string", input: "select", stateOptions }; +const state = { title: "状态", type: "string", input: "select", options: stateOptions }; const state2 = Object.assign(Object.assign({}, state), { options: stateOptions.filter((a) => parseInt(a.value) > 0) }); const state3 = Object.assign(Object.assign({}, state), { options: stateOptions.filter((a) => parseInt(a.value) > 3) }); diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan-detail.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan-detail.js index ff132e3e..55743492 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan-detail.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan-detail.js @@ -37,10 +37,18 @@ const schema = { }, }; -const queryUrl = "settleaccount/pub_sa_detail_service/get-list"; -const queryMethod = "POST"; +export default function (businessType) { + let service = null; + if (businessType === "JisBBAC") { + service = "bbac_sa_detail_service"; + } else if (businessType === "JisHBPO") { + service = "hbpo_sa_detail_service"; + } else { + service = "pub_sa_detail_service"; + } + const queryUrl = `settleaccount/${service}/get-list`; + const queryMethod = "POST"; -export default function () { return { query: { url: queryUrl,