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
2171ff1e
Commit
2171ff1e
authored
Sep 02, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
masterDate
parent
6dff197e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
7 deletions
+33
-7
process.vue
components/page/import/process.vue
+11
-2
masterData.vue
pages/materiel/masterData/masterData.vue
+20
-2
index.vue
pages/resource/resource/index.vue
+2
-3
No files found.
components/page/import/process.vue
View file @
2171ff1e
<
template
>
<
template
>
<Modal
v-model=
"ImportModal"
title=
"导入
"
fullscreen
footer-hide
@
on-cancel=
"cancelModal"
>
<Modal
v-model=
"ImportModal"
:title=
"modalTitles
"
fullscreen
footer-hide
@
on-cancel=
"cancelModal"
>
<div
class=
"table-content"
>
<div
class=
"table-content"
>
<div
class=
"table-tools"
>
<div
class=
"table-tools"
>
...
@@ -99,6 +99,7 @@ export default {
...
@@ -99,6 +99,7 @@ export default {
columnsIm
:
this
.
columns
,
columnsIm
:
this
.
columns
,
ImportModal
:
this
.
open
,
ImportModal
:
this
.
open
,
batchImportUrl
:
''
,
batchImportUrl
:
''
,
modalTitles
:
'导入'
,
};
};
},
},
props
:
{
props
:
{
...
@@ -118,6 +119,10 @@ export default {
...
@@ -118,6 +119,10 @@ export default {
open
:
{
open
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
modalTitle
:
{
type
:
String
,
default
:
""
}
}
},
},
created
()
{
created
()
{
...
@@ -133,6 +138,7 @@ export default {
...
@@ -133,6 +138,7 @@ export default {
//if (this.eid > 0) {
//if (this.eid > 0) {
// this.load(this.eid);
// this.load(this.eid);
//}
//}
this
.
modalTitles
=
"导入到【"
+
this
.
modalTitle
+
"】"
window
.
onresize
=
()
=>
{
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
///浏览器窗口大小变化
return
(()
=>
{
return
(()
=>
{
...
@@ -411,7 +417,10 @@ export default {
...
@@ -411,7 +417,10 @@ export default {
},
},
open
(
v
)
{
open
(
v
)
{
this
.
ImportModal
=
v
this
.
ImportModal
=
v
}
},
modalTitle
(
v
)
{
this
.
modalTitles
=
"导入到【"
+
v
+
"】"
},
},
},
};
};
</
script
>
</
script
>
...
...
pages/materiel/masterData/masterData.vue
View file @
2171ff1e
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<Modal
v-model=
"modal"
:title=
"title"
width=
"1000"
footer-hide
:mask-closable=
"false"
:fullscreen=
"fullscreen"
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1000"
footer-hide
:mask-closable=
"false"
:fullscreen=
"fullscreen"
>
<component
:is=
"detail"
:eid=
"curId"
:rootCategoryId=
"rootCategoryId"
:rowsTable=
"rowsTable"
:nodeInfo=
"nodeInfo"
@
on-close=
"cancel"
@
on-cancel=
"cancel"
@
on-ok=
"ok"
ref=
"chlidren"
/>
<component
:is=
"detail"
:eid=
"curId"
:rootCategoryId=
"rootCategoryId"
:rowsTable=
"rowsTable"
:nodeInfo=
"nodeInfo"
@
on-close=
"cancel"
@
on-cancel=
"cancel"
@
on-ok=
"ok"
ref=
"chlidren"
/>
</Modal>
</Modal>
<ImportExcel
ref=
"importExcel"
@
on-get-data=
"getData"
:columns=
"cols"
:open=
"ModalIm"
@
on-cancel=
"ModalImCancel"
@
on-ok=
"ok"
/>
<ImportExcel
ref=
"importExcel"
@
on-get-data=
"getData"
:
modalTitle=
"temTitle"
:
columns=
"cols"
:open=
"ModalIm"
@
on-cancel=
"ModalImCancel"
@
on-ok=
"ok"
/>
</div>
</div>
</template>
</template>
...
@@ -48,6 +48,7 @@ export default {
...
@@ -48,6 +48,7 @@ export default {
rowsTable
:
[],
rowsTable
:
[],
fullscreen
:
false
,
fullscreen
:
false
,
detail
:
null
,
detail
:
null
,
temTitle
:
"物料管理"
,
sets
:
v
=>
{
sets
:
v
=>
{
v
.
categoryId
=
this
.
nodeInfo
.
categoryId
;
v
.
categoryId
=
this
.
nodeInfo
.
categoryId
;
v
.
rootCategoryId
=
this
.
nodeInfo
.
rootCategoryId
;
v
.
rootCategoryId
=
this
.
nodeInfo
.
rootCategoryId
;
...
@@ -67,6 +68,22 @@ export default {
...
@@ -67,6 +68,22 @@ export default {
width
:
70
,
width
:
70
,
align
:
"center"
align
:
"center"
},
},
{
key
:
"codeRuleType"
,
title
:
"类型"
,
align
:
"center"
,
code
:
"material.code.type"
},
{
key
:
"rootCategoryId"
,
title
:
"大类编号"
,
align
:
"right"
,
},
{
key
:
"categoryId"
,
title
:
"子类编号"
,
align
:
"right"
,
},
{
{
key
:
"code"
,
key
:
"code"
,
title
:
"编码"
,
title
:
"编码"
,
...
@@ -405,6 +422,7 @@ export default {
...
@@ -405,6 +422,7 @@ export default {
nodeInfo
:
{
nodeInfo
:
{
handler
(
newName
,
oldName
)
{
handler
(
newName
,
oldName
)
{
// console.log("ovo", newName, oldName);
// console.log("ovo", newName, oldName);
this
.
temTitle
=
"物料管理("
+
newName
.
rootCategoryName
+
")"
if
(
newName
.
rootCategoryId
)
{
if
(
newName
.
rootCategoryId
)
{
this
.
initCols
(()
=>
{
this
.
initCols
(()
=>
{
if
(
newName
.
categoryId
)
{
if
(
newName
.
categoryId
)
{
...
@@ -419,7 +437,7 @@ export default {
...
@@ -419,7 +437,7 @@ export default {
},
},
immediate
:
true
,
immediate
:
true
,
deep
:
true
deep
:
true
}
}
,
}
}
};
};
</
script
>
</
script
>
...
...
pages/resource/resource/index.vue
View file @
2171ff1e
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<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"
: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>
...
@@ -265,8 +265,7 @@ export default {
...
@@ -265,8 +265,7 @@ export default {
title
:
"删除"
,
title
:
"删除"
,
},
},
class
:
params
.
row
.
totalNum
===
params
.
row
.
numberAvailable
?
class
:
params
.
row
.
totalNum
===
params
.
row
.
numberAvailable
?
"remove"
:
"remove"
:
"disable"
,
"disable"
,
on
:
{
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
),
click
:
()
=>
this
.
remove
(
params
.
row
),
},
},
...
...
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