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
f82b7afa
Commit
f82b7afa
authored
Jan 26, 2021
by
xin.yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
1d7315b5
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
38 additions
and
17 deletions
+38
-17
en-US.js
Html/src/locale/lang/en-US.js
+1
-1
zh-CN.js
Html/src/locale/lang/zh-CN.js
+1
-1
assemblyInfo.vue
Html/src/view/fms/associate/assemblyInfo.vue
+27
-8
associateProduct.vue
Html/src/view/fms/associate/associateProduct.vue
+1
-1
accountInfo.vue
Html/src/view/fms/config/accountInfo.vue
+1
-1
typeMaintenance.vue
Html/src/view/fms/config/typeMaintenance.vue
+1
-1
storageInfoQuery.vue
Html/src/view/wms/whStatusQuery/storageInfoQuery.vue
+1
-1
RequestEnum.cs
Server/Common/Siger.Middlelayer.Share/Enum/RequestEnum.cs
+1
-1
AutomationFixtureToolsCategoryRepository.cs
.../Repositories/AutomationFixtureToolsCategoryRepository.cs
+2
-0
AutomationFixtureToolsProductRepository.cs
...y/Repositories/AutomationFixtureToolsProductRepository.cs
+1
-1
AutomationFixtureToolsRepository.cs
...pository/Repositories/AutomationFixtureToolsRepository.cs
+1
-1
No files found.
Html/src/locale/lang/en-US.js
View file @
f82b7afa
...
...
@@ -716,7 +716,7 @@ export default {
'9000491'
:
'人员未找到'
,
'9000492'
:
'默认展示已存在'
,
'9000493'
:
'未找到储位类别'
,
'9000494'
:
'未找到工装类
别
'
,
'9000494'
:
'未找到工装类
型
'
,
'9000495'
:
'未找到工装信息'
,
'9000496'
:
'ID重复'
,
'9000497'
:
'父级和子级不能相同'
,
...
...
Html/src/locale/lang/zh-CN.js
View file @
f82b7afa
...
...
@@ -743,7 +743,7 @@ export default {
'9000491'
:
'人员未找到'
,
'9000492'
:
'默认展示已存在'
,
'9000493'
:
'未找到储位类别'
,
'9000494'
:
'未找到工装类
别
'
,
'9000494'
:
'未找到工装类
型
'
,
'9000495'
:
'未找到工装信息'
,
'9000496'
:
'ID重复'
,
'9000497'
:
'父级和子级不能相同'
,
...
...
Html/src/view/fms/associate/assemblyInfo.vue
View file @
f82b7afa
...
...
@@ -71,8 +71,8 @@
@
click=
"loadExcel()"
>
{{
$t
(
"1005"
)
}}
</Button
>
<
!--
<
Upload
style=
"display:
inline-block"
<Upload
style=
"display:inline-block"
ref=
"upload"
:action=
"action"
name=
"excel-file"
...
...
@@ -81,15 +81,14 @@
:on-format-error=
"handleFormatError"
:on-success=
"handleSuccess"
:on-error=
"handleError"
:format=
"['xlsx']"
>
-->
:format=
"['xlsx'
,'xls'
]"
>
<Button
type=
"primary"
class=
"fourWord"
icon=
"md-cloud-upload"
>
{{
$t
(
"1006"
)
}}
</Button
>
<!--
</Upload>
-->
>
{{
$t
(
'1006'
)
}}
</Button>
</Upload>
<Button
type=
"primary"
class=
"fourWord"
...
...
@@ -260,7 +259,7 @@ export default {
//导入方法
action
:
this
.
axios
.
publicPath
+
"acc/Upload/
Submit
?templateName=FixtureToolsAssmeblyTemplate"
,
"acc/Upload/
UploadExcel
?templateName=FixtureToolsAssmeblyTemplate"
,
headers
:
{
token
:
localStorage
.
getItem
(
"token"
),
timestamp
:
localStorage
.
getItem
(
"timestamp"
),
...
...
@@ -810,6 +809,26 @@ export default {
.
catch
((
error
)
=>
error
);
}
},
handleFormatError
(
file
)
{
this
.
$Message
.
error
(
this
.
$t
(
"950396"
)
+
file
.
name
+
this
.
$t
(
"950397"
)
);
},
handleSuccess
(
res
,
file
)
{
if
(
res
.
ret
==
1
)
{
this
.
$Message
.
success
(
this
.
$t
(
"950398"
));
this
.
tosearch
();
}
else
{
if
((
res
.
msg
+
""
).
indexOf
(
","
)
!=
-
1
)
{
inittip
(
res
.
msg
);
}
else
{
this
.
$Message
.
error
(
this
.
$t
(
res
.
data
));
}
}
},
handleError
()
{
this
.
$Message
.
error
(
this
.
$t
(
"2010006"
)
+
"!"
);
},
},
};
</
script
>
...
...
Html/src/view/fms/associate/associateProduct.vue
View file @
f82b7afa
...
...
@@ -150,7 +150,7 @@ export default {
data
(){
return
{
//导入方法
action
:
this
.
axios
.
publicPath
+
"acc/Upload/
Submit
?templateName=FixtureToolsProductTemplate"
,
action
:
this
.
axios
.
publicPath
+
"acc/Upload/
UploadExcel
?templateName=FixtureToolsProductTemplate"
,
headers
:
{
token
:
localStorage
.
getItem
(
"token"
),
timestamp
:
localStorage
.
getItem
(
"timestamp"
),
...
...
Html/src/view/fms/config/accountInfo.vue
View file @
f82b7afa
...
...
@@ -154,7 +154,7 @@ export default {
data
(){
return
{
//导入方法
action
:
this
.
axios
.
publicPath
+
"acc/Upload/
Submit
?templateName=FixtureToolsTemplate"
,
action
:
this
.
axios
.
publicPath
+
"acc/Upload/
UploadExcel
?templateName=FixtureToolsTemplate"
,
headers
:
{
token
:
localStorage
.
getItem
(
"token"
),
timestamp
:
localStorage
.
getItem
(
"timestamp"
),
...
...
Html/src/view/fms/config/typeMaintenance.vue
View file @
f82b7afa
...
...
@@ -86,7 +86,7 @@ export default {
data
(){
return
{
//导入方法
action
:
this
.
axios
.
publicPath
+
"acc/Upload/
Submit
?templateName=FixtureToolsCategoryTemplate"
,
action
:
this
.
axios
.
publicPath
+
"acc/Upload/
UploadExcel
?templateName=FixtureToolsCategoryTemplate"
,
headers
:
{
token
:
localStorage
.
getItem
(
"token"
),
timestamp
:
localStorage
.
getItem
(
"timestamp"
),
...
...
Html/src/view/wms/whStatusQuery/storageInfoQuery.vue
View file @
f82b7afa
...
...
@@ -275,7 +275,7 @@ export default {
addremark
:
''
,
//备注
filename
:
''
,
fileurl
:
''
,
action
:
this
.
axios
.
publicPath
+
"acc/Upload/
Submit
?templateName=AutomationLocationTemplate"
,
action
:
this
.
axios
.
publicPath
+
"acc/Upload/
UploadExcel
?templateName=AutomationLocationTemplate"
,
UploadAction
:
this
.
axios
.
publicPath
+
"config/upload/UploadImage"
,
headers
:
{
token
:
localStorage
.
getItem
(
"token"
),
...
...
Server/Common/Siger.Middlelayer.Share/Enum/RequestEnum.cs
View file @
f82b7afa
...
...
@@ -1465,7 +1465,7 @@ namespace Siger.Middlelayer.Common
[
Description
(
"未找到储位类别"
)]
LocationTypeNotFound
,
[
Description
(
"未找到工装类
别
"
)]
[
Description
(
"未找到工装类
型
"
)]
FixtureToolCatgeoryNotFound
,
[
Description
(
"未找到工装信息"
)]
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsCategoryRepository.cs
View file @
f82b7afa
...
...
@@ -103,6 +103,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
name
=
item
.
Fixture
,
parent
=
parent
,
createtime
=
DateTime
.
Now
,
updatetime
=
DateTime
.
Now
,
projectId
=
projectid
};
_context
.
siger_automation_fixture_tools_category
.
Add
(
entity
);
_context
.
SaveChanges
();
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsProductRepository.cs
View file @
f82b7afa
...
...
@@ -161,7 +161,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
FixtureToolNotFound
}
"
);
}
var
product
=
_context
.
siger_project_product
.
FirstOrDefault
(
q
=>
q
.
projectid
==
projectid
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
cod
e
==
item
.
Product
);
var
product
=
_context
.
siger_project_product
.
FirstOrDefault
(
q
=>
q
.
projectid
==
projectid
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
nam
e
==
item
.
Product
);
if
(
product
==
null
)
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
ProductNotFound
}
"
);
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsRepository.cs
View file @
f82b7afa
...
...
@@ -157,7 +157,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
DataExist
}
"
);
}
var
category
=
_context
.
siger_automation_fixture_tools
.
FirstOrDefault
(
q
=>
q
.
name
==
item
.
Catgeory
&&
q
.
projectId
==
projectid
&&
q
.
status
==
(
int
)
RowState
.
Valid
);
var
category
=
_context
.
siger_automation_fixture_tools
_category
.
FirstOrDefault
(
q
=>
q
.
name
==
item
.
Catgeory
&&
q
.
projectId
==
projectid
&&
q
.
status
==
(
int
)
RowState
.
Valid
);
if
(
category
==
null
)
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
FixtureToolCatgeoryNotFound
}
"
);
...
...
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