diff --git a/be/Hosts/Auth.Host/src/Win_in.Sfs.Auth.Web/AuthWebModule.cs b/be/Hosts/Auth.Host/src/Win_in.Sfs.Auth.Web/AuthWebModule.cs index 51ff65bba..b96f281b9 100644 --- a/be/Hosts/Auth.Host/src/Win_in.Sfs.Auth.Web/AuthWebModule.cs +++ b/be/Hosts/Auth.Host/src/Win_in.Sfs.Auth.Web/AuthWebModule.cs @@ -1,10 +1,13 @@ using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; using Volo.Abp; using Volo.Abp.Account.Web; using Volo.Abp.AspNetCore.Authentication.JwtBearer; using Volo.Abp.AspNetCore.Mvc.Localization; using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic; +using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared; using Volo.Abp.AspNetCore.Serilog; using Volo.Abp.Autofac; using Volo.Abp.Identity.Web; @@ -61,6 +64,7 @@ public class AuthWebModule : ModuleBase base.ConfigureBundles(); } + public override void OnApplicationInitialization(ApplicationInitializationContext context) { CreateDatabase(context); diff --git a/be/Hosts/Auth.Host/src/Win_in.Sfs.Auth.Web/Win_in.Sfs.Auth.Web.csproj b/be/Hosts/Auth.Host/src/Win_in.Sfs.Auth.Web/Win_in.Sfs.Auth.Web.csproj index 628a9913d..3c37da438 100644 --- a/be/Hosts/Auth.Host/src/Win_in.Sfs.Auth.Web/Win_in.Sfs.Auth.Web.csproj +++ b/be/Hosts/Auth.Host/src/Win_in.Sfs.Auth.Web/Win_in.Sfs.Auth.Web.csproj @@ -62,6 +62,6 @@ --> - + diff --git a/build/src/docker/publish/settings/appsettings.Development.json b/build/src/docker/publish/settings/appsettings.Development.json index 112429fe5..5f8979a00 100644 --- a/build/src/docker/publish/settings/appsettings.Development.json +++ b/build/src/docker/publish/settings/appsettings.Development.json @@ -1,5 +1,5 @@ { - "AlwaysAllowAuthorization": "True", + "AlwaysAllowAuthorization": "False", "App": { "CorsOrigins": [ "http://localhost:59080", diff --git a/fe/PC/README.md b/fe/PC/README.md index 63680f9e7..119e7b8d5 100644 --- a/fe/PC/README.md +++ b/fe/PC/README.md @@ -107,8 +107,19 @@ active 步骤控制 pageStatus 结合active控制返回结果 [字段设置:rowDrop] - @radio="rowDrop" 数据更新方法 :tableColumns="tableColumns" 表头数据 :visible="visible" 是否显示 -@closeRowDrop="closeRowDrop" 关闭方法 \ No newline at end of file +@closeRowDrop="closeRowDrop" 关闭方法 + +[表单组件补充:currenForm] +validType type仅等于input时:实时keyUp校验,类型如下: + 1、 number:正整数, + 2、 pointNumber:数字+带小数点(只能输入一个小数点, 小数点后方保留位数见), + 3、 numberLetter: 数字+字母, + 4、 letter:纯字母, + 5、 letterCn:字母+中文 +pointNumberFixed 组合上方validType值仅等于pointNumber时: + 小数点后方保留位数,如不填写默认为100位 ++示例: +{ type:"input", label:"金额", prop:"money", validType:'pointNumber',pointNumberFixed:2}, \ No newline at end of file diff --git a/fe/PC/public/config.js b/fe/PC/public/config.js index beaa0e2e6..188653b47 100644 --- a/fe/PC/public/config.js +++ b/fe/PC/public/config.js @@ -19,8 +19,8 @@ // window.SITE_CONFIG['reportsUrl'] = 'http://10.164.0.227:21093/#/reports/' // localhost -window.SITE_CONFIG['base'] = 'http://localhost:59095' -window.SITE_CONFIG['user'] = 'http://localhost:59093/api' +window.SITE_CONFIG['base'] = 'http://localhost:21093' +window.SITE_CONFIG['user'] = 'http://localhost:21093/api/auth' window.SITE_CONFIG['print'] = 'print' window.SITE_CONFIG['largeScreen'] = 'http://localhost:59082' window.SITE_CONFIG['warehouseCode'] = 'T8' diff --git a/fe/PC/src/api/wms-api.js b/fe/PC/src/api/wms-api.js index 94f1ba8e7..53e23dbc3 100644 --- a/fe/PC/src/api/wms-api.js +++ b/fe/PC/src/api/wms-api.js @@ -81,6 +81,7 @@ export function postExport(data, url, special) { url: _url, method: 'post', data, + responseType: 'blob' }) } //导出(详情内)-获取文件 blobName | 盘点计划 @@ -96,6 +97,7 @@ export function postExportForDetail(data, url,params) { method: 'post', data, params: params, + responseType: 'blob' }) } //导出-文件 @@ -120,6 +122,9 @@ export function postImport(data, url,isSpecial) { return request({ url: baseURL + _url, method: 'post', + headers: { + 'Content-Type': 'multipart/form-data;' + }, data }) } diff --git a/fe/PC/src/components/currenForm/index.vue b/fe/PC/src/components/currenForm/index.vue index c89c62e88..050ce8b60 100644 --- a/fe/PC/src/components/currenForm/index.vue +++ b/fe/PC/src/components/currenForm/index.vue @@ -23,11 +23,12 @@ v-if="!hide ? true : false" > + @@ -307,6 +308,7 @@