From 6891ae0e601d7bbb48ed25ead01bdd789ef4f161 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, 8 Aug 2023 17:09:56 +0800
Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=8F=98=E9=A6=96=E9=A1=B5=E5=88=A0?=
=?UTF-8?q?=E9=99=A4=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../wwwroot/components/form/form-input.js | 13 ------
.../wwwroot/components/list/index.js | 12 +++---
.../wwwroot/views/home.js | 40 ++++++++++++++++++-
3 files changed, 45 insertions(+), 20 deletions(-)
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 debf6225..0670a999 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
@@ -118,19 +118,6 @@ export default {
const limit = props.schema.multiple ? props.schema.limit ?? 5 : 1;
const size = props.schema.size ?? 1024 * 1024;
const fileTypes = props.schema.accept?.split(",").map((o) => o.toLowerCase()) ?? [];
- // const beforeUpload = (file) => {
- // if (props.schema.accept && !fileTypes.some((o) => o === file.type)) {
- // ElMessage.error(
- // `当前文件类型 ${mimetypeToExension(file.type) ?? file.type},可选文件类型 ${props.schema.accept}`
- // );
- // return false;
- // }
- // if (file.size > size.value) {
- // ElMessage.error(`当前文件大小 ${formatBytes(file.size)},已超过 ${formatBytes(size.value)}`);
- // return false;
- // }
- // return true;
- // };
const { formItem } = useFormItem();
const handleChange = async (uploadFile, uploadFiles) => {
const ext = uploadFile.name.substr(uploadFile.name.lastIndexOf("."));
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
index 66b03369..a5d9a0c8 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
@@ -424,7 +424,8 @@ export default {
input: "file",
accept: ".xlsx",
default: [],
- limit: 3,
+ limit: 10,
+ size: 100 * 1024 * 1024,
rules: [
{
required: true,
@@ -831,11 +832,10 @@ export default {
}
function isNotJit() {
return (
- route.meta.businessType !== "ZhiGongJianBBAC" ||
- route.meta.businessType !== "ZhiGongJianHBPO" ||
- route.meta.businessType !== "BeiJian" ||
- route.meta.businessType !== "YinDuJian" ||
- route.meta.businessType !== "MaiDanJianHBPO"
+ route.meta.businessType !== 3 ||
+ route.meta.businessType !== 4 ||
+ route.meta.businessType !== 7 ||
+ route.meta.businessType !== 8
);
}
onMounted(async () => {
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/home.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/home.js
index e3339215..6084d2c9 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/home.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/home.js
@@ -1,5 +1,43 @@
import html from "html";
+import AppList from "../../../components/list/index.js";
export default {
- template: html`导入模板下载`,
+ components: { AppList },
+ template: html`
+
+
+
+
+
+ `,
+ setup() {
+ const tableData = [
+ {
+ date: "JIS",
+ name: "√",
+ address: "√",
+ },
+ {
+ date: "直供件",
+ name: "√",
+ address: "√",
+ },
+ {
+ date: "印度件",
+ name: "√",
+ address: "",
+ },
+ {
+ date: "备件",
+ name: "√",
+ address: "",
+ },
+ {
+ date: "买单件",
+ name: "对比√ 开票×",
+ address: "√",
+ },
+ ];
+ return { tableData };
+ },
};