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
c5ad9b97
Commit
c5ad9b97
authored
Feb 05, 2021
by
xin.yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
4cfcb355
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
3 deletions
+20
-3
en-US.js
Html/src/locale/lang/en-US.js
+1
-0
zh-CN.js
Html/src/locale/lang/zh-CN.js
+1
-0
feedingBlanking.vue
Html/src/view/fml/operation_manage/feedingBlanking.vue
+2
-2
QmsCheckController.cs
Server/Apis/Siger.ApiACC/Controllers/QmsCheckController.cs
+13
-1
RequestEnum.cs
Server/Common/Siger.Middlelayer.Share/Enum/RequestEnum.cs
+3
-0
No files found.
Html/src/locale/lang/en-US.js
View file @
c5ad9b97
...
@@ -742,6 +742,7 @@ export default {
...
@@ -742,6 +742,7 @@ export default {
'9000517'
:
'请填写子工装编号'
,
'9000517'
:
'请填写子工装编号'
,
'9000518'
:
'请填写储位ID'
,
'9000518'
:
'请填写储位ID'
,
'9000519'
:
'请填写仓库名称'
,
'9000519'
:
'请填写仓库名称'
,
'9000520'
:
'请输入工件编号'
,
'9100000'
:
'Departments cannot be empty'
,
'9100000'
:
'Departments cannot be empty'
,
'9100001'
:
'Position cannot be empty'
,
'9100001'
:
'Position cannot be empty'
,
...
...
Html/src/locale/lang/zh-CN.js
View file @
c5ad9b97
...
@@ -769,6 +769,7 @@ export default {
...
@@ -769,6 +769,7 @@ export default {
'9000517'
:
'请填写子工装编号'
,
'9000517'
:
'请填写子工装编号'
,
'9000518'
:
'请填写储位ID'
,
'9000518'
:
'请填写储位ID'
,
'9000519'
:
'请填写仓库名称'
,
'9000519'
:
'请填写仓库名称'
,
'9000520'
:
'请输入工件编号'
,
'9100000'
:
'部门不能为空'
,
'9100000'
:
'部门不能为空'
,
...
...
Html/src/view/fml/operation_manage/feedingBlanking.vue
View file @
c5ad9b97
...
@@ -295,7 +295,7 @@ export default {
...
@@ -295,7 +295,7 @@ export default {
},
},
{
{
title
:
"储位编号"
,
title
:
"储位编号"
,
key
:
"location
code
"
,
key
:
"location
id
"
,
},
},
{
{
title
:
"工装编号"
,
title
:
"工装编号"
,
...
@@ -318,7 +318,7 @@ export default {
...
@@ -318,7 +318,7 @@ export default {
},
},
{
{
title
:
"储位编号"
,
title
:
"储位编号"
,
key
:
"location
code
"
,
key
:
"location
id
"
,
},
},
{
{
title
:
"工装编号"
,
title
:
"工装编号"
,
...
...
Server/Apis/Siger.ApiACC/Controllers/QmsCheckController.cs
View file @
c5ad9b97
...
@@ -38,13 +38,15 @@ namespace Siger.ApiACC.Controllers
...
@@ -38,13 +38,15 @@ namespace Siger.ApiACC.Controllers
private
readonly
ISigerTrMaterialsRepository
_materialsRepository
;
private
readonly
ISigerTrMaterialsRepository
_materialsRepository
;
private
readonly
IAutomationTaskListRepository
_automationTaskList
;
private
readonly
IAutomationTaskListRepository
_automationTaskList
;
private
readonly
IAutomationFixtureMonitor
_fixtureMonitor
;
private
readonly
IAutomationFixtureMonitor
_fixtureMonitor
;
private
readonly
IProductionBeatSetRepository
_beatSetRepository
;
public
QmsCheckController
(
IUnitOfWork
unitOfWork
,
IAutomationFixtureToolsProductRepository
automationFixtureToolsProduct
,
public
QmsCheckController
(
IUnitOfWork
unitOfWork
,
IAutomationFixtureToolsProductRepository
automationFixtureToolsProduct
,
ISigerProjectProductRepository
productRepository
,
ISigerProjectLevelRepository
levelRepository
,
ISigerProjectProductRepository
productRepository
,
ISigerProjectLevelRepository
levelRepository
,
ISigerProjectLevelSectionRepository
levelSectionRepository
,
IInspectStandardRepository
inspectStandard
,
ISigerProjectLevelSectionRepository
levelSectionRepository
,
IInspectStandardRepository
inspectStandard
,
ICheckSnTraceInspectionRepository
traceInspectionRepository
,
ICheckSnTraceDetailRepository
traceDetailRepository
,
ICheckSnTraceInspectionRepository
traceInspectionRepository
,
ICheckSnTraceDetailRepository
traceDetailRepository
,
ICheckSnListRepository
checkSnListRepository
,
ISigerTrMaterialsRepository
materialsRepository
,
ICheckSnListRepository
checkSnListRepository
,
ISigerTrMaterialsRepository
materialsRepository
,
IAutomationTaskListRepository
automationTaskListRepository
,
IAutomationFixtureMonitor
fixtureMonitor
)
IAutomationTaskListRepository
automationTaskListRepository
,
IAutomationFixtureMonitor
fixtureMonitor
,
IProductionBeatSetRepository
beatSetRepository
)
{
{
_unitOfWork
=
unitOfWork
;
_unitOfWork
=
unitOfWork
;
_automationFixtureToolsProduct
=
automationFixtureToolsProduct
;
_automationFixtureToolsProduct
=
automationFixtureToolsProduct
;
...
@@ -58,6 +60,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -58,6 +60,7 @@ namespace Siger.ApiACC.Controllers
_materialsRepository
=
materialsRepository
;
_materialsRepository
=
materialsRepository
;
_automationTaskList
=
automationTaskListRepository
;
_automationTaskList
=
automationTaskListRepository
;
_fixtureMonitor
=
fixtureMonitor
;
_fixtureMonitor
=
fixtureMonitor
;
_beatSetRepository
=
beatSetRepository
;
}
}
[
HttpPost
]
[
HttpPost
]
public
IActionResult
AddManual
([
FromBody
]
RequestAddDataCollection
req
)
public
IActionResult
AddManual
([
FromBody
]
RequestAddDataCollection
req
)
...
@@ -68,6 +71,15 @@ namespace Siger.ApiACC.Controllers
...
@@ -68,6 +71,15 @@ namespace Siger.ApiACC.Controllers
{
{
throw
new
BadRequestException
(
RequestEnum
.
ProductNotFound
);
throw
new
BadRequestException
(
RequestEnum
.
ProductNotFound
);
}
}
var
route
=
_beatSetRepository
.
Get
(
q
=>
q
.
projectID
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
id
==
req
.
routeid
.
ToInt
());
if
(
route
==
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
ProcessNotFind
);
}
if
(
string
.
IsNullOrEmpty
(
req
.
sn
))
{
throw
new
BadRequestException
(
RequestEnum
.
PleaseInputPartSerialNumber
);
}
var
maxLevel
=
_levelRepository
.
GetList
(
t
=>
t
.
status
==
(
int
)
RowState
.
Valid
&&
t
.
projectid
==
ProjectId
).
Max
(
q
=>
q
.
id
);
var
maxLevel
=
_levelRepository
.
GetList
(
t
=>
t
.
status
==
(
int
)
RowState
.
Valid
&&
t
.
projectid
==
ProjectId
).
Max
(
q
=>
q
.
id
);
var
section
=
_levelSectionRepository
.
Get
(
t
=>
t
.
status
==
(
int
)
RowState
.
Valid
&&
t
.
projectid
==
ProjectId
&&
t
.
id
==
req
.
sectionid
);
var
section
=
_levelSectionRepository
.
Get
(
t
=>
t
.
status
==
(
int
)
RowState
.
Valid
&&
t
.
projectid
==
ProjectId
&&
t
.
id
==
req
.
sectionid
);
if
(
section
==
null
||
section
.
levelid
!=
maxLevel
)
if
(
section
==
null
||
section
.
levelid
!=
maxLevel
)
...
...
Server/Common/Siger.Middlelayer.Share/Enum/RequestEnum.cs
View file @
c5ad9b97
...
@@ -1544,5 +1544,8 @@ namespace Siger.Middlelayer.Common
...
@@ -1544,5 +1544,8 @@ namespace Siger.Middlelayer.Common
[
Description
(
"请填写仓库名称"
)]
[
Description
(
"请填写仓库名称"
)]
PleaseInputWarehouseName
,
PleaseInputWarehouseName
,
[
Description
(
"请输入工件编号"
)]
PleaseInputPartSerialNumber
,
}
}
}
}
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