Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
a917e12f
Commit
a917e12f
authored
Sep 03, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺规程/智能排产/物料管理/datagrid......
parent
abc532dd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1075 additions
and
900 deletions
+1075
-900
dataGrid.vue
components/page/dataGrid.vue
+2
-2
process.vue
components/page/import/process.vue
+7
-4
productSelect.vue
components/page/productSelect.vue
+175
-172
zh-CN.js
i18n/locale/zh-CN.js
+4
-3
index.vue
pages/aps/ai/index.vue
+1
-0
process.vue
pages/import/process.vue
+6
-4
masterData.vue
pages/materiel/masterData/masterData.vue
+9
-1
add.vue
pages/technology/add.vue
+262
-249
index.vue
pages/technology/details/routingsupporting/index.vue
+46
-0
index.vue
pages/technology/index.vue
+563
-465
No files found.
components/page/dataGrid.vue
View file @
a917e12f
...
...
@@ -519,9 +519,9 @@ export default {
const
filterVal
=
[];
//list里对象的属性
var
tempCol
=
[];
var
tempCol1
=
[];
var
columnsCur
=
this
.
$u
.
clone
(
this
.
columns
Now
);
//导出列标题信息griddata this.$refs.grid.columnsCur
var
columnsCur
=
this
.
$u
.
clone
(
this
.
columns
Cur
);
//导出列标题信息griddata this.$refs.grid.columnsCur
columnsCur
.
forEach
((
el
)
=>
{
if
((
el
.
hide
&&
!
el
.
import
)
||
(
!
el
.
hide
&&
el
.
key
!=
"action"
&&
el
.
type
!=
"selection"
&&
el
.
key
!=
"ico"
))
{
if
((
el
.
hide
&&
el
.
import
)
||
(
!
el
.
hide
&&
el
.
key
!=
"action"
&&
el
.
type
!=
"selection"
&&
el
.
key
!=
"ico"
))
{
if
(
el
.
code
)
{
tempCol
.
push
({
key
:
el
.
key
,
...
...
components/page/import/process.vue
View file @
a917e12f
...
...
@@ -215,12 +215,13 @@ export default {
useData
.
forEach
(
eles
=>
{
//如果导入文件没有departmentid,但存在departmentTitle的话,通过title获取id
if
(
eles
.
departmentTitle
&&
eles
.
departmentTitle
!=
""
&&
[(
eles
.
departmentTitle
&&
eles
.
departmentTitle
!=
""
)
||
(
eles
.
departmentName
&&
eles
.
departmentName
!=
""
)]
&&
(
!
eles
.
departmentId
||
eles
.
departmentId
==
""
)
)
{
this
.
departArr
.
forEach
((
e
)
=>
{
if
(
eles
.
departmentTitle
&&
eles
.
departmentTitle
==
e
.
name
)
{
if
(
(
eles
.
departmentTitle
&&
eles
.
departmentTitle
==
e
.
name
)
||
(
eles
.
departmentName
&&
eles
.
departmentName
==
e
.
name
)
)
{
eles
.
departmentId
=
e
.
id
;
}
});
...
...
@@ -228,14 +229,16 @@ export default {
//如果导入文件没有departmentTitle,但存在departmentid的话,通过id获取departmentTitle
eles
.
departmentId
&&
eles
.
departmentId
+
""
!=
""
&&
(
!
eles
.
departmentTitle
||
eles
.
departmentTitle
==
""
)
(
!
eles
.
departmentTitle
||
eles
.
departmentTitle
==
""
)
&&
(
!
eles
.
departmentName
||
eles
.
departmentName
==
""
)
)
{
this
.
departArr
.
forEach
((
e
)
=>
{
if
(
eles
.
departmentId
&&
eles
.
departmentId
==
e
.
id
)
{
eles
.
departmentTitle
=
e
.
name
;
eles
.
departmentName
=
e
.
name
;
}
});
}
arrTitleUse
.
forEach
((
elem
)
=>
{
if
(
eles
[
elem
.
key
]
&&
eles
[
elem
.
key
]
!=
""
&&
eles
[
elem
.
key
]
!=
null
)
{
//如果数据字典项对应的DirName字段存在,通过name查询到对应的code,然后赋值
...
...
components/page/productSelect.vue
View file @
a917e12f
This diff is collapsed.
Click to expand it.
i18n/locale/zh-CN.js
View file @
a917e12f
...
...
@@ -1173,10 +1173,11 @@ export default {
code
:
'工艺文件编号'
,
productId
:
'产品id'
,
productName
:
'产品名称'
,
productBomId
:
'产品BomId'
,
drawingNo
:
'图号'
,
version
:
'版本'
,
author
:
'编制人'
,
departmentId
:
'主制车间'
,
departmentId
:
'主制车间
Id
'
,
departmentName
:
'主制车间'
,
isMain
:
'主工艺'
,
upId
:
'父工艺'
,
...
...
@@ -1186,8 +1187,8 @@ export default {
approvalStatus
:
'审批状态'
,
remark
:
'工艺说明'
,
approvalStatusRemark
:
'审批备注'
,
auditUserId1
:
'审批人'
,
auditUserId2
:
'审批人'
,
auditUserId1
:
'审批人
1
'
,
auditUserId2
:
'审批人
2
'
,
isDeleted
:
'是否删除'
,
platesnum
:
'板数'
,
isEffect
:
'有效'
,
...
...
pages/aps/ai/index.vue
View file @
a917e12f
...
...
@@ -6,6 +6,7 @@
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
应用规则:
<Select
v-model=
"rulesAi"
multiple
style=
"width:280px;"
class=
"tl"
>
<Option
v-for=
"item in rulesAiList"
:value=
"item.value"
:key=
"item.value"
>
{{
item
.
label
}}
</Option>
</Select>
...
...
pages/import/process.vue
View file @
a917e12f
...
...
@@ -678,12 +678,13 @@ export default {
useData
.
forEach
(
eles
=>
{
//如果导入文件没有departmentid,但存在departmentTitle的话,通过title获取id
if
(
eles
.
departmentTitle
&&
eles
.
departmentTitle
!=
""
&&
[(
eles
.
departmentTitle
&&
eles
.
departmentTitle
!=
""
)
||
(
eles
.
departmentName
&&
eles
.
departmentName
!=
""
)]
&&
(
!
eles
.
departmentId
||
eles
.
departmentId
==
""
)
)
{
this
.
departArr
.
forEach
((
e
)
=>
{
if
(
eles
.
departmentTitle
&&
eles
.
departmentTitle
==
e
.
name
)
{
if
(
(
eles
.
departmentTitle
&&
eles
.
departmentTitle
==
e
.
name
)
||
(
eles
.
departmentName
&&
eles
.
departmentName
==
e
.
name
)
)
{
eles
.
departmentId
=
e
.
id
;
}
});
...
...
@@ -691,11 +692,12 @@ export default {
//如果导入文件没有departmentTitle,但存在departmentid的话,通过id获取departmentTitle
eles
.
departmentId
&&
eles
.
departmentId
+
""
!=
""
&&
(
!
eles
.
departmentTitle
||
eles
.
departmentTitle
==
""
)
(
!
eles
.
departmentTitle
||
eles
.
departmentTitle
==
""
)
&&
(
!
eles
.
departmentName
||
eles
.
departmentName
==
""
)
)
{
this
.
departArr
.
forEach
((
e
)
=>
{
if
(
eles
.
departmentId
&&
eles
.
departmentId
==
e
.
id
)
{
eles
.
departmentTitle
=
e
.
name
;
eles
.
departmentName
=
e
.
name
;
}
});
}
...
...
pages/materiel/masterData/masterData.vue
View file @
a917e12f
...
...
@@ -74,12 +74,16 @@ export default {
key
:
"codeRuleType"
,
title
:
"类型"
,
align
:
"center"
,
code
:
"material.code.type"
code
:
"material.code.type"
,
import
:
true
,
hide
:
true
,
},
{
key
:
"codeRuleId"
,
title
:
"编码名称"
,
materialKey
:
'3'
,
import
:
true
,
hide
:
true
,
render
:
(
h
,
params
)
=>
{
return
h
(
"span"
,
{},
...
...
@@ -92,6 +96,8 @@ export default {
title
:
"大类"
,
align
:
"right"
,
materialKey
:
'1'
,
import
:
true
,
hide
:
true
,
render
:
(
h
,
params
)
=>
{
return
h
(
"span"
,
{},
...
...
@@ -104,6 +110,8 @@ export default {
title
:
"子类"
,
align
:
"right"
,
materialKey
:
'2'
,
import
:
true
,
hide
:
true
,
render
:
(
h
,
params
)
=>
{
return
h
(
"span"
,
{},
...
...
pages/technology/add.vue
View file @
a917e12f
This diff is collapsed.
Click to expand it.
pages/technology/details/routingsupporting/index.vue
View file @
a917e12f
...
...
@@ -16,11 +16,13 @@
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"add"
v-show=
"headerStatus==0||headerStatus==4"
>
新增
</Button>
<Button
@
click=
"openModalIm"
>
导入
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
:headid=
"hid"
:productBomId=
"productBomId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
<ImportExcel
ref=
"importExcel"
@
on-get-data=
"getData"
:modalTitle=
"temTitle"
:columns=
"cols"
:open=
"ModalIm"
@
on-cancel=
"ModalImCancel"
@
on-ok=
"ok"
/>
</div>
</template>
...
...
@@ -229,6 +231,8 @@ export default {
],
headerStatus
:
-
1
,
productBomId
:
-
1
,
ModalIm
:
false
,
temTitle
:
"工艺Bom"
,
};
},
created
()
{
...
...
@@ -298,6 +302,48 @@ export default {
this
.
curId
=
0
;
this
.
modal
=
false
;
},
//批量导入start
//导入功能
openModalIm
()
{
this
.
ModalIm
=
true
},
ModalImCancel
()
{
this
.
ModalIm
=
false
},
getData
(
val
)
{
let
url
=
`
${
technologyUrl
}
productinfoimportservice/import`
;
this
.
$refs
.
importExcel
.
deelData
(
url
,
this
.
cols
,
this
.
formatMethod
(
val
))
},
//根据页面二次处理数据
formatMethod
(
val
)
{
let
tempData
=
this
.
$u
.
clone
(
val
);
let
tempList
=
[];
tempData
.
forEach
((
ele
)
=>
{
let
obj
=
{
name
:
ele
.
name
?
ele
.
name
:
''
,
version
:
ele
.
version
?
Number
(
ele
.
version
)
:
''
,
drawing
:
ele
.
drawing
?
ele
.
drawing
:
''
,
description
:
ele
.
description
?
ele
.
description
:
""
,
code
:
0
,
status
:
this
.
nodeInfo
.
status
==
1
?
3
:
0
,
codeRuleId
:
this
.
nodeInfo
.
codeRuleId
,
categoryId
:
this
.
nodeInfo
.
categoryId
,
//左侧树点击的id
customProperties
:
{},
rootCategoryId
:
this
.
nodeInfo
.
rootCategoryId
,
//左侧树点击的数据的最顶层id
codeRuleType
:
this
.
nodeInfo
.
codeRuleType
};
if
(
ele
.
name
&&
ele
.
name
!=
''
)
{
obj
.
ico
=
false
}
else
{
obj
.
ico
=
true
}
tempList
.
push
(
obj
);
});
return
tempList
},
//批量导入end
l
(
key
)
{
let
vkey
=
"routingsupporting"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
...
...
pages/technology/index.vue
View file @
a917e12f
This diff is collapsed.
Click to expand it.
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