zhaoxinyu 8 months ago
parent
commit
b5cbf9237f
  1. 37
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/detail.js

37
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/detail.js

@ -95,7 +95,14 @@ export default function (businessType, type) {
} }
if (businessType !== "JisBBAC") { if (businessType !== "JisBBAC") {
delete schema.properties["site"]; delete schema.properties["site"];
}
else
{
if(service === "bbac_can_sa_service")
{
delete schema.properties["site"];
}
} }
const queryUrl = `settleaccount/${service}/detail-query`; const queryUrl = `settleaccount/${service}/detail-query`;
const addUrl = `settleaccount/${service}/generate-settlement-order`; const addUrl = `settleaccount/${service}/generate-settlement-order`;
@ -209,6 +216,7 @@ export default function (businessType, type) {
} }
else else
{ {
const querySchema = { const querySchema = {
title: "通用代码", title: "通用代码",
@ -291,16 +299,23 @@ export default function (businessType, type) {
}, },
}; };
if(service === "bbac_can_sa_service")
{
querySchema.properties.filters.default.push({
logic: "and", }
column: "site", else
action: "equal", {
value: schema.properties.site.default, querySchema.properties.filters.default.push({
readOnly: true, logic: "and",
}); column: "site",
action: "equal",
value: schema.properties.site.default,
readOnly: true,
});
}
return { return {
query: { query: {

Loading…
Cancel
Save