Browse Source

改变首页删除注释

master
姜旭之 1 year ago
parent
commit
6891ae0e60
  1. 13
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
  2. 12
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
  3. 40
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/home.js

13
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 limit = props.schema.multiple ? props.schema.limit ?? 5 : 1;
const size = props.schema.size ?? 1024 * 1024; const size = props.schema.size ?? 1024 * 1024;
const fileTypes = props.schema.accept?.split(",").map((o) => o.toLowerCase()) ?? []; 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 { formItem } = useFormItem();
const handleChange = async (uploadFile, uploadFiles) => { const handleChange = async (uploadFile, uploadFiles) => {
const ext = uploadFile.name.substr(uploadFile.name.lastIndexOf(".")); const ext = uploadFile.name.substr(uploadFile.name.lastIndexOf("."));

12
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js

@ -424,7 +424,8 @@ export default {
input: "file", input: "file",
accept: ".xlsx", accept: ".xlsx",
default: [], default: [],
limit: 3, limit: 10,
size: 100 * 1024 * 1024,
rules: [ rules: [
{ {
required: true, required: true,
@ -831,11 +832,10 @@ export default {
} }
function isNotJit() { function isNotJit() {
return ( return (
route.meta.businessType !== "ZhiGongJianBBAC" || route.meta.businessType !== 3 ||
route.meta.businessType !== "ZhiGongJianHBPO" || route.meta.businessType !== 4 ||
route.meta.businessType !== "BeiJian" || route.meta.businessType !== 7 ||
route.meta.businessType !== "YinDuJian" || route.meta.businessType !== 8
route.meta.businessType !== "MaiDanJianHBPO"
); );
} }
onMounted(async () => { onMounted(async () => {

40
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/home.js

@ -1,5 +1,43 @@
import html from "html"; import html from "html";
import AppList from "../../../components/list/index.js";
export default { export default {
template: html`<a href="../assets/导入模版.zip" target="blank">导入模板下载</a>`, components: { AppList },
template: html`</app-list :config="config" @command="onCommand"></app-list>
<el-table :data="tableData" border style="width: 100%">
<el-table-column prop="date" label="custoner/type" width="180" />
<el-table-column prop="name" label="BBAC" width="180" />
<el-table-column prop="address" label="HBPO" width="180" />
</el-table>
`,
setup() {
const tableData = [
{
date: "JIS",
name: "√",
address: "√",
},
{
date: "直供件",
name: "√",
address: "√",
},
{
date: "印度件",
name: "√",
address: "",
},
{
date: "备件",
name: "√",
address: "",
},
{
date: "买单件",
name: "对比√ 开票×",
address: "√",
},
];
return { tableData };
},
}; };

Loading…
Cancel
Save