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
6775184b
Commit
6775184b
authored
May 09, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5,9提交
parent
ff83b7fb
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1001 additions
and
339 deletions
+1001
-339
mx.vue
src/views/ccgl/ckgl/ckd/mx.vue
+56
-1
index.vue
src/views/ccgl/ckgl/jhd/top/ackdk/index.vue
+9
-2
jhr.vue
src/views/ccgl/ckgl/jhd/top/ackdk/jhr.vue
+2
-2
rkqd.vue
src/views/ccgl/ckgl/jhd/top/ackdk/rkqd.vue
+206
-67
ckqd.vue
src/views/ccgl/kcpd/pdd/ckqd.vue
+159
-0
index.vue
src/views/ccgl/kcpd/pdd/index.vue
+84
-265
mx.vue
src/views/ccgl/kcpd/pdd/mx.vue
+143
-0
dialog.vue
src/views/ccgl/kcpd/pdd/top/dialog.vue
+0
-0
edit.vue
src/views/ccgl/kcpd/pdd/top/edit.vue
+0
-0
index.vue
src/views/ccgl/kcpd/pdd/top/index.vue
+286
-0
jyd.vue
src/views/ccgl/kcpd/pdd/top/jyd.vue
+0
-0
mx.vue
src/views/ccgl/rkgl/rkd/mx.vue
+56
-2
No files found.
src/views/ccgl/ckgl/ckd/mx.vue
View file @
6775184b
...
@@ -2,9 +2,12 @@
...
@@ -2,9 +2,12 @@
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;"
:autoQuery=
'false'
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;"
:autoQuery=
'false'
:config=
"config"
>
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
</
template
>
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<el-button
@
click=
"gb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
<el-button
@
click=
"qxgb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消关闭
</el-button>
</
template
>
</
template
>
...
@@ -138,6 +141,58 @@
...
@@ -138,6 +141,58 @@
},
},
methods
:
{
methods
:
{
gb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$prompt
(
'请输入原因'
,
''
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
}).
then
(({
value
})
=>
{
if
(
value
)
{
this
.
$post
(
'lxyl/ckgl/cktz/close/cktzmx'
,
{
id
:
ctx
.
singleItem
.
id
,
gbyy
:
value
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
}
else
{
this
.
$warning
(
'请输入关闭原因'
)
}
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
qxgb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/ckgl/ckdgb/batchUnClose/cktzmx'
,
{
datas
:[
{
id
:
ctx
.
singleItem
.
id
}
]
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
getRow
(
val
){
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
this
.
$emit
(
'getRow'
,
val
)
},
},
...
...
src/views/ccgl/ckgl/jhd/top/ackdk/index.vue
View file @
6775184b
...
@@ -71,14 +71,21 @@
...
@@ -71,14 +71,21 @@
},
},
save
()
{
save
()
{
let
map
=
this
.
$refs
.
rkqd
.
d
etailList
let
map
=
this
.
$refs
.
rkqd
.
fpD
etailList
let
keyList
=
Object
.
keys
(
map
)
let
keyList
=
Object
.
keys
(
map
)
if
(
keyList
.
length
==
0
){
if
(
keyList
.
length
==
0
){
this
.
$warning
(
'请先选择明细'
)
this
.
$warning
(
'请先选择明细'
)
return
return
}
}
/* 判定勾选的id*/
const
selectedList
=
this
.
$refs
.
rkqd
.
$refs
.
basePage
.
multipleSelection
const
sekeyList
=
selectedList
.
map
(
item
=>
item
.
id
)
if
(
sekeyList
.
length
==
0
){
this
.
$warning
(
'请勾选保留项'
)
return
}
let
datas
=
[]
let
datas
=
[]
keyList
.
forEach
(
key
=>
{
se
keyList
.
forEach
(
key
=>
{
map
[
key
].
forEach
(
item
=>
{
map
[
key
].
forEach
(
item
=>
{
item
.
fpsl
=
item
.
jhsl
item
.
fpsl
=
item
.
jhsl
datas
.
push
(
item
)
datas
.
push
(
item
)
...
...
src/views/ccgl/ckgl/jhd/top/ackdk/jhr.vue
View file @
6775184b
...
@@ -94,8 +94,8 @@
...
@@ -94,8 +94,8 @@
}
}
},
},
{
{
label
:
'
库存
数量'
,
label
:
'
拣货
数量'
,
prop
:
'
kc
sl'
,
prop
:
'
jh
sl'
,
width
:
130
,
width
:
130
,
},
},
],
],
...
...
src/views/ccgl/ckgl/jhd/top/ackdk/rkqd.vue
View file @
6775184b
This diff is collapsed.
Click to expand it.
src/views/ccgl/kcpd/pdd/ckqd.vue
0 → 100644
View file @
6775184b
<
template
>
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;"
:autoQuery=
'false'
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
</BasePage>
</template>
<
script
>
import
wlsx
from
'common/src/mixin/wlsx.js'
import
wlphsx
from
'common/src/mixin/wlphsx.js'
export
default
{
mixins
:[
wlphsx
,
wlsx
],
mounted
()
{
},
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
/* 基本配置*/
/* 基本配置*/
url
:
'wms/kcgl/kcpd/query/detail'
,
queryUrl
:
'wms/kcgl/kcpd/query/detail'
,
tableTitle
:
[{
title
:
"序号"
,
field
:
"xh"
,
width
:
50
,
align
:
"center"
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
240
,
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
160
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwName"
,
width
:
100
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
,
},
{
title
:
"库位"
,
field
:
"kwCode"
,
width
:
240
,
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
160
,
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
160
,
},
{
title
:
"盘存数量"
,
field
:
"pcsl"
,
width
:
100
,
},
{
title
:
"库存数量"
,
field
:
"kcsl"
,
width
:
100
,
},
{
title
:
"盘盈数量"
,
field
:
"pysl"
,
width
:
100
,
},
{
title
:
"盘亏数量"
,
field
:
"pksl"
,
width
:
100
,
},
{
title
:
"盈亏原因"
,
field
:
"ykyy"
,
width
:
300
,
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
200
,
}
],
queryParams
:
[],
}
}
},
methods
:
{
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
demo
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
console
.
log
(
ctx
.
singleItem
)
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
},
components
:
{
}
}
</
script
>
<
style
>
</
style
>
src/views/ccgl/kcpd/pdd/index.vue
View file @
6775184b
This diff is collapsed.
Click to expand it.
src/views/ccgl/kcpd/pdd/mx.vue
0 → 100644
View file @
6775184b
<
template
>
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;"
:autoQuery=
'false'
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
</
template
>
</BasePage>
</template>
<
script
>
import
wlsx
from
'common/src/mixin/wlsx.js'
import
wlphsx
from
'common/src/mixin/wlphsx.js'
export
default
{
mixins
:
[
wlsx
,
wlphsx
],
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
/* 基本配置*/
url
:
'wms/kcgl/kcpd/query/kcpdmx'
,
queryUrl
:
'wms/kcgl/kcpd/query/kcpdmx'
,
tableTitle
:
[{
title
:
"序号"
,
field
:
"xh"
,
width
:
50
,
align
:
"center"
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
240
,
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
160
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwName"
,
width
:
100
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
,
},
{
title
:
"库位"
,
field
:
"kwCode"
,
width
:
240
,
},
{
title
:
"盘存数量"
,
field
:
"pcsl"
,
width
:
100
,
},
{
title
:
"库存数量"
,
field
:
"kcsl"
,
width
:
100
,
},
{
title
:
"盘盈数量"
,
field
:
"pysl"
,
width
:
100
,
},
{
title
:
"盘亏数量"
,
field
:
"pksl"
,
width
:
100
,
},
{
title
:
"盈亏原因"
,
field
:
"ykyy"
,
width
:
300
,
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
200
,
}
],
queryParams
:
[],
}
}
},
methods
:
{
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
demo
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
console
.
log
(
ctx
.
singleItem
)
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
},
components
:
{
}
}
</
script
>
<
style
>
</
style
>
src/views/ccgl/kcpd/pdd/dialog.vue
→
src/views/ccgl/kcpd/pdd/
top/
dialog.vue
View file @
6775184b
File moved
src/views/ccgl/kcpd/pdd/edit.vue
→
src/views/ccgl/kcpd/pdd/
top/
edit.vue
View file @
6775184b
File moved
src/views/ccgl/kcpd/pdd/top/index.vue
0 → 100644
View file @
6775184b
<
template
>
<BasePage
class=
"min_full"
@
getRow=
'getRow'
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!--
<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=
"dj(ctx.basePage)"
size=
'mini'
type=
"primary"
>
冻结
</el-button>
<el-button
@
click=
"qxdj(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消冻结
</el-button>
<el-button
@
click=
"wc(ctx.basePage)"
size=
'mini'
type=
"primary"
>
完成
</el-button>
<el-button
@
click=
"qxwc(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消完成
</el-button>
<el-button
@
click=
"sendSap(ctx.basePage)"
size=
'mini'
type=
"primary"
>
发送至sap
</el-button>
</
template
>
</BasePage>
</template>
<
script
>
import
Edit
from
'./edit.vue'
export
default
{
data
()
{
return
{
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'wms/kcgl/kcpd'
,
queryUrl
:
'lxyl/kcgl/pdgz/query'
,
tableTitle
:
[{
title
:
"状态"
,
field
:
"zt"
,
width
:
70
,
"transform"
:
{
"url"
:
"wms/kcgl/kcpd/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"盘点单号"
,
field
:
"djid"
,
fieldType
:
"ftString"
,
width
:
130
},
{
title
:
"盘点仓库"
,
field
:
"ckmc"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"盘点日期"
,
field
:
"pdrq"
,
fieldType
:
"ftDate"
},
{
title
:
"盘点人"
,
field
:
"pdr"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"备注"
,
field
:
"bz"
,
fieldType
:
"ftString"
,
width
:
200
},
{
title
:
"维护人"
,
field
:
"whr"
,
fieldType
:
"ftString"
,
width
:
120
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
,
width
:
200
}
],
queryParams
:
[
[{
label
:
'年度'
,
prop
:
'year'
,
span
:
6
,
type
:
'year'
,
value
:
''
},
{
label
:
'盘点单号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"状态"
,
"prop"
:
"zt"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"wms/kcgl/kcpd/init/zt"
,
}
},
]
],
/* 默认启停用 */
showqt
:
false
,
}
}
},
methods
:
{
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
sendSap
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/kcgl/pdgz/sync/pdgz'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
wc
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/kcgl/kcpd/complete'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
qxwc
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/kcgl/kcpd/uncomplete'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
dj
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/kcgl/kcpd/freeze'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
qxdj
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/kcgl/kcpd/unfreeze'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
/* 示例*/
qr
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/kcgl/kcpd/confirm'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
qxqr
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/kcgl/kcpd/unconfirm'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
},
components
:
{
Edit
}
}
</
script
>
<
style
>
</
style
>
src/views/ccgl/kcpd/pdd/jyd.vue
→
src/views/ccgl/kcpd/pdd/
top/
jyd.vue
View file @
6775184b
File moved
src/views/ccgl/rkgl/rkd/mx.vue
View file @
6775184b
...
@@ -2,10 +2,12 @@
...
@@ -2,10 +2,12 @@
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;"
:autoQuery=
'false'
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;"
:autoQuery=
'false'
:config=
"config"
>
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
</
template
>
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<el-button
@
click=
"gb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
<el-button
@
click=
"qxgb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消关闭
</el-button>
</
template
>
</
template
>
</BasePage>
</BasePage>
...
@@ -136,6 +138,58 @@
...
@@ -136,6 +138,58 @@
},
},
methods
:
{
methods
:
{
gb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$prompt
(
'请输入原因'
,
''
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
}).
then
(({
value
})
=>
{
if
(
value
)
{
this
.
$post
(
'lxyl/rkgl/rktz/close/rktzmx'
,
{
id
:
ctx
.
singleItem
.
id
,
gbyy
:
value
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
}
else
{
this
.
$warning
(
'请输入关闭原因'
)
}
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
qxgb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/rkdgb/batchUnClose/rktzmx'
,
{
datas
:[
{
id
:
ctx
.
singleItem
.
id
}
]
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
getRow
(
val
){
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
this
.
$emit
(
'getRow'
,
val
)
},
},
...
...
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