Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laisi_AutoMES2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiawei.su
Laisi_AutoMES2
Commits
f53de767
Commit
f53de767
authored
Mar 24, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
someupdate
parent
5515680f
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
14 deletions
+34
-14
zh-CN.js
Html/src/locale/lang/zh-CN.js
+3
-0
feedingBlanking.vue
Html/src/view/fml/operation_manage/feedingBlanking.vue
+3
-1
AutomationOperateController.cs
...s/Siger.ApiACC/Controllers/AutomationOperateController.cs
+22
-8
AccEnum.cs
...Common/Siger.Middlelayer.Share/Enum/ModuleEnum/AccEnum.cs
+1
-1
AutomationFixtureToolsProductRepository.cs
...y/Repositories/AutomationFixtureToolsProductRepository.cs
+4
-4
requestAutoLoad.cs
...iger.Middlelayer.AccRepository/Request/requestAutoLoad.cs
+1
-0
No files found.
Html/src/locale/lang/zh-CN.js
View file @
f53de767
...
...
@@ -2111,6 +2111,9 @@ export default {
'3000176'
:
'工序未开始加工'
,
'3000177'
:
'同步报表记录失败'
,
'3000178'
:
'请勿重复提交任务'
,
'3000179'
:
'该工单对应当前工装产品不一致'
,
'3000180'
:
'请更换工件'
,
'400000'
:
'设备状态'
,
'400002'
:
'更改状态'
,
...
...
Html/src/view/fml/operation_manage/feedingBlanking.vue
View file @
f53de767
...
...
@@ -756,6 +756,7 @@ export default {
let
data
=
{
section
:
section
,
code
:
code
,
location
:
this
.
locationobj
.
id
,
};
this
.
request
(
"acc/AutomationOperate/CurrentOrder"
,
...
...
@@ -782,9 +783,10 @@ export default {
}
let
data
=
{
section
:
this
.
sectionid
,
sn
:
this
.
orderDetail2
.
sn
?
this
.
orderDetail2
.
sn
:
''
};
this
.
request
(
"
acc/AutomationOperate/DisassembleAndAssemble"
,
"acc/AutomationOperate/DisassembleAndAssemble"
,
data
,
"post"
).
then
((
res
)
=>
{
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationOperateController.cs
View file @
f53de767
...
...
@@ -797,25 +797,37 @@ namespace Siger.ApiACC.Controllers
[
HttpPost
]
public
IActionResult
CurrentOrder
([
FromBody
]
RequestDissasembleAndLoad
request
)
{
var
location
=
_automationLocation
.
Get
(
f
=>
f
.
id
==
request
.
location
);
if
(
location
==
null
)
{
throw
new
BadRequestException
(
AccEnum
.
LocationNoExits
);
}
var
orderNo
=
location
.
ordernumber
;
var
oldLocation
=
location
.
locationid
;
if
(!
string
.
IsNullOrEmpty
(
request
.
code
))
{
orderNo
=
request
.
code
;
}
else
{
var
monitor
=
_automationFixtureMonitor
.
Get
(
f
=>
f
.
section
==
request
.
section
);
if
(
monitor
==
null
)
{
throw
new
BadRequestException
(
AccEnum
.
MachineOnFree
);
}
var
newCode
=
monitor
.
ordernumber
;
if
(!
string
.
IsNullOrEmpty
(
request
.
code
))
{
newCode
=
request
.
code
;
}
var
result
=
_automationFixtureToolsProduct
.
GetPlanFixtureInfo
(
ProjectId
,
newCode
);
var
result
=
_automationFixtureToolsProduct
.
GetPlanFixtureInfo
(
ProjectId
,
orderNo
);
if
(
result
==
null
)
{
throw
new
BadRequestException
(
AccEnum
.
FixtureOrderNulll
);
}
if
(!
string
.
IsNullOrEmpty
(
request
.
code
))
{
//新扫描的工单,工装与原托盘工装一致
if
(
result
.
FixtureGuid
!=
monitor
.
fixtureguid
)
//新扫描的工单,工装与原托盘工装
产品
一致
if
(
result
.
ProductCode
!=
location
.
productcode
)
{
throw
new
BadRequestException
(
AccEnum
.
FixtureDiff
);
}
...
...
@@ -823,7 +835,9 @@ namespace Siger.ApiACC.Controllers
var
sn
=
_automationTaskList
.
CreateRandonSn
(
result
.
ProductCode
);
result
.
Sn
=
sn
;
result
.
status
=
monitor
!=
null
?
monitor
.
status
:
1
;
result
.
OrderNumber
=
orderNo
;
result
.
Location
=
oldLocation
;
return
new
ObjectResult
(
result
);
}
...
...
Server/Common/Siger.Middlelayer.Share/Enum/ModuleEnum/AccEnum.cs
View file @
f53de767
...
...
@@ -362,7 +362,7 @@ namespace Siger.Middlelayer.Common.ModuleEnum
SyncSnReportErro
,
[
Description
(
"请勿重复提交任务"
)]
TaskCreateDone
,
[
Description
(
"该工单对应当前工装不一致"
)]
[
Description
(
"该工单对应当前工装
产品
不一致"
)]
FixtureDiff
,
[
Description
(
"请更换工件"
)]
ReplaceSn
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsProductRepository.cs
View file @
f53de767
...
...
@@ -234,14 +234,14 @@ namespace Siger.Middlelayer.AccRepository.Repositories
select
new
ResponsePlanlFixtureInfo
{
OrderNumber
=
d
.
OrderN
umber
,
ProductName
=
p
.
product_
name
,
OrderNumber
=
l
.
ordern
umber
,
ProductName
=
l
.
product
name
,
Url
=
pd
.
image
,
FixtureName
=
t
.
name
,
FixtureGuid
=
t
.
guid
,
FixtureCode
=
t
.
code
,
ProductCode
=
q
!=
null
?
q
.
productcode
:
""
,
Location
=
l
!=
null
?
l
.
locationid
:
0
,
ProductCode
=
l
.
productcode
,
Location
=
l
.
locationid
,
Sn
=
l
.
sn
};
return
query
.
FirstOrDefault
();
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Request/requestAutoLoad.cs
View file @
f53de767
...
...
@@ -58,5 +58,6 @@ namespace Siger.Middlelayer.AccRepository.Request
/// 新工件SN
/// </summary>
public
string
sn
{
get
;
set
;
}
public
int
location
{
get
;
set
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment