From 7620bd437bbcb13e0363506e44d87f5b3b3121d5 Mon Sep 17 00:00:00 2001
From: wanggang <76527413@qq.com>
Date: Sat, 29 Jul 2023 11:40:05 +0800
Subject: [PATCH] update
---
.../wwwroot/components/form/form-input.js | 2 +-
.../wwwroot/models/business-type.js | 11 ++++++
.../wwwroot/models/price-list.js | 38 ++++++++++---------
3 files changed, 33 insertions(+), 18 deletions(-)
create mode 100644 code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/business-type.js
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
index 17967d8a..d261505b 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
@@ -13,6 +13,7 @@ export default {
{{dayjs(model[prop]).format('YYYY-MM-DD')}}
{{dayjs(model[prop]).format('YYYY-MM-DD HH:mm:ss')}}
******
+ {{options[model[prop]].label}}
{{model[prop]}}
@@ -24,7 +25,6 @@ export default {
:multiple="!!schema.multiple"
:clearable="!!schema.clearable"
style="width:100%"
- :title="JSON.stringify(options)"
>
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/business-type.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/business-type.js
new file mode 100644
index 00000000..65c37997
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/business-type.js
@@ -0,0 +1,11 @@
+export default [
+ { value: 0, label: "未定义" },
+ { value: 1, label: "JisBBAC" },
+ { value: 2, label: "JisHBPO" },
+ { value: 3, label: "直供件BBAC" },
+ { value: 4, label: "直供件HBPO" },
+ { value: 5, label: "买单件BBAC" },
+ { value: 6, label: "买单件HBPO" },
+ { value: 7, label: "备件" },
+ { value: 8, label: "印度件" },
+];
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js
index 499350b1..332eb244 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js
@@ -1,33 +1,37 @@
+import businessTypes from "./business-type.js";
+
const schema = {
title: "销售价格单",
type: "object",
properties: {
- version: {
- title: "版本",
+ lu: {
+ title: "零件号",
type: "string",
},
- beginDate: {
+ price: {
+ title: "价格",
+ type: "number",
+ },
+ beginTime: {
title: "开始时间",
- type: "DateTime",
+ type: "datetime",
},
- endDate: {
+ endTime: {
title: "结算时间",
- type: "DateTime",
+ type: "datetime",
},
- price: {
- title: "价格",
- type: "decimal",
- },
- materialCode: {
- title: "物料编号",
+ clientCode: {
+ title: "客户编码",
type: "string",
},
- type: {
- title: "价格类型",
- type: "int",
+ businessType: {
+ title: "业务类别",
+ type: "string",
+ input: "select",
+ options: businessTypes,
},
- customerCode: {
- title: "客户",
+ version: {
+ title: "版本",
type: "string",
},
},