送回时判断位置是否可以送回

This commit is contained in:
hehaibing-1996
2025-03-04 19:57:53 +08:00
parent 653cf80f0c
commit 4ce1396642
6 changed files with 9 additions and 6 deletions

View File

@ -10,7 +10,7 @@ export function getConfig(key, defaultValue) {
}
export function getServerIPAndPort() {
var serverIP = getConfig('serverIP', '192.168.18.153');
var serverIP = getConfig('serverIP', '192.168.18.200');
var serverPort = getConfig('serverPort', '8888');
return serverIP + ':' + serverPort;
}

View File

@ -31,7 +31,7 @@
};
},
onLoad:function() {
this.serverIP = getConfig('serverIP', '192.168.18.153');
this.serverIP = getConfig('serverIP', '192.168.18.200');
this.serverPort = getConfig('serverPort', '8888');
},
methods: {

View File

@ -147,7 +147,7 @@ if (uni.restoreGlobal) {
return uni.getStorageSync(key) || defaultValue;
}
function getServerIPAndPort() {
var serverIP = getConfig("serverIP", "192.168.18.153");
var serverIP = getConfig("serverIP", "192.168.18.200");
var serverPort = getConfig("serverPort", "8888");
return serverIP + ":" + serverPort;
}
@ -332,7 +332,7 @@ if (uni.restoreGlobal) {
};
},
onLoad: function() {
this.serverIP = getConfig("serverIP", "192.168.18.153");
this.serverIP = getConfig("serverIP", "192.168.18.200");
this.serverPort = getConfig("serverPort", "8888");
},
methods: {

View File

@ -203,6 +203,7 @@ namespace WCS.BLL.Services.Service
.Where((li, si) => li.LocationAreaId == request.SendBackLocationAreaId)
.Where((li, si) => li.IsEnable == true)
.Where((li, si) => li.Id != shelf.CurrentLocationId)
.Where((li, si) => si.Id == null)
.Select((li, si) => li)
.FirstAsync();
if (endLocation == null)

View File

@ -119,7 +119,7 @@ namespace WCS.BLL.Services.Service
{
var newUser = new UserBase()
{
LoginName = request.User.LoginName,
LoginName = request.User.LoginName.ToLower(),
Password = request.User.Password,
RoleIds = request.User.RoleIds,
IsAdmin = request.User.IsAdmin,
@ -452,7 +452,7 @@ namespace WCS.BLL.Services.Service
//#endregion
if (user == null)
user = await AuthDbHelp.db.Queryable<UserBase>()
.Where(t => t.LoginName == request.UserName)
.Where(t => t.LoginName == request.UserName.ToLower())
.FirstAsync();
if (user == null)
{

View File

@ -377,6 +377,8 @@ namespace WCS.WebApi.Controllers
.LeftJoin<ShelfInfo>((li, si) => (li.Id == si.CurrentLocationId && si.TransStatus == TransStatusEnum.) || (li.Id == si.DestinationLocationId && si.TransStatus == TransStatusEnum.))
.Where((li, si) => li.LocationAreaId == request.DestinationLocationAreaId)
.Where((li, si) => li.IsEnable == true)
.Where((li, si) => li.Id != shelfInfo.CurrentLocationId)
.Where((li, si) => si.Id == null)
.Select((li, si) => li)
.FirstAsync();
if (endLocation == null)