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 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("."));

12
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 () => {

40
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`<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