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
40edab9b
Commit
40edab9b
authored
Jun 12, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料
parent
73ee7462
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
47 additions
and
36 deletions
+47
-36
add.vue
pages/materiel/classification/add.vue
+4
-1
edit.vue
pages/materiel/classification/edit.vue
+2
-0
index.vue
pages/materiel/classification/index.vue
+5
-6
sonAdd.vue
pages/materiel/classification/sonAdd.vue
+2
-1
add.vue
pages/materiel/masterData/add.vue
+1
-0
api.js
pages/materiel/masterData/api.js
+2
-2
details.vue
pages/materiel/masterData/details.vue
+22
-21
index.vue
pages/materiel/masterData/index.vue
+8
-4
masterData.vue
pages/materiel/masterData/masterData.vue
+1
-1
No files found.
pages/materiel/classification/add.vue
View file @
40edab9b
...
...
@@ -55,6 +55,8 @@
></state>
<Dictionary
v-else
@
on-change=
"setRow(row,index)"
v-model=
"row.dataType"
code=
"materail.category.dataType"
type=
"select"
:value=
"row.dataType"
...
...
@@ -100,7 +102,8 @@ export default {
arr
:
[],
entity
:
{
upId
:
0
,
code
:
0
code
:
0
,
status
:
0
,
},
disabled
:
false
,
columns
:
[
...
...
pages/materiel/classification/edit.vue
View file @
40edab9b
...
...
@@ -51,6 +51,8 @@
></state>
<Dictionary
v-else
@
on-change=
"setRow(row,index)"
v-model=
"row.dataType"
code=
"materail.category.dataType"
type=
"select"
:value=
"row.dataType"
...
...
pages/materiel/classification/index.vue
View file @
40edab9b
...
...
@@ -4,7 +4,7 @@
<Sider
width=
"300"
v-if=
"showMenu"
>
<div
class=
"p-list"
>
<h3>
零部件库
<Dictionary
code=
"material.code.type"
v-model=
"type"
style=
"width:130px;float:left;"
></Dictionary>
<div
class=
"fr mr10 mt10"
>
<ButtonGroup
class=
"fr"
size=
"small"
>
<Button
icon=
"md-add"
title=
"新增顶级"
@
click=
"addNew"
></Button>
...
...
@@ -53,7 +53,7 @@
</a>
</div>
<Content
:class=
"!showMenu?'con_bord':''"
>
<MasterData
ref=
"dataTable"
@
on-edit=
"editRow"
:root=
"root"
@
on-ok=
"ok"
/>
<MasterData
ref=
"dataTable"
@
on-edit=
"editRow"
:root=
"root"
@
on-ok=
"ok"
/>
</Content>
</Layout>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1000"
footer-hide
:mask-closable=
"false"
>
...
...
@@ -192,10 +192,9 @@ export default {
},
data
.
title
+
"("
+
(
data
.
totalMaterialCount
==
undefined
?
"0"
:
data
.
totalMaterialCount
)
+
(
data
.
totalMaterialCount
==
undefined
?
"0"
:
data
.
totalMaterialCount
)
+
")"
);
},
...
...
pages/materiel/classification/sonAdd.vue
View file @
40edab9b
...
...
@@ -50,7 +50,8 @@ export default {
return
{
entity
:
{
upId
:
this
.
nodeInfo
.
id
,
code
:
0
code
:
0
,
status
:
0
},
upName
:
this
.
nodeInfo
.
title
,
disabled
:
false
,
...
...
pages/materiel/masterData/add.vue
View file @
40edab9b
...
...
@@ -52,6 +52,7 @@ export default {
arr
:
[],
entity
:
{
code
:
0
,
status
:
0
,
categoryId
:
this
.
nodeInfo
.
categoryId
,
//左侧树点击的id
customProperties
:
{},
rootCategoryId
:
this
.
nodeInfo
.
rootCategoryId
//左侧树点击的数据的最顶层id
...
...
pages/materiel/masterData/api.js
View file @
40edab9b
import
Api
from
'@/plugins/request'
export
default
{
index
:
`
${
systemUrl
}
/material/paged`
,
lists
:
`
${
systemUrl
}
/
category
/list`
,
lists
:
`
${
systemUrl
}
/
actionlog
/list`
,
paged
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/material/paged`
,
params
);
},
...
...
@@ -21,6 +21,6 @@ export default {
return
Api
.
delete
(
`
${
systemUrl
}
/material/delete`
,{
params
:{
id
:
id
}});
},
categoryList
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/
category
/list`
,
params
);
return
Api
.
post
(
`
${
systemUrl
}
/
actionlog
/list`
,
params
);
},
}
\ No newline at end of file
pages/materiel/masterData/details.vue
View file @
40edab9b
...
...
@@ -52,8 +52,8 @@
</div>
</div>
<div
v-show=
"showTable"
>
<
!--
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:high=
"false"
:height=
"750"
></DataGrid>
--
>
<
Table
border
:columns=
"columns"
:data=
"data1"
:height=
"800"
></Table
>
<
DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:tool=
"false"
:height=
"750"
></DataGrid
>
<
!--
<Table
border
:columns=
"columns"
:data=
"data1"
:height=
"800"
></Table>
--
>
</div>
</Content>
</Layout>
...
...
@@ -124,25 +124,26 @@ export default {
}
else
{
this
.
showFrom
=
false
;
this
.
showTable
=
true
;
this
.
easySearch
=
{
conditions
:
[
{
fieldName
:
"table"
,
fieldValue
:
"material"
,
conditionalType
:
"Equal"
},
{
fieldName
:
"tId"
,
fieldValue
:
this
.
rowId
,
conditionalType
:
"Equal"
}
]
};
Api
.
categoryList
(
this
.
easySearch
).
then
(
r
=>
{
if
(
r
.
result
)
{
this
.
data1
=
r
.
result
;
}
});
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
// this.easySearch = {
// conditions: [
// {
// fieldName: "table",
// fieldValue: "material",
// conditionalType: "Equal"
// },
// {
// fieldName: "tId",
// fieldValue: this.rowId,
// conditionalType: "Equal"
// }
// ]
// };
// Api.categoryList(this.easySearch).then(r => {
// if (r.result) {
// this.data1 = r.result;
// }
// });
}
},
l
(
key
)
{
...
...
pages/materiel/masterData/index.vue
View file @
40edab9b
...
...
@@ -4,9 +4,9 @@
<Sider
width=
"300"
v-if=
"showMenu"
>
<div
class=
"p-list"
>
<h3>
零部件库
<Dictionary
code=
"material.code.type"
v-model=
"type"
style=
"width:130px;float:left;"
></Dictionary>
<div
class=
"fr mr10 mt10"
>
<ButtonGroup
class=
"fr"
size=
"small"
>
<ButtonGroup
class=
"fr
ddi
"
size=
"small"
>
<!--
<Button
icon=
"md-add"
title=
"新增顶级"
@
click=
"addNew"
></Button>
-->
<Button
:icon=
"expand ? 'md-arrow-dropright' : 'md-arrow-dropdown'"
...
...
@@ -50,6 +50,7 @@ export default {
name
:
"masterData"
,
data
()
{
return
{
type
:
""
,
keys
:
""
,
expand
:
false
,
list
:
[],
...
...
@@ -208,7 +209,7 @@ export default {
background: rgba(255, 255, 255, 1);
margin-right: 10px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
height: 8
7
vh;
height: 8
8
vh;
h4 {
height: 30px;
...
...
@@ -227,6 +228,9 @@ export default {
background: rgba(245, 246, 250, 1);
opacity: 1;
padding-left: 10px;
.ddi {
margin-top: 3px;
}
}
.search {
height: 50px;
...
...
@@ -274,7 +278,7 @@ export default {
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
overflow: auto;
padding: 10px;
height: 8
7
vh;
height: 8
8
vh;
overflow-y: hidden;
}
}
...
...
pages/materiel/masterData/masterData.vue
View file @
40edab9b
...
...
@@ -203,7 +203,7 @@ export default {
// });
},
details
(
id
)
{
alert
(
id
)
this
.
$router
.
push
({
path
:
"/materiel/masterData/details"
,
query
:
{
...
...
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