送回时判断位置是否可以送回
This commit is contained in:
@ -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;
|
||||
}
|
@ -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: {
|
||||
|
@ -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: {
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user