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
340bfa0b
Commit
340bfa0b
authored
Feb 24, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
ae693a98
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
84 additions
and
20 deletions
+84
-20
feedingBlanking.vue
Html/src/view/fml/operation_manage/feedingBlanking.vue
+1
-1
lineMonitor.vue
Html/src/view/fml/statistical_analysis/lineMonitor.vue
+2
-2
taskList.vue
Html/src/view/fml/statistical_analysis/taskList.vue
+1
-1
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+70
-13
AutomationOperateController.cs
...s/Siger.ApiACC/Controllers/AutomationOperateController.cs
+9
-2
AutomationStateController.cs
...pis/Siger.ApiACC/Controllers/AutomationStateController.cs
+1
-1
No files found.
Html/src/view/fml/operation_manage/feedingBlanking.vue
View file @
340bfa0b
...
...
@@ -435,7 +435,7 @@ export default {
let
data
=
{
fillsn
:
this
.
tabindex
==
"1"
?
0
:
1
,
// productcode: code,
productcode
:
this
.
tabindex
==
"1"
?
this
.
code
:
""
,
productcode
:
this
.
tabindex
==
"1"
?
code
:
""
,
};
this
.
request
(
"/acc/AutomationLocation/GetLocationList"
,
data
,
"get"
)
.
then
((
res
)
=>
{
...
...
Html/src/view/fml/statistical_analysis/lineMonitor.vue
View file @
340bfa0b
...
...
@@ -22,13 +22,13 @@
@
click=
"search()"
>
{{
$t
(
"1001"
)
}}
</Button
>
<Button
<
!--
<
Button
type=
"primary"
class=
"twoWord"
icon=
"ios-search"
@
click=
"exportExcel()"
>
导出
</Button
>
>
-->
</div>
</div>
</div>
...
...
Html/src/view/fml/statistical_analysis/taskList.vue
View file @
340bfa0b
...
...
@@ -80,7 +80,7 @@
<Option
:value=
"1"
>
待执行
</Option>
<Option
:value=
"2"
>
执行中
</Option>
<Option
:value=
"3"
>
执行完成
</Option>
<Option
:value=
"4"
>
取消
</Option>
</Select>
</div>
<div
class=
"filter"
>
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
340bfa0b
...
...
@@ -345,7 +345,7 @@ namespace Siger.ApiACC.Controllers
_automationMachineStatus
.
Update
(
machineStatusObj
);
}
}
//从立库储位拿SN 工件到上料位
//
//
从立库储位拿SN 工件到上料位
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_SXLW
)
{
location
.
sn
=
taskObj
.
sn
;
...
...
@@ -365,7 +365,7 @@ namespace Siger.ApiACC.Controllers
}
}
//需要抽检时(准备下料) ,立库到抽检台
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_CJT
)
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_CJT
)
{
if
(
machineStatusObj
!=
null
)
{
...
...
@@ -374,17 +374,17 @@ namespace Siger.ApiACC.Controllers
}
}
//上料中
if
(
sectionProperty
.
upload
!=
0
)
{
sectionProperty
.
upload
+=
1
;
_automationSectionProperty
.
Update
(
sectionProperty
);
}
if
(
sectionProperty
.
down
!=
0
)
{
sectionProperty
.
down
+=
1
;
_automationSectionProperty
.
Update
(
sectionProperty
);
}
//
//
上料中
//
if (sectionProperty.upload != 0)
//
{
//
sectionProperty.upload += 1;
//
_automationSectionProperty.Update(sectionProperty);
//
}
//
if (sectionProperty.down != 0)
//
{
//
sectionProperty.down += 1;
//
_automationSectionProperty.Update(sectionProperty);
//
}
}
// CNC 设备
...
...
@@ -476,7 +476,64 @@ namespace Siger.ApiACC.Controllers
Logger
.
WriteLineInfo
(
$"PlCfeeback 工装储位
{
taskObj
.
locationid
}
工序
{
location
.
routeid
}
下一工序
{
route
}
更新完成"
);
}
}
//立库
if
(
sectionProperty
.
propertytype
==
5
)
{
//上下料位状态 为后台控制
var
machineStatusObj
=
_automationMachineStatus
.
Get
(
f
=>
f
.
section
==
taskObj
.
extend1
.
ToInt
());
//从立库储位拿SN 工件到上料位
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_SXLW
)
{
location
.
sn
=
taskObj
.
sn
;
location
.
ordernumber
=
taskObj
.
ordercode
;
location
.
productcode
=
taskObj
.
productcode
;
location
.
productid
=
taskObj
.
productid
;
location
.
productname
=
taskObj
.
productname
;
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
routeid
=
taskObj
.
route
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
_automationLocation
.
Update
(
location
);
if
(
machineStatusObj
!=
null
)
{
machineStatusObj
.
status
=
(
int
)
Automation
.
MachineStatus
.
Produce
;
_automationMachineStatus
.
Update
(
machineStatusObj
);
}
}
//需要抽检时(准备下料) ,立库到抽检台
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_CJT
)
{
if
(
machineStatusObj
!=
null
)
{
machineStatusObj
.
status
=
(
int
)
Automation
.
MachineStatus
.
Produce
;
_automationMachineStatus
.
Update
(
machineStatusObj
);
}
}
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_JGZX
)
{
location
.
status
=
(
int
)
LocationStatus
.
Out
;
_automationLocation
.
Update
(
location
);
}
var
_Property
=
_automationSectionProperty
.
Get
(
f
=>
f
.
sectionid
==
taskObj
.
sectionid
);
if
(
_Property
==
null
)
{
Logger
.
WriteLineInfo
(
$"PlCfeeback 未找到该工装储位信息"
);
throw
new
BadRequestException
(
AccEnum
.
MachineDisable
);
}
//上料中
if
(
_Property
.
upload
!=
0
)
{
_Property
.
upload
+=
1
;
_automationSectionProperty
.
Update
(
_Property
);
}
if
(
sectionProperty
.
down
!=
0
)
{
_Property
.
down
+=
1
;
_automationSectionProperty
.
Update
(
_Property
);
}
}
//添加当前监控
if
(
monitor
==
null
)
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationOperateController.cs
View file @
340bfa0b
...
...
@@ -47,10 +47,11 @@ namespace Siger.ApiACC.Controllers
private
readonly
IAutomationSectionPropertyRepository
_sectionPropertyRepository
;
private
readonly
IAutomationProduceHistoryRepository
_automationProduceHistory
;
private
readonly
ISigerProjectProductRepository
_sigerProjectProduct
;
private
readonly
IProductionBeatSetRepository
_productionBeatSet
;
public
AutomationOperateController
(
IUnitOfWork
unitOfWork
,
ISigerProjectLevelSectionRepository
sigerProjectLevelSection
,
ISigerDict
sigerDict
,
IAutomationMachineStatus
automationMachineStatus
,
ISigerProjectMachineAttributionRepository
sigerProjectMachineAttribution
,
IAutomationTaskListRepository
automationTaskList
,
IProductPlanDetails
planDetails
,
IProductPlanRepository
productPlan
,
IAutomationFixtureMonitor
automationFixtureMonitor
,
IAutomationFixtureToolsProductRepository
automationFixtureToolsProduct
,
IAutomationFixtureToolsRepository
automationFixtureTools
,
IAutomationLocationRepository
automationLocation
,
IAutomationLineMode
automationLine
,
IProductRouteRepository
productRoute
,
IAutomationSectionPropertyRepository
sectionPropertyRepository
,
IAutomationProduceHistoryRepository
automationProduceHistory
,
ISigerProjectProductRepository
sigerProjectProduct
)
IAutomationLineMode
automationLine
,
IProductRouteRepository
productRoute
,
IAutomationSectionPropertyRepository
sectionPropertyRepository
,
IAutomationProduceHistoryRepository
automationProduceHistory
,
ISigerProjectProductRepository
sigerProjectProduct
,
IProductionBeatSetRepository
productionBeatSet
)
{
_unitOfWork
=
unitOfWork
;
_sigerProjectLevelSection
=
sigerProjectLevelSection
;
...
...
@@ -69,6 +70,7 @@ namespace Siger.ApiACC.Controllers
_sectionPropertyRepository
=
sectionPropertyRepository
;
_automationProduceHistory
=
automationProduceHistory
;
_sigerProjectProduct
=
sigerProjectProduct
;
_productionBeatSet
=
productionBeatSet
;
}
/// <summary>
...
...
@@ -357,6 +359,11 @@ namespace Siger.ApiACC.Controllers
{
throw
new
BadRequestException
(
CncEnum
.
PlanHasExist
);
}
var
beatSets
=
_productionBeatSet
.
GetList
(
f
=>
f
.
product_name
==
plan
.
product_id
.
ToString
()
&&
f
.
status
==(
int
)
RowState
.
Valid
);
if
(!
beatSets
.
Any
())
{
throw
new
BadRequestException
(
CncEnum
.
RouteIsEmpty
);
}
//检查工装
var
fixtureToolsObj
=
_automationFixtureTools
.
GetProductFixtureLocation
(
ProjectId
,
loading
.
guid
,
loading
.
locationid
);
if
(
fixtureToolsObj
==
null
)
...
...
@@ -418,7 +425,7 @@ namespace Siger.ApiACC.Controllers
programnumber
=
""
,
remark
=
"手动任务-准备上料"
,
route
=
route
.
id
,
extend1
=
loading
.
section
.
ToStr
(),
extend1
=
invenProperty
.
sectionid
.
ToStr
(),
});
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationStateController.cs
View file @
340bfa0b
...
...
@@ -160,7 +160,7 @@ namespace Siger.ApiACC.Controllers
model
.
status_value
=
""
;
break
;
}
model
.
send
=
item
.
send
==
0
?
"未下发"
:
"已下发"
;
dataList
.
Add
(
model
);
}
if
(
dataList
.
Any
())
...
...
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