Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
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
李苏
lxyl-vue
Commits
5c86ef3f
Commit
5c86ef3f
authored
Jan 16, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASYNC WLXX TIME
parent
30de65ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
98 additions
and
1 deletion
+98
-1
index.vue
src/views/jcsj/wl/wlxx/index.vue
+11
-1
tbwl.vue
src/views/jcsj/wl/wlxx/tbwl.vue
+87
-0
No files found.
src/views/jcsj/wl/wlxx/index.vue
View file @
5c86ef3f
<
template
>
<div
style=
"display: flex;"
>
<Tbwl
:app=
'this'
v-if=
"showDialog"
/>
<div
class=
"min_full"
style=
"width: 200px;border-right: 0px;"
>
<LazyTree
treeTitle=
'物料分类'
@
selected=
'selectedTree'
url=
'jcsj/wlfl/queryroot'
/>
</div>
...
...
@@ -28,6 +29,7 @@
<ImportTempButton
@
success=
"()=>
{
$refs['TablePager'].pageQuery()
}" :url="'jcsj/wlxx/import'">
</ImportTempButton>
<el-button
@
click=
"tbwl()"
size=
'mini'
type=
"primary"
>
同步物料
</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
...
...
@@ -61,6 +63,7 @@
}
from
'./wlxx.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
Tbwl
from
'./tbwl.vue'
import
{
tableMixin
}
from
'common'
...
...
@@ -73,6 +76,7 @@
},
data
()
{
return
{
time
:
new
Date
().
getTime
(),
/* 树的标题 */
treeTitle
:
'物料分类'
,
treeDefaultProps
:
{
...
...
@@ -145,6 +149,12 @@
}
},
methods
:
{
tbwl
(){
/* 确认time*/
this
.
DialogWidth
=
'30vw'
this
.
DialogTitle
=
'同步物料'
this
.
showDialog
=
true
},
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -189,7 +199,7 @@
}
},
components
:
{
Edit
,
Edit
,
Tbwl
}
}
</
script
>
...
...
src/views/jcsj/wl/wlxx/tbwl.vue
0 → 100644
View file @
5c86ef3f
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
v-if=
"loading"
:gutter=
"20"
:app=
"this"
class=
"editRow"
>
<EditColItem
:required=
"item.required||false"
:readonly=
"item.readonly?true:false "
v-for=
"(item,index) in editColItemList "
:value=
"item.value"
:span=
"item.span"
:label=
"item.label"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
保 存
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
this
.
$post
(
'common/datetime'
,{}).
then
(
res
=>
{
let
nowTime
=
res
.
data
.
data
||
new
Date
().
getTime
()
/* 初始赋值*/
this
.
nowTime
=
nowTime
this
.
editColItemList
[
0
].
value
=
nowTime
-
24
*
60
*
60
*
1000
this
.
loading
=
true
})
},
data
()
{
return
{
readonly
:
false
,
loading
:
false
,
editColItemList
:[
{
label
:
'时间'
,
prop
:
'time'
,
span
:
24
,
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
this
.
$post
(
'lxyl/jcsj/wlxx/sap/sync'
,{
time
:
this
.
form
.
time
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
.
TablePager
.
refresh
()
}
})
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
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