mahao
1 year ago
39 changed files with 6425 additions and 158 deletions
@ -1,13 +1,7 @@ |
|||
import { createI18n } from "vue-i18n"; |
|||
import { useAppStore } from "../store/index.js"; |
|||
import { getLocalizationAsync } from "../api/site.js"; |
|||
|
|||
function useLocale() { |
|||
const appStore = useAppStore(); |
|||
const i18n = createI18n({ |
|||
legacy: false, |
|||
...appStore.localization, |
|||
}); |
|||
return i18n; |
|||
} |
|||
const localization = await getLocalizationAsync(); |
|||
const i18n = createI18n(localization); |
|||
|
|||
export default useLocale; |
|||
export default i18n; |
|||
|
@ -0,0 +1,38 @@ |
|||
export default function () { |
|||
return { |
|||
title: "登录", |
|||
type: "object", |
|||
properties: { |
|||
currentPassword: { |
|||
title: "当前密码", |
|||
type: "string", |
|||
input: "password", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
newPassword: { |
|||
title: "新密码", |
|||
type: "string", |
|||
input: "password", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
newPassword2: { |
|||
title: "确认新密码", |
|||
type: "string", |
|||
input: "password", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,64 @@ |
|||
import html, { schemaToModel } from "html"; |
|||
import { reactive } from "vue"; |
|||
import AppForm from "../components/form/index.js"; |
|||
import { getUser, setAccessToken } from "../api/user.js"; |
|||
import router, { refreshRouter } from "../router/index.js"; |
|||
import request from "../request/index.js"; |
|||
import LayoutLogo from "../layouts/logo.js"; |
|||
import LayoutLocale from "../layouts/locale.js"; |
|||
import LayoutFooter from "../layouts/footer.js"; |
|||
import { useAppStore } from "../store/index.js"; |
|||
import useConfig from "../models/account.js"; |
|||
import { ElMessage } from "element-plus"; |
|||
|
|||
export default { |
|||
components: { AppForm, LayoutLogo, LayoutLocale, LayoutFooter }, |
|||
template: html`<el-container>
|
|||
<el-main class="flex justify-center"> |
|||
<div> |
|||
<div class="flex items-center justify-center"> |
|||
<layout-logo /> |
|||
<layout-locale /> |
|||
</div> |
|||
<el-card class="box-card" style="width:400px;"> |
|||
<app-form :schema="schema" v-model="model" @submit="submit"> |
|||
<template #submitText>确定</template> |
|||
</app-form> |
|||
</el-card> |
|||
<layout-footer /> |
|||
</div> |
|||
</el-main> |
|||
</el-container>`, |
|||
setup() { |
|||
const schema = useConfig(); |
|||
const model = reactive(schemaToModel(schema)); |
|||
schema.properties.newPassword2.rules.push({ |
|||
validator: (rule, value, callback) => { |
|||
if (value !== model.newPassword) { |
|||
callback(new Error("确认新密码和新密码必须一致")); |
|||
} else { |
|||
callback(); |
|||
} |
|||
}, |
|||
}); |
|||
const submit = async (callback, loading) => { |
|||
try { |
|||
const appStore = useAppStore(); |
|||
const url = `base/user/${appStore.user.id}/change-password`; |
|||
const result = await request(url, model, { method: "POST" }); |
|||
if (!result.errors) { |
|||
ElMessage.success("密码修改成功"); |
|||
} |
|||
} catch (error) { |
|||
console.log(error); |
|||
} finally { |
|||
loading.value = false; |
|||
} |
|||
}; |
|||
return { |
|||
schema, |
|||
model, |
|||
submit, |
|||
}; |
|||
}, |
|||
}; |
@ -0,0 +1,5 @@ |
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
|||
|
|||
public class VmiReplenished : VmiLog |
|||
{ |
|||
} |
@ -0,0 +1,10 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
|||
|
|||
public class VmiShardingRecord : Entity<Guid> |
|||
{ |
|||
public string MainTable { get; set; } |
|||
public string ShardingTable { get; set; } |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,330 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class vmi14 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DeleteData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("eaaaf238-9865-4851-91d4-faa239bf6fca")); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "Set_VmiSyncTask", |
|||
type: "nvarchar(50)", |
|||
maxLength: 50, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(40)", |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "Set_VmiMessage", |
|||
type: "nvarchar(50)", |
|||
maxLength: 50, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(40)", |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(50)", |
|||
maxLength: 50, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(40)", |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Set_VmiReplenished", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_VmiReplenished", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_Set_VmiReplenished_Set_VmiLog_Id", |
|||
column: x => x.Id, |
|||
principalTable: "Set_VmiLog", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
}); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), |
|||
column: "ConcurrencyStamp", |
|||
value: "800892b9cac64cb69669dc937238d39d"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), |
|||
column: "ConcurrencyStamp", |
|||
value: "4794bc4fa2ad409ea64cdd2404983475"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), |
|||
column: "ConcurrencyStamp", |
|||
value: "0efcdccaa94d4e7fb550794d50efa9ab"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), |
|||
column: "ConcurrencyStamp", |
|||
value: "1e3131d9f8454d96b0429796010752d3"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), |
|||
column: "ConcurrencyStamp", |
|||
value: "5f427300bdfd44a19eaf54fddde31db1"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), |
|||
column: "ConcurrencyStamp", |
|||
value: "a4c7d3ff7e3b4578bc2332f114c7a6bb"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), |
|||
column: "ConcurrencyStamp", |
|||
value: "3ab808a6104c483496414711259c375b"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), |
|||
column: "ConcurrencyStamp", |
|||
value: "4d161eb0a7154f1db4cf7dcca4ffceea"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), |
|||
column: "ConcurrencyStamp", |
|||
value: "9186efa28e7242bf94451f40834c2160"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), |
|||
column: "ConcurrencyStamp", |
|||
value: "742b38d034d94d4685b7f074f35cd3ce"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), |
|||
column: "ConcurrencyStamp", |
|||
value: "98dff4b93f1e4b0ba88a556ab20e7973"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
|||
column: "ConcurrencyStamp", |
|||
value: "e25c06d5cdd34b2bbf909e8c655f94fc"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
|||
column: "ConcurrencyStamp", |
|||
value: "602c85109f6743a6949bb260b3846ca7"); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, |
|||
values: new object[] { new Guid("67c5b578-8110-4674-ac1e-c3da0814244a"), null, null, null, "71adabfbf9a74d35985c08ecba2dd537", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_VmiSyncTask", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), |
|||
columns: new[] { "ConcurrencyStamp", "LastUpdate" }, |
|||
values: new object[] { "09290251f9914e5385fbae2fa00c4734", new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local) }); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_VmiSyncTask", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), |
|||
columns: new[] { "ConcurrencyStamp", "LastUpdate" }, |
|||
values: new object[] { "cecf7d9ac9924ac99b3665395406b3af", new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local) }); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "Set_VmiReplenished"); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("67c5b578-8110-4674-ac1e-c3da0814244a")); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "Set_VmiSyncTask", |
|||
type: "nvarchar(40)", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(50)", |
|||
oldMaxLength: 50, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "Set_VmiMessage", |
|||
type: "nvarchar(40)", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(50)", |
|||
oldMaxLength: 50, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(40)", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(50)", |
|||
oldMaxLength: 50, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), |
|||
column: "ConcurrencyStamp", |
|||
value: "fe58be3c510f477da0752ac73c40d681"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), |
|||
column: "ConcurrencyStamp", |
|||
value: "5b04d6f48ea64f1594b4f54a57b74637"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), |
|||
column: "ConcurrencyStamp", |
|||
value: "f31814e50b6f41f384278fb6f0af0998"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), |
|||
column: "ConcurrencyStamp", |
|||
value: "0198660d53f34e529c1b72060251e05d"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), |
|||
column: "ConcurrencyStamp", |
|||
value: "2c87caef446f428da6f3f243e8d7c3f9"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), |
|||
column: "ConcurrencyStamp", |
|||
value: "613b7650456c4c97a67bcff9c90a32d0"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), |
|||
column: "ConcurrencyStamp", |
|||
value: "b4f16078aa6f43d49da98f03072c7ce9"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), |
|||
column: "ConcurrencyStamp", |
|||
value: "6a28afa95d824c11adf073841328d4d7"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), |
|||
column: "ConcurrencyStamp", |
|||
value: "cfd79a067c014e8fa2123fe3d3055af5"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), |
|||
column: "ConcurrencyStamp", |
|||
value: "9df05934dd384f12a55d4469cad4ef08"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), |
|||
column: "ConcurrencyStamp", |
|||
value: "79a28a9f333543219b44e10b1c50d8ef"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
|||
column: "ConcurrencyStamp", |
|||
value: "40066948ecb841e4849cfb928b117045"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
|||
column: "ConcurrencyStamp", |
|||
value: "134d1d1587d64f3abd932d6bc86d8e57"); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, |
|||
values: new object[] { new Guid("eaaaf238-9865-4851-91d4-faa239bf6fca"), null, null, null, "506b3fdc042d453fb4ee16c3fc5fa518", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_VmiSyncTask", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), |
|||
columns: new[] { "ConcurrencyStamp", "LastUpdate" }, |
|||
values: new object[] { "f489e433f5f14309810179ef2498ec00", new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local) }); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_VmiSyncTask", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), |
|||
columns: new[] { "ConcurrencyStamp", "LastUpdate" }, |
|||
values: new object[] { "93224b6dfb8347348e757dd7f828d28d", new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local) }); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue