Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-ui
Project
Project
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
pda
pda-ui
Commits
935aaf85
Commit
935aaf85
authored
Mar 30, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新物料分类接口
parent
ca362304
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
3 deletions
+31
-3
itemtype.js
src/api/mes/md/itemtype.js
+11
-1
index.vue
src/views/mes/md/itemtype/index.vue
+20
-2
No files found.
src/api/mes/md/itemtype.js
View file @
935aaf85
...
...
@@ -58,4 +58,14 @@ export function delItemType(itemTypeId) {
url
:
'/mes/md/itemtype/'
+
itemTypeId
,
method
:
'delete'
})
}
\ No newline at end of file
}
export
function
synItemType
()
{
return
request
({
url
:
'/mes/md/itemtype/sapSynchro'
,
method
:
'post'
})
}
src/views/mes/md/itemtype/index.vue
View file @
935aaf85
...
...
@@ -35,6 +35,15 @@
@
click=
"toggleExpandAll"
>
展开/折叠
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"handleSynchronism"
v-hasPermi=
"['mes:md:mditem:edit']"
>
同步
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
...
...
@@ -149,7 +158,7 @@
</template>
<
script
>
import
{
listItemType
,
getItemType
,
delItemType
,
addItemType
,
updateItemType
,
listItemTypeExcludeChild
}
from
"@/api/mes/md/itemtype"
;
import
{
listItemType
,
getItemType
,
delItemType
,
addItemType
,
updateItemType
,
listItemTypeExcludeChild
,
synItemType
}
from
"@/api/mes/md/itemtype"
;
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
...
...
@@ -279,7 +288,7 @@ export default {
handleUpdate
(
row
)
{
this
.
reset
();
getItemType
(
row
.
itemTypeId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改分类"
;
});
...
...
@@ -287,6 +296,15 @@ export default {
this
.
itemTypeOptions
=
this
.
handleTree
(
response
.
data
,
"itemTypeId"
,
"parentTypeId"
);
});
},
/** 同步SAP */
handleSynchronism
()
{
this
.
reset
();
synItemType
().
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
getList
();
}
});
},
/** 提交按钮 */
submitForm
:
function
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
...
...
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