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
d463c700
Commit
d463c700
authored
Sep 14, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资源bug
parent
6dadb572
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
586 additions
and
545 deletions
+586
-545
index.vue
pages/resource/resource/index.vue
+586
-545
No files found.
pages/resource/resource/index.vue
View file @
d463c700
<
template
>
<
template
>
<Layout
class=
"full"
>
<Layout
class=
"full"
>
<Sider
hide-trigger
v-if=
"showMenu"
class=
"menu_side"
width=
"300"
>
<Sider
hide-trigger
v-if=
"showMenu"
class=
"menu_side"
width=
"300"
>
<StoreTree
@
on-hide=
"onHide"
@
on-select=
"productSearch"
/>
<StoreTree
@
on-hide=
"onHide"
@
on-select=
"productSearch"
/>
</Sider>
</Sider>
...
@@ -9,11 +9,26 @@
...
@@ -9,11 +9,26 @@
</a>
</a>
</div>
</div>
<Content
class=
"content"
:class=
"!showMenu?'con_bord':''"
>
<Content
class=
"content"
:class=
"!showMenu?'con_bord':''"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:batch=
"true"
:format=
"checkData"
@
all-change=
"allchange"
@
on-selection-change=
"onSelect"
exportTitle=
"制造资源"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:batch=
"true"
:format=
"checkData"
@
all-change=
"allchange"
@
on-selection-change=
"onSelect"
exportTitle=
"制造资源"
>
<template
slot=
"easySearch"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<FormItem
prop=
"keys"
>
<Input
clearable
placeholder=
"请输入资源名称/资源编码/编码"
v-model
.
trim=
"easySearch.keys.value"
v-width=
"260"
/>
<Input
clearable
placeholder=
"请输入资源名称/资源编码/编码"
v-model
.
trim=
"easySearch.keys.value"
v-width=
"260"
/>
</FormItem>
</FormItem>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
...
@@ -36,11 +51,32 @@
...
@@ -36,11 +51,32 @@
</
template
>
</
template
>
</DataGrid>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
:fullscreen=
"fscreeen"
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
:fullscreen=
"fscreeen"
>
<component
:is=
"detail"
:eid=
"curId"
:rootName=
"rootName"
:storeTitle=
"storeTitle"
:materialType=
"materialType"
:codeRuleType=
"codeRuleType"
:storeId=
"storeId"
:mcode=
"mCode"
:cartList=
"this.$u.clone(this.$store.state.cart)"
@
on-close=
"cancel"
@
on-ok=
"ok"
@
substr=
"substr"
/>
<component
:is=
"detail"
:eid=
"curId"
:rootName=
"rootName"
:storeTitle=
"storeTitle"
:materialType=
"materialType"
:codeRuleType=
"codeRuleType"
:storeId=
"storeId"
:mcode=
"mCode"
:cartList=
"this.$u.clone(this.$store.state.cart)"
@
on-close=
"cancel"
@
on-ok=
"ok"
@
substr=
"substr"
/>
</Modal>
</Modal>
<ImportExcel
ref=
"importExcel"
@
on-get-data=
"getData"
modalTitle=
"制造资源"
:columns=
"columns"
:open=
"ModalIm"
@
on-cancel=
"ModalImCancel"
@
on-ok=
"ok"
/>
<ImportExcel
ref=
"importExcel"
@
on-get-data=
"getData"
modalTitle=
"制造资源"
:columns=
"columns"
:open=
"ModalIm"
@
on-cancel=
"ModalImCancel"
@
on-ok=
"ok"
/>
</Content>
</Content>
</Layout>
</Layout>
</template>
</template>
<
script
>
<
script
>
...
@@ -76,7 +112,8 @@ export default {
...
@@ -76,7 +112,8 @@ export default {
storeTitle
:
""
,
storeTitle
:
""
,
materialType
:
""
,
materialType
:
""
,
mCode
:
""
,
mCode
:
""
,
columns
:
[{
columns
:
[
{
key
:
"selection"
,
key
:
"selection"
,
type
:
"selection"
,
type
:
"selection"
,
width
:
50
,
width
:
50
,
...
@@ -98,7 +135,8 @@ export default {
...
@@ -98,7 +135,8 @@ export default {
width
:
60
,
width
:
60
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
return
h
(
"div"
,
{
"div"
,
{
class
:
"action"
,
class
:
"action"
,
},
},
[
[
...
@@ -254,18 +292,22 @@ export default {
...
@@ -254,18 +292,22 @@ export default {
hide
:
false
,
hide
:
false
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
return
h
(
"div"
,
{
"div"
,
{
class
:
"action"
,
class
:
"action"
,
},
},
[
[
h
(
h
(
"op"
,
{
"op"
,
{
attrs
:
{
attrs
:
{
oprate
:
"delete"
,
oprate
:
"delete"
,
title
:
"删除"
,
title
:
"删除"
,
},
},
class
:
params
.
row
.
totalNum
===
params
.
row
.
numberAvailable
?
class
:
"remove"
:
"disable"
,
params
.
row
.
totalNum
===
params
.
row
.
numberAvailable
?
"remove"
:
"disable"
,
on
:
{
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
),
click
:
()
=>
this
.
remove
(
params
.
row
),
},
},
...
@@ -273,7 +315,8 @@ export default {
...
@@ -273,7 +315,8 @@ export default {
"删除"
"删除"
),
),
h
(
h
(
"op"
,
{
"op"
,
{
attrs
:
{
attrs
:
{
oprate
:
"detail"
,
oprate
:
"detail"
,
title
:
"查看日志"
,
title
:
"查看日志"
,
...
@@ -314,10 +357,7 @@ export default {
...
@@ -314,10 +357,7 @@ export default {
})();
})();
};
};
},
},
async
fetch
({
async
fetch
({
store
,
params
})
{
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
computed
:
{},
computed
:
{},
...
@@ -488,11 +528,12 @@ export default {
...
@@ -488,11 +528,12 @@ export default {
},
},
productSearch
(
item
,
ids
,
rootName
)
{
productSearch
(
item
,
ids
,
rootName
)
{
// console.log(item);
// console.log(item);
this
.
codeRuleType
=
null
;
this
.
curId
=
item
.
id
;
this
.
curId
=
item
.
id
;
let
type
=
[];
this
.
type
=
[];
type
=
item
.
codeRuleType
.
split
(
","
);
this
.
type
=
item
.
codeRuleType
.
split
(
","
);
if
(
type
)
{
if
(
this
.
type
)
{
type
.
forEach
((
e
)
=>
{
this
.
type
.
forEach
((
e
)
=>
{
if
(
e
==
3
)
{
if
(
e
==
3
)
{
this
.
codeRuleType
=
3
;
this
.
codeRuleType
=
3
;
}
}
...
...
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