From f770829d377dfc2c06f025c5ae08babca92d5c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=97=AD=E4=B9=8B?= <12930972+jiang-xuzhi@user.noreply.gitee.com> Date: Tue, 18 Jul 2023 08:57:47 +0800 Subject: [PATCH] update --- .../tb_re-parts-relationship_service.js | 99 +++++++++++++++++++ .../base-data/tb_re-parts-relationship.js | 0 .../tb_re-parts-relationship_service.js | 15 +++ 3 files changed, 114 insertions(+) delete mode 100644 code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_re-parts-relationship.js create mode 100644 code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_re-parts-relationship_service.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js index e69de29b..d988716a 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js @@ -0,0 +1,99 @@ +const schema = { + title: "客户替换件关系", + type: "object", + properties: { + lu: { + title: "零件号", + type: "string", + }, + repLU: { + title: "替换零件号", + type: "string", + }, + clientCode: { + title: "客户编码", + type: "string", + }, + businessType: { + title: "业务类型", + type: "EnumBusinessType", + }, + }, +}; + +const baseUrl = "settleaccount/tb_re-parts-relationship_service"; +const queryUrl = `${baseUrl}/get-list`; +const importUrl = `${baseUrl}/import`; +const exportUrl = `${baseUrl}/export`; +const queryMethod = "POST"; +const importMethod = "POST"; +const exportMethod = "POST"; + +export default function () { + return { + baseUrl, + query: { + url: queryUrl, + method: queryMethod, + schema: { + title: "客户替换件关系", + type: "object", + properties: { + filters: { + type: "array", + hidden: true, + items: { + type: "object", + properties: { + logic: { + type: "int", + }, + column: { + type: "string", + }, + action: { + type: "int", + }, + value: { + type: "string", + }, + }, + }, + default: [ + { + logic: "and", + column: "lu", + action: "like", + value: null, + readOnly: true, + }, + ], + }, + skipCount: { + hidden: true, + default: 0, + }, + maxResultCount: { + hidden: true, + default: 10, + }, + sorting: { + hidden: true, + }, + }, + }, + }, + table: { + schema: schema, + }, + edit: { + queryUrl, + importUrl, + exportUrl, + queryMethod, + importMethod, + exportMethod, + schema: schema, + }, + }; +} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_re-parts-relationship.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_re-parts-relationship.js deleted file mode 100644 index e69de29b..00000000 diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_re-parts-relationship_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_re-parts-relationship_service.js new file mode 100644 index 00000000..b677cf27 --- /dev/null +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_re-parts-relationship_service.js @@ -0,0 +1,15 @@ +import AppList from "../../components/list/index.js"; +import html from "html"; +import useConfig from "../../models/tb_re-parts-relationship_service.js"; + +export default { + components: { AppList }, + template: html``, + setup() { + const config = useConfig(); + const onCommand = async (item, rows) => { + console.log(item.path, item, rows); + }; + return { config, onCommand }; + }, +};