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
8a62b48c
Commit
8a62b48c
authored
Mar 11, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增调拨同步按钮
parent
aa1e1dbe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
193 additions
and
87 deletions
+193
-87
index.vue
src/views/ccgl/ckgl/dbckd/top/index.vue
+93
-87
kgcdbtb.vue
src/views/ccgl/ckgl/dbckd/top/kgcdbtb.vue
+100
-0
No files found.
src/views/ccgl/ckgl/dbckd/top/index.vue
View file @
8a62b48c
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Akck
:type=
"'add'"
v-if=
"ctx.basePage.showAdd&&showName=='akck'"
:app=
'ctx.basePage'
:buttonApp=
'ctx.basePage'
/>
<Akck
:type=
"'add'"
v-if=
"ctx.basePage.showAdd&&showName=='akck'"
:app=
'ctx.basePage'
:buttonApp=
'ctx.basePage'
/>
<Ajydk
:type=
"'add'"
v-if=
"ctx.basePage.showAdd&&showName=='ajydk'"
:app=
'ctx.basePage'
:buttonApp=
'ctx.basePage'
/>
<Ajydk
:type=
"'add'"
v-if=
"ctx.basePage.showAdd&&showName=='ajydk'"
:app=
'ctx.basePage'
:buttonApp=
'ctx.basePage'
/>
<Kgcdbtb
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='跨工厂调拨同步'"
/>
</
template
>
</
template
>
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
...
@@ -11,6 +13,7 @@
...
@@ -11,6 +13,7 @@
<el-button
@
click=
"ajydk(ctx.basePage)"
size=
'mini'
type=
"primary"
>
按检验单开
</el-button>
<el-button
@
click=
"ajydk(ctx.basePage)"
size=
'mini'
type=
"primary"
>
按检验单开
</el-button>
<el-button
@
click=
"qr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
确认
</el-button>
<el-button
@
click=
"qr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
确认
</el-button>
<el-button
@
click=
"qxqr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消确认
</el-button>
<el-button
@
click=
"qxqr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消确认
</el-button>
<el-button
@
click=
"kgcdbtb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
跨工厂调拨同步
</el-button>
</
template
>
</
template
>
</BasePage>
</BasePage>
...
@@ -20,11 +23,12 @@
...
@@ -20,11 +23,12 @@
import
Edit
from
'./edit.vue'
import
Edit
from
'./edit.vue'
import
Akck
from
'./akck.vue'
import
Akck
from
'./akck.vue'
import
Ajydk
from
'./ajydk.vue'
import
Ajydk
from
'./ajydk.vue'
import
Kgcdbtb
from
'./kgcdbtb.vue'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
showName
:
''
,
showName
:
''
,
showAdd
:
false
,
showAdd
:
false
,
power
:
{
power
:
{
add
:
false
,
add
:
false
,
copy
:
false
,
copy
:
false
,
...
@@ -41,11 +45,10 @@
...
@@ -41,11 +45,10 @@
saveSelected
:
false
saveSelected
:
false
},
},
config
:
{
config
:
{
queryDetail
:
true
,
queryDetail
:
true
,
/* 基本配置*/
/* 基本配置*/
url
:
'lxyl/ckgl/dbck'
,
url
:
'lxyl/ckgl/dbck'
,
tableTitle
:
[
tableTitle
:
[{
{
title
:
"状态"
,
title
:
"状态"
,
field
:
"zt"
,
field
:
"zt"
,
width
:
80
,
width
:
80
,
...
@@ -135,8 +138,7 @@
...
@@ -135,8 +138,7 @@
},
},
],
],
queryParams
:
[
queryParams
:
[
[
[{
{
label
:
'出库日期'
,
label
:
'出库日期'
,
startProp
:
"start"
,
startProp
:
"start"
,
endProp
:
"end"
,
endProp
:
"end"
,
...
@@ -183,8 +185,7 @@
...
@@ -183,8 +185,7 @@
],
],
[
[{
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'zt'
,
prop
:
'zt'
,
span
:
5
,
span
:
5
,
...
@@ -192,8 +193,7 @@
...
@@ -192,8 +193,7 @@
typeConfig
:
{
typeConfig
:
{
src
:
'lxyl/ckgl/dbck/init/zt'
src
:
'lxyl/ckgl/dbck/init/zt'
}
}
}
}]
]
],
],
/* 默认启停用 */
/* 默认启停用 */
showqt
:
false
,
showqt
:
false
,
...
@@ -203,7 +203,12 @@
...
@@ -203,7 +203,12 @@
},
},
methods
:
{
methods
:
{
qr
(
ctx
){
kgcdbtb
(
ctx
)
{
ctx
.
DialogWidth
=
'30vw'
ctx
.
DialogTitle
=
'跨工厂调拨同步'
ctx
.
showDialog
=
true
},
qr
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
...
@@ -223,7 +228,7 @@
...
@@ -223,7 +228,7 @@
this
.
$warning
(
'请选中一条数据'
)
this
.
$warning
(
'请选中一条数据'
)
}
}
},
},
qxqr
(
ctx
){
qxqr
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
...
@@ -243,23 +248,24 @@
...
@@ -243,23 +248,24 @@
this
.
$warning
(
'请选中一条数据'
)
this
.
$warning
(
'请选中一条数据'
)
}
}
},
},
akck
(
ctx
){
akck
(
ctx
)
{
this
.
showName
=
'akck'
this
.
showName
=
'akck'
ctx
.
showAdd
=
true
ctx
.
showAdd
=
true
},
},
ajydk
(
ctx
){
ajydk
(
ctx
)
{
this
.
showName
=
'ajydk'
this
.
showName
=
'ajydk'
ctx
.
showAdd
=
true
ctx
.
showAdd
=
true
},
},
/* 示例*/
/* 示例*/
getRow
(
val
){
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
this
.
$emit
(
'getRow'
,
val
)
}
}
},
},
components
:
{
components
:
{
Edit
,
Edit
,
Akck
,
Akck
,
Ajydk
Ajydk
,
Kgcdbtb
}
}
}
}
...
...
src/views/ccgl/ckgl/dbckd/top/kgcdbtb.vue
0 → 100644
View file @
8a62b48c
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
: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
.
editColItemList
[
0
].
value
=
nowTime
this
.
loading
=
true
})
},
data
()
{
return
{
isLoading
:
false
,
text
:
'正在请求中...'
,
readonly
:
false
,
loading
:
false
,
editColItemList
:[
{
label
:
'时间'
,
prop
:
'time'
,
span
:
24
,
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'业务单号'
,
prop
:
'ywdh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
this
.
isLoading
=
true
this
.
$post
(
'lxyl/ckgl/dbck/sync/kgcdbck'
,
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
isLoading
=
false
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
.
TablePager
.
refresh
()
}
}).
finally
(
res
=>
{
this
.
isLoading
=
false
})
}
})
}
}
}
</
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