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
84481144
Commit
84481144
authored
Apr 01, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增sap同步计量单位
parent
edabc44b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
unitmeasure.js
src/api/mes/md/unitmeasure.js
+8
-0
index.vue
src/views/mes/md/unitmeasure/index.vue
+28
-1
No files found.
src/api/mes/md/unitmeasure.js
View file @
84481144
...
...
@@ -56,3 +56,11 @@ export function delUnitmeasure(measureId) {
method
:
'delete'
})
}
// 同步sap单位
export
function
sapSynUnitmeasure
()
{
return
request
({
url
:
'/mes/md/unitmeasure/sapSynchro'
,
method
:
'post'
})
}
src/views/mes/md/unitmeasure/index.vue
View file @
84481144
...
...
@@ -66,6 +66,16 @@
v-hasPermi=
"['mes:md:unitmeasure:export']"
>
导出
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
:loading=
"syncLoading"
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>
...
...
@@ -73,6 +83,7 @@
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"单位编码"
align=
"center"
prop=
"measureCode"
/>
<el-table-column
label=
"单位名称"
align=
"center"
prop=
"measureName"
/>
<el-table-column
label=
"单位名称说明"
align=
"center"
prop=
"measureNameLone"
/>
<el-table-column
label=
"是否是主单位"
align=
"center"
prop=
"primaryFlag"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.sys_yes_no"
:value=
"scope.row.primaryFlag"
/>
...
...
@@ -167,7 +178,7 @@
</template>
<
script
>
import
{
listUnitmeasure
,
listPrimaryUnitmeasure
,
getUnitmeasure
,
delUnitmeasure
,
addUnitmeasure
,
updateUnitmeasure
}
from
"@/api/mes/md/unitmeasure"
;
import
{
listUnitmeasure
,
listPrimaryUnitmeasure
,
getUnitmeasure
,
delUnitmeasure
,
addUnitmeasure
,
updateUnitmeasure
,
sapSynUnitmeasure
}
from
"@/api/mes/md/unitmeasure"
;
export
default
{
name
:
"Unitmeasure"
,
...
...
@@ -190,6 +201,8 @@ export default {
unitmeasureList
:
[],
//主单位列表
measureOptions
:
[],
syncLoading
:
false
,
// 弹出层标题
title
:
""
,
// 是否显示弹出层
...
...
@@ -200,6 +213,7 @@ export default {
pageSize
:
10
,
measureCode
:
null
,
measureName
:
null
,
measureNameLone
:
null
,
primaryFlag
:
null
,
primaryId
:
null
,
changeRate
:
null
,
...
...
@@ -248,6 +262,7 @@ export default {
measureId
:
null
,
measureCode
:
null
,
measureName
:
null
,
measureNameLone
:
null
,
primaryFlag
:
null
,
primaryId
:
null
,
changeRate
:
null
,
...
...
@@ -293,6 +308,18 @@ export default {
this
.
open
=
true
;
this
.
title
=
"修改单位"
;
});
},
/** 同步SAP */
handleSynchronism
()
{
this
.
syncLoading
=
true
;
this
.
reset
();
sapSynUnitmeasure
().
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$modal
.
msgSuccess
(
"同步成功"
);
this
.
getList
();
}
this
.
syncLoading
=
false
;
});
},
/** 提交按钮 */
submitForm
()
{
...
...
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