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
de8aaa87
Commit
de8aaa87
authored
Apr 11, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关闭取消关闭
parent
01dfba71
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
484 additions
and
388 deletions
+484
-388
index.vue
src/views/ccgl/ckgl/jhd/top/index.vue
+236
-189
index.vue
src/views/ccgl/rkgl/sjrw/top/index.vue
+247
-198
index.vue
src/views/ccgl/zlgl/jyd/top/index.vue
+1
-1
No files found.
src/views/ccgl/ckgl/jhd/top/index.vue
View file @
de8aaa87
<
template
>
<BasePage
@
getRow=
'getRow'
:power=
'power'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
@
click=
"jhtj(ctx.basePage)"
size=
'mini'
type=
"primary"
>
拣货推荐
</el-button>
<!--
<ImportButton
@
success=
"()=>
{
<BasePage
@
getRow=
'getRow'
:power=
'power'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
@
click=
"jhtj(ctx.basePage)"
size=
'mini'
type=
"primary"
>
拣货推荐
</el-button>
<el-button
@
click=
"gb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
<el-button
@
click=
"qxgb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消关闭
</el-button>
<!--
<ImportButton
@
success=
"()=>
{
ctx.basePage.refresh()
}" :url="'wms/ckgl/jhtz/import'" /> -->
</
template
>
</
template
>
</BasePage>
</BasePage>
</template>
<
script
>
import
Edit
from
'./edit.vue'
export
default
{
data
()
{
return
{
power
:
{
add
:
true
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
true
,
/* 手动控制编辑按钮权限 */
editButton
:
true
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
true
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'wms/ckgl/jhtz'
,
tableTitle
:
[
import
Edit
from
'./edit.vue'
export
default
{
data
()
{
return
{
power
:
{
add
:
true
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
true
,
/* 手动控制编辑按钮权限 */
editButton
:
true
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
true
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'wms/ckgl/jhtz'
,
tableTitle
:
[{
title
:
"状态"
,
field
:
"zt"
,
fieldType
:
"ftString"
,
align
:
'center'
,
width
:
80
,
"transform"
:
{
"url"
:
"wms/ckgl/jhtz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"状态"
,
field
:
"zt"
,
fieldType
:
"ftString"
,
align
:
'center'
,
width
:
80
,
"transform"
:
{
"url"
:
"wms/ckgl/jhtz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"拣货单号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"业务日期"
,
field
:
"ywrq"
,
fieldType
:
'ftDate'
},
title
:
"拣货单号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"仓库编码
"
,
field
:
"ckCode
"
,
width
:
140
title
:
"业务日期
"
,
field
:
"ywrq
"
,
fieldType
:
'ftDate'
},
{
title
:
"仓库
"
,
field
:
"ckNam
e"
,
width
:
140
title
:
"仓库编码
"
,
field
:
"ckCod
e"
,
width
:
140
},
{
title
:
"库区
"
,
field
:
"kq
Name"
,
width
:
140
title
:
"仓库
"
,
field
:
"ck
Name"
,
width
:
140
},
{
title
:
"事务类型
"
,
field
:
"swlx
Name"
,
width
:
10
0
title
:
"库区
"
,
field
:
"kq
Name"
,
width
:
14
0
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
140
title
:
"事务类型"
,
field
:
"swlxName"
,
width
:
100
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
140
},
{
title
:
"拣货人"
,
field
:
"jhrName"
,
width
:
140
},
{
title
:
"拣货人"
,
field
:
"jhrName"
,
width
:
140
},
{
title
:
"单据来源"
,
field
:
"djly"
,
width
:
140
,
"transform"
:
{
"url"
:
"wms/ckgl/jhtz/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
"url"
:
"wms/ckgl/jhtz/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
...
...
@@ -106,137 +107,183 @@
width
:
140
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
240
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
8
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
240
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
8
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
"label"
:
"库区"
,
"prop"
:
"kqid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
linkParams
:[
'ckid'
],
linkage
:
true
,
"src"
:
"wms/jcsj/kq/query"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"库区"
,
"prop"
:
"kqid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
linkParams
:
[
'ckid'
],
linkage
:
true
,
"src"
:
"wms/jcsj/kq/query"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
],[
{
label
:
'单据编号'
,
prop
:
'djid'
,
span
:
8
,
type
:
'input'
,
value
:
''
],
[
{
label
:
'单据编号'
,
prop
:
'djid'
,
span
:
8
,
type
:
'input'
,
value
:
''
},
{
label
:
'货主'
,
prop
:
'hzInfo'
,
span
:
8
,
type
:
'input'
,
value
:
''
label
:
'货主'
,
prop
:
'hzInfo'
,
span
:
8
,
type
:
'input'
,
value
:
''
},
{
label
:
'状态'
,
prop
:
'zt'
,
span
:
8
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'wms/ckgl/jhtz/init/zt'
}
},
],[
{
label
:
'
事务类型
'
,
prop
:
'
swlxid
'
,
label
:
'
状态
'
,
prop
:
'
zt
'
,
span
:
8
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'
lxyl/rkgl/jhtz/init/swlx
'
src
:
'
wms/ckgl/jhtz/init/zt
'
}
},
],
[{
label
:
'事务类型'
,
prop
:
'swlxid'
,
span
:
8
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/rkgl/jhtz/init/swlx'
}
]
],
/* 默认启停用 */
}]
],
/* 默认启停用 */
}
}
}
}
},
methods
:
{
gb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$prompt
(
'请输入原因'
,
''
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
}).
then
(({
value
})
=>
{
if
(
value
)
{
this
.
$post
(
'wms/ckgl/jhtz/close/jhtzmx'
,
{
id
:
ctx
.
singleItem
.
id
,
gbyy
:
value
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
}
else
{
this
.
$warning
(
'请输入关闭原因'
)
}
})
},
methods
:
{
jhtj
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/jhtz/calcJhtzqd '
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
onlyRefresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
qxgb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/ckgl/jhtz/unclose/jhtzmx'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
jhtj
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/jhtz/calcJhtzqd '
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
onlyRefresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
}
},
components
:
{
Edit
}
},
components
:
{
Edit
}
}
}
</
script
>
<
style
>
...
...
src/views/ccgl/rkgl/sjrw/top/index.vue
View file @
de8aaa87
<
template
>
<BasePage
:copy=
'false'
addRename=
'新增'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
@
click=
"tjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
推荐库位
</el-button>
<el-button
@
click=
"qktjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空推荐库位
</el-button>
<!--
<ImportButton
@
success=
"()=>
{
<BasePage
:copy=
'false'
addRename=
'新增'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
@
click=
"tjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
推荐库位
</el-button>
<el-button
@
click=
"qktjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空推荐库位
</el-button>
<el-button
@
click=
"gb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
<el-button
@
click=
"qxgb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消关闭
</el-button>
<!--
<ImportButton
@
success=
"()=>
{
ctx.basePage.refresh()
}" :url="'/wms/rkgl/rktz/import'" /> -->
</
template
>
</
template
>
</BasePage>
</BasePage>
</template>
<
script
>
import
Edit
from
'./edit.vue'
export
default
{
data
()
{
return
{
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'lxyl/rkgl/sjtz'
,
tableTitle
:
[{
title
:
"上架单号"
,
field
:
"djid"
,
fieldType
:
"ftString"
,
width
:
120
},
{
title
:
"业务日期"
,
field
:
"ywrq"
,
fieldType
:
"ftDate"
},
{
title
:
"仓库编码"
,
field
:
"ckCode"
,
width
:
140
},
{
title
:
"仓库"
,
field
:
"ckName"
,
fieldType
:
"ftString"
,
width
:
140
,
},
{
title
:
"库区"
,
field
:
"kqName"
,
fieldType
:
"ftString"
,
width
:
100
,
},
import
Edit
from
'./edit.vue'
export
default
{
data
()
{
return
{
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'lxyl/rkgl/sjtz'
,
tableTitle
:
[{
title
:
"上架单号"
,
field
:
"djid"
,
fieldType
:
"ftString"
,
width
:
120
},
{
title
:
"业务日期"
,
field
:
"ywrq"
,
fieldType
:
"ftDate"
},
{
title
:
"仓库编码"
,
field
:
"ckCode"
,
width
:
140
},
{
title
:
"仓库"
,
field
:
"ckName"
,
fieldType
:
"ftString"
,
width
:
140
,
},
{
title
:
"库区"
,
field
:
"kqName"
,
fieldType
:
"ftString"
,
width
:
100
,
},
// {
// title: "库位",
// field: "kwName",
// fieldType: "ftString",
// width: 192,
// },
{
title
:
"事务类型"
,
field
:
"swlxName"
,
fieldType
:
"ftString"
,
width
:
100
,
},
{
title
:
"部门"
,
field
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"上架人"
,
field
:
"sjrName"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"事务类型"
,
field
:
"swlxName"
,
fieldType
:
"ftString"
,
width
:
100
,
},
{
title
:
"部门"
,
field
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"上架人"
,
field
:
"sjrName"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"货主"
,
field
:
"hzName"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"单据来源"
,
field
:
"djly"
,
"transform"
:
{
"url"
:
"wms/rkgl/sjtz/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
80
},
{
title
:
"单据来源"
,
field
:
"djly"
,
"transform"
:
{
"url"
:
"wms/rkgl/sjtz/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
80
},
{
title
:
"来源单号"
,
field
:
"rktzDjid"
,
width
:
140
},
{
title
:
"来源单据号"
,
field
:
"lydjDjid"
,
width
:
140
},
{
title
:
"状态"
,
field
:
"zt"
,
"transform"
:
{
"url"
:
"wms/rkgl/sjtz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
},
{
title
:
"来源单据号"
,
field
:
"lydjDjid"
,
width
:
140
},
{
title
:
"状态"
,
field
:
"zt"
,
"transform"
:
{
"url"
:
"wms/rkgl/sjtz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
60
},
{
title
:
"备注"
,
field
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
title
:
"维护人"
,
field
:
"whr"
,
fieldType
:
"ftString"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
,
hidden
:
true
},
{
title
:
"创建人"
,
field
:
"cjr"
,
fieldType
:
"ftString"
},
{
title
:
"创建时间"
,
field
:
"cjsj"
,
fieldType
:
"ftDateTime"
,
hidden
:
true
},
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
8
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
label
:
'来源单号'
,
prop
:
'lydjDjid'
,
span
:
8
,
type
:
'input'
,
value
:
''
},
{
label
:
'上架单号'
,
prop
:
'djid'
,
span
:
8
,
type
:
'input'
,
value
:
''
}
width
:
60
},
{
title
:
"备注"
,
field
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
title
:
"维护人"
,
field
:
"whr"
,
fieldType
:
"ftString"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
,
hidden
:
true
},
{
title
:
"创建人"
,
field
:
"cjr"
,
fieldType
:
"ftString"
},
{
title
:
"创建时间"
,
field
:
"cjsj"
,
fieldType
:
"ftDateTime"
,
hidden
:
true
},
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
8
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
label
:
'来源单号'
,
prop
:
'lydjDjid'
,
span
:
8
,
type
:
'input'
,
value
:
''
},
{
label
:
'上架单号'
,
prop
:
'djid'
,
span
:
8
,
type
:
'input'
,
value
:
''
}
],[
],
[
{
label
:
'上架人'
,
prop
:
'sjrName'
,
span
:
8
,
type
:
'input'
,
value
:
''
},
]
],
/* 默认启停用 */
{
label
:
'上架人'
,
prop
:
'sjrName'
,
span
:
8
,
type
:
'input'
,
value
:
''
},
]
],
/* 默认启停用 */
}
}
}
}
},
methods
:
{
gb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$prompt
(
'请输入原因'
,
''
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
}).
then
(({
value
})
=>
{
if
(
value
)
{
this
.
$post
(
'wms/rkgl/sjtz/close/sjtzmx'
,
{
id
:
ctx
.
singleItem
.
id
,
gbyy
:
value
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
}
else
{
this
.
$warning
(
'请输入关闭原因'
)
}
})
},
methods
:
{
qktjkw
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
qxgb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/rkgl/sjtz/unclose/sjtzmx'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
qktjkw
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续该操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/sjtz/cleanKw '
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/sjtz/cleanKw '
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
tjkw
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/sjtz/calcKw'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
$emit
(
'sxmx'
)
}
})
})
}
else
{
tjkw
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/sjtz/calcKw'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
$emit
(
'sxmx'
)
}
})
})
}
else
{
this
.
$warning
(
'请选择一条数据'
)
}
},
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
}
},
components
:
{
Edit
}
},
components
:
{
Edit
}
}
}
</
script
>
<
style
>
...
...
src/views/ccgl/zlgl/jyd/top/index.vue
View file @
de8aaa87
...
...
@@ -98,7 +98,7 @@
field
:
"lydid"
,
width
:
200
,
formatter
(
a
,
b
,
c
)
{
return
a
.
kccjCode
||
a
.
ukcyhdCode
return
a
.
lydid
||
a
.
kccjCode
||
a
.
ukcyhdCode
}
},
{
...
...
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