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
ae693a98
Commit
ae693a98
authored
Feb 24, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
587d9cca
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
7 deletions
+52
-7
feedingBlanking.vue
Html/src/view/fml/operation_manage/feedingBlanking.vue
+3
-1
taskList.vue
Html/src/view/fml/statistical_analysis/taskList.vue
+37
-4
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+2
-1
AutomationLocationController.cs
.../Siger.ApiACC/Controllers/AutomationLocationController.cs
+9
-1
AutomationOperateController.cs
...s/Siger.ApiACC/Controllers/AutomationOperateController.cs
+1
-0
No files found.
Html/src/view/fml/operation_manage/feedingBlanking.vue
View file @
ae693a98
...
...
@@ -422,6 +422,7 @@ export default {
this
.
tabindex
=
name
;
if
(
this
.
tabindex
==
"2"
)
{
this
.
orderDetail2
=
{};
}
this
.
getStorages
();
},
...
...
@@ -433,7 +434,8 @@ export default {
:
""
;
let
data
=
{
fillsn
:
this
.
tabindex
==
"1"
?
0
:
1
,
productcode
:
code
,
// productcode: code,
productcode
:
this
.
tabindex
==
"1"
?
this
.
code
:
""
,
};
this
.
request
(
"/acc/AutomationLocation/GetLocationList"
,
data
,
"get"
)
.
then
((
res
)
=>
{
...
...
Html/src/view/fml/statistical_analysis/taskList.vue
View file @
ae693a98
...
...
@@ -200,13 +200,18 @@ export default {
key
:
"taskno"
,
width
:
150
,
},
{
title
:
"发起工站"
,
key
:
"fromsection"
,
width
:
100
,
},
{
title
:
"
产线层级
"
,
title
:
"
目标工站
"
,
key
:
"section"
,
width
:
170
,
},
{
title
:
"触发方"
,
title
:
"触发方
式
"
,
key
:
"trigger"
,
width
:
100
,
},
...
...
@@ -266,27 +271,55 @@ export default {
title
:
"下发状态"
,
key
:
"send"
,
width
:
100
,
render
:
(
h
,
params
)
=>
{
let
str
=
""
,
bgc
=
""
;
switch
(
params
.
row
.
send
)
{
case
0
:
str
=
"未下发"
;
bgc
=
'Olive'
break
;
case
1
:
str
=
"已下发"
;
bgc
=
'Green'
break
;
}
return
h
(
"div"
,{
style
:{
'background'
:
bgc
,
'color'
:
'#fff'
}
}
,
str
);
},
},
{
title
:
"状态"
,
key
:
"status"
,
render
:
(
h
,
params
)
=>
{
let
str
=
""
;
let
str
=
""
,
bgc
=
""
;
switch
(
params
.
row
.
status
)
{
case
1
:
str
=
"待执行"
;
bgc
=
'Olive'
break
;
case
2
:
str
=
"执行中"
;
bgc
=
'Orange'
break
;
case
3
:
str
=
"执行完成"
;
bgc
=
'Green'
break
;
case
4
:
str
=
"取消"
;
bgc
=
'Silver'
break
;
}
return
h
(
"div"
,
str
);
return
h
(
"div"
,{
style
:{
'background'
:
bgc
,
'color'
:
'#fff'
}
}
,
str
);
},
},
{
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
ae693a98
...
...
@@ -664,10 +664,11 @@ namespace Siger.ApiACC.Controllers
Logger
.
WriteLineError
(
$"AutoProcess CNC加工中心空闲,上一个任务与本次任务指令重复"
);
return
;
//任务已经创建
}
var
_sectProperty
=
_automationSectionProperty
.
Get
(
f
=>
f
.
propertytype
==
5
);
Logger
.
WriteLineInfo
(
$"自动化业务流转--AutoProcess section
{
location
.
section
}
task:
{
TaskAction
.
Step_LK_JGZX
.
ToStr
()}
sn
{
location
.
sn
}
"
);
if
(
TargetFree
(
location
.
section
,
location
.
section
,
TaskAction
.
Step_LK_JGZX
))
{
CreateTask
(
location
.
section
,
location
.
section
,
TaskActionType
.
Load
,
TaskAction
.
Step_LK_JGZX
,
location
.
fixture
,
location
.
fixturename
,
location
.
ordernumber
,
location
.
sn
,
location
.
pn
,
location
.
productId
,
location
.
productCode
,
location
.
productName
,
location
.
location
,
location
.
route
);
CreateTask
(
location
.
section
,
_sectProperty
!=
null
?
_sectProperty
.
sectionid
:
location
.
section
,
TaskActionType
.
Load
,
TaskAction
.
Step_LK_JGZX
,
location
.
fixture
,
location
.
fixturename
,
location
.
ordernumber
,
location
.
sn
,
location
.
pn
,
location
.
productId
,
location
.
productCode
,
location
.
productName
,
location
.
location
,
location
.
route
);
}
}
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationLocationController.cs
View file @
ae693a98
...
...
@@ -19,6 +19,7 @@ using Siger.Middlelayer.Utility.ImportEntities;
using
Siger.Middlelayer.Utility.Helpers
;
using
System.IO
;
using
Siger.Middlelayer.Log
;
using
Siger.Middlelayer.Common.ModuleEnum
;
namespace
Siger.ApiACC.Controllers
{
...
...
@@ -267,6 +268,10 @@ namespace Siger.ApiACC.Controllers
{
throw
new
BadRequestException
(
CommonEnum
.
RecordNotFound
);
}
if
(!
string
.
IsNullOrEmpty
(
entity
.
sn
))
{
throw
new
BadRequestException
(
AccEnum
.
LocationSnExits
);
}
var
fixturetool
=
_toolsRepository
.
Get
(
q
=>
q
.
id
==
req
.
fixturetoolid
.
ToInt
()
&&
q
.
projectId
==
ProjectId
);
if
(
fixturetool
==
null
)
{
...
...
@@ -315,7 +320,10 @@ namespace Siger.ApiACC.Controllers
{
throw
new
BadRequestException
(
CommonEnum
.
RecordNotFound
);
}
if
(!
string
.
IsNullOrEmpty
(
entity
.
sn
))
{
throw
new
BadRequestException
(
AccEnum
.
LocationSnExits
);
}
entity
.
status
=
(
int
)
RowState
.
Invalid
;
_autoLocationRepository
.
Update
(
entity
);
if
(
_unitOfWork
.
Commit
()
>
0
)
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationOperateController.cs
View file @
ae693a98
...
...
@@ -736,6 +736,7 @@ namespace Siger.ApiACC.Controllers
fixtureguid
=
monitor
.
fixtureguid
,
locationid
=
monitor
.
locationId
,
productcode
=
monitor
.
productCode
,
productname
=
monitor
.
productName
,
processid
=
0
,
programnumber
=
""
,
remark
=
"手动任务-拆卸完成"
,
...
...
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