Browse Source

update

master
wanggang 1 year ago
parent
commit
2ab1ca4cdc
  1. 1
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs
  2. 14
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/_options.js
  3. 14
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan-detail.js

1
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<GzipCompressionProviderOptions>(options => options.Level = CompressionLevel.Fastest);
services.AddResponseCompression(options =>
{

14
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) });

14
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,

Loading…
Cancel
Save