送回时判断位置是否可以送回
This commit is contained in:
@ -10,7 +10,7 @@ export function getConfig(key, defaultValue) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getServerIPAndPort() {
|
export function getServerIPAndPort() {
|
||||||
var serverIP = getConfig('serverIP', '192.168.18.153');
|
var serverIP = getConfig('serverIP', '192.168.18.200');
|
||||||
var serverPort = getConfig('serverPort', '8888');
|
var serverPort = getConfig('serverPort', '8888');
|
||||||
return serverIP + ':' + serverPort;
|
return serverIP + ':' + serverPort;
|
||||||
}
|
}
|
@ -31,7 +31,7 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad:function() {
|
onLoad:function() {
|
||||||
this.serverIP = getConfig('serverIP', '192.168.18.153');
|
this.serverIP = getConfig('serverIP', '192.168.18.200');
|
||||||
this.serverPort = getConfig('serverPort', '8888');
|
this.serverPort = getConfig('serverPort', '8888');
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -147,7 +147,7 @@ if (uni.restoreGlobal) {
|
|||||||
return uni.getStorageSync(key) || defaultValue;
|
return uni.getStorageSync(key) || defaultValue;
|
||||||
}
|
}
|
||||||
function getServerIPAndPort() {
|
function getServerIPAndPort() {
|
||||||
var serverIP = getConfig("serverIP", "192.168.18.153");
|
var serverIP = getConfig("serverIP", "192.168.18.200");
|
||||||
var serverPort = getConfig("serverPort", "8888");
|
var serverPort = getConfig("serverPort", "8888");
|
||||||
return serverIP + ":" + serverPort;
|
return serverIP + ":" + serverPort;
|
||||||
}
|
}
|
||||||
@ -332,7 +332,7 @@ if (uni.restoreGlobal) {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad: function() {
|
onLoad: function() {
|
||||||
this.serverIP = getConfig("serverIP", "192.168.18.153");
|
this.serverIP = getConfig("serverIP", "192.168.18.200");
|
||||||
this.serverPort = getConfig("serverPort", "8888");
|
this.serverPort = getConfig("serverPort", "8888");
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -203,6 +203,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
.Where((li, si) => li.LocationAreaId == request.SendBackLocationAreaId)
|
.Where((li, si) => li.LocationAreaId == request.SendBackLocationAreaId)
|
||||||
.Where((li, si) => li.IsEnable == true)
|
.Where((li, si) => li.IsEnable == true)
|
||||||
.Where((li, si) => li.Id != shelf.CurrentLocationId)
|
.Where((li, si) => li.Id != shelf.CurrentLocationId)
|
||||||
|
.Where((li, si) => si.Id == null)
|
||||||
.Select((li, si) => li)
|
.Select((li, si) => li)
|
||||||
.FirstAsync();
|
.FirstAsync();
|
||||||
if (endLocation == null)
|
if (endLocation == null)
|
||||||
|
@ -119,7 +119,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
{
|
{
|
||||||
var newUser = new UserBase()
|
var newUser = new UserBase()
|
||||||
{
|
{
|
||||||
LoginName = request.User.LoginName,
|
LoginName = request.User.LoginName.ToLower(),
|
||||||
Password = request.User.Password,
|
Password = request.User.Password,
|
||||||
RoleIds = request.User.RoleIds,
|
RoleIds = request.User.RoleIds,
|
||||||
IsAdmin = request.User.IsAdmin,
|
IsAdmin = request.User.IsAdmin,
|
||||||
@ -452,7 +452,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
//#endregion
|
//#endregion
|
||||||
if (user == null)
|
if (user == null)
|
||||||
user = await AuthDbHelp.db.Queryable<UserBase>()
|
user = await AuthDbHelp.db.Queryable<UserBase>()
|
||||||
.Where(t => t.LoginName == request.UserName)
|
.Where(t => t.LoginName == request.UserName.ToLower())
|
||||||
.FirstAsync();
|
.FirstAsync();
|
||||||
if (user == null)
|
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.运输中))
|
.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.LocationAreaId == request.DestinationLocationAreaId)
|
||||||
.Where((li, si) => li.IsEnable == true)
|
.Where((li, si) => li.IsEnable == true)
|
||||||
|
.Where((li, si) => li.Id != shelfInfo.CurrentLocationId)
|
||||||
|
.Where((li, si) => si.Id == null)
|
||||||
.Select((li, si) => li)
|
.Select((li, si) => li)
|
||||||
.FirstAsync();
|
.FirstAsync();
|
||||||
if (endLocation == null)
|
if (endLocation == null)
|
||||||
|
Reference in New Issue
Block a user